From e9cfc111a4e360b291b5138d99aa5b9a75d913b4 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 14:27:54 -0700 Subject: [PATCH 01/12] Fixes api doc path info and link --- .../petstore/java/docs/apis/paths/Anotherfakedummy.md | 2 +- .../petstore/java/docs/apis/paths/Commonparamsubdir.md | 2 +- samples/client/petstore/java/docs/apis/paths/Fake.md | 2 +- .../apis/paths/Fakeadditionalpropertieswitharrayofenums.md | 2 +- .../petstore/java/docs/apis/paths/Fakebodywithfileschema.md | 2 +- .../java/docs/apis/paths/Fakebodywithqueryparams.md | 2 +- .../java/docs/apis/paths/Fakecasesensitiveparams.md | 2 +- .../petstore/java/docs/apis/paths/Fakeclassnametest.md | 2 +- .../petstore/java/docs/apis/paths/Fakedeletecoffeeid.md | 2 +- samples/client/petstore/java/docs/apis/paths/Fakehealth.md | 2 +- .../java/docs/apis/paths/Fakeinlineadditionalproperties.md | 2 +- .../petstore/java/docs/apis/paths/Fakeinlinecomposition.md | 2 +- .../petstore/java/docs/apis/paths/Fakejsonformdata.md | 2 +- .../client/petstore/java/docs/apis/paths/Fakejsonpatch.md | 2 +- .../petstore/java/docs/apis/paths/Fakejsonwithcharset.md | 2 +- .../docs/apis/paths/Fakemultiplerequestbodycontenttypes.md | 2 +- .../java/docs/apis/paths/Fakemultipleresponsebodies.md | 2 +- .../petstore/java/docs/apis/paths/Fakemultiplesecurities.md | 2 +- .../client/petstore/java/docs/apis/paths/Fakeobjinquery.md | 2 +- .../docs/apis/paths/Fakeparametercollisions1ababselfab.md | 2 +- .../petstore/java/docs/apis/paths/Fakepemcontenttype.md | 2 +- .../docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md | 2 +- .../docs/apis/paths/Fakequeryparamwithjsoncontenttype.md | 2 +- .../client/petstore/java/docs/apis/paths/Fakeredirection.md | 2 +- .../petstore/java/docs/apis/paths/Fakerefobjinquery.md | 2 +- .../petstore/java/docs/apis/paths/Fakerefsarraymodel.md | 2 +- .../petstore/java/docs/apis/paths/Fakerefsarrayofenums.md | 2 +- .../client/petstore/java/docs/apis/paths/Fakerefsboolean.md | 2 +- .../paths/Fakerefscomposedoneofnumberwithvalidations.md | 2 +- .../client/petstore/java/docs/apis/paths/Fakerefsenum.md | 2 +- .../client/petstore/java/docs/apis/paths/Fakerefsmammal.md | 2 +- .../client/petstore/java/docs/apis/paths/Fakerefsnumber.md | 2 +- .../java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md | 2 +- .../client/petstore/java/docs/apis/paths/Fakerefsstring.md | 2 +- .../java/docs/apis/paths/Fakeresponsewithoutschema.md | 2 +- .../petstore/java/docs/apis/paths/Faketestqueryparamters.md | 2 +- .../petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md | 2 +- .../client/petstore/java/docs/apis/paths/Fakeuploadfile.md | 2 +- .../client/petstore/java/docs/apis/paths/Fakeuploadfiles.md | 2 +- .../petstore/java/docs/apis/paths/Fakewildcardresponses.md | 2 +- samples/client/petstore/java/docs/apis/paths/Foo.md | 2 +- samples/client/petstore/java/docs/apis/paths/Pet.md | 2 +- .../client/petstore/java/docs/apis/paths/Petfindbystatus.md | 2 +- .../client/petstore/java/docs/apis/paths/Petfindbytags.md | 2 +- samples/client/petstore/java/docs/apis/paths/Petpetid.md | 2 +- .../petstore/java/docs/apis/paths/Petpetiduploadimage.md | 2 +- samples/client/petstore/java/docs/apis/paths/Solidus.md | 2 +- .../client/petstore/java/docs/apis/paths/Storeinventory.md | 2 +- samples/client/petstore/java/docs/apis/paths/Storeorder.md | 2 +- .../petstore/java/docs/apis/paths/Storeorderorderid.md | 2 +- samples/client/petstore/java/docs/apis/paths/User.md | 2 +- .../petstore/java/docs/apis/paths/Usercreatewitharray.md | 2 +- .../petstore/java/docs/apis/paths/Usercreatewithlist.md | 2 +- samples/client/petstore/java/docs/apis/paths/Userlogin.md | 2 +- samples/client/petstore/java/docs/apis/paths/Userlogout.md | 2 +- .../client/petstore/java/docs/apis/paths/Userusername.md | 2 +- src/main/resources/java/README.hbs | 6 +++--- .../java/src/main/java/packagename/apis/paths/ApiDoc.hbs | 2 +- 58 files changed, 60 insertions(+), 60 deletions(-) diff --git a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md index dfff5e5ce61..b95a82989e1 100644 --- a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md +++ b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md @@ -3,7 +3,7 @@ public class Anotherfakedummy extends extends ApiClient implements [AnotherfakedummyPatch.PatchOperation](../../paths/anotherfakedummy/AnotherfakedummyPatch.md#patchoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/another-fake/dummy" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md index 288534965ef..ff14c55e587 100644 --- a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md +++ b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md @@ -5,7 +5,7 @@ public class Commonparamsubdir extends extends ApiClient implements [CommonparamsubdirGet.GetOperation](../../paths/commonparamsubdir/CommonparamsubdirGet.md#getoperation), [CommonparamsubdirPost.PostOperation](../../paths/commonparamsubdir/CommonparamsubdirPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/commonParam/{subDir}/" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fake.md b/samples/client/petstore/java/docs/apis/paths/Fake.md index f06c8b53c84..4127de5b4a6 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fake.md +++ b/samples/client/petstore/java/docs/apis/paths/Fake.md @@ -6,7 +6,7 @@ public class Fake extends extends ApiClient implements [FakePatch.PatchOperation](../../paths/fake/FakePatch.md#patchoperation), [FakePost.PostOperation](../../paths/fake/FakePost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md index 214de5c1394..fd36cde3df4 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md @@ -3,7 +3,7 @@ public class Fakeadditionalpropertieswitharrayofenums extends extends ApiClient implements [FakeadditionalpropertieswitharrayofenumsGet.GetOperation](../../paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/additional-properties-with-array-of-enums" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md index 5d36cc1dfd5..ade8ffc40b7 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md @@ -3,7 +3,7 @@ public class Fakebodywithfileschema extends extends ApiClient implements [FakebodywithfileschemaPut.PutOperation](../../paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#putoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/body-with-file-schema" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md index 566aa4a6765..2432dc18eab 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md @@ -3,7 +3,7 @@ public class Fakebodywithqueryparams extends extends ApiClient implements [FakebodywithqueryparamsPut.PutOperation](../../paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#putoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/body-with-query-params" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md index df8e70eb129..389ba6a738d 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md @@ -3,7 +3,7 @@ public class Fakecasesensitiveparams extends extends ApiClient implements [FakecasesensitiveparamsPut.PutOperation](../../paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#putoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/case-sensitive-params" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md index 086168f5024..e5f67ea9312 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md @@ -3,7 +3,7 @@ public class Fakeclassnametest extends extends ApiClient implements [FakeclassnametestPatch.PatchOperation](../../paths/fakeclassnametest/FakeclassnametestPatch.md#patchoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake_classname_test" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md index cad83a20f06..ea32daeb8d3 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md @@ -3,7 +3,7 @@ public class Fakedeletecoffeeid extends extends ApiClient implements [FakedeletecoffeeidDelete.DeleteOperation](../../paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#deleteoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/deleteCoffee/{id}" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md index 5c0455c6d33..0d9fe899aef 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md @@ -3,7 +3,7 @@ public class Fakehealth extends extends ApiClient implements [FakehealthGet.GetOperation](../../paths/fakehealth/FakehealthGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/health" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md index d1df32c55d0..3dddf4220f4 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md @@ -3,7 +3,7 @@ public class Fakeinlineadditionalproperties extends extends ApiClient implements [FakeinlineadditionalpropertiesPost.PostOperation](../../paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/inline-additionalProperties" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md index f676e498494..41a5750b74a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md @@ -3,7 +3,7 @@ public class Fakeinlinecomposition extends extends ApiClient implements [FakeinlinecompositionPost.PostOperation](../../paths/fakeinlinecomposition/FakeinlinecompositionPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/inlineComposition/" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md index 36ce2df9027..11d5afe8a56 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md @@ -3,7 +3,7 @@ public class Fakejsonformdata extends extends ApiClient implements [FakejsonformdataGet.GetOperation](../../paths/fakejsonformdata/FakejsonformdataGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/jsonFormData" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md index 87d6db78edc..29faa0d81fe 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md @@ -3,7 +3,7 @@ public class Fakejsonpatch extends extends ApiClient implements [FakejsonpatchPatch.PatchOperation](../../paths/fakejsonpatch/FakejsonpatchPatch.md#patchoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/jsonPatch" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md index 7afbe600ae7..d759e24d9c1 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md @@ -3,7 +3,7 @@ public class Fakejsonwithcharset extends extends ApiClient implements [FakejsonwithcharsetPost.PostOperation](../../paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/jsonWithCharset" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md index cb5535784b7..e960595262b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md @@ -3,7 +3,7 @@ public class Fakemultiplerequestbodycontenttypes extends extends ApiClient implements [FakemultiplerequestbodycontenttypesPost.PostOperation](../../paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/multipleRequestBodyContentTypes/" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md index dbcb8f54004..c59ff42ee6a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md @@ -3,7 +3,7 @@ public class Fakemultipleresponsebodies extends extends ApiClient implements [FakemultipleresponsebodiesGet.GetOperation](../../paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/multipleResponseBodies" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md index f171c5f627c..9af74b2bd4e 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md @@ -3,7 +3,7 @@ public class Fakemultiplesecurities extends extends ApiClient implements [FakemultiplesecuritiesGet.GetOperation](../../paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/multipleSecurities" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md index a383f132b30..46101fa84b9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md @@ -3,7 +3,7 @@ public class Fakeobjinquery extends extends ApiClient implements [FakeobjinqueryGet.GetOperation](../../paths/fakeobjinquery/FakeobjinqueryGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/objInQuery" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md index 23806a2f0eb..4cba4991767 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md @@ -3,7 +3,7 @@ public class Fakeparametercollisions1ababselfab extends extends ApiClient implements [Fakeparametercollisions1ababselfabPost.PostOperation](../../paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md index 18fce17f986..779ed768b91 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md @@ -3,7 +3,7 @@ public class Fakepemcontenttype extends extends ApiClient implements [FakepemcontenttypeGet.GetOperation](../../paths/fakepemcontenttype/FakepemcontenttypeGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/pemContentType" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md index 3e3cf8a69ff..ac0ca811c30 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md @@ -3,7 +3,7 @@ public class Fakepetiduploadimagewithrequiredfile extends extends ApiClient implements [FakepetiduploadimagewithrequiredfilePost.PostOperation](../../paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/{petId}/uploadImageWithRequiredFile" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md index 048136b6176..c8a157d03d4 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md @@ -3,7 +3,7 @@ public class Fakequeryparamwithjsoncontenttype extends extends ApiClient implements [FakequeryparamwithjsoncontenttypeGet.GetOperation](../../paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/queryParamWithJsonContentType" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md index 1f29bd52cdc..c7dfe89c66b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md @@ -3,7 +3,7 @@ public class Fakeredirection extends extends ApiClient implements [FakeredirectionGet.GetOperation](../../paths/fakeredirection/FakeredirectionGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/redirection" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md index 94fd1062d39..49b10105dca 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md @@ -3,7 +3,7 @@ public class Fakerefobjinquery extends extends ApiClient implements [FakerefobjinqueryGet.GetOperation](../../paths/fakerefobjinquery/FakerefobjinqueryGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/refObjInQuery" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md index 4815ab1fcd6..f6cbf102c40 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md @@ -3,7 +3,7 @@ public class Fakerefsarraymodel extends extends ApiClient implements [FakerefsarraymodelPost.PostOperation](../../paths/fakerefsarraymodel/FakerefsarraymodelPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/refs/arraymodel" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md index fbc4673af87..e942a360d4b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md @@ -3,7 +3,7 @@ public class Fakerefsarrayofenums extends extends ApiClient implements [FakerefsarrayofenumsPost.PostOperation](../../paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/refs/array-of-enums" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md index 9e19a6b1aad..e7b28f6f3df 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md @@ -3,7 +3,7 @@ public class Fakerefsboolean extends extends ApiClient implements [FakerefsbooleanPost.PostOperation](../../paths/fakerefsboolean/FakerefsbooleanPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/refs/boolean" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md index 69e82a51a44..0c41e0ebfdc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md @@ -3,7 +3,7 @@ public class Fakerefscomposedoneofnumberwithvalidations extends extends ApiClient implements [FakerefscomposedoneofnumberwithvalidationsPost.PostOperation](../../paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/refs/composed_one_of_number_with_validations" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md index 10a341f972d..5053ff9b400 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md @@ -3,7 +3,7 @@ public class Fakerefsenum extends extends ApiClient implements [FakerefsenumPost.PostOperation](../../paths/fakerefsenum/FakerefsenumPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/refs/enum" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md index 94b62b69921..1c22c090062 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md @@ -3,7 +3,7 @@ public class Fakerefsmammal extends extends ApiClient implements [FakerefsmammalPost.PostOperation](../../paths/fakerefsmammal/FakerefsmammalPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/refs/mammal" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md index b593a13459a..62cd5d48d6b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md @@ -3,7 +3,7 @@ public class Fakerefsnumber extends extends ApiClient implements [FakerefsnumberPost.PostOperation](../../paths/fakerefsnumber/FakerefsnumberPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/refs/number" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md index a988e195113..1965cba9c36 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md @@ -3,7 +3,7 @@ public class Fakerefsobjectmodelwithrefprops extends extends ApiClient implements [FakerefsobjectmodelwithrefpropsPost.PostOperation](../../paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/refs/object_model_with_ref_props" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md index a372887c2d2..34e516e9052 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md @@ -3,7 +3,7 @@ public class Fakerefsstring extends extends ApiClient implements [FakerefsstringPost.PostOperation](../../paths/fakerefsstring/FakerefsstringPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/refs/string" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md index 64239e7a307..809ec3ec5d1 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md @@ -3,7 +3,7 @@ public class Fakeresponsewithoutschema extends extends ApiClient implements [FakeresponsewithoutschemaGet.GetOperation](../../paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/responseWithoutSchema" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md index 157b2bb97fc..7c3ae6c853f 100644 --- a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md +++ b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md @@ -3,7 +3,7 @@ public class Faketestqueryparamters extends extends ApiClient implements [FaketestqueryparamtersPut.PutOperation](../../paths/faketestqueryparamters/FaketestqueryparamtersPut.md#putoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/test-query-paramters" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md index 88ee0cac610..deb8eb75170 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md @@ -3,7 +3,7 @@ public class Fakeuploaddownloadfile extends extends ApiClient implements [FakeuploaddownloadfilePost.PostOperation](../../paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/uploadDownloadFile" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md index 828373121b2..42d78c62156 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md @@ -3,7 +3,7 @@ public class Fakeuploadfile extends extends ApiClient implements [FakeuploadfilePost.PostOperation](../../paths/fakeuploadfile/FakeuploadfilePost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/uploadFile" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md index dbbd3854037..4a668c30592 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md @@ -3,7 +3,7 @@ public class Fakeuploadfiles extends extends ApiClient implements [FakeuploadfilesPost.PostOperation](../../paths/fakeuploadfiles/FakeuploadfilesPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/uploadFiles" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md index 779ba58f357..ed3c327296a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md @@ -3,7 +3,7 @@ public class Fakewildcardresponses extends extends ApiClient implements [FakewildcardresponsesGet.GetOperation](../../paths/fakewildcardresponses/FakewildcardresponsesGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/fake/wildCardResponses" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Foo.md b/samples/client/petstore/java/docs/apis/paths/Foo.md index 3186f6a9656..cbf7d7009df 100644 --- a/samples/client/petstore/java/docs/apis/paths/Foo.md +++ b/samples/client/petstore/java/docs/apis/paths/Foo.md @@ -3,7 +3,7 @@ public class Foo extends extends ApiClient implements [FooGet.GetOperation](../../paths/foo/FooGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/foo" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Pet.md b/samples/client/petstore/java/docs/apis/paths/Pet.md index a8ee4db231b..f01f3cbe664 100644 --- a/samples/client/petstore/java/docs/apis/paths/Pet.md +++ b/samples/client/petstore/java/docs/apis/paths/Pet.md @@ -4,7 +4,7 @@ public class Pet extends extends ApiClient implements [PetPost.PostOperation](../../paths/pet/PetPost.md#postoperation), [PetPut.PutOperation](../../paths/pet/PetPut.md#putoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/pet" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md index 8ece1d1ae03..765ef2618ee 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md @@ -3,7 +3,7 @@ public class Petfindbystatus extends extends ApiClient implements [PetfindbystatusGet.GetOperation](../../paths/petfindbystatus/PetfindbystatusGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/pet/findByStatus" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md index 394bc51ed35..1ab2b417ed0 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md @@ -3,7 +3,7 @@ public class Petfindbytags extends extends ApiClient implements [PetfindbytagsGet.GetOperation](../../paths/petfindbytags/PetfindbytagsGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/pet/findByTags" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetid.md b/samples/client/petstore/java/docs/apis/paths/Petpetid.md index 3d68365c59c..ff1ed3bf90b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetid.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetid.md @@ -5,7 +5,7 @@ public class Petpetid extends extends ApiClient implements [PetpetidGet.GetOperation](../../paths/petpetid/PetpetidGet.md#getoperation), [PetpetidPost.PostOperation](../../paths/petpetid/PetpetidPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/pet/{petId}" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md index 4d6e11a51f4..967f40f1a14 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md @@ -3,7 +3,7 @@ public class Petpetiduploadimage extends extends ApiClient implements [PetpetiduploadimagePost.PostOperation](../../paths/petpetiduploadimage/PetpetiduploadimagePost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/pet/{petId}/uploadImage" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Solidus.md b/samples/client/petstore/java/docs/apis/paths/Solidus.md index 5f8a4970e89..6f4af906f93 100644 --- a/samples/client/petstore/java/docs/apis/paths/Solidus.md +++ b/samples/client/petstore/java/docs/apis/paths/Solidus.md @@ -3,7 +3,7 @@ public class Solidus extends extends ApiClient implements [SolidusGet.GetOperation](../../paths/solidus/SolidusGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md index ee9907299d6..a8c30194f2e 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md @@ -3,7 +3,7 @@ public class Storeinventory extends extends ApiClient implements [StoreinventoryGet.GetOperation](../../paths/storeinventory/StoreinventoryGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/store/inventory" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorder.md b/samples/client/petstore/java/docs/apis/paths/Storeorder.md index e092f790b67..a5b93d6e9fc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorder.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorder.md @@ -3,7 +3,7 @@ public class Storeorder extends extends ApiClient implements [StoreorderPost.PostOperation](../../paths/storeorder/StoreorderPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/store/order" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md index 9f8f173efa3..3433f90bab4 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md @@ -4,7 +4,7 @@ public class Storeorderorderid extends extends ApiClient implements [StoreorderorderidDelete.DeleteOperation](../../paths/storeorderorderid/StoreorderorderidDelete.md#deleteoperation), [StoreorderorderidGet.GetOperation](../../paths/storeorderorderid/StoreorderorderidGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/store/order/{order_id}" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/User.md b/samples/client/petstore/java/docs/apis/paths/User.md index f10ec4e7199..ccde559eed0 100644 --- a/samples/client/petstore/java/docs/apis/paths/User.md +++ b/samples/client/petstore/java/docs/apis/paths/User.md @@ -3,7 +3,7 @@ public class User extends extends ApiClient implements [UserPost.PostOperation](../../paths/user/UserPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/user" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md index 39776a1525c..e8cac8d607b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md @@ -3,7 +3,7 @@ public class Usercreatewitharray extends extends ApiClient implements [UsercreatewitharrayPost.PostOperation](../../paths/usercreatewitharray/UsercreatewitharrayPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/user/createWithArray" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md index 17991d81c4d..f71882f0942 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md @@ -3,7 +3,7 @@ public class Usercreatewithlist extends extends ApiClient implements [UsercreatewithlistPost.PostOperation](../../paths/usercreatewithlist/UsercreatewithlistPost.md#postoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/user/createWithList" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogin.md b/samples/client/petstore/java/docs/apis/paths/Userlogin.md index 75f7296e1e0..bc63543dcd2 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogin.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogin.md @@ -3,7 +3,7 @@ public class Userlogin extends extends ApiClient implements [UserloginGet.GetOperation](../../paths/userlogin/UserloginGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/user/login" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogout.md b/samples/client/petstore/java/docs/apis/paths/Userlogout.md index 6da74aaf369..8eea6760281 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogout.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogout.md @@ -3,7 +3,7 @@ public class Userlogout extends extends ApiClient implements [UserlogoutGet.GetOperation](../../paths/userlogout/UserlogoutGet.md#getoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/user/logout" ## Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/apis/paths/Userusername.md b/samples/client/petstore/java/docs/apis/paths/Userusername.md index d5f9713dc06..f963447b384 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userusername.md +++ b/samples/client/petstore/java/docs/apis/paths/Userusername.md @@ -5,7 +5,7 @@ public class Userusername extends extends ApiClient implements [UserusernameGet.GetOperation](../../paths/userusername/UserusernameGet.md#getoperation), [UserusernamePut.PutOperation](../../paths/userusername/UserusernamePut.md#putoperation) -an api client class which contains all the routes for path="" +an api client class which contains all the routes for path="/user/{username}" ## Method Summary | Modifier and Type | Method and Description | diff --git a/src/main/resources/java/README.hbs b/src/main/resources/java/README.hbs index bd07d6f6f5b..2dee5f056e5 100644 --- a/src/main/resources/java/README.hbs +++ b/src/main/resources/java/README.hbs @@ -1,4 +1,4 @@ -# {{{projectName}}} +# {{artifactId}} {{#if appDescription}} {{appDescription.original}} {{/if}} @@ -6,7 +6,7 @@ This Java package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: - API version: {{appVersion}} -- Package version: {{packageVersion}} +- Package version: {{artifactVersion}} - Build package: {{generatorClass}} {{#if infoUrl}} For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) @@ -197,7 +197,7 @@ All URIs are relative to the selected server | ------------ | ------- | ----------- | {{#each paths}} {{#each operations}} -| {{../@key.original}} **{{@key.original}}** | {{#each tags}}[{{className}}.{{../operationId.camelCase}}](docs/apis/tags/{{className}}.md#{{../operationId.kebabCase}}) {{/each}} [{{../jsonPathPiece.pascalCase}}.{{method.camelCase}}](docs/paths/{{../jsonPathPiece.pascalCase}}.md#{{method.kebabCase}}) [{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}.{{method.camelCase}}](docs/{{pathFromDocRoot}}.md#{{method.kebabCase}}) |{{#if summary}} {{summary.originalWithBr}}{{/if}} | +| {{../@key.original}} **{{@key.original}}** | {{#each tags}}[{{className}}.{{../operationId.camelCase}}](docs/apis/tags/{{className}}.md#{{../operationId.kebabCase}}) {{/each}} [{{../jsonPathPiece.pascalCase}}.{{method.camelCase}}](docs/apis/paths/{{../jsonPathPiece.pascalCase}}.md#{{method.kebabCase}}) [{{jsonPathPiece.pascalCase}}.{{method.pascalCase}}.{{method.camelCase}}](docs/{{pathFromDocRoot}}.md#{{method.kebabCase}}) |{{#if summary}} {{summary.originalWithBr}}{{/if}} | {{/each}} {{/each}} {{/if}} diff --git a/src/main/resources/java/src/main/java/packagename/apis/paths/ApiDoc.hbs b/src/main/resources/java/src/main/java/packagename/apis/paths/ApiDoc.hbs index 4cbd53eb180..278d4a336ef 100644 --- a/src/main/resources/java/src/main/java/packagename/apis/paths/ApiDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/apis/paths/ApiDoc.hbs @@ -6,7 +6,7 @@ public class {{pathItem.jsonPathPiece.pascalCase}} extends extends ApiClient imp {{/each}} {{#with pathItem}} -an api client class which contains all the routes for path="{{original}}" +an api client class which contains all the routes for path="{{jsonPathPiece.original}}" {{#if description}} {{description.originalWithBr}} {{/if}} From adfb0e47ca2e542a7fbed4d31942fba8a7f4162a Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 14:47:30 -0700 Subject: [PATCH 02/12] Java petstore regen --- samples/client/petstore/java/README.md | 142 ++++++++++++------------- src/main/resources/java/README.hbs | 7 +- src/main/resources/python/README.hbs | 6 +- 3 files changed, 78 insertions(+), 77 deletions(-) diff --git a/samples/client/petstore/java/README.md b/samples/client/petstore/java/README.md index dd39c08745e..5a1f7798417 100644 --- a/samples/client/petstore/java/README.md +++ b/samples/client/petstore/java/README.md @@ -1,11 +1,11 @@ -# +# petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. This Java package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: -- API version: 1.0.0 -- Package version: -- Build package: JavaClientGenerator +- OpenAPI document version: 1.0.0 +- Java Package version: 1.0.0 +- OpenAPI JSON Schema Generator, Generator: JavaClientGenerator ## Requirements @@ -239,73 +239,73 @@ All URIs are relative to the selected server | HTTP request | Methods | Description | | ------------ | ------- | ----------- | -| / **get** | [Fake.slashRoute](docs/apis/tags/Fake.md#slashroute) [Solidus.get](docs/paths/Solidus.md#get) [SolidusGet.Get.get](docs/paths/solidus/SolidusGet.md#get) | slash route | -| /another-fake/dummy **patch** | [Anotherfake.model123TestSpecialTags](docs/apis/tags/Anotherfake.md#model123testspecialtags) [Anotherfakedummy.patch](docs/paths/Anotherfakedummy.md#patch) [AnotherfakedummyPatch.Patch.patch](docs/paths/anotherfakedummy/AnotherfakedummyPatch.md#patch) | To test special tags | -| /commonParam/{subDir}/ **delete** | [Fake.deleteCommonParam](docs/apis/tags/Fake.md#deletecommonparam) [Commonparamsubdir.delete](docs/paths/Commonparamsubdir.md#delete) [CommonparamsubdirDelete.Delete.delete](docs/paths/commonparamsubdir/CommonparamsubdirDelete.md#delete) | | -| /commonParam/{subDir}/ **get** | [Fake.getCommonParam](docs/apis/tags/Fake.md#getcommonparam) [Commonparamsubdir.get](docs/paths/Commonparamsubdir.md#get) [CommonparamsubdirGet.Get.get](docs/paths/commonparamsubdir/CommonparamsubdirGet.md#get) | | -| /commonParam/{subDir}/ **post** | [Fake.postCommonParam](docs/apis/tags/Fake.md#postcommonparam) [Commonparamsubdir.post](docs/paths/Commonparamsubdir.md#post) [CommonparamsubdirPost.Post.post](docs/paths/commonparamsubdir/CommonparamsubdirPost.md#post) | | -| /fake **delete** | [Fake.groupParameters](docs/apis/tags/Fake.md#groupparameters) [Fake.delete](docs/paths/Fake.md#delete) [FakeDelete.Delete.delete](docs/paths/fake/FakeDelete.md#delete) | Fake endpoint to test group parameters (optional) | -| /fake **get** | [Fake.enumParameters](docs/apis/tags/Fake.md#enumparameters) [Fake.get](docs/paths/Fake.md#get) [FakeGet.Get.get](docs/paths/fake/FakeGet.md#get) | To test enum parameters | -| /fake **patch** | [Fake.clientModel](docs/apis/tags/Fake.md#clientmodel) [Fake.patch](docs/paths/Fake.md#patch) [FakePatch.Patch.patch](docs/paths/fake/FakePatch.md#patch) | To test "client" model | -| /fake **post** | [Fake.endpointParameters](docs/apis/tags/Fake.md#endpointparameters) [Fake.post](docs/paths/Fake.md#post) [FakePost.Post.post](docs/paths/fake/FakePost.md#post) | Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| -| /fake/additional-properties-with-array-of-enums **get** | [Fake.additionalPropertiesWithArrayOfEnums](docs/apis/tags/Fake.md#additionalpropertieswitharrayofenums) [Fakeadditionalpropertieswitharrayofenums.get](docs/paths/Fakeadditionalpropertieswitharrayofenums.md#get) [FakeadditionalpropertieswitharrayofenumsGet.Get.get](docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#get) | Additional Properties with Array of Enums | -| /fake/body-with-file-schema **put** | [Fake.bodyWithFileSchema](docs/apis/tags/Fake.md#bodywithfileschema) [Fakebodywithfileschema.put](docs/paths/Fakebodywithfileschema.md#put) [FakebodywithfileschemaPut.Put.put](docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#put) | | -| /fake/body-with-query-params **put** | [Fake.bodyWithQueryParams](docs/apis/tags/Fake.md#bodywithqueryparams) [Fakebodywithqueryparams.put](docs/paths/Fakebodywithqueryparams.md#put) [FakebodywithqueryparamsPut.Put.put](docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#put) | | -| /fake/case-sensitive-params **put** | [Fake.caseSensitiveParams](docs/apis/tags/Fake.md#casesensitiveparams) [Fakecasesensitiveparams.put](docs/paths/Fakecasesensitiveparams.md#put) [FakecasesensitiveparamsPut.Put.put](docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#put) | | -| /fake/deleteCoffee/{id} **delete** | [Fake.deleteCoffee](docs/apis/tags/Fake.md#deletecoffee) [Fakedeletecoffeeid.delete](docs/paths/Fakedeletecoffeeid.md#delete) [FakedeletecoffeeidDelete.Delete.delete](docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#delete) | Delete coffee | -| /fake/health **get** | [Fake.fakeHealthGet](docs/apis/tags/Fake.md#fakehealthget) [Fakehealth.get](docs/paths/Fakehealth.md#get) [FakehealthGet.Get.get](docs/paths/fakehealth/FakehealthGet.md#get) | Health check endpoint | -| /fake/inline-additionalProperties **post** | [Fake.inlineAdditionalProperties](docs/apis/tags/Fake.md#inlineadditionalproperties) [Fakeinlineadditionalproperties.post](docs/paths/Fakeinlineadditionalproperties.md#post) [FakeinlineadditionalpropertiesPost.Post.post](docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#post) | test inline additionalProperties | -| /fake/inlineComposition/ **post** | [Fake.inlineComposition](docs/apis/tags/Fake.md#inlinecomposition) [Fakeinlinecomposition.post](docs/paths/Fakeinlinecomposition.md#post) [FakeinlinecompositionPost.Post.post](docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md#post) | testing composed schemas at inline locations | -| /fake/jsonFormData **get** | [Fake.jsonFormData](docs/apis/tags/Fake.md#jsonformdata) [Fakejsonformdata.get](docs/paths/Fakejsonformdata.md#get) [FakejsonformdataGet.Get.get](docs/paths/fakejsonformdata/FakejsonformdataGet.md#get) | test json serialization of form data | -| /fake/jsonPatch **patch** | [Fake.jsonPatch](docs/apis/tags/Fake.md#jsonpatch) [Fakejsonpatch.patch](docs/paths/Fakejsonpatch.md#patch) [FakejsonpatchPatch.Patch.patch](docs/paths/fakejsonpatch/FakejsonpatchPatch.md#patch) | json patch | -| /fake/jsonWithCharset **post** | [Fake.jsonWithCharset](docs/apis/tags/Fake.md#jsonwithcharset) [Fakejsonwithcharset.post](docs/paths/Fakejsonwithcharset.md#post) [FakejsonwithcharsetPost.Post.post](docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#post) | json with charset tx and rx | -| /fake/multipleRequestBodyContentTypes/ **post** | [Fake.multipleRequestBodyContentTypes](docs/apis/tags/Fake.md#multiplerequestbodycontenttypes) [Fakemultiplerequestbodycontenttypes.post](docs/paths/Fakemultiplerequestbodycontenttypes.md#post) [FakemultiplerequestbodycontenttypesPost.Post.post](docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#post) | testing composed schemas at inline locations | -| /fake/multipleResponseBodies **get** | [Fake.multipleResponseBodies](docs/apis/tags/Fake.md#multipleresponsebodies) [Fakemultipleresponsebodies.get](docs/paths/Fakemultipleresponsebodies.md#get) [FakemultipleresponsebodiesGet.Get.get](docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#get) | multiple responses have response bodies | -| /fake/multipleSecurities **get** | [Fake.multipleSecurities](docs/apis/tags/Fake.md#multiplesecurities) [Fakemultiplesecurities.get](docs/paths/Fakemultiplesecurities.md#get) [FakemultiplesecuritiesGet.Get.get](docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#get) | multiple security requirements | -| /fake/objInQuery **get** | [Fake.objectInQuery](docs/apis/tags/Fake.md#objectinquery) [Fakeobjinquery.get](docs/paths/Fakeobjinquery.md#get) [FakeobjinqueryGet.Get.get](docs/paths/fakeobjinquery/FakeobjinqueryGet.md#get) | user list | -| /fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/ **post** | [Fake.parameterCollisions](docs/apis/tags/Fake.md#parametercollisions) [Fakeparametercollisions1ababselfab.post](docs/paths/Fakeparametercollisions1ababselfab.md#post) [Fakeparametercollisions1ababselfabPost.Post.post](docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#post) | parameter collision case | -| /fake/pemContentType **get** | [Fake.pemContentType](docs/apis/tags/Fake.md#pemcontenttype) [Fakepemcontenttype.get](docs/paths/Fakepemcontenttype.md#get) [FakepemcontenttypeGet.Get.get](docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md#get) | route with tx and rx pem content type | -| /fake/queryParamWithJsonContentType **get** | [Fake.queryParamWithJsonContentType](docs/apis/tags/Fake.md#queryparamwithjsoncontenttype) [Fakequeryparamwithjsoncontenttype.get](docs/paths/Fakequeryparamwithjsoncontenttype.md#get) [FakequeryparamwithjsoncontenttypeGet.Get.get](docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#get) | query param with json content-type | -| /fake/redirection **get** | [Fake.redirection](docs/apis/tags/Fake.md#redirection) [Fakeredirection.get](docs/paths/Fakeredirection.md#get) [FakeredirectionGet.Get.get](docs/paths/fakeredirection/FakeredirectionGet.md#get) | operation with redirection responses | -| /fake/refObjInQuery **get** | [Fake.refObjectInQuery](docs/apis/tags/Fake.md#refobjectinquery) [Fakerefobjinquery.get](docs/paths/Fakerefobjinquery.md#get) [FakerefobjinqueryGet.Get.get](docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md#get) | user list | -| /fake/refs/array-of-enums **post** | [Fake.arrayOfEnums](docs/apis/tags/Fake.md#arrayofenums) [Fakerefsarrayofenums.post](docs/paths/Fakerefsarrayofenums.md#post) [FakerefsarrayofenumsPost.Post.post](docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#post) | Array of Enums | -| /fake/refs/arraymodel **post** | [Fake.arrayModel](docs/apis/tags/Fake.md#arraymodel) [Fakerefsarraymodel.post](docs/paths/Fakerefsarraymodel.md#post) [FakerefsarraymodelPost.Post.post](docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md#post) | | -| /fake/refs/boolean **post** | [Fake.modelBoolean](docs/apis/tags/Fake.md#modelboolean) [Fakerefsboolean.post](docs/paths/Fakerefsboolean.md#post) [FakerefsbooleanPost.Post.post](docs/paths/fakerefsboolean/FakerefsbooleanPost.md#post) | | -| /fake/refs/composed_one_of_number_with_validations **post** | [Fake.composedOneOfDifferentTypes](docs/apis/tags/Fake.md#composedoneofdifferenttypes) [Fakerefscomposedoneofnumberwithvalidations.post](docs/paths/Fakerefscomposedoneofnumberwithvalidations.md#post) [FakerefscomposedoneofnumberwithvalidationsPost.Post.post](docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#post) | | -| /fake/refs/enum **post** | [Fake.stringEnum](docs/apis/tags/Fake.md#stringenum) [Fakerefsenum.post](docs/paths/Fakerefsenum.md#post) [FakerefsenumPost.Post.post](docs/paths/fakerefsenum/FakerefsenumPost.md#post) | | -| /fake/refs/mammal **post** | [Fake.mammal](docs/apis/tags/Fake.md#mammal) [Fakerefsmammal.post](docs/paths/Fakerefsmammal.md#post) [FakerefsmammalPost.Post.post](docs/paths/fakerefsmammal/FakerefsmammalPost.md#post) | | -| /fake/refs/number **post** | [Fake.numberWithValidations](docs/apis/tags/Fake.md#numberwithvalidations) [Fakerefsnumber.post](docs/paths/Fakerefsnumber.md#post) [FakerefsnumberPost.Post.post](docs/paths/fakerefsnumber/FakerefsnumberPost.md#post) | | -| /fake/refs/object_model_with_ref_props **post** | [Fake.objectModelWithRefProps](docs/apis/tags/Fake.md#objectmodelwithrefprops) [Fakerefsobjectmodelwithrefprops.post](docs/paths/Fakerefsobjectmodelwithrefprops.md#post) [FakerefsobjectmodelwithrefpropsPost.Post.post](docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#post) | | -| /fake/refs/string **post** | [Fake.modelString](docs/apis/tags/Fake.md#modelstring) [Fakerefsstring.post](docs/paths/Fakerefsstring.md#post) [FakerefsstringPost.Post.post](docs/paths/fakerefsstring/FakerefsstringPost.md#post) | | -| /fake/responseWithoutSchema **get** | [Fake.responseWithoutSchema](docs/apis/tags/Fake.md#responsewithoutschema) [Fakeresponsewithoutschema.get](docs/paths/Fakeresponsewithoutschema.md#get) [FakeresponsewithoutschemaGet.Get.get](docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#get) | receives a response without schema | -| /fake/test-query-paramters **put** | [Fake.queryParameterCollectionFormat](docs/apis/tags/Fake.md#queryparametercollectionformat) [Faketestqueryparamters.put](docs/paths/Faketestqueryparamters.md#put) [FaketestqueryparamtersPut.Put.put](docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md#put) | | -| /fake/uploadDownloadFile **post** | [Fake.uploadDownloadFile](docs/apis/tags/Fake.md#uploaddownloadfile) [Fakeuploaddownloadfile.post](docs/paths/Fakeuploaddownloadfile.md#post) [FakeuploaddownloadfilePost.Post.post](docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#post) | uploads a file and downloads a file using application/octet-stream | -| /fake/uploadFile **post** | [Fake.uploadFile](docs/apis/tags/Fake.md#uploadfile) [Fakeuploadfile.post](docs/paths/Fakeuploadfile.md#post) [FakeuploadfilePost.Post.post](docs/paths/fakeuploadfile/FakeuploadfilePost.md#post) | uploads a file using multipart/form-data | -| /fake/uploadFiles **post** | [Fake.uploadFiles](docs/apis/tags/Fake.md#uploadfiles) [Fakeuploadfiles.post](docs/paths/Fakeuploadfiles.md#post) [FakeuploadfilesPost.Post.post](docs/paths/fakeuploadfiles/FakeuploadfilesPost.md#post) | uploads files using multipart/form-data | -| /fake/wildCardResponses **get** | [Fake.wildCardResponses](docs/apis/tags/Fake.md#wildcardresponses) [Fakewildcardresponses.get](docs/paths/Fakewildcardresponses.md#get) [FakewildcardresponsesGet.Get.get](docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md#get) | operation with wildcard responses | -| /fake/{petId}/uploadImageWithRequiredFile **post** | [Pet.uploadFileWithRequiredFile](docs/apis/tags/Pet.md#uploadfilewithrequiredfile) [Fakepetiduploadimagewithrequiredfile.post](docs/paths/Fakepetiduploadimagewithrequiredfile.md#post) [FakepetiduploadimagewithrequiredfilePost.Post.post](docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#post) | uploads an image (required) | -| /fake_classname_test **patch** | [Fakeclassnametags123.classname](docs/apis/tags/Fakeclassnametags123.md#classname) [Fakeclassnametest.patch](docs/paths/Fakeclassnametest.md#patch) [FakeclassnametestPatch.Patch.patch](docs/paths/fakeclassnametest/FakeclassnametestPatch.md#patch) | To test class name in snake case | -| /foo **get** | [Default.fooGet](docs/apis/tags/Default.md#fooget) [Foo.get](docs/paths/Foo.md#get) [FooGet.Get.get](docs/paths/foo/FooGet.md#get) | | -| /pet **post** | [Pet.addPet](docs/apis/tags/Pet.md#addpet) [Pet.post](docs/paths/Pet.md#post) [PetPost.Post.post](docs/paths/pet/PetPost.md#post) | Add a new pet to the store | -| /pet **put** | [Pet.updatePet](docs/apis/tags/Pet.md#updatepet) [Pet.put](docs/paths/Pet.md#put) [PetPut.Put.put](docs/paths/pet/PetPut.md#put) | Update an existing pet | -| /pet/findByStatus **get** | [Pet.findPetsByStatus](docs/apis/tags/Pet.md#findpetsbystatus) [Petfindbystatus.get](docs/paths/Petfindbystatus.md#get) [PetfindbystatusGet.Get.get](docs/paths/petfindbystatus/PetfindbystatusGet.md#get) | Finds Pets by status | -| /pet/findByTags **get** | [Pet.findPetsByTags](docs/apis/tags/Pet.md#findpetsbytags) [Petfindbytags.get](docs/paths/Petfindbytags.md#get) [PetfindbytagsGet.Get.get](docs/paths/petfindbytags/PetfindbytagsGet.md#get) | Finds Pets by tags | -| /pet/{petId} **delete** | [Pet.deletePet](docs/apis/tags/Pet.md#deletepet) [Petpetid.delete](docs/paths/Petpetid.md#delete) [PetpetidDelete.Delete.delete](docs/paths/petpetid/PetpetidDelete.md#delete) | Deletes a pet | -| /pet/{petId} **get** | [Pet.getPetById](docs/apis/tags/Pet.md#getpetbyid) [Petpetid.get](docs/paths/Petpetid.md#get) [PetpetidGet.Get.get](docs/paths/petpetid/PetpetidGet.md#get) | Find pet by ID | -| /pet/{petId} **post** | [Pet.updatePetWithForm](docs/apis/tags/Pet.md#updatepetwithform) [Petpetid.post](docs/paths/Petpetid.md#post) [PetpetidPost.Post.post](docs/paths/petpetid/PetpetidPost.md#post) | Updates a pet in the store with form data | -| /pet/{petId}/uploadImage **post** | [Pet.uploadImage](docs/apis/tags/Pet.md#uploadimage) [Petpetiduploadimage.post](docs/paths/Petpetiduploadimage.md#post) [PetpetiduploadimagePost.Post.post](docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md#post) | uploads an image | -| /store/inventory **get** | [Store.getInventory](docs/apis/tags/Store.md#getinventory) [Storeinventory.get](docs/paths/Storeinventory.md#get) [StoreinventoryGet.Get.get](docs/paths/storeinventory/StoreinventoryGet.md#get) | Returns pet inventories by status | -| /store/order **post** | [Store.placeOrder](docs/apis/tags/Store.md#placeorder) [Storeorder.post](docs/paths/Storeorder.md#post) [StoreorderPost.Post.post](docs/paths/storeorder/StoreorderPost.md#post) | Place an order for a pet | -| /store/order/{order_id} **delete** | [Store.deleteOrder](docs/apis/tags/Store.md#deleteorder) [Storeorderorderid.delete](docs/paths/Storeorderorderid.md#delete) [StoreorderorderidDelete.Delete.delete](docs/paths/storeorderorderid/StoreorderorderidDelete.md#delete) | Delete purchase order by ID | -| /store/order/{order_id} **get** | [Store.getOrderById](docs/apis/tags/Store.md#getorderbyid) [Storeorderorderid.get](docs/paths/Storeorderorderid.md#get) [StoreorderorderidGet.Get.get](docs/paths/storeorderorderid/StoreorderorderidGet.md#get) | Find purchase order by ID | -| /user **post** | [User.createUser](docs/apis/tags/User.md#createuser) [User.post](docs/paths/User.md#post) [UserPost.Post.post](docs/paths/user/UserPost.md#post) | Create user | -| /user/createWithArray **post** | [User.createUsersWithArrayInput](docs/apis/tags/User.md#createuserswitharrayinput) [Usercreatewitharray.post](docs/paths/Usercreatewitharray.md#post) [UsercreatewitharrayPost.Post.post](docs/paths/usercreatewitharray/UsercreatewitharrayPost.md#post) | Creates list of users with given input array | -| /user/createWithList **post** | [User.createUsersWithListInput](docs/apis/tags/User.md#createuserswithlistinput) [Usercreatewithlist.post](docs/paths/Usercreatewithlist.md#post) [UsercreatewithlistPost.Post.post](docs/paths/usercreatewithlist/UsercreatewithlistPost.md#post) | Creates list of users with given input array | -| /user/login **get** | [User.loginUser](docs/apis/tags/User.md#loginuser) [Userlogin.get](docs/paths/Userlogin.md#get) [UserloginGet.Get.get](docs/paths/userlogin/UserloginGet.md#get) | Logs user into the system | -| /user/logout **get** | [User.logoutUser](docs/apis/tags/User.md#logoutuser) [Userlogout.get](docs/paths/Userlogout.md#get) [UserlogoutGet.Get.get](docs/paths/userlogout/UserlogoutGet.md#get) | Logs out current logged in user session | -| /user/{username} **delete** | [User.deleteUser](docs/apis/tags/User.md#deleteuser) [Userusername.delete](docs/paths/Userusername.md#delete) [UserusernameDelete.Delete.delete](docs/paths/userusername/UserusernameDelete.md#delete) | Delete user | -| /user/{username} **get** | [User.getUserByName](docs/apis/tags/User.md#getuserbyname) [Userusername.get](docs/paths/Userusername.md#get) [UserusernameGet.Get.get](docs/paths/userusername/UserusernameGet.md#get) | Get user by user name | -| /user/{username} **put** | [User.updateUser](docs/apis/tags/User.md#updateuser) [Userusername.put](docs/paths/Userusername.md#put) [UserusernamePut.Put.put](docs/paths/userusername/UserusernamePut.md#put) | Updated user | +| / **get** | [Fake.slashRoute](docs/apis/tags/Fake.md#slashroute) [Solidus.get](docs/apis/paths/Solidus.md#get) [SolidusGet.Get.get](docs/paths/solidus/SolidusGet.md#get) | slash route | +| /another-fake/dummy **patch** | [Anotherfake.model123TestSpecialTags](docs/apis/tags/Anotherfake.md#model123testspecialtags) [Anotherfakedummy.patch](docs/apis/paths/Anotherfakedummy.md#patch) [AnotherfakedummyPatch.Patch.patch](docs/paths/anotherfakedummy/AnotherfakedummyPatch.md#patch) | To test special tags | +| /commonParam/{subDir}/ **delete** | [Fake.deleteCommonParam](docs/apis/tags/Fake.md#deletecommonparam) [Commonparamsubdir.delete](docs/apis/paths/Commonparamsubdir.md#delete) [CommonparamsubdirDelete.Delete.delete](docs/paths/commonparamsubdir/CommonparamsubdirDelete.md#delete) | | +| /commonParam/{subDir}/ **get** | [Fake.getCommonParam](docs/apis/tags/Fake.md#getcommonparam) [Commonparamsubdir.get](docs/apis/paths/Commonparamsubdir.md#get) [CommonparamsubdirGet.Get.get](docs/paths/commonparamsubdir/CommonparamsubdirGet.md#get) | | +| /commonParam/{subDir}/ **post** | [Fake.postCommonParam](docs/apis/tags/Fake.md#postcommonparam) [Commonparamsubdir.post](docs/apis/paths/Commonparamsubdir.md#post) [CommonparamsubdirPost.Post.post](docs/paths/commonparamsubdir/CommonparamsubdirPost.md#post) | | +| /fake **delete** | [Fake.groupParameters](docs/apis/tags/Fake.md#groupparameters) [Fake.delete](docs/apis/paths/Fake.md#delete) [FakeDelete.Delete.delete](docs/paths/fake/FakeDelete.md#delete) | Fake endpoint to test group parameters (optional) | +| /fake **get** | [Fake.enumParameters](docs/apis/tags/Fake.md#enumparameters) [Fake.get](docs/apis/paths/Fake.md#get) [FakeGet.Get.get](docs/paths/fake/FakeGet.md#get) | To test enum parameters | +| /fake **patch** | [Fake.clientModel](docs/apis/tags/Fake.md#clientmodel) [Fake.patch](docs/apis/paths/Fake.md#patch) [FakePatch.Patch.patch](docs/paths/fake/FakePatch.md#patch) | To test "client" model | +| /fake **post** | [Fake.endpointParameters](docs/apis/tags/Fake.md#endpointparameters) [Fake.post](docs/apis/paths/Fake.md#post) [FakePost.Post.post](docs/paths/fake/FakePost.md#post) | Fake endpoint for testing various parameters
假端點
偽のエンドポイント
가짜 엔드 포인트
| +| /fake/additional-properties-with-array-of-enums **get** | [Fake.additionalPropertiesWithArrayOfEnums](docs/apis/tags/Fake.md#additionalpropertieswitharrayofenums) [Fakeadditionalpropertieswitharrayofenums.get](docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md#get) [FakeadditionalpropertieswitharrayofenumsGet.Get.get](docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md#get) | Additional Properties with Array of Enums | +| /fake/body-with-file-schema **put** | [Fake.bodyWithFileSchema](docs/apis/tags/Fake.md#bodywithfileschema) [Fakebodywithfileschema.put](docs/apis/paths/Fakebodywithfileschema.md#put) [FakebodywithfileschemaPut.Put.put](docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md#put) | | +| /fake/body-with-query-params **put** | [Fake.bodyWithQueryParams](docs/apis/tags/Fake.md#bodywithqueryparams) [Fakebodywithqueryparams.put](docs/apis/paths/Fakebodywithqueryparams.md#put) [FakebodywithqueryparamsPut.Put.put](docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md#put) | | +| /fake/case-sensitive-params **put** | [Fake.caseSensitiveParams](docs/apis/tags/Fake.md#casesensitiveparams) [Fakecasesensitiveparams.put](docs/apis/paths/Fakecasesensitiveparams.md#put) [FakecasesensitiveparamsPut.Put.put](docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md#put) | | +| /fake/deleteCoffee/{id} **delete** | [Fake.deleteCoffee](docs/apis/tags/Fake.md#deletecoffee) [Fakedeletecoffeeid.delete](docs/apis/paths/Fakedeletecoffeeid.md#delete) [FakedeletecoffeeidDelete.Delete.delete](docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md#delete) | Delete coffee | +| /fake/health **get** | [Fake.fakeHealthGet](docs/apis/tags/Fake.md#fakehealthget) [Fakehealth.get](docs/apis/paths/Fakehealth.md#get) [FakehealthGet.Get.get](docs/paths/fakehealth/FakehealthGet.md#get) | Health check endpoint | +| /fake/inline-additionalProperties **post** | [Fake.inlineAdditionalProperties](docs/apis/tags/Fake.md#inlineadditionalproperties) [Fakeinlineadditionalproperties.post](docs/apis/paths/Fakeinlineadditionalproperties.md#post) [FakeinlineadditionalpropertiesPost.Post.post](docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md#post) | test inline additionalProperties | +| /fake/inlineComposition/ **post** | [Fake.inlineComposition](docs/apis/tags/Fake.md#inlinecomposition) [Fakeinlinecomposition.post](docs/apis/paths/Fakeinlinecomposition.md#post) [FakeinlinecompositionPost.Post.post](docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md#post) | testing composed schemas at inline locations | +| /fake/jsonFormData **get** | [Fake.jsonFormData](docs/apis/tags/Fake.md#jsonformdata) [Fakejsonformdata.get](docs/apis/paths/Fakejsonformdata.md#get) [FakejsonformdataGet.Get.get](docs/paths/fakejsonformdata/FakejsonformdataGet.md#get) | test json serialization of form data | +| /fake/jsonPatch **patch** | [Fake.jsonPatch](docs/apis/tags/Fake.md#jsonpatch) [Fakejsonpatch.patch](docs/apis/paths/Fakejsonpatch.md#patch) [FakejsonpatchPatch.Patch.patch](docs/paths/fakejsonpatch/FakejsonpatchPatch.md#patch) | json patch | +| /fake/jsonWithCharset **post** | [Fake.jsonWithCharset](docs/apis/tags/Fake.md#jsonwithcharset) [Fakejsonwithcharset.post](docs/apis/paths/Fakejsonwithcharset.md#post) [FakejsonwithcharsetPost.Post.post](docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md#post) | json with charset tx and rx | +| /fake/multipleRequestBodyContentTypes/ **post** | [Fake.multipleRequestBodyContentTypes](docs/apis/tags/Fake.md#multiplerequestbodycontenttypes) [Fakemultiplerequestbodycontenttypes.post](docs/apis/paths/Fakemultiplerequestbodycontenttypes.md#post) [FakemultiplerequestbodycontenttypesPost.Post.post](docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md#post) | testing composed schemas at inline locations | +| /fake/multipleResponseBodies **get** | [Fake.multipleResponseBodies](docs/apis/tags/Fake.md#multipleresponsebodies) [Fakemultipleresponsebodies.get](docs/apis/paths/Fakemultipleresponsebodies.md#get) [FakemultipleresponsebodiesGet.Get.get](docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md#get) | multiple responses have response bodies | +| /fake/multipleSecurities **get** | [Fake.multipleSecurities](docs/apis/tags/Fake.md#multiplesecurities) [Fakemultiplesecurities.get](docs/apis/paths/Fakemultiplesecurities.md#get) [FakemultiplesecuritiesGet.Get.get](docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md#get) | multiple security requirements | +| /fake/objInQuery **get** | [Fake.objectInQuery](docs/apis/tags/Fake.md#objectinquery) [Fakeobjinquery.get](docs/apis/paths/Fakeobjinquery.md#get) [FakeobjinqueryGet.Get.get](docs/paths/fakeobjinquery/FakeobjinqueryGet.md#get) | user list | +| /fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/ **post** | [Fake.parameterCollisions](docs/apis/tags/Fake.md#parametercollisions) [Fakeparametercollisions1ababselfab.post](docs/apis/paths/Fakeparametercollisions1ababselfab.md#post) [Fakeparametercollisions1ababselfabPost.Post.post](docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md#post) | parameter collision case | +| /fake/pemContentType **get** | [Fake.pemContentType](docs/apis/tags/Fake.md#pemcontenttype) [Fakepemcontenttype.get](docs/apis/paths/Fakepemcontenttype.md#get) [FakepemcontenttypeGet.Get.get](docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md#get) | route with tx and rx pem content type | +| /fake/queryParamWithJsonContentType **get** | [Fake.queryParamWithJsonContentType](docs/apis/tags/Fake.md#queryparamwithjsoncontenttype) [Fakequeryparamwithjsoncontenttype.get](docs/apis/paths/Fakequeryparamwithjsoncontenttype.md#get) [FakequeryparamwithjsoncontenttypeGet.Get.get](docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md#get) | query param with json content-type | +| /fake/redirection **get** | [Fake.redirection](docs/apis/tags/Fake.md#redirection) [Fakeredirection.get](docs/apis/paths/Fakeredirection.md#get) [FakeredirectionGet.Get.get](docs/paths/fakeredirection/FakeredirectionGet.md#get) | operation with redirection responses | +| /fake/refObjInQuery **get** | [Fake.refObjectInQuery](docs/apis/tags/Fake.md#refobjectinquery) [Fakerefobjinquery.get](docs/apis/paths/Fakerefobjinquery.md#get) [FakerefobjinqueryGet.Get.get](docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md#get) | user list | +| /fake/refs/array-of-enums **post** | [Fake.arrayOfEnums](docs/apis/tags/Fake.md#arrayofenums) [Fakerefsarrayofenums.post](docs/apis/paths/Fakerefsarrayofenums.md#post) [FakerefsarrayofenumsPost.Post.post](docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md#post) | Array of Enums | +| /fake/refs/arraymodel **post** | [Fake.arrayModel](docs/apis/tags/Fake.md#arraymodel) [Fakerefsarraymodel.post](docs/apis/paths/Fakerefsarraymodel.md#post) [FakerefsarraymodelPost.Post.post](docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md#post) | | +| /fake/refs/boolean **post** | [Fake.modelBoolean](docs/apis/tags/Fake.md#modelboolean) [Fakerefsboolean.post](docs/apis/paths/Fakerefsboolean.md#post) [FakerefsbooleanPost.Post.post](docs/paths/fakerefsboolean/FakerefsbooleanPost.md#post) | | +| /fake/refs/composed_one_of_number_with_validations **post** | [Fake.composedOneOfDifferentTypes](docs/apis/tags/Fake.md#composedoneofdifferenttypes) [Fakerefscomposedoneofnumberwithvalidations.post](docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md#post) [FakerefscomposedoneofnumberwithvalidationsPost.Post.post](docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md#post) | | +| /fake/refs/enum **post** | [Fake.stringEnum](docs/apis/tags/Fake.md#stringenum) [Fakerefsenum.post](docs/apis/paths/Fakerefsenum.md#post) [FakerefsenumPost.Post.post](docs/paths/fakerefsenum/FakerefsenumPost.md#post) | | +| /fake/refs/mammal **post** | [Fake.mammal](docs/apis/tags/Fake.md#mammal) [Fakerefsmammal.post](docs/apis/paths/Fakerefsmammal.md#post) [FakerefsmammalPost.Post.post](docs/paths/fakerefsmammal/FakerefsmammalPost.md#post) | | +| /fake/refs/number **post** | [Fake.numberWithValidations](docs/apis/tags/Fake.md#numberwithvalidations) [Fakerefsnumber.post](docs/apis/paths/Fakerefsnumber.md#post) [FakerefsnumberPost.Post.post](docs/paths/fakerefsnumber/FakerefsnumberPost.md#post) | | +| /fake/refs/object_model_with_ref_props **post** | [Fake.objectModelWithRefProps](docs/apis/tags/Fake.md#objectmodelwithrefprops) [Fakerefsobjectmodelwithrefprops.post](docs/apis/paths/Fakerefsobjectmodelwithrefprops.md#post) [FakerefsobjectmodelwithrefpropsPost.Post.post](docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md#post) | | +| /fake/refs/string **post** | [Fake.modelString](docs/apis/tags/Fake.md#modelstring) [Fakerefsstring.post](docs/apis/paths/Fakerefsstring.md#post) [FakerefsstringPost.Post.post](docs/paths/fakerefsstring/FakerefsstringPost.md#post) | | +| /fake/responseWithoutSchema **get** | [Fake.responseWithoutSchema](docs/apis/tags/Fake.md#responsewithoutschema) [Fakeresponsewithoutschema.get](docs/apis/paths/Fakeresponsewithoutschema.md#get) [FakeresponsewithoutschemaGet.Get.get](docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md#get) | receives a response without schema | +| /fake/test-query-paramters **put** | [Fake.queryParameterCollectionFormat](docs/apis/tags/Fake.md#queryparametercollectionformat) [Faketestqueryparamters.put](docs/apis/paths/Faketestqueryparamters.md#put) [FaketestqueryparamtersPut.Put.put](docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md#put) | | +| /fake/uploadDownloadFile **post** | [Fake.uploadDownloadFile](docs/apis/tags/Fake.md#uploaddownloadfile) [Fakeuploaddownloadfile.post](docs/apis/paths/Fakeuploaddownloadfile.md#post) [FakeuploaddownloadfilePost.Post.post](docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md#post) | uploads a file and downloads a file using application/octet-stream | +| /fake/uploadFile **post** | [Fake.uploadFile](docs/apis/tags/Fake.md#uploadfile) [Fakeuploadfile.post](docs/apis/paths/Fakeuploadfile.md#post) [FakeuploadfilePost.Post.post](docs/paths/fakeuploadfile/FakeuploadfilePost.md#post) | uploads a file using multipart/form-data | +| /fake/uploadFiles **post** | [Fake.uploadFiles](docs/apis/tags/Fake.md#uploadfiles) [Fakeuploadfiles.post](docs/apis/paths/Fakeuploadfiles.md#post) [FakeuploadfilesPost.Post.post](docs/paths/fakeuploadfiles/FakeuploadfilesPost.md#post) | uploads files using multipart/form-data | +| /fake/wildCardResponses **get** | [Fake.wildCardResponses](docs/apis/tags/Fake.md#wildcardresponses) [Fakewildcardresponses.get](docs/apis/paths/Fakewildcardresponses.md#get) [FakewildcardresponsesGet.Get.get](docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md#get) | operation with wildcard responses | +| /fake/{petId}/uploadImageWithRequiredFile **post** | [Pet.uploadFileWithRequiredFile](docs/apis/tags/Pet.md#uploadfilewithrequiredfile) [Fakepetiduploadimagewithrequiredfile.post](docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md#post) [FakepetiduploadimagewithrequiredfilePost.Post.post](docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md#post) | uploads an image (required) | +| /fake_classname_test **patch** | [Fakeclassnametags123.classname](docs/apis/tags/Fakeclassnametags123.md#classname) [Fakeclassnametest.patch](docs/apis/paths/Fakeclassnametest.md#patch) [FakeclassnametestPatch.Patch.patch](docs/paths/fakeclassnametest/FakeclassnametestPatch.md#patch) | To test class name in snake case | +| /foo **get** | [Default.fooGet](docs/apis/tags/Default.md#fooget) [Foo.get](docs/apis/paths/Foo.md#get) [FooGet.Get.get](docs/paths/foo/FooGet.md#get) | | +| /pet **post** | [Pet.addPet](docs/apis/tags/Pet.md#addpet) [Pet.post](docs/apis/paths/Pet.md#post) [PetPost.Post.post](docs/paths/pet/PetPost.md#post) | Add a new pet to the store | +| /pet **put** | [Pet.updatePet](docs/apis/tags/Pet.md#updatepet) [Pet.put](docs/apis/paths/Pet.md#put) [PetPut.Put.put](docs/paths/pet/PetPut.md#put) | Update an existing pet | +| /pet/findByStatus **get** | [Pet.findPetsByStatus](docs/apis/tags/Pet.md#findpetsbystatus) [Petfindbystatus.get](docs/apis/paths/Petfindbystatus.md#get) [PetfindbystatusGet.Get.get](docs/paths/petfindbystatus/PetfindbystatusGet.md#get) | Finds Pets by status | +| /pet/findByTags **get** | [Pet.findPetsByTags](docs/apis/tags/Pet.md#findpetsbytags) [Petfindbytags.get](docs/apis/paths/Petfindbytags.md#get) [PetfindbytagsGet.Get.get](docs/paths/petfindbytags/PetfindbytagsGet.md#get) | Finds Pets by tags | +| /pet/{petId} **delete** | [Pet.deletePet](docs/apis/tags/Pet.md#deletepet) [Petpetid.delete](docs/apis/paths/Petpetid.md#delete) [PetpetidDelete.Delete.delete](docs/paths/petpetid/PetpetidDelete.md#delete) | Deletes a pet | +| /pet/{petId} **get** | [Pet.getPetById](docs/apis/tags/Pet.md#getpetbyid) [Petpetid.get](docs/apis/paths/Petpetid.md#get) [PetpetidGet.Get.get](docs/paths/petpetid/PetpetidGet.md#get) | Find pet by ID | +| /pet/{petId} **post** | [Pet.updatePetWithForm](docs/apis/tags/Pet.md#updatepetwithform) [Petpetid.post](docs/apis/paths/Petpetid.md#post) [PetpetidPost.Post.post](docs/paths/petpetid/PetpetidPost.md#post) | Updates a pet in the store with form data | +| /pet/{petId}/uploadImage **post** | [Pet.uploadImage](docs/apis/tags/Pet.md#uploadimage) [Petpetiduploadimage.post](docs/apis/paths/Petpetiduploadimage.md#post) [PetpetiduploadimagePost.Post.post](docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md#post) | uploads an image | +| /store/inventory **get** | [Store.getInventory](docs/apis/tags/Store.md#getinventory) [Storeinventory.get](docs/apis/paths/Storeinventory.md#get) [StoreinventoryGet.Get.get](docs/paths/storeinventory/StoreinventoryGet.md#get) | Returns pet inventories by status | +| /store/order **post** | [Store.placeOrder](docs/apis/tags/Store.md#placeorder) [Storeorder.post](docs/apis/paths/Storeorder.md#post) [StoreorderPost.Post.post](docs/paths/storeorder/StoreorderPost.md#post) | Place an order for a pet | +| /store/order/{order_id} **delete** | [Store.deleteOrder](docs/apis/tags/Store.md#deleteorder) [Storeorderorderid.delete](docs/apis/paths/Storeorderorderid.md#delete) [StoreorderorderidDelete.Delete.delete](docs/paths/storeorderorderid/StoreorderorderidDelete.md#delete) | Delete purchase order by ID | +| /store/order/{order_id} **get** | [Store.getOrderById](docs/apis/tags/Store.md#getorderbyid) [Storeorderorderid.get](docs/apis/paths/Storeorderorderid.md#get) [StoreorderorderidGet.Get.get](docs/paths/storeorderorderid/StoreorderorderidGet.md#get) | Find purchase order by ID | +| /user **post** | [User.createUser](docs/apis/tags/User.md#createuser) [User.post](docs/apis/paths/User.md#post) [UserPost.Post.post](docs/paths/user/UserPost.md#post) | Create user | +| /user/createWithArray **post** | [User.createUsersWithArrayInput](docs/apis/tags/User.md#createuserswitharrayinput) [Usercreatewitharray.post](docs/apis/paths/Usercreatewitharray.md#post) [UsercreatewitharrayPost.Post.post](docs/paths/usercreatewitharray/UsercreatewitharrayPost.md#post) | Creates list of users with given input array | +| /user/createWithList **post** | [User.createUsersWithListInput](docs/apis/tags/User.md#createuserswithlistinput) [Usercreatewithlist.post](docs/apis/paths/Usercreatewithlist.md#post) [UsercreatewithlistPost.Post.post](docs/paths/usercreatewithlist/UsercreatewithlistPost.md#post) | Creates list of users with given input array | +| /user/login **get** | [User.loginUser](docs/apis/tags/User.md#loginuser) [Userlogin.get](docs/apis/paths/Userlogin.md#get) [UserloginGet.Get.get](docs/paths/userlogin/UserloginGet.md#get) | Logs user into the system | +| /user/logout **get** | [User.logoutUser](docs/apis/tags/User.md#logoutuser) [Userlogout.get](docs/apis/paths/Userlogout.md#get) [UserlogoutGet.Get.get](docs/paths/userlogout/UserlogoutGet.md#get) | Logs out current logged in user session | +| /user/{username} **delete** | [User.deleteUser](docs/apis/tags/User.md#deleteuser) [Userusername.delete](docs/apis/paths/Userusername.md#delete) [UserusernameDelete.Delete.delete](docs/paths/userusername/UserusernameDelete.md#delete) | Delete user | +| /user/{username} **get** | [User.getUserByName](docs/apis/tags/User.md#getuserbyname) [Userusername.get](docs/apis/paths/Userusername.md#get) [UserusernameGet.Get.get](docs/paths/userusername/UserusernameGet.md#get) | Get user by user name | +| /user/{username} **put** | [User.updateUser](docs/apis/tags/User.md#updateuser) [Userusername.put](docs/apis/paths/Userusername.md#put) [UserusernamePut.Put.put](docs/paths/userusername/UserusernamePut.md#put) | Updated user | ## Component Schemas | Class | Description | diff --git a/src/main/resources/java/README.hbs b/src/main/resources/java/README.hbs index 2dee5f056e5..8fdb4784426 100644 --- a/src/main/resources/java/README.hbs +++ b/src/main/resources/java/README.hbs @@ -5,10 +5,11 @@ This Java package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: -- API version: {{appVersion}} -- Package version: {{artifactVersion}} -- Build package: {{generatorClass}} +- OpenAPI document version: {{appVersion}} +- Java Package version: {{artifactVersion}} +- OpenAPI JSON Schema Generator, Generator: {{generatorClass}} {{#if infoUrl}} + For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) {{/if}} diff --git a/src/main/resources/python/README.hbs b/src/main/resources/python/README.hbs index 80056a35f4b..35c8aadd2ec 100644 --- a/src/main/resources/python/README.hbs +++ b/src/main/resources/python/README.hbs @@ -5,12 +5,12 @@ This Python package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: -- API version: {{appVersion}} -- Package version: {{packageVersion}} +- OpenAPI document version: {{appVersion}} +- Python Package version: {{packageVersion}} {{#unless hideGenerationTimestamp}} - Build date: {{generatedDate}} {{/unless}} -- Build package: {{generatorClass}} +- OpenAPI JSON Schema Generator, Generator: {{generatorClass}} {{#if infoUrl}} For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) {{/if}} From 7e5ce3932ad14c3ede1988b30f9cf8d310b6eac2 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 15:34:29 -0700 Subject: [PATCH 03/12] Sample regen with defaultHeaders and additionalProperties data acessible to templates --- samples/client/petstore/java/README.md | 5 +- .../java/docs/apis/paths/Anotherfakedummy.md | 5 +- .../java/docs/apis/paths/Commonparamsubdir.md | 15 +- .../petstore/java/docs/apis/paths/Fake.md | 20 +- ...akeadditionalpropertieswitharrayofenums.md | 5 +- .../docs/apis/paths/Fakebodywithfileschema.md | 5 +- .../apis/paths/Fakebodywithqueryparams.md | 5 +- .../apis/paths/Fakecasesensitiveparams.md | 5 +- .../java/docs/apis/paths/Fakeclassnametest.md | 5 +- .../docs/apis/paths/Fakedeletecoffeeid.md | 5 +- .../java/docs/apis/paths/Fakehealth.md | 5 +- .../paths/Fakeinlineadditionalproperties.md | 5 +- .../docs/apis/paths/Fakeinlinecomposition.md | 5 +- .../java/docs/apis/paths/Fakejsonformdata.md | 5 +- .../java/docs/apis/paths/Fakejsonpatch.md | 5 +- .../docs/apis/paths/Fakejsonwithcharset.md | 5 +- .../Fakemultiplerequestbodycontenttypes.md | 5 +- .../apis/paths/Fakemultipleresponsebodies.md | 5 +- .../docs/apis/paths/Fakemultiplesecurities.md | 5 +- .../java/docs/apis/paths/Fakeobjinquery.md | 5 +- .../Fakeparametercollisions1ababselfab.md | 5 +- .../docs/apis/paths/Fakepemcontenttype.md | 5 +- .../Fakepetiduploadimagewithrequiredfile.md | 5 +- .../Fakequeryparamwithjsoncontenttype.md | 5 +- .../java/docs/apis/paths/Fakeredirection.md | 5 +- .../java/docs/apis/paths/Fakerefobjinquery.md | 5 +- .../docs/apis/paths/Fakerefsarraymodel.md | 5 +- .../docs/apis/paths/Fakerefsarrayofenums.md | 5 +- .../java/docs/apis/paths/Fakerefsboolean.md | 5 +- ...erefscomposedoneofnumberwithvalidations.md | 5 +- .../java/docs/apis/paths/Fakerefsenum.md | 5 +- .../java/docs/apis/paths/Fakerefsmammal.md | 5 +- .../java/docs/apis/paths/Fakerefsnumber.md | 5 +- .../paths/Fakerefsobjectmodelwithrefprops.md | 5 +- .../java/docs/apis/paths/Fakerefsstring.md | 5 +- .../apis/paths/Fakeresponsewithoutschema.md | 5 +- .../docs/apis/paths/Faketestqueryparamters.md | 5 +- .../docs/apis/paths/Fakeuploaddownloadfile.md | 5 +- .../java/docs/apis/paths/Fakeuploadfile.md | 5 +- .../java/docs/apis/paths/Fakeuploadfiles.md | 5 +- .../docs/apis/paths/Fakewildcardresponses.md | 5 +- .../petstore/java/docs/apis/paths/Foo.md | 5 +- .../petstore/java/docs/apis/paths/Pet.md | 10 +- .../java/docs/apis/paths/Petfindbystatus.md | 5 +- .../java/docs/apis/paths/Petfindbytags.md | 5 +- .../petstore/java/docs/apis/paths/Petpetid.md | 15 +- .../docs/apis/paths/Petpetiduploadimage.md | 5 +- .../petstore/java/docs/apis/paths/Solidus.md | 5 +- .../java/docs/apis/paths/Storeinventory.md | 5 +- .../java/docs/apis/paths/Storeorder.md | 5 +- .../java/docs/apis/paths/Storeorderorderid.md | 10 +- .../petstore/java/docs/apis/paths/User.md | 5 +- .../docs/apis/paths/Usercreatewitharray.md | 5 +- .../docs/apis/paths/Usercreatewithlist.md | 5 +- .../java/docs/apis/paths/Userlogin.md | 5 +- .../java/docs/apis/paths/Userlogout.md | 5 +- .../java/docs/apis/paths/Userusername.md | 15 +- .../java/docs/apis/tags/Anotherfake.md | 5 +- .../petstore/java/docs/apis/tags/Default.md | 5 +- .../petstore/java/docs/apis/tags/Fake.md | 215 ++++++++++++++---- .../docs/apis/tags/Fakeclassnametags123.md | 5 +- .../petstore/java/docs/apis/tags/Pet.md | 45 +++- .../petstore/java/docs/apis/tags/Store.md | 20 +- .../petstore/java/docs/apis/tags/User.md | 40 +++- .../anotherfakedummy/AnotherfakedummyPatch.md | 5 +- .../CommonparamsubdirDelete.md | 5 +- .../commonparamsubdir/CommonparamsubdirGet.md | 5 +- .../CommonparamsubdirPost.md | 5 +- .../java/docs/paths/fake/FakeDelete.md | 5 +- .../petstore/java/docs/paths/fake/FakeGet.md | 5 +- .../java/docs/paths/fake/FakePatch.md | 5 +- .../petstore/java/docs/paths/fake/FakePost.md | 5 +- ...additionalpropertieswitharrayofenumsGet.md | 5 +- .../FakebodywithfileschemaPut.md | 5 +- .../FakebodywithqueryparamsPut.md | 5 +- .../FakecasesensitiveparamsPut.md | 5 +- .../FakeclassnametestPatch.md | 5 +- .../FakedeletecoffeeidDelete.md | 5 +- .../docs/paths/fakehealth/FakehealthGet.md | 5 +- .../FakeinlineadditionalpropertiesPost.md | 5 +- .../FakeinlinecompositionPost.md | 5 +- .../fakejsonformdata/FakejsonformdataGet.md | 5 +- .../paths/fakejsonpatch/FakejsonpatchPatch.md | 5 +- .../FakejsonwithcharsetPost.md | 5 +- ...FakemultiplerequestbodycontenttypesPost.md | 5 +- .../FakemultipleresponsebodiesGet.md | 5 +- .../FakemultiplesecuritiesGet.md | 5 +- .../paths/fakeobjinquery/FakeobjinqueryGet.md | 5 +- .../Fakeparametercollisions1ababselfabPost.md | 5 +- .../FakepemcontenttypeGet.md | 5 +- ...akepetiduploadimagewithrequiredfilePost.md | 5 +- .../FakequeryparamwithjsoncontenttypeGet.md | 5 +- .../fakeredirection/FakeredirectionGet.md | 5 +- .../fakerefobjinquery/FakerefobjinqueryGet.md | 5 +- .../FakerefsarraymodelPost.md | 5 +- .../FakerefsarrayofenumsPost.md | 5 +- .../fakerefsboolean/FakerefsbooleanPost.md | 5 +- ...scomposedoneofnumberwithvalidationsPost.md | 5 +- .../paths/fakerefsenum/FakerefsenumPost.md | 5 +- .../fakerefsmammal/FakerefsmammalPost.md | 5 +- .../fakerefsnumber/FakerefsnumberPost.md | 5 +- .../FakerefsobjectmodelwithrefpropsPost.md | 5 +- .../fakerefsstring/FakerefsstringPost.md | 5 +- .../FakeresponsewithoutschemaGet.md | 5 +- .../FaketestqueryparamtersPut.md | 5 +- .../FakeuploaddownloadfilePost.md | 5 +- .../fakeuploadfile/FakeuploadfilePost.md | 5 +- .../fakeuploadfiles/FakeuploadfilesPost.md | 5 +- .../FakewildcardresponsesGet.md | 5 +- .../petstore/java/docs/paths/foo/FooGet.md | 5 +- .../petstore/java/docs/paths/pet/PetPost.md | 5 +- .../petstore/java/docs/paths/pet/PetPut.md | 5 +- .../petfindbystatus/PetfindbystatusGet.md | 5 +- .../paths/petfindbytags/PetfindbytagsGet.md | 5 +- .../docs/paths/petpetid/PetpetidDelete.md | 5 +- .../java/docs/paths/petpetid/PetpetidGet.md | 5 +- .../java/docs/paths/petpetid/PetpetidPost.md | 5 +- .../PetpetiduploadimagePost.md | 5 +- .../java/docs/paths/solidus/SolidusGet.md | 5 +- .../paths/storeinventory/StoreinventoryGet.md | 5 +- .../docs/paths/storeorder/StoreorderPost.md | 5 +- .../StoreorderorderidDelete.md | 5 +- .../storeorderorderid/StoreorderorderidGet.md | 5 +- .../petstore/java/docs/paths/user/UserPost.md | 5 +- .../UsercreatewitharrayPost.md | 5 +- .../UsercreatewithlistPost.md | 5 +- .../java/docs/paths/userlogin/UserloginGet.md | 5 +- .../docs/paths/userlogout/UserlogoutGet.md | 5 +- .../paths/userusername/UserusernameDelete.md | 5 +- .../paths/userusername/UserusernameGet.md | 5 +- .../paths/userusername/UserusernamePut.md | 5 +- .../components/requestbodies/Client.java | 3 + .../client/components/requestbodies/Pet.java | 3 + .../requestbodies/RefUserArray.java | 3 + .../components/requestbodies/UserArray.java | 3 + .../configurations/ApiConfiguration.java | 5 +- .../AnotherfakedummyPatchRequestBody.java | 3 + .../paths/fake/get/FakeGetRequestBody.java | 3 + .../fake/patch/FakePatchRequestBody.java | 3 + .../paths/fake/post/FakePostRequestBody.java | 3 + ...pertieswitharrayofenumsGetRequestBody.java | 3 + .../FakebodywithfileschemaPutRequestBody.java | 3 + ...FakebodywithqueryparamsPutRequestBody.java | 3 + .../FakeclassnametestPatchRequestBody.java | 3 + ...neadditionalpropertiesPostRequestBody.java | 3 + .../FakeinlinecompositionPostRequestBody.java | 3 + .../get/FakejsonformdataGetRequestBody.java | 3 + .../patch/FakejsonpatchPatchRequestBody.java | 3 + .../FakejsonwithcharsetPostRequestBody.java | 3 + ...equestbodycontenttypesPostRequestBody.java | 3 + ...rcollisions1ababselfabPostRequestBody.java | 3 + .../get/FakepemcontenttypeGetRequestBody.java | 3 + ...dimagewithrequiredfilePostRequestBody.java | 3 + .../FakerefsarraymodelPostRequestBody.java | 3 + .../FakerefsarrayofenumsPostRequestBody.java | 3 + .../post/FakerefsbooleanPostRequestBody.java | 3 + ...fnumberwithvalidationsPostRequestBody.java | 3 + .../post/FakerefsenumPostRequestBody.java | 3 + .../post/FakerefsmammalPostRequestBody.java | 3 + .../post/FakerefsnumberPostRequestBody.java | 3 + ...bjectmodelwithrefpropsPostRequestBody.java | 3 + .../post/FakerefsstringPostRequestBody.java | 3 + ...FakeuploaddownloadfilePostRequestBody.java | 3 + .../post/FakeuploadfilePostRequestBody.java | 3 + .../post/FakeuploadfilesPostRequestBody.java | 3 + .../paths/pet/post/PetPostRequestBody.java | 3 + .../paths/pet/put/PetPutRequestBody.java | 3 + .../post/PetpetidPostRequestBody.java | 3 + .../PetpetiduploadimagePostRequestBody.java | 3 + .../post/StoreorderPostRequestBody.java | 3 + .../paths/user/post/UserPostRequestBody.java | 3 + .../UsercreatewitharrayPostRequestBody.java | 3 + .../UsercreatewithlistPostRequestBody.java | 3 + .../put/UserusernamePutRequestBody.java | 3 + .../DefaultGeneratorRunner.java | 6 +- .../generators/JavaClientGenerator.java | 3 +- .../configurations/ApiConfiguration.hbs | 5 +- .../path/verb/_OperationDocCodeSample.hbs | 5 +- 178 files changed, 950 insertions(+), 210 deletions(-) diff --git a/samples/client/petstore/java/README.md b/samples/client/petstore/java/README.md index 5a1f7798417..40c19c75d9d 100644 --- a/samples/client/petstore/java/README.md +++ b/samples/client/petstore/java/README.md @@ -169,6 +169,7 @@ import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -183,10 +184,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md index b95a82989e1..9c6d1444803 100644 --- a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md +++ b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.anotherfakedummy.patch.Anotherfak import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Anotherfakedummy apiClient = new Anotherfakedummy(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md index ff14c55e587..f4873e52d6b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md +++ b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md @@ -59,6 +59,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Commonpa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -73,10 +74,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConfiguration); @@ -156,6 +159,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.get.Commonparam import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -170,10 +174,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConfiguration); @@ -253,6 +259,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.post.Commonpara import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -267,10 +274,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fake.md b/samples/client/petstore/java/docs/apis/paths/Fake.md index 4127de5b4a6..780e8297315 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fake.md +++ b/samples/client/petstore/java/docs/apis/paths/Fake.md @@ -64,6 +64,7 @@ import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -85,12 +86,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakeDeleteSecurityRequirementObject0SecurityIndex(FakeDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -194,6 +197,7 @@ import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -208,10 +212,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -284,6 +290,7 @@ import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -298,10 +305,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -389,6 +398,7 @@ import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -410,12 +420,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakePostSecurityRequirementObject0SecurityIndex(FakePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md index fd36cde3df4..c3efb0b5ebf 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md @@ -53,6 +53,7 @@ import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharray import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -67,10 +68,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeadditionalpropertieswitharrayofenums apiClient = new Fakeadditionalpropertieswitharrayofenums(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md index ade8ffc40b7..3ec747d4c7f 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.Fakebo import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakebodywithfileschema apiClient = new Fakebodywithfileschema(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md index 2432dc18eab..4bbdbf7cbfd 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md @@ -54,6 +54,7 @@ import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Fakeb import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -68,10 +69,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakebodywithqueryparams apiClient = new Fakebodywithqueryparams(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md index 389ba6a738d..7412ffba54d 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md @@ -54,6 +54,7 @@ import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Fakec import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -68,10 +69,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakecasesensitiveparams apiClient = new Fakecasesensitiveparams(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md index e5f67ea9312..33eab0734c3 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md @@ -58,6 +58,7 @@ import org.openapijsonschematools.client.paths.fakeclassnametest.patch.Fakeclass import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -79,12 +80,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakeclassnametestPatchSecurityRequirementObject0SecurityIndex(FakeclassnametestPatchSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeclassnametest apiClient = new Fakeclassnametest(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md index ea32daeb8d3..d2d1234e738 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Fakedel import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakedeletecoffeeid apiClient = new Fakedeletecoffeeid(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md index 0d9fe899aef..21be0a75a8a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md @@ -51,6 +51,7 @@ import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetRespo import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -65,10 +66,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakehealth apiClient = new Fakehealth(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md index 3dddf4220f4..080a60eee86 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.po import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeinlineadditionalproperties apiClient = new Fakeinlineadditionalproperties(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md index 41a5750b74a..28aa58b6a61 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md @@ -56,6 +56,7 @@ import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Fakein import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -70,10 +71,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeinlinecomposition apiClient = new Fakeinlinecomposition(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md index 11d5afe8a56..49831363d8a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakejsonformdata.get.Fakejsonform import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakejsonformdata apiClient = new Fakejsonformdata(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md index 29faa0d81fe..a9b8caab98d 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakejsonpatch.patch.Fakejsonpatch import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakejsonpatch apiClient = new Fakejsonpatch(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md index d759e24d9c1..9ea3e1e464b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md @@ -53,6 +53,7 @@ import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.Fakejson import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -67,10 +68,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakejsonwithcharset apiClient = new Fakejsonwithcharset(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md index e960595262b..5d737ac939a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttyp import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakemultiplerequestbodycontenttypes apiClient = new Fakemultiplerequestbodycontenttypes(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md index c59ff42ee6a..b71e406da0f 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.Fa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -66,10 +67,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakemultipleresponsebodies apiClient = new Fakemultipleresponsebodies(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md index 9af74b2bd4e..48e71dbaf23 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md @@ -56,6 +56,7 @@ import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.Fakemu import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -80,12 +81,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakemultiplesecuritiesGetSecurityRequirementObject0SecurityIndex(FakemultiplesecuritiesGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakemultiplesecurities apiClient = new Fakemultiplesecurities(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md index 46101fa84b9..afeccf20874 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.fakeobjinquery.get.Fakeobjinquery import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -66,10 +67,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeobjinquery apiClient = new Fakeobjinquery(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md index 4cba4991767..4f6a0d468b6 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md @@ -56,6 +56,7 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -70,10 +71,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeparametercollisions1ababselfab apiClient = new Fakeparametercollisions1ababselfab(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md index 779ed768b91..b72ea74064b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md @@ -53,6 +53,7 @@ import org.openapijsonschematools.client.paths.fakepemcontenttype.get.Fakepemcon import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -67,10 +68,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakepemcontenttype apiClient = new Fakepemcontenttype(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md index ac0ca811c30..f4cd0fbe3d9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md @@ -58,6 +58,7 @@ import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredf import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -76,12 +77,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0SecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakepetiduploadimagewithrequiredfile apiClient = new Fakepetiduploadimagewithrequiredfile(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md index c8a157d03d4..f1de13f3b84 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -66,10 +67,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakequeryparamwithjsoncontenttype apiClient = new Fakequeryparamwithjsoncontenttype(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md index c7dfe89c66b..7942f7239db 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.fakeredirection.get.Fakeredirecti import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -66,10 +67,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeredirection apiClient = new Fakeredirection(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md index 49b10105dca..df393bead21 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Fakerefobji import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -66,10 +67,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakerefobjinquery apiClient = new Fakerefobjinquery(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md index f6cbf102c40..291d9a70b4f 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.Fakerefsa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakerefsarraymodel apiClient = new Fakerefsarraymodel(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md index e942a360d4b..329654fc81a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md @@ -53,6 +53,7 @@ import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.Fakeref import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -67,10 +68,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakerefsarrayofenums apiClient = new Fakerefsarrayofenums(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md index e7b28f6f3df..4170f230188 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakerefsboolean.post.Fakerefsbool import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakerefsboolean apiClient = new Fakerefsboolean(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md index 0c41e0ebfdc..6c615c61497 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithva import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakerefscomposedoneofnumberwithvalidations apiClient = new Fakerefscomposedoneofnumberwithvalidations(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md index 5053ff9b400..9cd3cf52255 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPos import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakerefsenum apiClient = new Fakerefsenum(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md index 1c22c090062..9452073d048 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakerefsmammal.post.Fakerefsmamma import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakerefsmammal apiClient = new Fakerefsmammal(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md index 62cd5d48d6b..4029bed86ef 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakerefsnumber.post.Fakerefsnumbe import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakerefsnumber apiClient = new Fakerefsnumber(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md index 1965cba9c36..2a06d5a23af 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.p import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakerefsobjectmodelwithrefprops apiClient = new Fakerefsobjectmodelwithrefprops(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md index 34e516e9052..6cc4673a60b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakerefsstring.post.Fakerefsstrin import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakerefsstring apiClient = new Fakerefsstring(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md index 809ec3ec5d1..b6327e97b4b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md @@ -51,6 +51,7 @@ import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.Fak import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -65,10 +66,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeresponsewithoutschema apiClient = new Fakeresponsewithoutschema(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md index 7c3ae6c853f..001b94bde11 100644 --- a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md +++ b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md @@ -54,6 +54,7 @@ import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Fakete import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -68,10 +69,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Faketestqueryparamters apiClient = new Faketestqueryparamters(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md index deb8eb75170..16d57abd561 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.Fakeu import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeuploaddownloadfile apiClient = new Fakeuploaddownloadfile(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md index 42d78c62156..a12c40d32fd 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakeuploadfile.post.Fakeuploadfil import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeuploadfile apiClient = new Fakeuploadfile(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md index 4a668c30592..024f083036d 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.fakeuploadfiles.post.Fakeuploadfi import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeuploadfiles apiClient = new Fakeuploadfiles(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md index ed3c327296a..7df85d965cb 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md @@ -56,6 +56,7 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.get.Fakewil import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -70,10 +71,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakewildcardresponses apiClient = new Fakewildcardresponses(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Foo.md b/samples/client/petstore/java/docs/apis/paths/Foo.md index cbf7d7009df..bb1406c6f4f 100644 --- a/samples/client/petstore/java/docs/apis/paths/Foo.md +++ b/samples/client/petstore/java/docs/apis/paths/Foo.md @@ -50,6 +50,7 @@ import org.openapijsonschematools.client.paths.foo.get.FooGetResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -64,10 +65,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Foo apiClient = new Foo(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Pet.md b/samples/client/petstore/java/docs/apis/paths/Pet.md index f01f3cbe664..78cf445ee6b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Pet.md +++ b/samples/client/petstore/java/docs/apis/paths/Pet.md @@ -63,6 +63,7 @@ import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -84,12 +85,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petPostSecurityRequirementObject0SecurityIndex(PetPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); @@ -211,6 +214,7 @@ import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -229,12 +233,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petPutSecurityRequirementObject0SecurityIndex(PetPutSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md index 765ef2618ee..f0f4f2499a1 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md @@ -59,6 +59,7 @@ import org.openapijsonschematools.client.paths.petfindbystatus.get.Petfindbystat import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -80,12 +81,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petfindbystatusGetSecurityRequirementObject0SecurityIndex(PetfindbystatusGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Petfindbystatus apiClient = new Petfindbystatus(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md index 1ab2b417ed0..49e624eaf90 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md @@ -59,6 +59,7 @@ import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGe import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -77,12 +78,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petfindbytagsGetSecurityRequirementObject0SecurityIndex(PetfindbytagsGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Petfindbytags apiClient = new Petfindbytags(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetid.md b/samples/client/petstore/java/docs/apis/paths/Petpetid.md index ff1ed3bf90b..4b1778e1f37 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetid.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetid.md @@ -63,6 +63,7 @@ import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteRes import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -84,12 +85,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidDeleteSecurityRequirementObject0SecurityIndex(PetpetidDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); @@ -177,6 +180,7 @@ import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -198,12 +202,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidGetSecurityRequirementObject0SecurityIndex(PetpetidGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); @@ -298,6 +304,7 @@ import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRespons import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -319,12 +326,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidPostSecurityRequirementObject0SecurityIndex(PetpetidPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md index 967f40f1a14..08964f7c304 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md @@ -59,6 +59,7 @@ import org.openapijsonschematools.client.paths.petpetiduploadimage.post.Petpetid import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -77,12 +78,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetiduploadimagePostSecurityRequirementObject0SecurityIndex(PetpetiduploadimagePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Petpetiduploadimage apiClient = new Petpetiduploadimage(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Solidus.md b/samples/client/petstore/java/docs/apis/paths/Solidus.md index 6f4af906f93..ff463ea1e90 100644 --- a/samples/client/petstore/java/docs/apis/paths/Solidus.md +++ b/samples/client/petstore/java/docs/apis/paths/Solidus.md @@ -51,6 +51,7 @@ import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -65,10 +66,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Solidus apiClient = new Solidus(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md index a8c30194f2e..b4af54aa4a4 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md @@ -57,6 +57,7 @@ import org.openapijsonschematools.client.paths.storeinventory.get.Storeinventory import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -78,12 +79,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .storeinventoryGetSecurityRequirementObject0SecurityIndex(StoreinventoryGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Storeinventory apiClient = new Storeinventory(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorder.md b/samples/client/petstore/java/docs/apis/paths/Storeorder.md index a5b93d6e9fc..1faba15766a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorder.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorder.md @@ -56,6 +56,7 @@ import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRes import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -70,10 +71,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Storeorder apiClient = new Storeorder(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md index 3433f90bab4..307e734db05 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md @@ -57,6 +57,7 @@ import org.openapijsonschematools.client.paths.storeorderorderid.delete.Storeord import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -71,10 +72,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Storeorderorderid apiClient = new Storeorderorderid(apiConfiguration, schemaConfiguration); @@ -159,6 +162,7 @@ import org.openapijsonschematools.client.paths.storeorderorderid.get.Storeordero import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -173,10 +177,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Storeorderorderid apiClient = new Storeorderorderid(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/User.md b/samples/client/petstore/java/docs/apis/paths/User.md index ccde559eed0..2871e6af79a 100644 --- a/samples/client/petstore/java/docs/apis/paths/User.md +++ b/samples/client/petstore/java/docs/apis/paths/User.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.user.post.UserPostResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); User apiClient = new User(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md index e8cac8d607b..63ab00f6c45 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.usercreatewitharray.post.Usercrea import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Usercreatewitharray apiClient = new Usercreatewitharray(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md index f71882f0942..7262bbc746e 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.usercreatewithlist.post.Usercreat import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Usercreatewithlist apiClient = new Usercreatewithlist(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogin.md b/samples/client/petstore/java/docs/apis/paths/Userlogin.md index bc63543dcd2..91a09e9e4d3 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogin.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogin.md @@ -56,6 +56,7 @@ import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetRespons import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -70,10 +71,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Userlogin apiClient = new Userlogin(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogout.md b/samples/client/petstore/java/docs/apis/paths/Userlogout.md index 8eea6760281..93ab775ab08 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogout.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogout.md @@ -53,6 +53,7 @@ import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetRespo import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -67,10 +68,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Userlogout apiClient = new Userlogout(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/paths/Userusername.md b/samples/client/petstore/java/docs/apis/paths/Userusername.md index f963447b384..2cee7da8eba 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userusername.md +++ b/samples/client/petstore/java/docs/apis/paths/Userusername.md @@ -59,6 +59,7 @@ import org.openapijsonschematools.client.paths.userusername.delete.UserusernameD import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -73,10 +74,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Userusername apiClient = new Userusername(apiConfiguration, schemaConfiguration); @@ -162,6 +165,7 @@ import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetR import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -176,10 +180,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Userusername apiClient = new Userusername(apiConfiguration, schemaConfiguration); @@ -272,6 +278,7 @@ import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutR import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -286,10 +293,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Userusername apiClient = new Userusername(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/tags/Anotherfake.md b/samples/client/petstore/java/docs/apis/tags/Anotherfake.md index 98beb981514..40aba4bb814 100644 --- a/samples/client/petstore/java/docs/apis/tags/Anotherfake.md +++ b/samples/client/petstore/java/docs/apis/tags/Anotherfake.md @@ -55,6 +55,7 @@ import org.openapijsonschematools.client.paths.anotherfakedummy.patch.Anotherfak import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,10 +70,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Anotherfake apiClient = new Anotherfake(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/tags/Default.md b/samples/client/petstore/java/docs/apis/tags/Default.md index c39a91a4294..3e152801fe6 100644 --- a/samples/client/petstore/java/docs/apis/tags/Default.md +++ b/samples/client/petstore/java/docs/apis/tags/Default.md @@ -51,6 +51,7 @@ import org.openapijsonschematools.client.paths.foo.get.FooGetResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -65,10 +66,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Default apiClient = new Default(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/tags/Fake.md b/samples/client/petstore/java/docs/apis/tags/Fake.md index 8b8e520115f..0fbedb6a5d3 100644 --- a/samples/client/petstore/java/docs/apis/tags/Fake.md +++ b/samples/client/petstore/java/docs/apis/tags/Fake.md @@ -139,6 +139,7 @@ import org.openapijsonschematools.client.paths.fakejsonpatch.patch.Fakejsonpatch import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -153,10 +154,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -224,6 +227,7 @@ import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.Fakeref import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -238,10 +242,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -313,6 +319,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Commonpa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -327,10 +334,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -410,6 +419,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.get.Commonparam import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -424,10 +434,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -507,6 +519,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.post.Commonpara import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -521,10 +534,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -605,6 +620,7 @@ import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Fakec import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -619,10 +635,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -709,6 +727,7 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.get.Fakewil import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -723,10 +742,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -811,6 +832,7 @@ import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Fakeb import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -825,10 +847,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -935,6 +959,7 @@ import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.Fakejson import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -949,10 +974,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1024,6 +1051,7 @@ import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.Fakerefsa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1038,10 +1066,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1109,6 +1139,7 @@ import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetRespo import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1123,10 +1154,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1198,6 +1231,7 @@ import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithva import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1212,10 +1246,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1284,6 +1320,7 @@ import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Fakerefobji import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1298,10 +1335,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1371,6 +1410,7 @@ import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.Fakebo import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1385,10 +1425,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1472,6 +1514,7 @@ import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPos import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1486,10 +1529,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1558,6 +1603,7 @@ import org.openapijsonschematools.client.paths.fakeredirection.get.Fakeredirecti import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1572,10 +1618,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1648,6 +1696,7 @@ import org.openapijsonschematools.client.paths.fakeuploadfile.post.Fakeuploadfil import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1662,10 +1711,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1738,6 +1789,7 @@ import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Fakein import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1752,10 +1804,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1834,6 +1888,7 @@ import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1855,12 +1910,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakeDeleteSecurityRequirementObject0SecurityIndex(FakeDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -1964,6 +2021,7 @@ import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1978,10 +2036,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2054,6 +2114,7 @@ import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2068,10 +2129,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2159,6 +2222,7 @@ import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2180,12 +2244,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakePostSecurityRequirementObject0SecurityIndex(FakePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2258,6 +2324,7 @@ import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.p import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2272,10 +2339,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2345,6 +2414,7 @@ import org.openapijsonschematools.client.paths.fakepemcontenttype.get.Fakepemcon import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2359,10 +2429,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2434,6 +2506,7 @@ import org.openapijsonschematools.client.paths.fakerefsnumber.post.Fakerefsnumbe import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2448,10 +2521,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2523,6 +2598,7 @@ import org.openapijsonschematools.client.paths.fakerefsstring.post.Fakerefsstrin import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2537,10 +2613,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2612,6 +2690,7 @@ import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.po import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2626,10 +2705,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2711,6 +2792,7 @@ import org.openapijsonschematools.client.paths.fakerefsmammal.post.Fakerefsmamma import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2725,10 +2807,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2799,6 +2883,7 @@ import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2813,10 +2898,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2886,6 +2973,7 @@ import org.openapijsonschematools.client.paths.fakerefsboolean.post.Fakerefsbool import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2900,10 +2988,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -2975,6 +3065,7 @@ import org.openapijsonschematools.client.paths.fakejsonformdata.get.Fakejsonform import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -2989,10 +3080,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -3063,6 +3156,7 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -3077,10 +3171,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -3169,6 +3265,7 @@ import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -3183,10 +3280,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -3265,6 +3364,7 @@ import org.openapijsonschematools.client.paths.fakeobjinquery.get.Fakeobjinquery import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -3279,10 +3379,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -3353,6 +3455,7 @@ import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.Fakemu import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -3377,12 +3480,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakemultiplesecuritiesGetSecurityRequirementObject0SecurityIndex(FakemultiplesecuritiesGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -3453,6 +3558,7 @@ import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Fakete import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -3467,10 +3573,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -3574,6 +3682,7 @@ import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.Fa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -3588,10 +3697,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -3664,6 +3775,7 @@ import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.Fak import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -3678,10 +3790,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -3751,6 +3865,7 @@ import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttyp import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -3765,10 +3880,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -3840,6 +3957,7 @@ import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.Fakeu import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -3854,10 +3972,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -3937,6 +4057,7 @@ import org.openapijsonschematools.client.paths.fakeuploadfiles.post.Fakeuploadfi import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -3951,10 +4072,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -4024,6 +4147,7 @@ import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharray import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -4038,10 +4162,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); @@ -4113,6 +4239,7 @@ import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Fakedel import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -4127,10 +4254,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md b/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md index 43eb1ca2f5b..3c1e0d84a08 100644 --- a/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md +++ b/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md @@ -58,6 +58,7 @@ import org.openapijsonschematools.client.paths.fakeclassnametest.patch.Fakeclass import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -79,12 +80,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakeclassnametestPatchSecurityRequirementObject0SecurityIndex(FakeclassnametestPatchSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeclassnametags123 apiClient = new Fakeclassnametags123(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/tags/Pet.md b/samples/client/petstore/java/docs/apis/tags/Pet.md index 4a56dfedbef..f271b75faaf 100644 --- a/samples/client/petstore/java/docs/apis/tags/Pet.md +++ b/samples/client/petstore/java/docs/apis/tags/Pet.md @@ -75,6 +75,7 @@ import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredf import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -93,12 +94,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0SecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); @@ -188,6 +191,7 @@ import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -209,12 +213,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petPostSecurityRequirementObject0SecurityIndex(PetPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); @@ -336,6 +342,7 @@ import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -354,12 +361,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petPutSecurityRequirementObject0SecurityIndex(PetPutSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); @@ -478,6 +487,7 @@ import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGe import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -496,12 +506,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petfindbytagsGetSecurityRequirementObject0SecurityIndex(PetfindbytagsGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); @@ -594,6 +606,7 @@ import org.openapijsonschematools.client.paths.petfindbystatus.get.Petfindbystat import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -615,12 +628,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petfindbystatusGetSecurityRequirementObject0SecurityIndex(PetfindbystatusGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); @@ -713,6 +728,7 @@ import org.openapijsonschematools.client.paths.petpetiduploadimage.post.Petpetid import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -731,12 +747,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetiduploadimagePostSecurityRequirementObject0SecurityIndex(PetpetiduploadimagePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); @@ -823,6 +841,7 @@ import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteRes import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -844,12 +863,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidDeleteSecurityRequirementObject0SecurityIndex(PetpetidDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); @@ -937,6 +958,7 @@ import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -958,12 +980,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidGetSecurityRequirementObject0SecurityIndex(PetpetidGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); @@ -1058,6 +1082,7 @@ import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRespons import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -1079,12 +1104,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidPostSecurityRequirementObject0SecurityIndex(PetpetidPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/tags/Store.md b/samples/client/petstore/java/docs/apis/tags/Store.md index e4bc0147ebc..73800501250 100644 --- a/samples/client/petstore/java/docs/apis/tags/Store.md +++ b/samples/client/petstore/java/docs/apis/tags/Store.md @@ -64,6 +64,7 @@ import org.openapijsonschematools.client.paths.storeinventory.get.Storeinventory import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -85,12 +86,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .storeinventoryGetSecurityRequirementObject0SecurityIndex(StoreinventoryGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Store apiClient = new Store(apiConfiguration, schemaConfiguration); @@ -161,6 +164,7 @@ import org.openapijsonschematools.client.paths.storeorderorderid.delete.Storeord import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -175,10 +179,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Store apiClient = new Store(apiConfiguration, schemaConfiguration); @@ -263,6 +269,7 @@ import org.openapijsonschematools.client.paths.storeorderorderid.get.Storeordero import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -277,10 +284,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Store apiClient = new Store(apiConfiguration, schemaConfiguration); @@ -372,6 +381,7 @@ import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRes import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -386,10 +396,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Store apiClient = new Store(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/apis/tags/User.md b/samples/client/petstore/java/docs/apis/tags/User.md index abcb64e7358..f283b9967a8 100644 --- a/samples/client/petstore/java/docs/apis/tags/User.md +++ b/samples/client/petstore/java/docs/apis/tags/User.md @@ -68,6 +68,7 @@ import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetRespo import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -82,10 +83,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); User apiClient = new User(apiConfiguration, schemaConfiguration); @@ -155,6 +158,7 @@ import org.openapijsonschematools.client.paths.usercreatewitharray.post.Usercrea import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -169,10 +173,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); User apiClient = new User(apiConfiguration, schemaConfiguration); @@ -292,6 +298,7 @@ import org.openapijsonschematools.client.paths.user.post.UserPostResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -306,10 +313,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); User apiClient = new User(apiConfiguration, schemaConfiguration); @@ -408,6 +417,7 @@ import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetRespons import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -422,10 +432,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); User apiClient = new User(apiConfiguration, schemaConfiguration); @@ -518,6 +530,7 @@ import org.openapijsonschematools.client.paths.userusername.delete.UserusernameD import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -532,10 +545,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); User apiClient = new User(apiConfiguration, schemaConfiguration); @@ -621,6 +636,7 @@ import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetR import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -635,10 +651,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); User apiClient = new User(apiConfiguration, schemaConfiguration); @@ -731,6 +749,7 @@ import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutR import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -745,10 +764,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); User apiClient = new User(apiConfiguration, schemaConfiguration); @@ -859,6 +880,7 @@ import org.openapijsonschematools.client.paths.usercreatewithlist.post.Usercreat import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -873,10 +895,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); User apiClient = new User(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md index 04da4972d6c..bf2585123e1 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.anotherfakedummy.patch.Anotherfak import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); AnotherfakedummyPatch.Patch apiClient = new AnotherfakedummyPatch.Patch(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index 243e4b11f76..5b9663f3667 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Commonpa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); CommonparamsubdirDelete.Delete apiClient = new CommonparamsubdirDelete.Delete(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md index 4e7551ee4f6..4eb92ea6173 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.get.Commonparam import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); CommonparamsubdirGet.Get apiClient = new CommonparamsubdirGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md index 6c2dbfa3503..0dd448e5f72 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.commonparamsubdir.post.Commonpara import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); CommonparamsubdirPost.Post apiClient = new CommonparamsubdirPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md index cef1ceb69ca..506876a6d18 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -53,6 +53,7 @@ import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -74,12 +75,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakeDeleteSecurityRequirementObject0SecurityIndex(FakeDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeDelete.Delete apiClient = new FakeDelete.Delete(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md index ed501ec1511..b42876dd0be 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -49,6 +49,7 @@ import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -63,10 +64,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeGet.Get apiClient = new FakeGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fake/FakePatch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md index e15fb436dde..8f1ff664e54 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePatch.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePatch.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakePatch.Patch apiClient = new FakePatch.Patch(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fake/FakePost.md b/samples/client/petstore/java/docs/paths/fake/FakePost.md index defb5a55b0a..aacded78053 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePost.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePost.md @@ -50,6 +50,7 @@ import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -71,12 +72,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakePostSecurityRequirementObject0SecurityIndex(FakePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakePost.Post apiClient = new FakePost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md index f4f97ce49de..7a31a8751a4 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharray import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeadditionalpropertieswitharrayofenumsGet.Get apiClient = new FakeadditionalpropertieswitharrayofenumsGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md index 24abe638613..18e4c966eb0 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.Fakebo import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakebodywithfileschemaPut.Put apiClient = new FakebodywithfileschemaPut.Put(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index df5797b9558..9efda12f762 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -51,6 +51,7 @@ import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Fakeb import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -65,10 +66,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakebodywithqueryparamsPut.Put apiClient = new FakebodywithqueryparamsPut.Put(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md index b101573c846..6d9326f7298 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -47,6 +47,7 @@ import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Fakec import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -61,10 +62,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakecasesensitiveparamsPut.Put apiClient = new FakecasesensitiveparamsPut.Put(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md index 590a7635755..66d423655e6 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md @@ -51,6 +51,7 @@ import org.openapijsonschematools.client.paths.fakeclassnametest.patch.Fakeclass import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -72,12 +73,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakeclassnametestPatchSecurityRequirementObject0SecurityIndex(FakeclassnametestPatchSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeclassnametestPatch.Patch apiClient = new FakeclassnametestPatch.Patch(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index 1baea52750a..1702b0c103e 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Fakedel import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakedeletecoffeeidDelete.Delete apiClient = new FakedeletecoffeeidDelete.Delete(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md index 7588058f9d5..e9ddbb3d7f3 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md @@ -44,6 +44,7 @@ import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetRespo import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -58,10 +59,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakehealthGet.Get apiClient = new FakehealthGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md index 49893d5b8b4..989b423d792 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.po import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeinlineadditionalpropertiesPost.Post apiClient = new FakeinlineadditionalpropertiesPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index 954a304f276..e5096f989a2 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -47,6 +47,7 @@ import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Fakein import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -61,10 +62,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeinlinecompositionPost.Post apiClient = new FakeinlinecompositionPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md index 671a070557f..4add3efe525 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakejsonformdata.get.Fakejsonform import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakejsonformdataGet.Get apiClient = new FakejsonformdataGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md index 5ec7d39f004..9017a0eff97 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakejsonpatch.patch.Fakejsonpatch import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakejsonpatchPatch.Patch apiClient = new FakejsonpatchPatch.Patch(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md index c59c04d6fb4..46f9907418d 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.Fakejson import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakejsonwithcharsetPost.Post apiClient = new FakejsonwithcharsetPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md index cca820c2a0f..81fab903e67 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttyp import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakemultiplerequestbodycontenttypesPost.Post apiClient = new FakemultiplerequestbodycontenttypesPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md index 03689e7b07c..0e6c2bdc6f5 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md @@ -45,6 +45,7 @@ import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.Fa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -59,10 +60,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakemultipleresponsebodiesGet.Get apiClient = new FakemultipleresponsebodiesGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md index da3a2cc31a7..e19a174b90f 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md @@ -49,6 +49,7 @@ import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.Fakemu import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -73,12 +74,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakemultiplesecuritiesGetSecurityRequirementObject0SecurityIndex(FakemultiplesecuritiesGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakemultiplesecuritiesGet.Get apiClient = new FakemultiplesecuritiesGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index 78ad271ec3b..dd7432f2fe3 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -45,6 +45,7 @@ import org.openapijsonschematools.client.paths.fakeobjinquery.get.Fakeobjinquery import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -59,10 +60,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeobjinqueryGet.Get apiClient = new FakeobjinqueryGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index 292dc8096de..bef9793cdbf 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -51,6 +51,7 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -65,10 +66,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Fakeparametercollisions1ababselfabPost.Post apiClient = new Fakeparametercollisions1ababselfabPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md index a052361bc1f..8350a9120c4 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakepemcontenttype.get.Fakepemcon import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakepemcontenttypeGet.Get apiClient = new FakepemcontenttypeGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index 606fee4ae21..e8cfe3c071f 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -51,6 +51,7 @@ import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredf import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,12 +70,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0SecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakepetiduploadimagewithrequiredfilePost.Post apiClient = new FakepetiduploadimagewithrequiredfilePost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index 7f6553a05cd..3a445bba70f 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -47,6 +47,7 @@ import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -61,10 +62,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakequeryparamwithjsoncontenttypeGet.Get apiClient = new FakequeryparamwithjsoncontenttypeGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md index d710b032e45..c0a8db21c3b 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md @@ -45,6 +45,7 @@ import org.openapijsonschematools.client.paths.fakeredirection.get.Fakeredirecti import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -59,10 +60,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeredirectionGet.Get apiClient = new FakeredirectionGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md index cadef7383c1..76ad611d954 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -45,6 +45,7 @@ import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Fakerefobji import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -59,10 +60,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakerefobjinqueryGet.Get apiClient = new FakerefobjinqueryGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md index 0e158006b5c..74de41f53b5 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.Fakerefsa import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakerefsarraymodelPost.Post apiClient = new FakerefsarraymodelPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md index 9544acc04e7..3b2c89c9580 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.Fakeref import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakerefsarrayofenumsPost.Post apiClient = new FakerefsarrayofenumsPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md index e89fc899063..e0101fcca9f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakerefsboolean.post.Fakerefsbool import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakerefsbooleanPost.Post apiClient = new FakerefsbooleanPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md index 2bac04d35ba..3686b66ed7c 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithva import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakerefscomposedoneofnumberwithvalidationsPost.Post apiClient = new FakerefscomposedoneofnumberwithvalidationsPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md index 7b79118eb6b..99ea24f980b 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPos import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakerefsenumPost.Post apiClient = new FakerefsenumPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md index ea741896a7e..ef3b5dc1f1f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.fakerefsmammal.post.Fakerefsmamma import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakerefsmammalPost.Post apiClient = new FakerefsmammalPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md index 48623046b25..a09a0320c3a 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakerefsnumber.post.Fakerefsnumbe import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakerefsnumberPost.Post apiClient = new FakerefsnumberPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md index a266053875e..6bd917f6503 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.p import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakerefsobjectmodelwithrefpropsPost.Post apiClient = new FakerefsobjectmodelwithrefpropsPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md index 80963690b66..58ddaaad127 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakerefsstring.post.Fakerefsstrin import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakerefsstringPost.Post apiClient = new FakerefsstringPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md index 4e0f92b77c1..a58733c2eef 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md @@ -44,6 +44,7 @@ import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.Fak import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -58,10 +59,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeresponsewithoutschemaGet.Get apiClient = new FakeresponsewithoutschemaGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index fe0ce1b5a84..4693eac5910 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -47,6 +47,7 @@ import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Fakete import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -61,10 +62,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FaketestqueryparamtersPut.Put apiClient = new FaketestqueryparamtersPut.Put(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md index 4b62fd5a54b..1aaf73ad62b 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.Fakeu import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeuploaddownloadfilePost.Post apiClient = new FakeuploaddownloadfilePost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md index 8f392916e85..410b28a3759 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakeuploadfile.post.Fakeuploadfil import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeuploadfilePost.Post apiClient = new FakeuploadfilePost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md index c4c8d15a4d9..e3b616fd043 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md @@ -46,6 +46,7 @@ import org.openapijsonschematools.client.paths.fakeuploadfiles.post.Fakeuploadfi import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -60,10 +61,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakeuploadfilesPost.Post apiClient = new FakeuploadfilesPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md index 3730d8d17a6..612843d0e30 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md @@ -49,6 +49,7 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.get.Fakewil import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -63,10 +64,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FakewildcardresponsesGet.Get apiClient = new FakewildcardresponsesGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/foo/FooGet.md b/samples/client/petstore/java/docs/paths/foo/FooGet.md index c458490f4de..da4a2fc69ce 100644 --- a/samples/client/petstore/java/docs/paths/foo/FooGet.md +++ b/samples/client/petstore/java/docs/paths/foo/FooGet.md @@ -43,6 +43,7 @@ import org.openapijsonschematools.client.paths.foo.get.FooGetResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -57,10 +58,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); FooGet.Get apiClient = new FooGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/pet/PetPost.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md index 89a5b611dd6..f85592d44b8 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPost.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPost.md @@ -54,6 +54,7 @@ import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -75,12 +76,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petPostSecurityRequirementObject0SecurityIndex(PetPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); PetPost.Post apiClient = new PetPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/pet/PetPut.md b/samples/client/petstore/java/docs/paths/pet/PetPut.md index 5b7c67d21fd..db797630ba3 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPut.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPut.md @@ -54,6 +54,7 @@ import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -72,12 +73,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petPutSecurityRequirementObject0SecurityIndex(PetPutSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); PetPut.Put apiClient = new PetPut.Put(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md index 40c5bcc9fc0..2ad29d4c2f3 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.petfindbystatus.get.Petfindbystat import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -73,12 +74,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petfindbystatusGetSecurityRequirementObject0SecurityIndex(PetfindbystatusGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); PetfindbystatusGet.Get apiClient = new PetfindbystatusGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index 4112881319f..64a600e9ce1 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGe import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -70,12 +71,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petfindbytagsGetSecurityRequirementObject0SecurityIndex(PetfindbytagsGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); PetfindbytagsGet.Get apiClient = new PetfindbytagsGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index 9d00adda840..cc41b321f94 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteRes import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -73,12 +74,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidDeleteSecurityRequirementObject0SecurityIndex(PetpetidDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); PetpetidDelete.Delete apiClient = new PetpetidDelete.Delete(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md index 6796a4f368b..6b80e49e7a9 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -73,12 +74,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidGetSecurityRequirementObject0SecurityIndex(PetpetidGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); PetpetidGet.Get apiClient = new PetpetidGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index 6e8e252f05a..d9423398066 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRespons import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -73,12 +74,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidPostSecurityRequirementObject0SecurityIndex(PetpetidPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); PetpetidPost.Post apiClient = new PetpetidPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index 4e44739c84b..c25a030e6f9 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.petpetiduploadimage.post.Petpetid import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -70,12 +71,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetiduploadimagePostSecurityRequirementObject0SecurityIndex(PetpetiduploadimagePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); PetpetiduploadimagePost.Post apiClient = new PetpetiduploadimagePost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md index 8794bb3d51a..ef3045fa03e 100644 --- a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md +++ b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md @@ -44,6 +44,7 @@ import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -58,10 +59,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); SolidusGet.Get apiClient = new SolidusGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md index efacddff2cd..510102813d9 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.storeinventory.get.Storeinventory import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -69,12 +70,14 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .storeinventoryGetSecurityRequirementObject0SecurityIndex(StoreinventoryGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, securitySchemes, securityIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); StoreinventoryGet.Get apiClient = new StoreinventoryGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md index 6b1f2d34607..99523a2c9e8 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md +++ b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md @@ -49,6 +49,7 @@ import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRes import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -63,10 +64,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); StoreorderPost.Post apiClient = new StoreorderPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index 31530aa7b7c..0ddee677b41 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.storeorderorderid.delete.Storeord import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); StoreorderorderidDelete.Delete apiClient = new StoreorderorderidDelete.Delete(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md index 8bce1036e40..b19ea973f21 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -49,6 +49,7 @@ import org.openapijsonschematools.client.paths.storeorderorderid.get.Storeordero import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -63,10 +64,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); StoreorderorderidGet.Get apiClient = new StoreorderorderidGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/user/UserPost.md b/samples/client/petstore/java/docs/paths/user/UserPost.md index 326411e49b4..5c862eec1e8 100644 --- a/samples/client/petstore/java/docs/paths/user/UserPost.md +++ b/samples/client/petstore/java/docs/paths/user/UserPost.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.user.post.UserPostResponses; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); UserPost.Post apiClient = new UserPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md index 2291468f4d3..1e9a084e1f7 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.usercreatewitharray.post.Usercrea import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); UsercreatewitharrayPost.Post apiClient = new UsercreatewitharrayPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md index 8eab60550b7..d570398c312 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.usercreatewithlist.post.Usercreat import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); UsercreatewithlistPost.Post apiClient = new UsercreatewithlistPost.Post(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md index 8c68172aa07..ef2590053d7 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -49,6 +49,7 @@ import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetRespons import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -63,10 +64,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); UserloginGet.Get apiClient = new UserloginGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md index 8e851da3eda..77e481cc6fa 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md +++ b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md @@ -44,6 +44,7 @@ import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetRespo import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -58,10 +59,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); UserlogoutGet.Get apiClient = new UserlogoutGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md index ffa3d7280a4..ce2f2269bc6 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -48,6 +48,7 @@ import org.openapijsonschematools.client.paths.userusername.delete.UserusernameD import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -62,10 +63,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); UserusernameDelete.Delete apiClient = new UserusernameDelete.Delete(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md index ae6cad77caf..4e9dcabca20 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -49,6 +49,7 @@ import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetR import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -63,10 +64,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); UserusernameGet.Get apiClient = new UserusernameGet.Get(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index 9e6a085dbb0..3b4a9608c39 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -52,6 +52,7 @@ import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutR import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -66,10 +67,12 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); UserusernamePut.Put apiClient = new UserusernamePut.Put(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java index fdf11d477dd..337f71b42be 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java index 74110c3f0fc..5ab3ca302bf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/RefUserArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/RefUserArray.java index 77f9be5f6a2..86e798e8688 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/RefUserArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/RefUserArray.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java index 5b0a97f4d57..42d528459d3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java index 43ae0975fe1..8fdcaa04966 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java @@ -35,6 +35,7 @@ public class ApiConfiguration { private final SecurityIndexInfo securityIndexInfo; private final @Nullable Duration timeout; private final Map, SecurityScheme> securitySchemeInfo; + private final Map> defaultHeaders; public ApiConfiguration() { serverInfo = new ServerInfoBuilder().build(); @@ -43,9 +44,10 @@ public ApiConfiguration() { securityIndexInfo = new SecurityIndexInfoBuilder().build(); securitySchemeInfo = new HashMap<>(); timeout = null; + defaultHeaders = new HashMap<>(); } - public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, List securitySchemes, SecurityIndexInfo securityIndexInfo, Duration timeout) { + public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, List securitySchemes, SecurityIndexInfo securityIndexInfo, Duration timeout, Map> defaultHeaders) { this.serverInfo = serverInfo; this.serverIndexInfo = serverIndexInfo; this.securityInfo = new SecurityInfo(); @@ -55,6 +57,7 @@ public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, securitySchemeInfo.put(securityScheme.getClass(), securityScheme); } this.timeout = timeout; + this.defaultHeaders = defaultHeaders; } public static class ServerInfo { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java index 38254a8d0e3..8639cc81cb8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java index fc306ea11bd..efa67494e3e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java index 0285e5cfd63..c43d256323b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java index 3d6d88d95e9..e01c6549273 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java index b83e5c5b7af..11785825b81 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java index 6a9b15e21f4..39127de39b9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java index 06fe702b27b..9f18eb16c4b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java index 5b8ff4f8390..99f87d68c89 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java index 6c4c153915a..f5164478cc6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java index 3dd064dc81c..2dad79f0695 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java index e479c67b45a..242fccbb496 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java index 081d25adba1..aa4f174f5d7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java index f0d5ad440d1..1639e32296a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java index 5b9b8fc6ab8..6baf3357ca2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java index 82857193702..defd04930c6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java index d038f5837c5..17cb5adf037 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java index 347b2154b24..c664d8b4574 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java index fc08f67aafb..e5bb752e438 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java index b613c14a273..1dd3c6f5ac5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java index 1b369a99210..92d8eccec6c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java index 67f5d3bae90..d46d3f2bf78 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java index 0cd90ba6800..428e0f1d825 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java index 695888415fe..99b4c6ff152 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java index f4b6ef9e729..bf6adb276a4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java index 2905d77e4fd..f4d6bb46f9b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java index 1eff64ddf28..3fec6e6733f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java index b7e3baa11fe..b92f2cfb035 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java index 29679dae97b..8cb3a82cc48 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java index 88c61d43ac0..d5505833272 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java index d31fde38cb3..3a04401c478 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java index 05a8bf7faa0..320472d3801 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java index 5a90f83cf0b..c8fd830b578 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java index eec826e462c..0e18a450794 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java index 0c0a1dbc175..05e07815d75 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java index ba6a1c6372e..590935c705b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java index b662a0bbb6c..6ac4141bed5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java index 29018a348a5..2054ba82058 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java index f342c7ef9aa..39ba2a72387 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java @@ -1,4 +1,7 @@ /* + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator */ diff --git a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java index c247194e6ae..84981150158 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java +++ b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java @@ -352,7 +352,6 @@ private void generateSchemaDocumentation(List files, CodegenSchema schema, Map schemaData = new HashMap<>(); schemaData.put("packageName", generator.packageName()); schemaData.put("schema", schema); - schemaData.putAll(generator.additionalProperties()); schemaData.put("docRoot", docRoot); schemaData.put("identifierPieces", Collections.unmodifiableList(new ArrayList<>())); schemaData.put("headerSize", "#"); @@ -364,7 +363,6 @@ private void generateSchema(List files, CodegenSchema schema, String jsonP schemaData.put("packageName", generator.packageName()); schemaData.put("schema", schema); schemaData.put("identifierPieces", Collections.unmodifiableList(new ArrayList<>())); - schemaData.putAll(generator.additionalProperties()); generateXs(files, jsonPath, CodegenConstants.JSON_PATH_LOCATION_TYPE.SCHEMA, CodegenConstants.MODELS, schemaData, generateModels); } @@ -902,6 +900,7 @@ private void generateXDocs(List files, String jsonPath, CodegenConstants.J String filename = generator.getDocsFilepath(jsonPath) + suffix; HashMap templateData = new HashMap<>(); + templateData.putAll(generator.additionalProperties()); templateData.put("packageName", generator.packageName()); templateData.put("modelPackage", generator.modelPackage()); if (templateInfo != null && !templateInfo.isEmpty()) { @@ -932,6 +931,7 @@ private void generateXTests(List files, String jsonPath, CodegenConstants. String filename = generator.getTestFilepath(jsonPath) + suffix; HashMap templateData = new HashMap<>(); + templateData.putAll(generator.additionalProperties()); templateData.put("packageName", generator.packageName()); templateData.put("modelPackage", generator.modelPackage()); if (templateInfo != null && !templateInfo.isEmpty()) { @@ -967,6 +967,7 @@ private void generateXs(List files, String jsonPath, CodegenConstants.JSON String filename = generator.getFilepath(jsonPath) + suffix; HashMap templateData = new HashMap<>(); + templateData.putAll(generator.additionalProperties()); templateData.put("packageName", generator.packageName()); templateData.put("modelPackage", generator.modelPackage()); if (templateInfo != null && !templateInfo.isEmpty()) { @@ -1087,7 +1088,6 @@ protected TreeMap generateSchemas(List files) { Map schemaData = new HashMap<>(); schemaData.put("packageName", generator.packageName()); schemaData.put("schema", schema); - schemaData.putAll(generator.additionalProperties()); if (generateModelTests) { generateXTests(files, jsonPath, CodegenConstants.JSON_PATH_LOCATION_TYPE.SCHEMA, CodegenConstants.MODELS, schemaData, true); } diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 15123eb8899..981fe25a2e4 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -3263,8 +3263,7 @@ public void preprocessOpenAPI(OpenAPI openAPI) { this.setArtifactVersion(ARTIFACT_VERSION_DEFAULT_VALUE); } } - additionalProperties.put(CodegenConstants.ARTIFACT_VERSION, artifactVersion); - + // must be sequential after initial setting above if (additionalProperties.containsKey(CodegenConstants.SNAPSHOT_VERSION)) { if (convertPropertyToBooleanAndWriteBack(CodegenConstants.SNAPSHOT_VERSION)) { this.setArtifactVersion(this.buildSnapshotVersion(this.getArtifactVersion())); diff --git a/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs b/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs index 4d6caf869bb..8e75ac67e84 100644 --- a/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs +++ b/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs @@ -40,6 +40,7 @@ public class ApiConfiguration { {{#if securitySchemes}} private final Map, SecurityScheme> securitySchemeInfo; {{/if}} + private final Map> defaultHeaders; public ApiConfiguration() { serverInfo = new ServerInfoBuilder().build(); @@ -52,9 +53,10 @@ public class ApiConfiguration { securitySchemeInfo = new HashMap<>(); {{/if}} timeout = null; + defaultHeaders = new HashMap<>(); } - public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo{{#if securitySchemes}}, List securitySchemes{{/if}}{{#gt allSecurity.size 0}}, SecurityIndexInfo securityIndexInfo{{/gt}}, Duration timeout) { + public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo{{#if securitySchemes}}, List securitySchemes{{/if}}{{#gt allSecurity.size 0}}, SecurityIndexInfo securityIndexInfo{{/gt}}, Duration timeout, Map> defaultHeaders) { this.serverInfo = serverInfo; this.serverIndexInfo = serverIndexInfo; {{#gt allSecurity.size 0}} @@ -68,6 +70,7 @@ public class ApiConfiguration { } {{/if}} this.timeout = timeout; + this.defaultHeaders = defaultHeaders; } public static class ServerInfo { diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/_OperationDocCodeSample.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/_OperationDocCodeSample.hbs index 02cf79ee2dc..75914534712 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/_OperationDocCodeSample.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/_OperationDocCodeSample.hbs @@ -89,6 +89,7 @@ import {{packageName}}.{{subpackage}}.{{jsonPathPiece.pascalCase}}; import java.io.IOException; import java.util.Arrays; import java.util.List; +import java.util.Map; import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below @@ -144,6 +145,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu {{/if}} {{/each}} Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("{{#if httpUserAgent}}{{{httpUserAgent}}}{{else}}OpenAPI-JSON-Schema-Generator/{{{artifactVersion}}}/java{{/if}}")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -157,7 +159,8 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( {{/each}} {{/if}} {{/each}} - timeout + timeout, + defaultHeaders ); SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); {{apiFullyQualifiedClass}} apiClient = new {{apiFullyQualifiedClass}}(apiConfiguration, schemaConfiguration); From bac8bd330812ce786b4baa6298a78e514a5b9737 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 15:44:28 -0700 Subject: [PATCH 04/12] Java removes request body headers --- .../client/components/requestbodies/Client.java | 7 ------- .../client/components/requestbodies/Pet.java | 7 ------- .../client/components/requestbodies/RefUserArray.java | 7 ------- .../client/components/requestbodies/UserArray.java | 7 ------- .../patch/AnotherfakedummyPatchRequestBody.java | 7 ------- .../client/paths/fake/get/FakeGetRequestBody.java | 7 ------- .../client/paths/fake/patch/FakePatchRequestBody.java | 7 ------- .../client/paths/fake/post/FakePostRequestBody.java | 7 ------- ...additionalpropertieswitharrayofenumsGetRequestBody.java | 7 ------- .../put/FakebodywithfileschemaPutRequestBody.java | 7 ------- .../put/FakebodywithqueryparamsPutRequestBody.java | 7 ------- .../patch/FakeclassnametestPatchRequestBody.java | 7 ------- .../FakeinlineadditionalpropertiesPostRequestBody.java | 7 ------- .../post/FakeinlinecompositionPostRequestBody.java | 7 ------- .../get/FakejsonformdataGetRequestBody.java | 7 ------- .../fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java | 7 ------- .../post/FakejsonwithcharsetPostRequestBody.java | 7 ------- ...FakemultiplerequestbodycontenttypesPostRequestBody.java | 7 ------- .../Fakeparametercollisions1ababselfabPostRequestBody.java | 7 ------- .../get/FakepemcontenttypeGetRequestBody.java | 7 ------- ...akepetiduploadimagewithrequiredfilePostRequestBody.java | 7 ------- .../post/FakerefsarraymodelPostRequestBody.java | 7 ------- .../post/FakerefsarrayofenumsPostRequestBody.java | 7 ------- .../post/FakerefsbooleanPostRequestBody.java | 7 ------- ...scomposedoneofnumberwithvalidationsPostRequestBody.java | 7 ------- .../fakerefsenum/post/FakerefsenumPostRequestBody.java | 7 ------- .../fakerefsmammal/post/FakerefsmammalPostRequestBody.java | 7 ------- .../fakerefsnumber/post/FakerefsnumberPostRequestBody.java | 7 ------- .../FakerefsobjectmodelwithrefpropsPostRequestBody.java | 7 ------- .../fakerefsstring/post/FakerefsstringPostRequestBody.java | 7 ------- .../post/FakeuploaddownloadfilePostRequestBody.java | 7 ------- .../fakeuploadfile/post/FakeuploadfilePostRequestBody.java | 7 ------- .../post/FakeuploadfilesPostRequestBody.java | 7 ------- .../client/paths/pet/post/PetPostRequestBody.java | 7 ------- .../client/paths/pet/put/PetPutRequestBody.java | 7 ------- .../paths/petpetid/post/PetpetidPostRequestBody.java | 7 ------- .../post/PetpetiduploadimagePostRequestBody.java | 7 ------- .../paths/storeorder/post/StoreorderPostRequestBody.java | 7 ------- .../client/paths/user/post/UserPostRequestBody.java | 7 ------- .../post/UsercreatewitharrayPostRequestBody.java | 7 ------- .../post/UsercreatewithlistPostRequestBody.java | 7 ------- .../paths/userusername/put/UserusernamePutRequestBody.java | 7 ------- .../packagename/components/requestbodies/RequestBody.hbs | 2 -- 43 files changed, 296 deletions(-) diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java index 337f71b42be..47d207235e0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Client.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.components.requestbodies; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java index 5ab3ca302bf..74b556ad299 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/Pet.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.components.requestbodies; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/RefUserArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/RefUserArray.java index 86e798e8688..5b4af4408d0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/RefUserArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/RefUserArray.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.components.requestbodies; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java index 42d528459d3..0012cc8ebe8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/UserArray.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.components.requestbodies; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java index 8639cc81cb8..cc759c48ee1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.anotherfakedummy.patch; import org.openapijsonschematools.client.components.requestbodies.Client; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java index efa67494e3e..71470cf4465 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fake.get; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java index c43d256323b..a31bc3e33c1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fake.patch; import org.openapijsonschematools.client.components.requestbodies.Client; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java index e01c6549273..77ff9662be2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fake.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java index 11785825b81..c8c59d931be 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java index 39127de39b9..3d130906dc0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakebodywithfileschema.put; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java index 9f18eb16c4b..f8660d61b4e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java index 99f87d68c89..69e81d0f4bc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakeclassnametest.patch; import org.openapijsonschematools.client.components.requestbodies.Client; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java index f5164478cc6..eb76fe2b4f4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java index 2dad79f0695..6d85bd751c6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakeinlinecomposition.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java index 242fccbb496..db4fc9f757b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakejsonformdata.get; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java index aa4f174f5d7..56bf4d5e8d5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakejsonpatch.patch; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java index 1639e32296a..86e3ba4f283 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakejsonwithcharset.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java index 6baf3357ca2..537497a9cc9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java index defd04930c6..e650135340f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java index 17cb5adf037..22cc2a205fa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakepemcontenttype.get; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java index c664d8b4574..71854f676ae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java index e5bb752e438..72d5f72c966 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakerefsarraymodel.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java index 1dd3c6f5ac5..cfffc2f44ea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java index 92d8eccec6c..0c80563da89 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakerefsboolean.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java index d46d3f2bf78..139bc7735cd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java index 428e0f1d825..7e12689b711 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakerefsenum.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java index 99b4c6ff152..748ec657df0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakerefsmammal.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java index bf6adb276a4..0c76fd2b996 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakerefsnumber.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java index f4d6bb46f9b..912abd1b019 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java index 3fec6e6733f..a762a5c66ac 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakerefsstring.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java index b92f2cfb035..c178703cbdb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java index 8cb3a82cc48..e4b168121f6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakeuploadfile.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java index d5505833272..c95dc09ce28 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.fakeuploadfiles.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java index 3a04401c478..f2304ccf791 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.pet.post; import org.openapijsonschematools.client.components.requestbodies.Pet; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java index 320472d3801..4faecd10dc9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.pet.put; import org.openapijsonschematools.client.components.requestbodies.Pet; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java index c8fd830b578..67d40f7ca47 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.petpetid.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java index 0e18a450794..2fa51fd7974 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.petpetiduploadimage.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java index 05e07815d75..6b587ce09ab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.storeorder.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java index 590935c705b..9f4b9c37e2e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.user.post; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java index 6ac4141bed5..50224dc5a1c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.usercreatewitharray.post; import org.openapijsonschematools.client.components.requestbodies.UserArray; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java index 2054ba82058..1d84fbcdb44 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.usercreatewithlist.post; import org.openapijsonschematools.client.components.requestbodies.RefUserArray; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java index 39ba2a72387..f078896522a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java @@ -1,10 +1,3 @@ -/* - OpenAPI Petstore - This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. - The version of the OpenAPI document: 1.0.0 - Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator -*/ - package org.openapijsonschematools.client.paths.userusername.put; import org.openapijsonschematools.client.exceptions.NotImplementedException; diff --git a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs index cbb8f3b903a..7efdd7302e2 100644 --- a/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/requestbodies/RequestBody.hbs @@ -1,5 +1,3 @@ -{{> _helper_header }} - {{#with requestBody}} package {{packageName}}.{{subpackage}}; From ea152ac8111d7643ef5e87335229fefb75577ee7 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 16:36:24 -0700 Subject: [PATCH 05/12] Updates server schema names --- .../petstore/java/.openapi-generator/FILES | 153 ++++++- samples/client/petstore/java/README.md | 10 +- .../docs/{RootServerInfo.md => ServerInfo.md} | 30 +- .../java/docs/apis/paths/Anotherfakedummy.md | 10 +- .../java/docs/apis/paths/Commonparamsubdir.md | 30 +- .../petstore/java/docs/apis/paths/Fake.md | 40 +- ...akeadditionalpropertieswitharrayofenums.md | 10 +- .../docs/apis/paths/Fakebodywithfileschema.md | 10 +- .../apis/paths/Fakebodywithqueryparams.md | 10 +- .../apis/paths/Fakecasesensitiveparams.md | 10 +- .../java/docs/apis/paths/Fakeclassnametest.md | 10 +- .../docs/apis/paths/Fakedeletecoffeeid.md | 10 +- .../java/docs/apis/paths/Fakehealth.md | 10 +- .../paths/Fakeinlineadditionalproperties.md | 10 +- .../docs/apis/paths/Fakeinlinecomposition.md | 10 +- .../java/docs/apis/paths/Fakejsonformdata.md | 10 +- .../java/docs/apis/paths/Fakejsonpatch.md | 10 +- .../docs/apis/paths/Fakejsonwithcharset.md | 10 +- .../Fakemultiplerequestbodycontenttypes.md | 10 +- .../apis/paths/Fakemultipleresponsebodies.md | 10 +- .../docs/apis/paths/Fakemultiplesecurities.md | 10 +- .../java/docs/apis/paths/Fakeobjinquery.md | 10 +- .../Fakeparametercollisions1ababselfab.md | 10 +- .../docs/apis/paths/Fakepemcontenttype.md | 10 +- .../Fakepetiduploadimagewithrequiredfile.md | 10 +- .../Fakequeryparamwithjsoncontenttype.md | 10 +- .../java/docs/apis/paths/Fakeredirection.md | 10 +- .../java/docs/apis/paths/Fakerefobjinquery.md | 10 +- .../docs/apis/paths/Fakerefsarraymodel.md | 10 +- .../docs/apis/paths/Fakerefsarrayofenums.md | 10 +- .../java/docs/apis/paths/Fakerefsboolean.md | 10 +- ...erefscomposedoneofnumberwithvalidations.md | 10 +- .../java/docs/apis/paths/Fakerefsenum.md | 10 +- .../java/docs/apis/paths/Fakerefsmammal.md | 10 +- .../java/docs/apis/paths/Fakerefsnumber.md | 10 +- .../paths/Fakerefsobjectmodelwithrefprops.md | 10 +- .../java/docs/apis/paths/Fakerefsstring.md | 10 +- .../apis/paths/Fakeresponsewithoutschema.md | 10 +- .../docs/apis/paths/Faketestqueryparamters.md | 10 +- .../docs/apis/paths/Fakeuploaddownloadfile.md | 10 +- .../java/docs/apis/paths/Fakeuploadfile.md | 10 +- .../java/docs/apis/paths/Fakeuploadfiles.md | 10 +- .../docs/apis/paths/Fakewildcardresponses.md | 10 +- .../petstore/java/docs/apis/paths/Pet.md | 20 +- .../java/docs/apis/paths/Petfindbytags.md | 10 +- .../petstore/java/docs/apis/paths/Petpetid.md | 30 +- .../docs/apis/paths/Petpetiduploadimage.md | 10 +- .../petstore/java/docs/apis/paths/Solidus.md | 10 +- .../java/docs/apis/paths/Storeinventory.md | 10 +- .../java/docs/apis/paths/Storeorder.md | 10 +- .../java/docs/apis/paths/Storeorderorderid.md | 20 +- .../petstore/java/docs/apis/paths/User.md | 10 +- .../docs/apis/paths/Usercreatewitharray.md | 10 +- .../docs/apis/paths/Usercreatewithlist.md | 10 +- .../java/docs/apis/paths/Userlogin.md | 10 +- .../java/docs/apis/paths/Userlogout.md | 10 +- .../java/docs/apis/paths/Userusername.md | 30 +- .../java/docs/apis/tags/Anotherfake.md | 10 +- .../petstore/java/docs/apis/tags/Fake.md | 430 +++++++++--------- .../docs/apis/tags/Fakeclassnametags123.md | 10 +- .../petstore/java/docs/apis/tags/Pet.md | 80 ++-- .../petstore/java/docs/apis/tags/Store.md | 40 +- .../petstore/java/docs/apis/tags/User.md | 80 ++-- .../anotherfakedummy/AnotherfakedummyPatch.md | 16 +- .../CommonparamsubdirDelete.md | 16 +- .../commonparamsubdir/CommonparamsubdirGet.md | 16 +- .../CommonparamsubdirPost.md | 16 +- .../java/docs/paths/fake/FakeDelete.md | 16 +- .../petstore/java/docs/paths/fake/FakeGet.md | 14 +- .../java/docs/paths/fake/FakePatch.md | 16 +- .../petstore/java/docs/paths/fake/FakePost.md | 14 +- ...additionalpropertieswitharrayofenumsGet.md | 14 +- .../FakebodywithfileschemaPut.md | 16 +- .../FakebodywithqueryparamsPut.md | 16 +- .../FakecasesensitiveparamsPut.md | 16 +- .../FakeclassnametestPatch.md | 16 +- .../FakedeletecoffeeidDelete.md | 16 +- .../docs/paths/fakehealth/FakehealthGet.md | 14 +- .../FakeinlineadditionalpropertiesPost.md | 16 +- .../FakeinlinecompositionPost.md | 14 +- .../fakejsonformdata/FakejsonformdataGet.md | 14 +- .../paths/fakejsonpatch/FakejsonpatchPatch.md | 14 +- .../FakejsonwithcharsetPost.md | 14 +- ...FakemultiplerequestbodycontenttypesPost.md | 14 +- .../FakemultipleresponsebodiesGet.md | 14 +- .../FakemultiplesecuritiesGet.md | 14 +- .../paths/fakeobjinquery/FakeobjinqueryGet.md | 14 +- .../Fakeparametercollisions1ababselfabPost.md | 16 +- .../FakepemcontenttypeGet.md | 14 +- ...akepetiduploadimagewithrequiredfilePost.md | 16 +- .../FakequeryparamwithjsoncontenttypeGet.md | 16 +- .../fakeredirection/FakeredirectionGet.md | 14 +- .../fakerefobjinquery/FakerefobjinqueryGet.md | 14 +- .../FakerefsarraymodelPost.md | 14 +- .../FakerefsarrayofenumsPost.md | 14 +- .../fakerefsboolean/FakerefsbooleanPost.md | 14 +- ...scomposedoneofnumberwithvalidationsPost.md | 14 +- .../paths/fakerefsenum/FakerefsenumPost.md | 14 +- .../fakerefsmammal/FakerefsmammalPost.md | 16 +- .../fakerefsnumber/FakerefsnumberPost.md | 14 +- .../FakerefsobjectmodelwithrefpropsPost.md | 14 +- .../fakerefsstring/FakerefsstringPost.md | 14 +- .../FakeresponsewithoutschemaGet.md | 14 +- .../FaketestqueryparamtersPut.md | 16 +- .../FakeuploaddownloadfilePost.md | 16 +- .../fakeuploadfile/FakeuploadfilePost.md | 14 +- .../fakeuploadfiles/FakeuploadfilesPost.md | 14 +- .../FakewildcardresponsesGet.md | 14 +- .../paths/foo/get/servers/FooGetServer1.md | 4 +- .../foo/get/servers/server1/Variables.md | 202 ++++---- .../petstore/java/docs/paths/pet/PetPost.md | 16 +- .../petstore/java/docs/paths/pet/PetPut.md | 16 +- .../servers/PetfindbystatusServer1.md | 4 +- .../servers/server1/Variables.md | 202 ++++---- .../paths/petfindbytags/PetfindbytagsGet.md | 16 +- .../docs/paths/petpetid/PetpetidDelete.md | 16 +- .../java/docs/paths/petpetid/PetpetidGet.md | 16 +- .../java/docs/paths/petpetid/PetpetidPost.md | 16 +- .../PetpetiduploadimagePost.md | 16 +- .../java/docs/paths/solidus/SolidusGet.md | 14 +- .../paths/storeinventory/StoreinventoryGet.md | 14 +- .../docs/paths/storeorder/StoreorderPost.md | 16 +- .../StoreorderorderidDelete.md | 16 +- .../storeorderorderid/StoreorderorderidGet.md | 16 +- .../petstore/java/docs/paths/user/UserPost.md | 16 +- .../UsercreatewitharrayPost.md | 16 +- .../UsercreatewithlistPost.md | 16 +- .../java/docs/paths/userlogin/UserloginGet.md | 16 +- .../docs/paths/userlogout/UserlogoutGet.md | 14 +- .../paths/userusername/UserusernameDelete.md | 16 +- .../paths/userusername/UserusernameGet.md | 16 +- .../paths/userusername/UserusernamePut.md | 16 +- .../petstore/java/docs/servers/Server0.md | 4 +- .../petstore/java/docs/servers/Server1.md | 4 +- .../{Variables.md => Server0Variables25.md} | 268 +++++------ .../{Variables.md => Server1Variables19.md} | 202 ++++---- .../{RootServerInfo.java => ServerInfo.java} | 20 +- .../configurations/ApiConfiguration.java | 36 +- .../exceptions/InvalidTypeException.java | 8 - .../exceptions/OpenapiDocumentException.java | 8 - .../AnotherfakedummyPatch.java | 10 +- .../CommonparamsubdirDelete.java | 10 +- .../CommonparamsubdirGet.java | 10 +- .../CommonparamsubdirPost.java | 10 +- .../client/paths/fake/FakeDelete.java | 10 +- .../client/paths/fake/FakeGet.java | 6 +- .../client/paths/fake/FakePatch.java | 10 +- .../client/paths/fake/FakePost.java | 6 +- ...ditionalpropertieswitharrayofenumsGet.java | 6 +- .../FakebodywithfileschemaPut.java | 10 +- .../FakebodywithqueryparamsPut.java | 10 +- .../FakecasesensitiveparamsPut.java | 10 +- .../FakeclassnametestPatch.java | 10 +- .../FakedeletecoffeeidDelete.java | 10 +- .../paths/fakehealth/FakehealthGet.java | 6 +- .../FakeinlineadditionalpropertiesPost.java | 10 +- .../FakeinlinecompositionPost.java | 6 +- .../fakejsonformdata/FakejsonformdataGet.java | 6 +- .../fakejsonpatch/FakejsonpatchPatch.java | 6 +- .../FakejsonwithcharsetPost.java | 6 +- ...kemultiplerequestbodycontenttypesPost.java | 6 +- .../FakemultipleresponsebodiesGet.java | 6 +- .../FakemultiplesecuritiesGet.java | 6 +- .../fakeobjinquery/FakeobjinqueryGet.java | 6 +- ...akeparametercollisions1ababselfabPost.java | 10 +- .../FakepemcontenttypeGet.java | 6 +- ...epetiduploadimagewithrequiredfilePost.java | 10 +- .../FakequeryparamwithjsoncontenttypeGet.java | 10 +- .../fakeredirection/FakeredirectionGet.java | 6 +- .../FakerefobjinqueryGet.java | 6 +- .../FakerefsarraymodelPost.java | 6 +- .../FakerefsarrayofenumsPost.java | 6 +- .../fakerefsboolean/FakerefsbooleanPost.java | 6 +- ...omposedoneofnumberwithvalidationsPost.java | 6 +- .../paths/fakerefsenum/FakerefsenumPost.java | 6 +- .../fakerefsmammal/FakerefsmammalPost.java | 10 +- .../fakerefsnumber/FakerefsnumberPost.java | 6 +- .../FakerefsobjectmodelwithrefpropsPost.java | 6 +- .../fakerefsstring/FakerefsstringPost.java | 6 +- .../FakeresponsewithoutschemaGet.java | 6 +- .../FaketestqueryparamtersPut.java | 10 +- .../FakeuploaddownloadfilePost.java | 10 +- .../fakeuploadfile/FakeuploadfilePost.java | 6 +- .../fakeuploadfiles/FakeuploadfilesPost.java | 6 +- .../FakewildcardresponsesGet.java | 6 +- .../paths/foo/get/servers/FooGetServer1.java | 12 +- .../foo/get/servers/server1/Variables.java | 96 ++-- .../client/paths/pet/PetPost.java | 10 +- .../client/paths/pet/PetPut.java | 10 +- .../servers/PetfindbystatusServer1.java | 12 +- .../servers/server1/Variables.java | 96 ++-- .../paths/petfindbytags/PetfindbytagsGet.java | 10 +- .../client/paths/petpetid/PetpetidDelete.java | 10 +- .../client/paths/petpetid/PetpetidGet.java | 10 +- .../client/paths/petpetid/PetpetidPost.java | 10 +- .../PetpetiduploadimagePost.java | 10 +- .../client/paths/solidus/SolidusGet.java | 6 +- .../storeinventory/StoreinventoryGet.java | 6 +- .../paths/storeorder/StoreorderPost.java | 10 +- .../StoreorderorderidDelete.java | 10 +- .../StoreorderorderidGet.java | 10 +- .../client/paths/user/UserPost.java | 10 +- .../UsercreatewitharrayPost.java | 10 +- .../UsercreatewithlistPost.java | 10 +- .../client/paths/userlogin/UserloginGet.java | 10 +- .../paths/userlogout/UserlogoutGet.java | 6 +- .../userusername/UserusernameDelete.java | 10 +- .../paths/userusername/UserusernameGet.java | 10 +- .../paths/userusername/UserusernamePut.java | 10 +- .../response/DeserializedApiResponse.java | 8 - .../client/servers/Server0.java | 14 +- .../client/servers/Server1.java | 12 +- ...Variables.java => Server0Variables24.java} | 154 +++---- ...Variables.java => Server1Variables18.java} | 96 ++-- .../codegen/generators/DefaultGenerator.java | 4 +- .../generators/JavaClientGenerator.java | 113 +++-- 216 files changed, 2365 insertions(+), 2217 deletions(-) rename samples/client/petstore/java/docs/{RootServerInfo.md => ServerInfo.md} (54%) rename samples/client/petstore/java/docs/servers/server0/{Variables.md => Server0Variables25.md} (53%) rename samples/client/petstore/java/docs/servers/server1/{Variables.md => Server1Variables19.md} (53%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/{RootServerInfo.java => ServerInfo.java} (78%) delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/exceptions/InvalidTypeException.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/exceptions/OpenapiDocumentException.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/{Variables.java => Server0Variables24.java} (70%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/{Variables.java => Server1Variables18.java} (71%) diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 8db8d9ea067..d7481188066 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -1,5 +1,5 @@ README.md -docs/RootServerInfo.md +docs/ServerInfo.md docs/apis/paths/Anotherfakedummy.md docs/apis/paths/Commonparamsubdir.md docs/apis/paths/Fake.md @@ -749,10 +749,10 @@ docs/paths/userusername/put/responses/UserusernamePutCode404Response.md docs/servers/Server0.md docs/servers/Server1.md docs/servers/Server2.md -docs/servers/server0/Variables.md -docs/servers/server1/Variables.md +docs/servers/server0/Server0Variables25.md +docs/servers/server1/Server1Variables19.md pom.xml -src/main/java/org/openapijsonschematools/client/RootServerInfo.java +src/main/java/org/openapijsonschematools/client/ServerInfo.java src/main/java/org/openapijsonschematools/client/apiclient/ApiClient.java src/main/java/org/openapijsonschematools/client/apis/paths/Anotherfakedummy.java src/main/java/org/openapijsonschematools/client/apis/paths/Commonparamsubdir.java @@ -1823,8 +1823,149 @@ src/main/java/org/openapijsonschematools/client/servers/Server2.java src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java -src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java -src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java +src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables24.java +src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables18.java +src/test/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessageTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClassTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchemaTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnumsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/AddressTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/AnimalFarmTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/AnimalTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormatTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotStringTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchemaTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/AppleReqTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/AppleTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyTypeTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnlyTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnumsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnlyTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTestTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItemsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/BananaReqTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/BananaTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/BarTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/BasquePigTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/BooleanEnumTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/BooleanSchemaTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/CapitalizationTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/CatTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/CategoryTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ChildCatTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ClassModelTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ClientTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateralTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidationsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ComposedArrayTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ComposedBoolTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNoneTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNumberTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ComposedObjectTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypesTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ComposedStringTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/CurrencyTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/DanishPigTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeTestTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidationsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/DateWithValidationsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/DecimalPayloadTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/DogTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/DrawingTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/EnumArraysTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/EnumClassTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/EnumTestTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangleTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClassTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/FileTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/FooTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/FormatTestTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/FromSchemaTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/FruitReqTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/FruitTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/GmFruitTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimalTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnlyTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/HealthCheckResultTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBigTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValueTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValueTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMax10Test.java +src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMin15Test.java +src/test/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangleTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ItemsSchemaTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ItemsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTestTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopyTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemoveTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/MammalTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/MapTestTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClassTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/MoneyTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/MultiPropertiesSchemaTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/MyObjectDtoTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/NameTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/NoAdditionalPropertiesTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/NullableClassTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/NullableShapeTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/NullableStringTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/NumberOnlyTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/NumberSchemaTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMaxTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithValidationsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBaseTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectInterfaceTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsPropertiesTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefPropsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddPropTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingPropertiesTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalPropertiesTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedPropsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionPropertyTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedPropertiesTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValuesTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalPropsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestPropTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidationsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/OrderTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDtoTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ParentPetTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/PetTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/PigTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/PlayerTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/PublicKeyTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterfaceTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirstTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/RefPetTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddPropsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddPropsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddPropsTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ReturnSchemaTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangleTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/Schema200ResponseTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModelTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModelTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ShapeOrNullTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ShapeTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateralTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/SomeObjectTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/SpecialModelnameTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/StringBooleanMapTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValueTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/StringSchemaTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/StringWithValidationTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/TagTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/TriangleInterfaceTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/TriangleTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/UUIDStringTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/UserTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/WhaleTest.java +src/test/java/org/openapijsonschematools/client/components/schemas/ZebraTest.java src/test/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlagsTest.java src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java diff --git a/samples/client/petstore/java/README.md b/samples/client/petstore/java/README.md index 40c19c75d9d..dac3b17773d 100644 --- a/samples/client/petstore/java/README.md +++ b/samples/client/petstore/java/README.md @@ -157,12 +157,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; @@ -174,14 +174,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); diff --git a/samples/client/petstore/java/docs/RootServerInfo.md b/samples/client/petstore/java/docs/ServerInfo.md similarity index 54% rename from samples/client/petstore/java/docs/RootServerInfo.md rename to samples/client/petstore/java/docs/ServerInfo.md index 835dd2fd558..359e2806cd2 100644 --- a/samples/client/petstore/java/docs/RootServerInfo.md +++ b/samples/client/petstore/java/docs/ServerInfo.md @@ -1,7 +1,7 @@ -# RootServerInfo -RootServerInfo.java +# ServerInfo +ServerInfo.java -public class RootServerInfo +public class ServerInfo A class that provides a server, and any needed server info classes - a class that is a ServerProvider @@ -11,11 +11,11 @@ A class that provides a server, and any needed server info classes ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | -| static class | [RootServerInfo.RootServerInfo1](#rootserverinfo1)
class that stores a server index | -| static class | [RootServerInfo.RootServerInfoBuilder](#rootserverinfobuilder)
class that stores a server index | -| enum | [RootServerInfo.ServerIndex](#serverindex)
class that stores a server index | +| static class | [ServerInfo.ServerInfo1](#serverinfo1)
class that stores a server index | +| static class | [ServerInfo.ServerInfoBuilder](#serverinfobuilder)
class that stores a server index | +| enum | [ServerInfo.ServerIndex](#serverindex)
class that stores a server index | -## RootServerInfo1 +## ServerInfo1 implements ServerProvider<[ServerIndex](#serverindex)>
A class that stores servers and allows one to be returned with a ServerIndex instance @@ -23,7 +23,7 @@ A class that stores servers and allows one to be returned with a ServerIndex ins ### Constructor Summary | Constructor and Description | | --------------------------- | -| RootServerInfo1(@Nullable [Server0](servers/Server0.md) server0,@Nullable [Server1](servers/Server1.md) server1,@Nullable [Server2](servers/Server2.md) server2)
Creates an instance using passed in servers | +| ServerInfo1(@Nullable [Server0](servers/Server0.md) server0,@Nullable [Server1](servers/Server1.md) server1,@Nullable [Server2](servers/Server2.md) server2)
Creates an instance using passed in servers | ### Field Summary | Modifier and Type | Field and Description | @@ -37,22 +37,22 @@ A class that stores servers and allows one to be returned with a ServerIndex ins | ----------------- | ---------------------- | | Server | getServer([ServerIndex](#serverindex) serverIndex) | -## RootServerInfoBuilder +## ServerInfoBuilder -a builder for [RootServerInfo1](#rootserverinfo1) +a builder for [ServerInfo1](#serverinfo1) ### Constructor Summary | Constructor and Description | | --------------------------- | -| RootServerInfoBuilder()
Creates an instance | +| ServerInfoBuilder()
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [RootServerInfoBuilder](#rootserverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | -| [RootServerInfoBuilder](#rootserverinfobuilder) | server1([Server1](servers/Server1.md) server1)
sets the server | -| [RootServerInfoBuilder](#rootserverinfobuilder) | server2([Server2](servers/Server2.md) server2)
sets the server | -| [RootServerInfo1](#rootserverinfo1) | build() | +| [ServerInfoBuilder](#serverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | +| [ServerInfoBuilder](#serverinfobuilder) | server1([Server1](servers/Server1.md) server1)
sets the server | +| [ServerInfoBuilder](#serverinfobuilder) | server2([Server2](servers/Server2.md) server2)
sets the server | +| [ServerInfo1](#serverinfo1) | build() | ## ServerIndex enum ServerIndex
diff --git a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md index 9c6d1444803..46ecff88638 100644 --- a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md +++ b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.AnotherfakedummyPatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Anotherfakedummy; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md index f4873e52d6b..a664937fbd9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md +++ b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md @@ -46,13 +46,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.CommonparamsubdirDeleteCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Commonparamsubdir; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; @@ -64,14 +64,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -146,13 +146,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.CommonparamsubdirGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Commonparamsubdir; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; @@ -164,14 +164,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -246,13 +246,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.CommonparamsubdirPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Commonparamsubdir; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; @@ -264,14 +264,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fake.md b/samples/client/petstore/java/docs/apis/paths/Fake.md index 780e8297315..f2c3e7a57f5 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fake.md +++ b/samples/client/petstore/java/docs/apis/paths/Fake.md @@ -47,7 +47,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; @@ -57,7 +57,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.BearerTest; import org.openapijsonschematools.client.paths.fake.delete.responses.FakeDeleteCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; @@ -69,14 +69,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -184,13 +184,13 @@ import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode200Response; import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; @@ -202,14 +202,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -276,14 +276,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.patch.responses.FakePatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; @@ -295,14 +295,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -382,7 +382,7 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fake.post.FakePostRequestBody; import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -391,7 +391,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode200Response; import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; @@ -403,14 +403,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md index c3efb0b5ebf..6aac5d89934 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md @@ -41,12 +41,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.FakeadditionalpropertieswitharrayofenumsGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeadditionalpropertieswitharrayofenums; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; @@ -58,14 +58,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md index 3ec747d4c7f..f9c4edac4de 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; import org.openapijsonschematools.client.components.schemas.FileSchemaTestClass; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.FakebodywithfileschemaPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakebodywithfileschema; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md index 4bbdbf7cbfd..3b02f7cd9b9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; @@ -47,7 +47,7 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.FakebodywithqueryparamsPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakebodywithqueryparams; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; @@ -59,14 +59,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md index 7412ffba54d..c330c955afe 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md @@ -41,13 +41,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.FakecasesensitiveparamsPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakecasesensitiveparams; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; @@ -59,14 +59,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md index 33eab0734c3..fa2063703d7 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; @@ -51,7 +51,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.FakeclassnametestPatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeclassnametest; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; @@ -63,14 +63,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( diff --git a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md index d2d1234e738..20337b04aa4 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCode200Response; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakedeletecoffeeid; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md index 21be0a75a8a..2662d5f5b34 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md @@ -39,12 +39,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakehealth.get.responses.FakehealthGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakehealth; import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; @@ -56,14 +56,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md index 080a60eee86..cb9061ea055 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.FakeinlineadditionalpropertiesPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeinlineadditionalproperties; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md index 28aa58b6a61..a76cc19fe96 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md @@ -44,12 +44,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.FakeinlinecompositionPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeinlinecomposition; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; @@ -61,14 +61,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md index 49831363d8a..067b448639d 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.FakejsonformdataGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakejsonformdata; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md index a9b8caab98d..bd7b7412d11 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; import org.openapijsonschematools.client.components.schemas.JSONPatchRequest; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.FakejsonpatchPatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakejsonpatch; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md index 9ea3e1e464b..bdba1c0a5fe 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md @@ -41,12 +41,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.FakejsonwithcharsetPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakejsonwithcharset; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; @@ -58,14 +58,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md index 5d737ac939a..c0555215f63 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.FakemultiplerequestbodycontenttypesPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakemultiplerequestbodycontenttypes; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md index b71e406da0f..a47af141250 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md @@ -39,13 +39,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode200Response; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode202Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakemultipleresponsebodies; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md index 48e71dbaf23..a0e4fef223a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -49,7 +49,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpBasicTes import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.FakemultiplesecuritiesGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakemultiplesecurities; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; @@ -61,14 +61,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md index afeccf20874..84cccaf5824 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md @@ -40,12 +40,12 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.FakeobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeobjinquery; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md index 4f6a0d468b6..72e03d28340 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md @@ -43,13 +43,13 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfa import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Fakeparametercollisions1ababselfabPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeparametercollisions1ababselfab; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; @@ -61,14 +61,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md index b72ea74064b..b22d352ee63 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md @@ -41,12 +41,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile.ApplicationxpemfileSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.FakepemcontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakepemcontenttype; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; @@ -58,14 +58,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md index f4cd0fbe3d9..fe90cb9440c 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -51,7 +51,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.FakepetiduploadimagewithrequiredfilePostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakepetiduploadimagewithrequiredfile; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; @@ -63,14 +63,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() diff --git a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md index f1de13f3b84..ae7d0904158 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md @@ -39,13 +39,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.FakequeryparamwithjsoncontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakequeryparamwithjsoncontenttype; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md index 7942f7239db..91125a6783f 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md @@ -39,13 +39,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode303Response; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode3XXResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeredirection; import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md index df393bead21..a501fbd5fc6 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md @@ -40,12 +40,12 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.FakerefobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefobjinquery; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md index 291d9a70b4f..0d3a3a3f8f0 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; import org.openapijsonschematools.client.components.schemas.AnimalFarm; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.FakerefsarraymodelPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsarraymodel; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md index 329654fc81a..ae95591bf47 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md @@ -41,12 +41,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.FakerefsarrayofenumsPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsarrayofenums; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; @@ -58,14 +58,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md index 4170f230188..50adf2d55ea 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; import org.openapijsonschematools.client.components.schemas.BooleanSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.FakerefsbooleanPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsboolean; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md index 6c615c61497..48186a0aaa5 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.FakerefscomposedoneofnumberwithvalidationsPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefscomposedoneofnumberwithvalidations; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md index 9cd3cf52255..8aa0628c35a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; import org.openapijsonschematools.client.components.schemas.StringEnum; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.FakerefsenumPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsenum; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md index 9452073d048..e089d8865f2 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; import org.openapijsonschematools.client.components.schemas.Mammal; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.FakerefsmammalPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsmammal; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md index 4029bed86ef..dfa15b92659 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; import org.openapijsonschematools.client.components.schemas.NumberWithValidations; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.FakerefsnumberPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsnumber; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md index 2a06d5a23af..611aa96a1c9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.FakerefsobjectmodelwithrefpropsPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsobjectmodelwithrefprops; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md index 6cc4673a60b..c52b38ded83 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; import org.openapijsonschematools.client.components.schemas.StringSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.FakerefsstringPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsstring; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md index b6327e97b4b..45a9ca409fc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md @@ -39,12 +39,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.FakeresponsewithoutschemaGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeresponsewithoutschema; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; @@ -56,14 +56,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md index 001b94bde11..f42c42e3b38 100644 --- a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md +++ b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md @@ -41,13 +41,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.FaketestqueryparamtersPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Faketestqueryparamters; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; @@ -59,14 +59,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md index 16d57abd561..f0332599810 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream.ApplicationoctetstreamSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.FakeuploaddownloadfilePostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeuploaddownloadfile; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md index a12c40d32fd..e1913c45d1f 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.FakeuploadfilePostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeuploadfile; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md index 024f083036d..b61e596e277 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.FakeuploadfilesPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeuploadfiles; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md index 7df85d965cb..0ccbb672dc4 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md @@ -39,7 +39,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; @@ -49,7 +49,7 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.get.respons import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode3XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode4XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode5XXResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Fakewildcardresponses; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; @@ -61,14 +61,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Pet.md b/samples/client/petstore/java/docs/apis/paths/Pet.md index 78cf445ee6b..f7dc2191f7b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Pet.md +++ b/samples/client/petstore/java/docs/apis/paths/Pet.md @@ -43,7 +43,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; import org.openapijsonschematools.client.components.schemas.Pet; @@ -56,7 +56,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpSignatur import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode200Response; import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode405Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Pet; import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; @@ -68,14 +68,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -194,7 +194,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; import org.openapijsonschematools.client.components.schemas.Pet; @@ -207,7 +207,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode400Response; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode404Response; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode405Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Pet; import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; @@ -219,14 +219,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md index 49e624eaf90..a39879fd9d5 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; import org.openapijsonschematools.client.servers.Server0; @@ -52,7 +52,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpSignatur import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode200Response; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Petfindbytags; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; @@ -64,14 +64,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetid.md b/samples/client/petstore/java/docs/apis/paths/Petpetid.md index 4b1778e1f37..b44d5c64fee 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetid.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetid.md @@ -46,7 +46,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -56,7 +56,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.delete.responses.PetpetidDeleteCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Petpetid; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; @@ -68,14 +68,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -162,7 +162,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -173,7 +173,7 @@ import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode200Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode400Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Petpetid; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; @@ -185,14 +185,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -287,7 +287,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -297,7 +297,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.post.responses.PetpetidPostCode405Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Petpetid; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; @@ -309,14 +309,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md index 08964f7c304..4a549392692 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -52,7 +52,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.PetpetiduploadimagePostCode200Response; import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Petpetiduploadimage; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; @@ -64,14 +64,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() diff --git a/samples/client/petstore/java/docs/apis/paths/Solidus.md b/samples/client/petstore/java/docs/apis/paths/Solidus.md index ff463ea1e90..1059fcd1a00 100644 --- a/samples/client/petstore/java/docs/apis/paths/Solidus.md +++ b/samples/client/petstore/java/docs/apis/paths/Solidus.md @@ -39,12 +39,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Solidus; import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; @@ -56,14 +56,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md index b4af54aa4a4..aa294221e15 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -50,7 +50,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.storeinventory.get.responses.StoreinventoryGetCode200Response; import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Storeinventory; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; @@ -62,14 +62,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorder.md b/samples/client/petstore/java/docs/apis/paths/Storeorder.md index 1faba15766a..a5f2b7ae18b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorder.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorder.md @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; import org.openapijsonschematools.client.components.schemas.Order; import org.openapijsonschematools.client.servers.Server0; @@ -49,7 +49,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode200Response; import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Storeorder; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; @@ -61,14 +61,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md index 307e734db05..9bfb1b2bc60 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md @@ -43,14 +43,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode400Response; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Storeorderorderid; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; @@ -62,14 +62,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -147,7 +147,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -155,7 +155,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode200Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode400Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Storeorderorderid; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; @@ -167,14 +167,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/User.md b/samples/client/petstore/java/docs/apis/paths/User.md index 2871e6af79a..00a200c46c4 100644 --- a/samples/client/petstore/java/docs/apis/paths/User.md +++ b/samples/client/petstore/java/docs/apis/paths/User.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.user.post.responses.UserPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.User; import org.openapijsonschematools.client.paths.user.post.UserPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md index 63ab00f6c45..897dfbdf22b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.UsercreatewitharrayPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Usercreatewitharray; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md index 7262bbc746e..ca9666e3c64 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.UsercreatewithlistPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Usercreatewithlist; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogin.md b/samples/client/petstore/java/docs/apis/paths/Userlogin.md index 91a09e9e4d3..0b2ddfe44af 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogin.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogin.md @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -49,7 +49,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode200Response; import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Userlogin; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; @@ -61,14 +61,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogout.md b/samples/client/petstore/java/docs/apis/paths/Userlogout.md index 93ab775ab08..21e4c181a58 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogout.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogout.md @@ -41,12 +41,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userlogout.get.responses.UserlogoutGetCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Userlogout; import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; @@ -58,14 +58,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/paths/Userusername.md b/samples/client/petstore/java/docs/apis/paths/Userusername.md index 2cee7da8eba..d4f44cd8d70 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userusername.md +++ b/samples/client/petstore/java/docs/apis/paths/Userusername.md @@ -45,14 +45,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode200Response; import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Userusername; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; @@ -64,14 +64,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -150,7 +150,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -158,7 +158,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode200Response; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode400Response; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Userusername; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; @@ -170,14 +170,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -262,7 +262,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; @@ -271,7 +271,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode400Response; import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.paths.Userusername; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; @@ -283,14 +283,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/tags/Anotherfake.md b/samples/client/petstore/java/docs/apis/tags/Anotherfake.md index 40aba4bb814..16d6c24b381 100644 --- a/samples/client/petstore/java/docs/apis/tags/Anotherfake.md +++ b/samples/client/petstore/java/docs/apis/tags/Anotherfake.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.AnotherfakedummyPatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Anotherfake; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; @@ -60,14 +60,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/tags/Fake.md b/samples/client/petstore/java/docs/apis/tags/Fake.md index 0fbedb6a5d3..e1f1fcb67f2 100644 --- a/samples/client/petstore/java/docs/apis/tags/Fake.md +++ b/samples/client/petstore/java/docs/apis/tags/Fake.md @@ -127,12 +127,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; import org.openapijsonschematools.client.components.schemas.JSONPatchRequest; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.FakejsonpatchPatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; @@ -144,14 +144,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -215,12 +215,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.FakerefsarrayofenumsPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; @@ -232,14 +232,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -306,13 +306,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.CommonparamsubdirDeleteCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; @@ -324,14 +324,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -406,13 +406,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.CommonparamsubdirGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; @@ -424,14 +424,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -506,13 +506,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.CommonparamsubdirPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; @@ -524,14 +524,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -607,13 +607,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.FakecasesensitiveparamsPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; @@ -625,14 +625,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -710,7 +710,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; @@ -720,7 +720,7 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.get.respons import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode3XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode4XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode5XXResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; @@ -732,14 +732,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -817,7 +817,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; @@ -825,7 +825,7 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.FakebodywithqueryparamsPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; @@ -837,14 +837,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -947,12 +947,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.FakejsonwithcharsetPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; @@ -964,14 +964,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -1039,12 +1039,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; import org.openapijsonschematools.client.components.schemas.AnimalFarm; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.FakerefsarraymodelPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; @@ -1056,14 +1056,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -1127,12 +1127,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakehealth.get.responses.FakehealthGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; @@ -1144,14 +1144,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -1219,12 +1219,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.FakerefscomposedoneofnumberwithvalidationsPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; @@ -1236,14 +1236,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -1308,12 +1308,12 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.FakerefobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; @@ -1325,14 +1325,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -1396,14 +1396,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; import org.openapijsonschematools.client.components.schemas.FileSchemaTestClass; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.FakebodywithfileschemaPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; @@ -1415,14 +1415,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -1502,12 +1502,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; import org.openapijsonschematools.client.components.schemas.StringEnum; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.FakerefsenumPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; @@ -1519,14 +1519,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -1590,13 +1590,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode303Response; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode3XXResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; @@ -1608,14 +1608,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -1684,12 +1684,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.FakeuploadfilePostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; @@ -1701,14 +1701,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -1777,12 +1777,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.FakeinlinecompositionPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; @@ -1794,14 +1794,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -1871,7 +1871,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; @@ -1881,7 +1881,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.BearerTest; import org.openapijsonschematools.client.paths.fake.delete.responses.FakeDeleteCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; @@ -1893,14 +1893,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -2008,13 +2008,13 @@ import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode200Response; import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; @@ -2026,14 +2026,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -2100,14 +2100,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.patch.responses.FakePatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; @@ -2119,14 +2119,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -2206,7 +2206,7 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fake.post.FakePostRequestBody; import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -2215,7 +2215,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode200Response; import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; @@ -2227,14 +2227,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -2312,12 +2312,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.FakerefsobjectmodelwithrefpropsPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; @@ -2329,14 +2329,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -2402,12 +2402,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile.ApplicationxpemfileSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.FakepemcontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; @@ -2419,14 +2419,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -2494,12 +2494,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; import org.openapijsonschematools.client.components.schemas.NumberWithValidations; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.FakerefsnumberPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; @@ -2511,14 +2511,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -2586,12 +2586,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; import org.openapijsonschematools.client.components.schemas.StringSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.FakerefsstringPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; @@ -2603,14 +2603,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -2676,14 +2676,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.FakeinlineadditionalpropertiesPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; @@ -2695,14 +2695,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -2778,14 +2778,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; import org.openapijsonschematools.client.components.schemas.Mammal; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.FakerefsmammalPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; @@ -2797,14 +2797,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -2871,12 +2871,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; @@ -2888,14 +2888,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -2961,12 +2961,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; import org.openapijsonschematools.client.components.schemas.BooleanSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.FakerefsbooleanPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; @@ -2978,14 +2978,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -3053,12 +3053,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.FakejsonformdataGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; @@ -3070,14 +3070,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -3143,13 +3143,13 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfa import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Fakeparametercollisions1ababselfabPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; @@ -3161,14 +3161,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -3252,13 +3252,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.FakequeryparamwithjsoncontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; @@ -3270,14 +3270,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -3352,12 +3352,12 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.FakeobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; @@ -3369,14 +3369,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -3438,7 +3438,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -3448,7 +3448,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpBasicTes import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.FakemultiplesecuritiesGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; @@ -3460,14 +3460,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -3545,13 +3545,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.FaketestqueryparamtersPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; @@ -3563,14 +3563,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -3669,13 +3669,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode200Response; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode202Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; @@ -3687,14 +3687,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -3763,12 +3763,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.FakeresponsewithoutschemaGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; @@ -3780,14 +3780,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -3853,12 +3853,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.FakemultiplerequestbodycontenttypesPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; @@ -3870,14 +3870,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -3943,14 +3943,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream.ApplicationoctetstreamSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.FakeuploaddownloadfilePostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; @@ -3962,14 +3962,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -4045,12 +4045,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.FakeuploadfilesPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; @@ -4062,14 +4062,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -4135,12 +4135,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.FakeadditionalpropertieswitharrayofenumsGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; @@ -4152,14 +4152,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -4225,14 +4225,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCode200Response; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; @@ -4244,14 +4244,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md b/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md index 3c1e0d84a08..4e64625f44c 100644 --- a/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md +++ b/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; @@ -51,7 +51,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.FakeclassnametestPatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Fakeclassnametags123; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; @@ -63,14 +63,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( diff --git a/samples/client/petstore/java/docs/apis/tags/Pet.md b/samples/client/petstore/java/docs/apis/tags/Pet.md index f271b75faaf..3273498b7fc 100644 --- a/samples/client/petstore/java/docs/apis/tags/Pet.md +++ b/samples/client/petstore/java/docs/apis/tags/Pet.md @@ -59,7 +59,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -68,7 +68,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.FakepetiduploadimagewithrequiredfilePostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; @@ -80,14 +80,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() @@ -171,7 +171,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; import org.openapijsonschematools.client.components.schemas.Pet; @@ -184,7 +184,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpSignatur import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode200Response; import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode405Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; @@ -196,14 +196,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -322,7 +322,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; import org.openapijsonschematools.client.components.schemas.Pet; @@ -335,7 +335,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode400Response; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode404Response; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode405Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; @@ -347,14 +347,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() @@ -469,7 +469,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; import org.openapijsonschematools.client.servers.Server0; @@ -480,7 +480,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpSignatur import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode200Response; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; @@ -492,14 +492,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() @@ -711,7 +711,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -721,7 +721,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.PetpetiduploadimagePostCode200Response; import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; @@ -733,14 +733,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() @@ -824,7 +824,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -834,7 +834,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.delete.responses.PetpetidDeleteCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; @@ -846,14 +846,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -940,7 +940,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -951,7 +951,7 @@ import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode200Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode400Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; @@ -963,14 +963,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -1065,7 +1065,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -1075,7 +1075,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.post.responses.PetpetidPostCode405Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; @@ -1087,14 +1087,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( diff --git a/samples/client/petstore/java/docs/apis/tags/Store.md b/samples/client/petstore/java/docs/apis/tags/Store.md index 73800501250..58522d6a4f4 100644 --- a/samples/client/petstore/java/docs/apis/tags/Store.md +++ b/samples/client/petstore/java/docs/apis/tags/Store.md @@ -48,7 +48,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -57,7 +57,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.storeinventory.get.responses.StoreinventoryGetCode200Response; import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Store; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; @@ -69,14 +69,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -150,14 +150,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode400Response; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Store; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; @@ -169,14 +169,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -254,7 +254,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -262,7 +262,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode200Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode400Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Store; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; @@ -274,14 +274,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -366,7 +366,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; import org.openapijsonschematools.client.components.schemas.Order; import org.openapijsonschematools.client.servers.Server0; @@ -374,7 +374,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode200Response; import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.Store; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; @@ -386,14 +386,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/apis/tags/User.md b/samples/client/petstore/java/docs/apis/tags/User.md index f283b9967a8..e4d95e3afb1 100644 --- a/samples/client/petstore/java/docs/apis/tags/User.md +++ b/samples/client/petstore/java/docs/apis/tags/User.md @@ -56,12 +56,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userlogout.get.responses.UserlogoutGetCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; @@ -73,14 +73,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -144,14 +144,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.UsercreatewitharrayPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; @@ -163,14 +163,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -284,14 +284,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.user.post.responses.UserPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.user.post.UserPostResponses; @@ -303,14 +303,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -402,7 +402,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -410,7 +410,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode200Response; import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; @@ -422,14 +422,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -516,14 +516,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode200Response; import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; @@ -535,14 +535,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -621,7 +621,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -629,7 +629,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode200Response; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode400Response; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; @@ -641,14 +641,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -733,7 +733,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; @@ -742,7 +742,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode400Response; import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; @@ -754,14 +754,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); @@ -866,14 +866,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.UsercreatewithlistPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; @@ -885,14 +885,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md index bf2585123e1..cb30c0cd7e4 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.AnotherfakedummyPatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.anotherfakedummy.AnotherfakedummyPatch; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -138,7 +138,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [AnotherfakedummyPatchRequestBody.SealedRequestBody](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PatchNullableRequest @@ -150,7 +150,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [AnotherfakedummyPatchRequestBody.@Nullable SealedRequestBody](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Patch0RequestBuilder @@ -167,7 +167,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | -| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Patch0RequestBuilder](#patch0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PatchRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index 5b9663f3667..eb838362623 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -35,13 +35,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.CommonparamsubdirDeleteCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirDelete; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -137,7 +137,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparametersmap) | pathParameters | | [CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparametersmap) | headerParameters
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## DeleteNullableRequest @@ -150,7 +150,7 @@ a class that stores the initial request inputs | ----------------- | --------------------- | | [CommonparamsubdirDeletePathParameters.@Nullable CommonparamsubdirDeletePathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparametersmap) | pathParameters | | [CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparametersmap) | headerParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Delete0RequestBuilder @@ -168,7 +168,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | | [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([CommonparamsubdirDeleteHeaderParametersCommonparamsubdirDeleteHeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparametersmap) headerParameters)
sets the optional property | -| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## DeleteRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md index 4eb92ea6173..43379277820 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -35,13 +35,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.CommonparamsubdirGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirGet; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -137,7 +137,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparametersmap) | pathParameters | | [CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparametersmap) | queryParameters
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetNullableRequest @@ -150,7 +150,7 @@ a class that stores the initial request inputs | ----------------- | --------------------- | | [CommonparamsubdirGetPathParameters.@Nullable CommonparamsubdirGetPathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparametersmap) | pathParameters | | [CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Get0RequestBuilder @@ -168,7 +168,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [Get0RequestBuilder](#get0requestbuilder) | queryParameters([CommonparamsubdirGetQueryParametersCommonparamsubdirGetQueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparametersmap) queryParameters)
sets the optional property | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## GetRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md index 0dd448e5f72..52e4c7d73c8 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -35,13 +35,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.CommonparamsubdirPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirPost; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -137,7 +137,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparametersmap) | pathParameters | | [CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparametersmap) | headerParameters
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostNullableRequest @@ -150,7 +150,7 @@ a class that stores the initial request inputs | ----------------- | --------------------- | | [CommonparamsubdirPostPathParameters.@Nullable CommonparamsubdirPostPathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparametersmap) | pathParameters | | [CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparametersmap) | headerParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Post0RequestBuilder @@ -168,7 +168,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | headerParameters([CommonparamsubdirPostHeaderParametersCommonparamsubdirPostHeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparametersmap) headerParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PostRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md index 506876a6d18..11cae8d28e2 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -36,7 +36,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; @@ -46,7 +46,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.BearerTest; import org.openapijsonschematools.client.paths.fake.delete.responses.FakeDeleteCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fake.FakeDelete; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; @@ -58,14 +58,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -170,7 +170,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparametersmap) | headerParameters | | [FakeDeleteQueryParameters.FakeDeleteQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -184,7 +184,7 @@ a class that stores the initial request inputs | ----------------- | --------------------- | | [FakeDeleteHeaderParameters.@Nullable FakeDeleteHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparametersmap) | headerParameters | | [FakeDeleteQueryParameters.@Nullable FakeDeleteQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -202,7 +202,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete00RequestBuilder](#delete00requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete00RequestBuilder](#delete00requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete00RequestBuilder](#delete00requestbuilder) | securityIndex([FakeDeleteSecurityInfo.SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete00RequestBuilder](#delete00requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md index b42876dd0be..a6a86931fcc 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -36,13 +36,13 @@ import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode200Response; import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fake.FakeGet; import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; @@ -54,14 +54,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -130,7 +130,7 @@ a class that stores the final request inputs | [FakeGetRequestBody.@Nullable SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) | requestBody
optional | | [FakeGetHeaderParameters.@Nullable FakeGetHeaderParametersMap](../../paths/fake/get/FakeGetHeaderParameters.md#fakegetheaderparametersmap) | headerParameters
optional | | [FakeGetQueryParameters.@Nullable FakeGetQueryParametersMap](../../paths/fake/get/FakeGetQueryParameters.md#fakegetqueryparametersmap) | queryParameters
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -150,7 +150,7 @@ a builder for request inputs | [GetRequestBuilder](#getrequestbuilder) | requestBody([FakeGetRequestBody.SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | headerParameters([FakeGetHeaderParametersFakeGetHeaderParametersMap](../../paths/fake/get/FakeGetHeaderParameters.md#fakegetheaderparametersmap) headerParameters)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeGetQueryParametersFakeGetQueryParametersMap](../../paths/fake/get/FakeGetQueryParameters.md#fakegetqueryparametersmap) queryParameters)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/FakePatch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md index 8f1ff664e54..0a53c07fc38 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePatch.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePatch.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.patch.responses.FakePatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fake.FakePatch; import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -138,7 +138,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakePatchRequestBody.SealedRequestBody](../../paths/fake/patch/FakePatchRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PatchNullableRequest @@ -150,7 +150,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakePatchRequestBody.@Nullable SealedRequestBody](../../paths/fake/patch/FakePatchRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Patch0RequestBuilder @@ -167,7 +167,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | -| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Patch0RequestBuilder](#patch0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PatchRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fake/FakePost.md b/samples/client/petstore/java/docs/paths/fake/FakePost.md index aacded78053..b9e81636a69 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakePost.md +++ b/samples/client/petstore/java/docs/paths/fake/FakePost.md @@ -34,7 +34,7 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fake.post.FakePostRequestBody; import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -43,7 +43,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode200Response; import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fake.FakePost; import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; @@ -55,14 +55,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -138,7 +138,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakePostRequestBody.@Nullable SealedRequestBody](../../paths/fake/post/FakePostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [FakePostSecurityInfo.@Nullable SecurityIndex](../../paths/fake/post/FakePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -157,7 +157,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakePostRequestBody.SealedRequestBody](../../paths/fake/post/FakePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | securityIndex([FakePostSecurityInfo.SecurityIndex](../../paths/fake/post/FakePostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md index 7a31a8751a4..4cd9dec71f9 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.FakeadditionalpropertieswitharrayofenumsGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.FakeadditionalpropertieswitharrayofenumsGet; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.@Nullable SealedRequestBody](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedRequestBody](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md index 18e4c966eb0..de2d88b9ca1 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; import org.openapijsonschematools.client.components.schemas.FileSchemaTestClass; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.FakebodywithfileschemaPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakebodywithfileschema.FakebodywithfileschemaPut; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -138,7 +138,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakebodywithfileschemaPutRequestBody.SealedRequestBody](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PutNullableRequest @@ -150,7 +150,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakebodywithfileschemaPutRequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Put0RequestBuilder @@ -167,7 +167,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PutRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index 9efda12f762..becf37b97e6 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -36,7 +36,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; @@ -44,7 +44,7 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.FakebodywithqueryparamsPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.FakebodywithqueryparamsPut; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; @@ -56,14 +56,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -167,7 +167,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PutNullableRequest @@ -180,7 +180,7 @@ a class that stores the initial request inputs | ----------------- | --------------------- | | [FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | | [FakebodywithqueryparamsPutQueryParameters.@Nullable FakebodywithqueryparamsPutQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Put00RequestBuilder @@ -197,7 +197,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put00RequestBuilder](#put00requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put00RequestBuilder](#put00requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Put00RequestBuilder](#put00requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## Put01RequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md index 6d9326f7298..ea4782cc895 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -34,13 +34,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.FakecasesensitiveparamsPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.FakecasesensitiveparamsPut; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; @@ -52,14 +52,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -139,7 +139,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PutNullableRequest @@ -151,7 +151,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakecasesensitiveparamsPutQueryParameters.@Nullable FakecasesensitiveparamsPutQueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Put0RequestBuilder @@ -168,7 +168,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PutRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md index 66d423655e6..dc7bd07c779 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md @@ -34,7 +34,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; @@ -44,7 +44,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.FakeclassnametestPatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.FakeclassnametestPatch; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; @@ -56,14 +56,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -150,7 +150,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeclassnametestPatchRequestBody.SealedRequestBody](../../paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex](../../paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -163,7 +163,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeclassnametestPatchRequestBody.@Nullable SealedRequestBody](../../paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex](../../paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -181,7 +181,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | -| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Patch0RequestBuilder](#patch0requestbuilder) | securityIndex([FakeclassnametestPatchSecurityInfo.SecurityIndex](../../paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Patch0RequestBuilder](#patch0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index 1702b0c103e..ede4014ccba 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCode200Response; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.FakedeletecoffeeidDelete; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -139,7 +139,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## DeleteNullableRequest @@ -151,7 +151,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakedeletecoffeeidDeletePathParameters.@Nullable FakedeletecoffeeidDeletePathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Delete0RequestBuilder @@ -168,7 +168,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## DeleteRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md index e9ddbb3d7f3..82abd04d0c3 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md @@ -32,12 +32,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakehealth.get.responses.FakehealthGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakehealth.FakehealthGet; import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; @@ -49,14 +49,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -121,7 +121,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -138,7 +138,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md index 989b423d792..cf67ed9bc91 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.FakeinlineadditionalpropertiesPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.FakeinlineadditionalpropertiesPost; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -136,7 +136,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostNullableRequest @@ -148,7 +148,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeinlineadditionalpropertiesPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Post0RequestBuilder @@ -165,7 +165,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PostRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index e5096f989a2..a02c9251da2 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -35,12 +35,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.FakeinlinecompositionPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeinlinecomposition.FakeinlinecompositionPost; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; @@ -52,14 +52,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -130,7 +130,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) | requestBody
optional | | [FakeinlinecompositionPostQueryParameters.@Nullable FakeinlinecompositionPostQueryParametersMap](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#fakeinlinecompositionpostqueryparametersmap) | queryParameters
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -149,7 +149,7 @@ a builder for request inputs | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeinlinecompositionPostRequestBody.SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | | [PostRequestBuilder](#postrequestbuilder) | queryParameters([FakeinlinecompositionPostQueryParametersFakeinlinecompositionPostQueryParametersMap](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#fakeinlinecompositionpostqueryparametersmap) queryParameters)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md index 4add3efe525..a03e43ed398 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.FakejsonformdataGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakejsonformdata.FakejsonformdataGet; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -122,7 +122,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakejsonformdataGetRequestBody.@Nullable SealedRequestBody](../../paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -140,7 +140,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([FakejsonformdataGetRequestBody.SealedRequestBody](../../paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md index 9017a0eff97..ee3b3912645 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; import org.openapijsonschematools.client.components.schemas.JSONPatchRequest; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.FakejsonpatchPatchCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakejsonpatch.FakejsonpatchPatch; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -122,7 +122,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakejsonpatchPatchRequestBody.@Nullable SealedRequestBody](../../paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PatchRequestBuilder @@ -140,7 +140,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | | [PatchRequestBuilder](#patchrequestbuilder) | requestBody([FakejsonpatchPatchRequestBody.SealedRequestBody](../../paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PatchRequestBuilder](#patchrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PatchRequestBuilder](#patchrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PatchRequestBuilder](#patchrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md index 46f9907418d..a305c97c97c 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.FakejsonwithcharsetPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakejsonwithcharset.FakejsonwithcharsetPost; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakejsonwithcharsetPostRequestBody.@Nullable SealedRequestBody](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakejsonwithcharsetPostRequestBody.SealedRequestBody](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md index 81fab903e67..1574a873838 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.FakemultiplerequestbodycontenttypesPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.FakemultiplerequestbodycontenttypesPost; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakemultiplerequestbodycontenttypesPostRequestBody.@Nullable SealedRequestBody](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakemultiplerequestbodycontenttypesPostRequestBody.SealedRequestBody](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md index 0e6c2bdc6f5..ddc2f477f50 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md @@ -32,13 +32,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode200Response; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode202Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.FakemultipleresponsebodiesGet; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; @@ -50,14 +50,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -127,7 +127,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -144,7 +144,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md index e19a174b90f..1ce5ef85b5a 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md @@ -32,7 +32,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpBasicTes import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.FakemultiplesecuritiesGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.FakemultiplesecuritiesGet; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; @@ -54,14 +54,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -138,7 +138,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [FakemultiplesecuritiesGetSecurityInfo.@Nullable SecurityIndex](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -156,7 +156,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | securityIndex([FakemultiplesecuritiesGetSecurityInfo.SecurityIndex](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index dd7432f2fe3..c67974031e9 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -33,12 +33,12 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.FakeobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeobjinquery.FakeobjinqueryGet; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; @@ -50,14 +50,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -121,7 +121,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeobjinqueryGetQueryParameters.@Nullable FakeobjinqueryGetQueryParametersMap](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#fakeobjinquerygetqueryparametersmap) | queryParameters
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -139,7 +139,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeobjinqueryGetQueryParametersFakeobjinqueryGetQueryParametersMap](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#fakeobjinquerygetqueryparametersmap) queryParameters)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index bef9793cdbf..be5fed9618e 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -38,13 +38,13 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfa import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Fakeparametercollisions1ababselfabPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Fakeparametercollisions1ababselfabPost; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; @@ -56,14 +56,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -153,7 +153,7 @@ a class that stores the final request inputs | [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparametersmap) | headerParameters
optional | | [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparametersmap) | queryParameters
optional | | [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparametersmap) | cookieParameters
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostNullableRequest @@ -169,7 +169,7 @@ a class that stores the initial request inputs | [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparametersmap) | headerParameters | | [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparametersmap) | queryParameters | | [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparametersmap) | cookieParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Post0RequestBuilder @@ -190,7 +190,7 @@ a builder for request inputs | [Post0RequestBuilder](#post0requestbuilder) | headerParameters([Fakeparametercollisions1ababselfabPostHeaderParametersFakeparametercollisions1ababselfabPostHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparametersmap) headerParameters)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | queryParameters([Fakeparametercollisions1ababselfabPostQueryParametersFakeparametercollisions1ababselfabPostQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparametersmap) queryParameters)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | cookieParameters([Fakeparametercollisions1ababselfabPostCookieParametersFakeparametercollisions1ababselfabPostCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparametersmap) cookieParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PostRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md index 8350a9120c4..df6fe8e554f 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile.ApplicationxpemfileSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.FakepemcontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakepemcontenttype.FakepemcontenttypeGet; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakepemcontenttypeGetRequestBody.@Nullable SealedRequestBody](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([FakepemcontenttypeGetRequestBody.SealedRequestBody](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index e8cfe3c071f..6e555a19662 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -35,7 +35,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -44,7 +44,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.FakepetiduploadimagewithrequiredfilePostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.FakepetiduploadimagewithrequiredfilePost; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; @@ -56,14 +56,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() @@ -148,7 +148,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparametersmap) | pathParameters | | [FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -162,7 +162,7 @@ a class that stores the initial request inputs | ----------------- | --------------------- | | [FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable FakepetiduploadimagewithrequiredfilePostPathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparametersmap) | pathParameters | | [FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -181,7 +181,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([FakepetiduploadimagewithrequiredfilePostRequestBody.SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | securityIndex([FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index 3a445bba70f..db1ef832cbd 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -34,13 +34,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.FakequeryparamwithjsoncontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.FakequeryparamwithjsoncontenttypeGet; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; @@ -52,14 +52,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -135,7 +135,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetNullableRequest @@ -147,7 +147,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable FakequeryparamwithjsoncontenttypeGetQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Get0RequestBuilder @@ -164,7 +164,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## GetRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md index c0a8db21c3b..48816548d49 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md @@ -32,13 +32,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode303Response; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode3XXResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeredirection.FakeredirectionGet; import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; @@ -50,14 +50,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -123,7 +123,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -140,7 +140,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md index 76ad611d954..68ee0f9c794 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -33,12 +33,12 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.FakerefobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakerefobjinquery.FakerefobjinqueryGet; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; @@ -50,14 +50,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -121,7 +121,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefobjinqueryGetQueryParameters.@Nullable FakerefobjinqueryGetQueryParametersMap](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#fakerefobjinquerygetqueryparametersmap) | queryParameters
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -139,7 +139,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakerefobjinqueryGetQueryParametersFakerefobjinqueryGetQueryParametersMap](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#fakerefobjinquerygetqueryparametersmap) queryParameters)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md index 74de41f53b5..40c24be58c1 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; import org.openapijsonschematools.client.components.schemas.AnimalFarm; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.FakerefsarraymodelPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsarraymodel.FakerefsarraymodelPost; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefsarraymodelPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsarraymodelPostRequestBody.SealedRequestBody](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md index 3b2c89c9580..eb95d25e876 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.FakerefsarrayofenumsPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.FakerefsarrayofenumsPost; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefsarrayofenumsPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsarrayofenumsPostRequestBody.SealedRequestBody](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md index e0101fcca9f..14aaf0ebbbf 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; import org.openapijsonschematools.client.components.schemas.BooleanSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.FakerefsbooleanPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsboolean.FakerefsbooleanPost; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefsbooleanPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsbooleanPostRequestBody.SealedRequestBody](../../paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md index 3686b66ed7c..81b3b672f7a 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.FakerefscomposedoneofnumberwithvalidationsPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.FakerefscomposedoneofnumberwithvalidationsPost; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedRequestBody](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md index 99ea24f980b..f202f5d00e2 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; import org.openapijsonschematools.client.components.schemas.StringEnum; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.FakerefsenumPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsenum.FakerefsenumPost; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefsenumPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsenum/post/FakerefsenumPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsenumPostRequestBody.SealedRequestBody](../../paths/fakerefsenum/post/FakerefsenumPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md index ef3b5dc1f1f..46a3c32b0a6 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; import org.openapijsonschematools.client.components.schemas.Mammal; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.FakerefsmammalPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsmammal.FakerefsmammalPost; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -129,7 +129,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefsmammalPostRequestBody.SealedRequestBody](../../paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostNullableRequest @@ -141,7 +141,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefsmammalPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Post0RequestBuilder @@ -158,7 +158,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PostRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md index a09a0320c3a..68d8e5e3687 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; import org.openapijsonschematools.client.components.schemas.NumberWithValidations; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.FakerefsnumberPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsnumber.FakerefsnumberPost; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefsnumberPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsnumberPostRequestBody.SealedRequestBody](../../paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md index 6bd917f6503..de47405e4ff 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.FakerefsobjectmodelwithrefpropsPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.FakerefsobjectmodelwithrefpropsPost; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefsobjectmodelwithrefpropsPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsobjectmodelwithrefpropsPostRequestBody.SealedRequestBody](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md index 58ddaaad127..89b5e8c92a4 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; import org.openapijsonschematools.client.components.schemas.StringSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.FakerefsstringPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsstring.FakerefsstringPost; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakerefsstringPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsstring/post/FakerefsstringPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsstringPostRequestBody.SealedRequestBody](../../paths/fakerefsstring/post/FakerefsstringPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md index a58733c2eef..4ff109d72d3 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md @@ -32,12 +32,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.FakeresponsewithoutschemaGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.FakeresponsewithoutschemaGet; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; @@ -49,14 +49,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -119,7 +119,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -136,7 +136,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index 4693eac5910..ac46f713b29 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -34,13 +34,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.FaketestqueryparamtersPutCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.faketestqueryparamters.FaketestqueryparamtersPut; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; @@ -52,14 +52,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -160,7 +160,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PutNullableRequest @@ -172,7 +172,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FaketestqueryparamtersPutQueryParameters.@Nullable FaketestqueryparamtersPutQueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Put0RequestBuilder @@ -189,7 +189,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PutRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md index 1aaf73ad62b..11391db5f7a 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream.ApplicationoctetstreamSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.FakeuploaddownloadfilePostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.FakeuploaddownloadfilePost; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -134,7 +134,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeuploaddownloadfilePostRequestBody.SealedRequestBody](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostNullableRequest @@ -146,7 +146,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeuploaddownloadfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Post0RequestBuilder @@ -163,7 +163,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PostRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md index 410b28a3759..748ecb3f9c2 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.FakeuploadfilePostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeuploadfile.FakeuploadfilePost; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeuploadfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeuploadfilePostRequestBody.SealedRequestBody](../../paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md index e3b616fd043..d26a9b67cd4 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md @@ -34,12 +34,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.FakeuploadfilesPostCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakeuploadfiles.FakeuploadfilesPost; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; @@ -51,14 +51,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -124,7 +124,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeuploadfilesPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostRequestBuilder @@ -142,7 +142,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeuploadfilesPostRequestBody.SealedRequestBody](../../paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md index 612843d0e30..c7c901b699c 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md @@ -32,7 +32,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.get.respons import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode3XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode4XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode5XXResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.fakewildcardresponses.FakewildcardresponsesGet; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; @@ -54,14 +54,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -140,7 +140,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -157,7 +157,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md b/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md index d44a22da5e5..f86f4d37f2e 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md +++ b/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md @@ -7,10 +7,10 @@ A class that stores a server url | Constructor and Description | | --------------------------- | | FooGetServer1()
Creates a server using default values for variables | -| FooGetServer1([Variables.VariablesMap](../../../../paths/foo/get/servers/server1/Variables.md#variablesmap) variables)
Creates a server using input values for variables | +| FooGetServer1([FooGetServer1Variables.FooGetServer1Variables11](../../../../paths/foo/get/servers/server1/Variables.md#foogetserver1variables11) variables)
Creates a server using input values for variables | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | | String | url = "https://petstore.swagger.io/{version}" | -| [Variables.VariablesMap](../../../../paths/foo/get/servers/server1/Variables.md#variablesmap) | variables | +| [FooGetServer1Variables.FooGetServer1Variables11](../../../../paths/foo/get/servers/server1/Variables.md#foogetserver1variables11) | variables | diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md b/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md index 975f01a6c75..a7929ba7cc9 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md +++ b/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md @@ -1,5 +1,5 @@ -# Variables -public class Variables
+# FooGetServer1Variables +public class FooGetServer1Variables
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -12,50 +12,50 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
sealed interface for validated payloads | -| record | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | -| static class | [Variables.Variables1](#variables1)
schema class | -| static class | [Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | -| static class | [Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| sealed interface | [Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | -| record | [Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | -| static class | [Variables.Version](#version)
schema class | -| enum | [Variables.StringVersionEnums](#stringversionenums)
String enum | -| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Variables.AdditionalProperties](#additionalproperties)
schema class | - -## Variables1Boxed -public sealed interface Variables1Boxed
+| sealed interface | [FooGetServer1Variables.FooGetServer1Variables1Boxed](#foogetserver1variables1boxed)
sealed interface for validated payloads | +| record | [FooGetServer1Variables.FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap)
boxed class to store validated Map payloads | +| static class | [FooGetServer1Variables.FooGetServer1Variables1](#foogetserver1variables1)
schema class | +| static class | [FooGetServer1Variables.FooGetServer1Variables10](#foogetserver1variables10)
builder for Map payloads | +| static class | [FooGetServer1Variables.FooGetServer1Variables11](#foogetserver1variables11)
output class for Map payloads | +| sealed interface | [FooGetServer1Variables.FooGetServer1Variables2Boxed](#foogetserver1variables2boxed)
sealed interface for validated payloads | +| record | [FooGetServer1Variables.FooGetServer1Variables2BoxedString](#foogetserver1variables2boxedstring)
boxed class to store validated String payloads | +| static class | [FooGetServer1Variables.FooGetServer1Variables2](#foogetserver1variables2)
schema class | +| enum | [FooGetServer1Variables.StringFooGetServer1Variables3](#stringfoogetserver1variables3)
String enum | +| sealed interface | [FooGetServer1Variables.FooGetServer1Variables6Boxed](#foogetserver1variables6boxed)
sealed interface for validated payloads | +| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedVoid](#foogetserver1variables6boxedvoid)
boxed class to store validated null payloads | +| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedBoolean](#foogetserver1variables6boxedboolean)
boxed class to store validated boolean payloads | +| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedNumber](#foogetserver1variables6boxednumber)
boxed class to store validated Number payloads | +| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedString](#foogetserver1variables6boxedstring)
boxed class to store validated String payloads | +| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedList](#foogetserver1variables6boxedlist)
boxed class to store validated List payloads | +| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedMap](#foogetserver1variables6boxedmap)
boxed class to store validated Map payloads | +| static class | [FooGetServer1Variables.FooGetServer1Variables6](#foogetserver1variables6)
schema class | + +## FooGetServer1Variables1Boxed +public sealed interface FooGetServer1Variables1Boxed
permits
-[Variables1BoxedMap](#variables1boxedmap) +[FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap) sealed interface that stores validated payloads using boxed classes -## Variables1BoxedMap -public record Variables1BoxedMap
-implements [Variables1Boxed](#variables1boxed) +## FooGetServer1Variables1BoxedMap +public record FooGetServer1Variables1BoxedMap
+implements [FooGetServer1Variables1Boxed](#foogetserver1variables1boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | +| FooGetServer1Variables1BoxedMap([FooGetServer1Variables11](#foogetserver1variables11) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | data()
validated payload | +| [FooGetServer1Variables11](#foogetserver1variables11) | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Variables1 -public static class Variables1
+## FooGetServer1Variables1 +public static class FooGetServer1Variables1
extends JsonSchema A schema class that validates payloads @@ -68,7 +68,7 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.foo.get.servers.server1.Variables; +import org.openapijsonschematools.client.paths.foo.get.servers.server1.FooGetServer1Variables; import java.util.Arrays; import java.util.List; @@ -77,9 +77,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Variables.VariablesMap validatedPayload = - Variables.Variables1.validate( - new Variables.VariablesMapBuilder() +FooGetServer1Variables.FooGetServer1Variables11 validatedPayload = + FooGetServer1Variables.FooGetServer1Variables1.validate( + new FooGetServer1Variables.FooGetServer1Variables10() .version("v1") .build(), @@ -91,20 +91,20 @@ Variables.VariablesMap validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [FooGetServer1Variables2.class](#foogetserver1variables2)))
)
| | Set | required = Set.of(
    "version"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | +| Class | additionalProperties = [FooGetServer1Variables6.class](#foogetserver1variables6) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Variables1BoxedMap](#variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Variables1Boxed](#variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| [FooGetServer1Variables11](#foogetserver1variables11) | validate([Map<?, ?>](#foogetserver1variables10) arg, SchemaConfiguration configuration) | +| [FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#foogetserver1variables10) arg, SchemaConfiguration configuration) | +| [FooGetServer1Variables1Boxed](#foogetserver1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## VariablesMap0Builder -public class VariablesMap0Builder
+## FooGetServer1Variables12 +public class FooGetServer1Variables12
builder for `Map` A class that builds the Map input type @@ -112,15 +112,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| FooGetServer1Variables12(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## VariablesMapBuilder -public class VariablesMapBuilder
+## FooGetServer1Variables10 +public class FooGetServer1Variables10
builder for `Map` A class that builds the Map input type @@ -128,16 +128,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| VariablesMapBuilder()
Creates a builder that contains an empty map | +| FooGetServer1Variables10()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | -| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | +| [FooGetServer1Variables12](#foogetserver1variables12) | version(String value) | +| [FooGetServer1Variables12](#foogetserver1variables12) | version([StringFooGetServer1Variables3](#stringfoogetserver1variables3) value) | -## VariablesMap -public static class VariablesMap
+## FooGetServer1Variables11 +public static class FooGetServer1Variables11
extends FrozenMap A class to store validated Map payloads @@ -145,26 +145,26 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| static [FooGetServer1Variables11](#foogetserver1variables11) | of([Map](#foogetserver1variables10) arg, SchemaConfiguration configuration) | | String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v1 | -## VersionBoxed -public sealed interface VersionBoxed
+## FooGetServer1Variables2Boxed +public sealed interface FooGetServer1Variables2Boxed
permits
-[VersionBoxedString](#versionboxedstring) +[FooGetServer1Variables2BoxedString](#foogetserver1variables2boxedstring) sealed interface that stores validated payloads using boxed classes -## VersionBoxedString -public record VersionBoxedString
-implements [VersionBoxed](#versionboxed) +## FooGetServer1Variables2BoxedString +public record FooGetServer1Variables2BoxedString
+implements [FooGetServer1Variables2Boxed](#foogetserver1variables2boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| VersionBoxedString(String data)
Creates an instance, private visibility | +| FooGetServer1Variables2BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,8 +172,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Version -public static class Version
+## FooGetServer1Variables2 +public static class FooGetServer1Variables2
extends JsonSchema A schema class that validates payloads @@ -186,7 +186,7 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.foo.get.servers.server1.Variables; +import org.openapijsonschematools.client.paths.foo.get.servers.server1.FooGetServer1Variables; import java.util.Arrays; import java.util.List; @@ -195,7 +195,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Variables.Version.validate( +String validatedPayload = FooGetServer1Variables.FooGetServer1Variables2.validate( "v1", configuration ); @@ -212,14 +212,14 @@ String validatedPayload = Variables.Version.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | -| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringFooGetServer1Variables3](#stringfoogetserver1variables3) arg, SchemaConfiguration configuration) | +| [FooGetServer1Variables2BoxedString](#foogetserver1variables2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [FooGetServer1Variables2Boxed](#foogetserver1variables2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringVersionEnums -public enum StringVersionEnums
-extends `Enum` +## StringFooGetServer1Variables3 +public enum StringFooGetServer1Variables3
+extends `Enum` A class that stores String enum values @@ -229,28 +229,28 @@ A class that stores String enum values | V1 | value = "v1" | | V2 | value = "v2" | -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
+## FooGetServer1Variables6Boxed +public sealed interface FooGetServer1Variables6Boxed
permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) +[FooGetServer1Variables6BoxedVoid](#foogetserver1variables6boxedvoid), +[FooGetServer1Variables6BoxedBoolean](#foogetserver1variables6boxedboolean), +[FooGetServer1Variables6BoxedNumber](#foogetserver1variables6boxednumber), +[FooGetServer1Variables6BoxedString](#foogetserver1variables6boxedstring), +[FooGetServer1Variables6BoxedList](#foogetserver1variables6boxedlist), +[FooGetServer1Variables6BoxedMap](#foogetserver1variables6boxedmap) sealed interface that stores validated payloads using boxed classes -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## FooGetServer1Variables6BoxedVoid +public record FooGetServer1Variables6BoxedVoid
+implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FooGetServer1Variables6BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## FooGetServer1Variables6BoxedBoolean +public record FooGetServer1Variables6BoxedBoolean
+implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FooGetServer1Variables6BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## FooGetServer1Variables6BoxedNumber +public record FooGetServer1Variables6BoxedNumber
+implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FooGetServer1Variables6BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,16 +292,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## FooGetServer1Variables6BoxedString +public record FooGetServer1Variables6BoxedString
+implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FooGetServer1Variables6BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -309,16 +309,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## FooGetServer1Variables6BoxedList +public record FooGetServer1Variables6BoxedList
+implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FooGetServer1Variables6BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -326,16 +326,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## FooGetServer1Variables6BoxedMap +public record FooGetServer1Variables6BoxedMap
+implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FooGetServer1Variables6BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -343,8 +343,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalProperties -public static class AdditionalProperties
+## FooGetServer1Variables6 +public static class FooGetServer1Variables6
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/pet/PetPost.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md index f85592d44b8..2e27fdc6e7a 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPost.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPost.md @@ -34,7 +34,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; import org.openapijsonschematools.client.components.schemas.Pet; @@ -47,7 +47,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpSignatur import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode200Response; import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode405Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.pet.PetPost; import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; @@ -59,14 +59,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -185,7 +185,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PetPostRequestBody.SealedRequestBody](../../paths/pet/post/PetPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetPostSecurityInfo.@Nullable SecurityIndex](../../paths/pet/post/PetPostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -198,7 +198,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PetPostRequestBody.@Nullable SealedRequestBody](../../paths/pet/post/PetPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetPostSecurityInfo.@Nullable SecurityIndex](../../paths/pet/post/PetPostSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -216,7 +216,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | securityIndex([PetPostSecurityInfo.SecurityIndex](../../paths/pet/post/PetPostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/pet/PetPut.md b/samples/client/petstore/java/docs/paths/pet/PetPut.md index db797630ba3..3d25ceceba2 100644 --- a/samples/client/petstore/java/docs/paths/pet/PetPut.md +++ b/samples/client/petstore/java/docs/paths/pet/PetPut.md @@ -34,7 +34,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; import org.openapijsonschematools.client.components.schemas.Pet; @@ -47,7 +47,7 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode400Response; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode404Response; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode405Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.pet.PetPut; import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; @@ -59,14 +59,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() @@ -181,7 +181,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PetPutRequestBody.SealedRequestBody](../../paths/pet/put/PetPutRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetPutSecurityInfo.@Nullable SecurityIndex](../../paths/pet/put/PetPutSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -194,7 +194,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PetPutRequestBody.@Nullable SealedRequestBody](../../paths/pet/put/PetPutRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetPutSecurityInfo.@Nullable SecurityIndex](../../paths/pet/put/PetPutSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -212,7 +212,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Put0RequestBuilder](#put0requestbuilder) | securityIndex([PetPutSecurityInfo.SecurityIndex](../../paths/pet/put/PetPutSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md index 1417178681c..0eacdafd288 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md @@ -7,10 +7,10 @@ A class that stores a server url | Constructor and Description | | --------------------------- | | PetfindbystatusServer1()
Creates a server using default values for variables | -| PetfindbystatusServer1([Variables.VariablesMap](../../../paths/petfindbystatus/servers/server1/Variables.md#variablesmap) variables)
Creates a server using input values for variables | +| PetfindbystatusServer1([PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11](../../../paths/petfindbystatus/servers/server1/Variables.md#petfindbystatusserver1variables11) variables)
Creates a server using input values for variables | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | | String | url = "https://petstore.swagger.io/{version}" | -| [Variables.VariablesMap](../../../paths/petfindbystatus/servers/server1/Variables.md#variablesmap) | variables | +| [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11](../../../paths/petfindbystatus/servers/server1/Variables.md#petfindbystatusserver1variables11) | variables | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md index 63d2b5d720b..8d8e3c9c7f9 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md @@ -1,5 +1,5 @@ -# Variables -public class Variables
+# PetfindbystatusServer1Variables +public class PetfindbystatusServer1Variables
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -12,50 +12,50 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
sealed interface for validated payloads | -| record | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | -| static class | [Variables.Variables1](#variables1)
schema class | -| static class | [Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | -| static class | [Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| sealed interface | [Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | -| record | [Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | -| static class | [Variables.Version](#version)
schema class | -| enum | [Variables.StringVersionEnums](#stringversionenums)
String enum | -| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Variables.AdditionalProperties](#additionalproperties)
schema class | - -## Variables1Boxed -public sealed interface Variables1Boxed
+| sealed interface | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed)
sealed interface for validated payloads | +| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1](#petfindbystatusserver1variables1)
schema class | +| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables10](#petfindbystatusserver1variables10)
builder for Map payloads | +| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11](#petfindbystatusserver1variables11)
output class for Map payloads | +| sealed interface | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables2Boxed](#petfindbystatusserver1variables2boxed)
sealed interface for validated payloads | +| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables2BoxedString](#petfindbystatusserver1variables2boxedstring)
boxed class to store validated String payloads | +| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables2](#petfindbystatusserver1variables2)
schema class | +| enum | [PetfindbystatusServer1Variables.StringPetfindbystatusServer1Variables3](#stringpetfindbystatusserver1variables3)
String enum | +| sealed interface | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed)
sealed interface for validated payloads | +| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedVoid](#petfindbystatusserver1variables6boxedvoid)
boxed class to store validated null payloads | +| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedBoolean](#petfindbystatusserver1variables6boxedboolean)
boxed class to store validated boolean payloads | +| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedNumber](#petfindbystatusserver1variables6boxednumber)
boxed class to store validated Number payloads | +| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedString](#petfindbystatusserver1variables6boxedstring)
boxed class to store validated String payloads | +| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedList](#petfindbystatusserver1variables6boxedlist)
boxed class to store validated List payloads | +| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedMap](#petfindbystatusserver1variables6boxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6](#petfindbystatusserver1variables6)
schema class | + +## PetfindbystatusServer1Variables1Boxed +public sealed interface PetfindbystatusServer1Variables1Boxed
permits
-[Variables1BoxedMap](#variables1boxedmap) +[PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap) sealed interface that stores validated payloads using boxed classes -## Variables1BoxedMap -public record Variables1BoxedMap
-implements [Variables1Boxed](#variables1boxed) +## PetfindbystatusServer1Variables1BoxedMap +public record PetfindbystatusServer1Variables1BoxedMap
+implements [PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | +| PetfindbystatusServer1Variables1BoxedMap([PetfindbystatusServer1Variables11](#petfindbystatusserver1variables11) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | data()
validated payload | +| [PetfindbystatusServer1Variables11](#petfindbystatusserver1variables11) | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Variables1 -public static class Variables1
+## PetfindbystatusServer1Variables1 +public static class PetfindbystatusServer1Variables1
extends JsonSchema A schema class that validates payloads @@ -68,7 +68,7 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.Variables; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.PetfindbystatusServer1Variables; import java.util.Arrays; import java.util.List; @@ -77,9 +77,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Variables.VariablesMap validatedPayload = - Variables.Variables1.validate( - new Variables.VariablesMapBuilder() +PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11 validatedPayload = + PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1.validate( + new PetfindbystatusServer1Variables.PetfindbystatusServer1Variables10() .version("v1") .build(), @@ -91,20 +91,20 @@ Variables.VariablesMap validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [PetfindbystatusServer1Variables2.class](#petfindbystatusserver1variables2)))
)
| | Set | required = Set.of(
    "version"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | +| Class | additionalProperties = [PetfindbystatusServer1Variables6.class](#petfindbystatusserver1variables6) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Variables1BoxedMap](#variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Variables1Boxed](#variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| [PetfindbystatusServer1Variables11](#petfindbystatusserver1variables11) | validate([Map<?, ?>](#petfindbystatusserver1variables10) arg, SchemaConfiguration configuration) | +| [PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#petfindbystatusserver1variables10) arg, SchemaConfiguration configuration) | +| [PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## VariablesMap0Builder -public class VariablesMap0Builder
+## PetfindbystatusServer1Variables12 +public class PetfindbystatusServer1Variables12
builder for `Map` A class that builds the Map input type @@ -112,15 +112,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| PetfindbystatusServer1Variables12(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## VariablesMapBuilder -public class VariablesMapBuilder
+## PetfindbystatusServer1Variables10 +public class PetfindbystatusServer1Variables10
builder for `Map` A class that builds the Map input type @@ -128,16 +128,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| VariablesMapBuilder()
Creates a builder that contains an empty map | +| PetfindbystatusServer1Variables10()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | -| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | +| [PetfindbystatusServer1Variables12](#petfindbystatusserver1variables12) | version(String value) | +| [PetfindbystatusServer1Variables12](#petfindbystatusserver1variables12) | version([StringPetfindbystatusServer1Variables3](#stringpetfindbystatusserver1variables3) value) | -## VariablesMap -public static class VariablesMap
+## PetfindbystatusServer1Variables11 +public static class PetfindbystatusServer1Variables11
extends FrozenMap A class to store validated Map payloads @@ -145,26 +145,26 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| static [PetfindbystatusServer1Variables11](#petfindbystatusserver1variables11) | of([Map](#petfindbystatusserver1variables10) arg, SchemaConfiguration configuration) | | String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v1 | -## VersionBoxed -public sealed interface VersionBoxed
+## PetfindbystatusServer1Variables2Boxed +public sealed interface PetfindbystatusServer1Variables2Boxed
permits
-[VersionBoxedString](#versionboxedstring) +[PetfindbystatusServer1Variables2BoxedString](#petfindbystatusserver1variables2boxedstring) sealed interface that stores validated payloads using boxed classes -## VersionBoxedString -public record VersionBoxedString
-implements [VersionBoxed](#versionboxed) +## PetfindbystatusServer1Variables2BoxedString +public record PetfindbystatusServer1Variables2BoxedString
+implements [PetfindbystatusServer1Variables2Boxed](#petfindbystatusserver1variables2boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| VersionBoxedString(String data)
Creates an instance, private visibility | +| PetfindbystatusServer1Variables2BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,8 +172,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Version -public static class Version
+## PetfindbystatusServer1Variables2 +public static class PetfindbystatusServer1Variables2
extends JsonSchema A schema class that validates payloads @@ -186,7 +186,7 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.Variables; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.PetfindbystatusServer1Variables; import java.util.Arrays; import java.util.List; @@ -195,7 +195,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Variables.Version.validate( +String validatedPayload = PetfindbystatusServer1Variables.PetfindbystatusServer1Variables2.validate( "v1", configuration ); @@ -212,14 +212,14 @@ String validatedPayload = Variables.Version.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | -| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringPetfindbystatusServer1Variables3](#stringpetfindbystatusserver1variables3) arg, SchemaConfiguration configuration) | +| [PetfindbystatusServer1Variables2BoxedString](#petfindbystatusserver1variables2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [PetfindbystatusServer1Variables2Boxed](#petfindbystatusserver1variables2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringVersionEnums -public enum StringVersionEnums
-extends `Enum` +## StringPetfindbystatusServer1Variables3 +public enum StringPetfindbystatusServer1Variables3
+extends `Enum` A class that stores String enum values @@ -229,28 +229,28 @@ A class that stores String enum values | V1 | value = "v1" | | V2 | value = "v2" | -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
+## PetfindbystatusServer1Variables6Boxed +public sealed interface PetfindbystatusServer1Variables6Boxed
permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) +[PetfindbystatusServer1Variables6BoxedVoid](#petfindbystatusserver1variables6boxedvoid), +[PetfindbystatusServer1Variables6BoxedBoolean](#petfindbystatusserver1variables6boxedboolean), +[PetfindbystatusServer1Variables6BoxedNumber](#petfindbystatusserver1variables6boxednumber), +[PetfindbystatusServer1Variables6BoxedString](#petfindbystatusserver1variables6boxedstring), +[PetfindbystatusServer1Variables6BoxedList](#petfindbystatusserver1variables6boxedlist), +[PetfindbystatusServer1Variables6BoxedMap](#petfindbystatusserver1variables6boxedmap) sealed interface that stores validated payloads using boxed classes -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## PetfindbystatusServer1Variables6BoxedVoid +public record PetfindbystatusServer1Variables6BoxedVoid
+implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| PetfindbystatusServer1Variables6BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## PetfindbystatusServer1Variables6BoxedBoolean +public record PetfindbystatusServer1Variables6BoxedBoolean
+implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| PetfindbystatusServer1Variables6BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## PetfindbystatusServer1Variables6BoxedNumber +public record PetfindbystatusServer1Variables6BoxedNumber
+implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| PetfindbystatusServer1Variables6BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,16 +292,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## PetfindbystatusServer1Variables6BoxedString +public record PetfindbystatusServer1Variables6BoxedString
+implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| PetfindbystatusServer1Variables6BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -309,16 +309,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## PetfindbystatusServer1Variables6BoxedList +public record PetfindbystatusServer1Variables6BoxedList
+implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| PetfindbystatusServer1Variables6BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -326,16 +326,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## PetfindbystatusServer1Variables6BoxedMap +public record PetfindbystatusServer1Variables6BoxedMap
+implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| PetfindbystatusServer1Variables6BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -343,8 +343,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalProperties -public static class AdditionalProperties
+## PetfindbystatusServer1Variables6 +public static class PetfindbystatusServer1Variables6
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index 64a600e9ce1..918084ba11b 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -34,7 +34,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; import org.openapijsonschematools.client.servers.Server0; @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.components.securityschemes.HttpSignatur import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode200Response; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.petfindbytags.PetfindbytagsGet; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() @@ -153,7 +153,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -166,7 +166,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PetfindbytagsGetQueryParameters.@Nullable PetfindbytagsGetQueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -184,7 +184,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | securityIndex([PetfindbytagsGetSecurityInfo.SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index cc41b321f94..13179767d25 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -35,7 +35,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.delete.responses.PetpetidDeleteCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.PetpetidDelete; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -152,7 +152,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [PetpetidDeletePathParameters.PetpetidDeletePathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparametersmap) | pathParameters | | [PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparametersmap) | headerParameters
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -166,7 +166,7 @@ a class that stores the initial request inputs | ----------------- | --------------------- | | [PetpetidDeletePathParameters.@Nullable PetpetidDeletePathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparametersmap) | pathParameters | | [PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparametersmap) | headerParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -185,7 +185,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | | [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([PetpetidDeleteHeaderParametersPetpetidDeleteHeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparametersmap) headerParameters)
sets the optional property | -| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | securityIndex([PetpetidDeleteSecurityInfo.SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md index 6b80e49e7a9..2776b7cc1c5 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -34,7 +34,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode200Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode400Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.PetpetidGet; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -158,7 +158,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PetpetidGetPathParameters.PetpetidGetPathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -171,7 +171,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [PetpetidGetPathParameters.@Nullable PetpetidGetPathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -189,7 +189,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | securityIndex([PetpetidGetSecurityInfo.SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index d9423398066..3ca2ac17a45 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -35,7 +35,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.post.responses.PetpetidPostCode405Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.PetpetidPost; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -152,7 +152,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [PetpetidPostPathParameters.PetpetidPostPathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparametersmap) | pathParameters | | [PetpetidPostRequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -166,7 +166,7 @@ a class that stores the initial request inputs | ----------------- | --------------------- | | [PetpetidPostPathParameters.@Nullable PetpetidPostPathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparametersmap) | pathParameters | | [PetpetidPostRequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -185,7 +185,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([PetpetidPostRequestBody.SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | securityIndex([PetpetidPostSecurityInfo.SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index c25a030e6f9..ba3e2cb304a 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -35,7 +35,7 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; import org.openapijsonschematools.client.servers.Server0; @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.PetpetiduploadimagePostCode200Response; import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.PetpetiduploadimagePost; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() @@ -148,7 +148,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparametersmap) | pathParameters | | [PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -162,7 +162,7 @@ a class that stores the initial request inputs | ----------------- | --------------------- | | [PetpetiduploadimagePostPathParameters.@Nullable PetpetiduploadimagePostPathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparametersmap) | pathParameters | | [PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -181,7 +181,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([PetpetiduploadimagePostRequestBody.SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | securityIndex([PetpetiduploadimagePostSecurityInfo.SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md index ef3045fa03e..ce808d7f2aa 100644 --- a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md +++ b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md @@ -32,12 +32,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.solidus.SolidusGet; import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; @@ -49,14 +49,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -119,7 +119,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -136,7 +136,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md index 510102813d9..e5c9e1ce8b0 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md @@ -32,7 +32,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -41,7 +41,7 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.storeinventory.get.responses.StoreinventoryGetCode200Response; import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.storeinventory.StoreinventoryGet; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -133,7 +133,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [StoreinventoryGetSecurityInfo.@Nullable SecurityIndex](../../paths/storeinventory/get/StoreinventoryGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -151,7 +151,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | securityIndex([StoreinventoryGetSecurityInfo.SecurityIndex](../../paths/storeinventory/get/StoreinventoryGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md index 99523a2c9e8..6c9f06eaee0 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md +++ b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md @@ -34,7 +34,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; import org.openapijsonschematools.client.components.schemas.Order; import org.openapijsonschematools.client.servers.Server0; @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode200Response; import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.storeorder.StoreorderPost; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; @@ -54,14 +54,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -156,7 +156,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [StoreorderPostRequestBody.SealedRequestBody](../../paths/storeorder/post/StoreorderPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostNullableRequest @@ -168,7 +168,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [StoreorderPostRequestBody.@Nullable SealedRequestBody](../../paths/storeorder/post/StoreorderPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Post0RequestBuilder @@ -185,7 +185,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PostRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index 0ddee677b41..6bf30424e9f 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode400Response; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidDelete; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -138,7 +138,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## DeleteNullableRequest @@ -150,7 +150,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [StoreorderorderidDeletePathParameters.@Nullable StoreorderorderidDeletePathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Delete0RequestBuilder @@ -167,7 +167,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## DeleteRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md index b19ea973f21..0b4861b3f9f 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -34,7 +34,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode200Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode400Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidGet; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; @@ -54,14 +54,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -146,7 +146,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetNullableRequest @@ -158,7 +158,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [StoreorderorderidGetPathParameters.@Nullable StoreorderorderidGetPathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Get0RequestBuilder @@ -175,7 +175,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## GetRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/user/UserPost.md b/samples/client/petstore/java/docs/paths/user/UserPost.md index 5c862eec1e8..56bf1935d56 100644 --- a/samples/client/petstore/java/docs/paths/user/UserPost.md +++ b/samples/client/petstore/java/docs/paths/user/UserPost.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.user.post.responses.UserPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.user.UserPost; import org.openapijsonschematools.client.paths.user.post.UserPostResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -152,7 +152,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserPostRequestBody.SealedRequestBody](../../paths/user/post/UserPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostNullableRequest @@ -164,7 +164,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserPostRequestBody.@Nullable SealedRequestBody](../../paths/user/post/UserPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Post0RequestBuilder @@ -181,7 +181,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PostRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md index 1e9a084e1f7..1e06ba10bb3 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.UsercreatewitharrayPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.usercreatewitharray.UsercreatewitharrayPost; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -174,7 +174,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UsercreatewitharrayPostRequestBody.SealedRequestBody](../../paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostNullableRequest @@ -186,7 +186,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UsercreatewitharrayPostRequestBody.@Nullable SealedRequestBody](../../paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Post0RequestBuilder @@ -203,7 +203,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PostRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md index d570398c312..e4e6b7115f8 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.UsercreatewithlistPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.usercreatewithlist.UsercreatewithlistPost; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -174,7 +174,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UsercreatewithlistPostRequestBody.SealedRequestBody](../../paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PostNullableRequest @@ -186,7 +186,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UsercreatewithlistPostRequestBody.@Nullable SealedRequestBody](../../paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md#sealedrequestbody) | requestBody | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Post0RequestBuilder @@ -203,7 +203,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## PostRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md index ef2590053d7..25efd5b2019 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -34,7 +34,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode200Response; import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode400Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.userlogin.UserloginGet; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; @@ -54,14 +54,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -148,7 +148,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserloginGetQueryParameters.UserloginGetQueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetNullableRequest @@ -160,7 +160,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserloginGetQueryParameters.@Nullable UserloginGetQueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparametersmap) | queryParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Get0RequestBuilder @@ -177,7 +177,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## GetRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md index 77e481cc6fa..956ee1d3dec 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md +++ b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md @@ -32,12 +32,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userlogout.get.responses.UserlogoutGetCodedefaultResponse; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.userlogout.UserlogoutGet; import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; @@ -49,14 +49,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -119,7 +119,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetRequestBuilder @@ -136,7 +136,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md index ce2f2269bc6..3605aea42d2 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -34,14 +34,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode200Response; import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.userusername.UserusernameDelete; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; @@ -53,14 +53,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -139,7 +139,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserusernameDeletePathParameters.UserusernameDeletePathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## DeleteNullableRequest @@ -151,7 +151,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserusernameDeletePathParameters.@Nullable UserusernameDeletePathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Delete0RequestBuilder @@ -168,7 +168,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## DeleteRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md index 4e9dcabca20..fbded70ef91 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -34,7 +34,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; @@ -42,7 +42,7 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode200Response; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode400Response; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.userusername.UserusernameGet; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; @@ -54,14 +54,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -146,7 +146,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserusernameGetPathParameters.UserusernameGetPathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## GetNullableRequest @@ -158,7 +158,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserusernameGetPathParameters.@Nullable UserusernameGetPathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Get0RequestBuilder @@ -175,7 +175,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## GetRequestBuilder diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index 3b4a9608c39..a875c8baa8c 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -36,7 +36,7 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; @@ -45,7 +45,7 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode400Response; import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode404Response; -import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.servers.ServerInfo; import org.openapijsonschematools.client.paths.userusername.UserusernamePut; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; @@ -57,14 +57,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .rootServerInfo( - new RootServerInfo.RootServerInfoBuilder() + .serverInfo( + new ServerInfo.ServerInfoBuilder() .server0(new Server0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -170,7 +170,7 @@ a class that stores the final request inputs | ----------------- | --------------------- | | [UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | | [UserusernamePutPathParameters.UserusernamePutPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | ## PutNullableRequest @@ -183,7 +183,7 @@ a class that stores the initial request inputs | ----------------- | --------------------- | | [UserusernamePutRequestBody.@Nullable SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | | [UserusernamePutPathParameters.@Nullable UserusernamePutPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparametersmap) | pathParameters | -| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | ## Put00RequestBuilder @@ -200,7 +200,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put00RequestBuilder](#put00requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put00RequestBuilder](#put00requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Put00RequestBuilder](#put00requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | ## Put01RequestBuilder diff --git a/samples/client/petstore/java/docs/servers/Server0.md b/samples/client/petstore/java/docs/servers/Server0.md index 199ec6ccd47..a677b924452 100644 --- a/samples/client/petstore/java/docs/servers/Server0.md +++ b/samples/client/petstore/java/docs/servers/Server0.md @@ -11,12 +11,12 @@ petstore server | Constructor and Description | | --------------------------- | | Server0()
Creates a server using default values for variables | -| Server0([Variables.VariablesMap](../servers/server0/Variables.md#variablesmap) variables)
Creates a server using input values for variables | +| Server0([Server0Variables.Server0Variables20](../servers/server0/Server0Variables3.md#server0variables20) variables)
Creates a server using input values for variables | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | | String | url = "http://{server}.swagger.io:{port}/v2" | -| [Variables.VariablesMap](../servers/server0/Variables.md#variablesmap) | variables | +| [Server0Variables.Server0Variables20](../servers/server0/Server0Variables3.md#server0variables20) | variables | [[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/Server1.md b/samples/client/petstore/java/docs/servers/Server1.md index 8c170c320c6..5c5ca16abaf 100644 --- a/samples/client/petstore/java/docs/servers/Server1.md +++ b/samples/client/petstore/java/docs/servers/Server1.md @@ -11,12 +11,12 @@ The local server | Constructor and Description | | --------------------------- | | Server1()
Creates a server using default values for variables | -| Server1([Variables.VariablesMap](../servers/server1/Variables.md#variablesmap) variables)
Creates a server using input values for variables | +| Server1([Server1Variables.Server1Variables16](../servers/server1/Server1Variables3.md#server1variables16) variables)
Creates a server using input values for variables | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | | String | url = "https://localhost:8080/{version}" | -| [Variables.VariablesMap](../servers/server1/Variables.md#variablesmap) | variables | +| [Server1Variables.Server1Variables16](../servers/server1/Server1Variables3.md#server1variables16) | variables | [[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/server0/Variables.md b/samples/client/petstore/java/docs/servers/server0/Server0Variables25.md similarity index 53% rename from samples/client/petstore/java/docs/servers/server0/Variables.md rename to samples/client/petstore/java/docs/servers/server0/Server0Variables25.md index ab6b62a39a3..3cffab6237a 100644 --- a/samples/client/petstore/java/docs/servers/server0/Variables.md +++ b/samples/client/petstore/java/docs/servers/server0/Server0Variables25.md @@ -1,5 +1,5 @@ -# Variables -public class Variables
+# Server0Variables +public class Server0Variables
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -12,54 +12,54 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
sealed interface for validated payloads | -| record | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | -| static class | [Variables.Variables1](#variables1)
schema class | -| static class | [Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | -| static class | [Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| sealed interface | [Variables.PortBoxed](#portboxed)
sealed interface for validated payloads | -| record | [Variables.PortBoxedString](#portboxedstring)
boxed class to store validated String payloads | -| static class | [Variables.Port](#port)
schema class | -| enum | [Variables.StringPortEnums](#stringportenums)
String enum | -| sealed interface | [Variables.ServerBoxed](#serverboxed)
sealed interface for validated payloads | -| record | [Variables.ServerBoxedString](#serverboxedstring)
boxed class to store validated String payloads | -| static class | [Variables.Server](#server)
schema class | -| enum | [Variables.StringServerEnums](#stringserverenums)
String enum | -| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Variables.AdditionalProperties](#additionalproperties)
schema class | - -## Variables1Boxed -public sealed interface Variables1Boxed
+| sealed interface | [Server0Variables.Server0Variables1Boxed](#server0variables1boxed)
sealed interface for validated payloads | +| record | [Server0Variables.Server0Variables1BoxedMap](#server0variables1boxedmap)
boxed class to store validated Map payloads | +| static class | [Server0Variables.Server0Variables1](#server0variables1)
schema class | +| static class | [Server0Variables.Server0Variables19](#server0variables19)
builder for Map payloads | +| static class | [Server0Variables.Server0Variables20](#server0variables20)
output class for Map payloads | +| sealed interface | [Server0Variables.Server0Variables8Boxed](#server0variables8boxed)
sealed interface for validated payloads | +| record | [Server0Variables.Server0Variables8BoxedString](#server0variables8boxedstring)
boxed class to store validated String payloads | +| static class | [Server0Variables.Server0Variables8](#server0variables8)
schema class | +| enum | [Server0Variables.StringServer0Variables10](#stringserver0variables10)
String enum | +| sealed interface | [Server0Variables.Server0Variables4Boxed](#server0variables4boxed)
sealed interface for validated payloads | +| record | [Server0Variables.Server0Variables4BoxedString](#server0variables4boxedstring)
boxed class to store validated String payloads | +| static class | [Server0Variables.Server0Variables4](#server0variables4)
schema class | +| enum | [Server0Variables.StringServer0Variables6](#stringserver0variables6)
String enum | +| sealed interface | [Server0Variables.Server0Variables13Boxed](#server0variables13boxed)
sealed interface for validated payloads | +| record | [Server0Variables.Server0Variables13BoxedVoid](#server0variables13boxedvoid)
boxed class to store validated null payloads | +| record | [Server0Variables.Server0Variables13BoxedBoolean](#server0variables13boxedboolean)
boxed class to store validated boolean payloads | +| record | [Server0Variables.Server0Variables13BoxedNumber](#server0variables13boxednumber)
boxed class to store validated Number payloads | +| record | [Server0Variables.Server0Variables13BoxedString](#server0variables13boxedstring)
boxed class to store validated String payloads | +| record | [Server0Variables.Server0Variables13BoxedList](#server0variables13boxedlist)
boxed class to store validated List payloads | +| record | [Server0Variables.Server0Variables13BoxedMap](#server0variables13boxedmap)
boxed class to store validated Map payloads | +| static class | [Server0Variables.Server0Variables13](#server0variables13)
schema class | + +## Server0Variables1Boxed +public sealed interface Server0Variables1Boxed
permits
-[Variables1BoxedMap](#variables1boxedmap) +[Server0Variables1BoxedMap](#server0variables1boxedmap) sealed interface that stores validated payloads using boxed classes -## Variables1BoxedMap -public record Variables1BoxedMap
-implements [Variables1Boxed](#variables1boxed) +## Server0Variables1BoxedMap +public record Server0Variables1BoxedMap
+implements [Server0Variables1Boxed](#server0variables1boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | +| Server0Variables1BoxedMap([Server0Variables20](#server0variables20) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | data()
validated payload | +| [Server0Variables20](#server0variables20) | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Variables1 -public static class Variables1
+## Server0Variables1 +public static class Server0Variables1
extends JsonSchema A schema class that validates payloads @@ -72,7 +72,7 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.servers.server0.Variables; +import org.openapijsonschematools.client.servers.server0.Server0Variables; import java.util.Arrays; import java.util.List; @@ -81,9 +81,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Variables.VariablesMap validatedPayload = - Variables.Variables1.validate( - new Variables.VariablesMapBuilder() +Server0Variables.Server0Variables20 validatedPayload = + Server0Variables.Server0Variables1.validate( + new Server0Variables.Server0Variables19() .port("80") .server("petstore") @@ -97,20 +97,20 @@ Variables.VariablesMap validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("server", [Server.class](#server))),
    new PropertyEntry("port", [Port.class](#port)))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("server", [Server0Variables4.class](#server0variables4))),
    new PropertyEntry("port", [Server0Variables8.class](#server0variables8)))
)
| | Set | required = Set.of(
    "port",
    "server"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | +| Class | additionalProperties = [Server0Variables13.class](#server0variables13) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Variables1BoxedMap](#variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Variables1Boxed](#variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| [Server0Variables20](#server0variables20) | validate([Map<?, ?>](#server0variables19) arg, SchemaConfiguration configuration) | +| [Server0Variables1BoxedMap](#server0variables1boxedmap) | validateAndBox([Map<?, ?>](#server0variables19) arg, SchemaConfiguration configuration) | +| [Server0Variables1Boxed](#server0variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## VariablesMap00Builder -public class VariablesMap00Builder
+## Server0Variables21 +public class Server0Variables21
builder for `Map` A class that builds the Map input type @@ -118,15 +118,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| VariablesMap00Builder(Map instance)
Creates a builder that contains the passed instance | +| Server0Variables21(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## VariablesMap01Builder -public class VariablesMap01Builder
+## Server0Variables22 +public class Server0Variables22
builder for `Map` A class that builds the Map input type @@ -134,16 +134,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| VariablesMap01Builder(Map instance)
Creates a builder that contains the passed instance | +| Server0Variables22(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap00Builder](#variablesmap00builder) | server(String value) | -| [VariablesMap00Builder](#variablesmap00builder) | server([StringServerEnums](#stringserverenums) value) | +| [Server0Variables21](#server0variables21) | server(String value) | +| [Server0Variables21](#server0variables21) | server([StringServer0Variables6](#stringserver0variables6) value) | -## VariablesMap10Builder -public class VariablesMap10Builder
+## Server0Variables23 +public class Server0Variables23
builder for `Map` A class that builds the Map input type @@ -151,16 +151,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| VariablesMap10Builder(Map instance)
Creates a builder that contains the passed instance | +| Server0Variables23(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap00Builder](#variablesmap00builder) | port(String value) | -| [VariablesMap00Builder](#variablesmap00builder) | port([StringPortEnums](#stringportenums) value) | +| [Server0Variables21](#server0variables21) | port(String value) | +| [Server0Variables21](#server0variables21) | port([StringServer0Variables10](#stringserver0variables10) value) | -## VariablesMapBuilder -public class VariablesMapBuilder
+## Server0Variables19 +public class Server0Variables19
builder for `Map` A class that builds the Map input type @@ -168,18 +168,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| VariablesMapBuilder()
Creates a builder that contains an empty map | +| Server0Variables19()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap01Builder](#variablesmap01builder) | port(String value) | -| [VariablesMap01Builder](#variablesmap01builder) | port([StringPortEnums](#stringportenums) value) | -| [VariablesMap10Builder](#variablesmap10builder) | server(String value) | -| [VariablesMap10Builder](#variablesmap10builder) | server([StringServerEnums](#stringserverenums) value) | +| [Server0Variables22](#server0variables22) | port(String value) | +| [Server0Variables22](#server0variables22) | port([StringServer0Variables10](#stringserver0variables10) value) | +| [Server0Variables23](#server0variables23) | server(String value) | +| [Server0Variables23](#server0variables23) | server([StringServer0Variables6](#stringserver0variables6) value) | -## VariablesMap -public static class VariablesMap
+## Server0Variables20 +public static class Server0Variables20
extends FrozenMap A class to store validated Map payloads @@ -187,27 +187,27 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| static [Server0Variables20](#server0variables20) | of([Map](#server0variables19) arg, SchemaConfiguration configuration) | | String | port()
must be one of ["80", "8080"] if omitted the server will use the default value of 80 | | String | server()
must be one of ["petstore", "qa-petstore", "dev-petstore"] if omitted the server will use the default value of petstore | -## PortBoxed -public sealed interface PortBoxed
+## Server0Variables8Boxed +public sealed interface Server0Variables8Boxed
permits
-[PortBoxedString](#portboxedstring) +[Server0Variables8BoxedString](#server0variables8boxedstring) sealed interface that stores validated payloads using boxed classes -## PortBoxedString -public record PortBoxedString
-implements [PortBoxed](#portboxed) +## Server0Variables8BoxedString +public record Server0Variables8BoxedString
+implements [Server0Variables8Boxed](#server0variables8boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PortBoxedString(String data)
Creates an instance, private visibility | +| Server0Variables8BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -215,8 +215,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Port -public static class Port
+## Server0Variables8 +public static class Server0Variables8
extends JsonSchema A schema class that validates payloads @@ -232,7 +232,7 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.servers.server0.Variables; +import org.openapijsonschematools.client.servers.server0.Server0Variables; import java.util.Arrays; import java.util.List; @@ -241,7 +241,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Variables.Port.validate( +String validatedPayload = Server0Variables.Server0Variables8.validate( "80", configuration ); @@ -258,14 +258,14 @@ String validatedPayload = Variables.Port.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringPortEnums](#stringportenums) arg, SchemaConfiguration configuration) | -| [PortBoxedString](#portboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [PortBoxed](#portboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringServer0Variables10](#stringserver0variables10) arg, SchemaConfiguration configuration) | +| [Server0Variables8BoxedString](#server0variables8boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Server0Variables8Boxed](#server0variables8boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringPortEnums -public enum StringPortEnums
-extends `Enum` +## StringServer0Variables10 +public enum StringServer0Variables10
+extends `Enum` A class that stores String enum values @@ -275,23 +275,23 @@ A class that stores String enum values | POSITIVE_80 | value = "80" | | POSITIVE_8080 | value = "8080" | -## ServerBoxed -public sealed interface ServerBoxed
+## Server0Variables4Boxed +public sealed interface Server0Variables4Boxed
permits
-[ServerBoxedString](#serverboxedstring) +[Server0Variables4BoxedString](#server0variables4boxedstring) sealed interface that stores validated payloads using boxed classes -## ServerBoxedString -public record ServerBoxedString
-implements [ServerBoxed](#serverboxed) +## Server0Variables4BoxedString +public record Server0Variables4BoxedString
+implements [Server0Variables4Boxed](#server0variables4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| ServerBoxedString(String data)
Creates an instance, private visibility | +| Server0Variables4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -299,8 +299,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server -public static class Server
+## Server0Variables4 +public static class Server0Variables4
extends JsonSchema A schema class that validates payloads @@ -316,7 +316,7 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.servers.server0.Variables; +import org.openapijsonschematools.client.servers.server0.Server0Variables; import java.util.Arrays; import java.util.List; @@ -325,7 +325,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Variables.Server.validate( +String validatedPayload = Server0Variables.Server0Variables4.validate( "petstore", configuration ); @@ -342,14 +342,14 @@ String validatedPayload = Variables.Server.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringServerEnums](#stringserverenums) arg, SchemaConfiguration configuration) | -| [ServerBoxedString](#serverboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ServerBoxed](#serverboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringServer0Variables6](#stringserver0variables6) arg, SchemaConfiguration configuration) | +| [Server0Variables4BoxedString](#server0variables4boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Server0Variables4Boxed](#server0variables4boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringServerEnums -public enum StringServerEnums
-extends `Enum` +## StringServer0Variables6 +public enum StringServer0Variables6
+extends `Enum` A class that stores String enum values @@ -360,28 +360,28 @@ A class that stores String enum values | QA_HYPHEN_MINUS_PETSTORE | value = "qa-petstore" | | DEV_HYPHEN_MINUS_PETSTORE | value = "dev-petstore" | -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
+## Server0Variables13Boxed +public sealed interface Server0Variables13Boxed
permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) +[Server0Variables13BoxedVoid](#server0variables13boxedvoid), +[Server0Variables13BoxedBoolean](#server0variables13boxedboolean), +[Server0Variables13BoxedNumber](#server0variables13boxednumber), +[Server0Variables13BoxedString](#server0variables13boxedstring), +[Server0Variables13BoxedList](#server0variables13boxedlist), +[Server0Variables13BoxedMap](#server0variables13boxedmap) sealed interface that stores validated payloads using boxed classes -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server0Variables13BoxedVoid +public record Server0Variables13BoxedVoid
+implements [Server0Variables13Boxed](#server0variables13boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| Server0Variables13BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -389,16 +389,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server0Variables13BoxedBoolean +public record Server0Variables13BoxedBoolean
+implements [Server0Variables13Boxed](#server0variables13boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| Server0Variables13BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -406,16 +406,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server0Variables13BoxedNumber +public record Server0Variables13BoxedNumber
+implements [Server0Variables13Boxed](#server0variables13boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| Server0Variables13BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -423,16 +423,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server0Variables13BoxedString +public record Server0Variables13BoxedString
+implements [Server0Variables13Boxed](#server0variables13boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| Server0Variables13BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -440,16 +440,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server0Variables13BoxedList +public record Server0Variables13BoxedList
+implements [Server0Variables13Boxed](#server0variables13boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| Server0Variables13BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -457,16 +457,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server0Variables13BoxedMap +public record Server0Variables13BoxedMap
+implements [Server0Variables13Boxed](#server0variables13boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| Server0Variables13BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -474,8 +474,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalProperties -public static class AdditionalProperties
+## Server0Variables13 +public static class Server0Variables13
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/servers/server1/Variables.md b/samples/client/petstore/java/docs/servers/server1/Server1Variables19.md similarity index 53% rename from samples/client/petstore/java/docs/servers/server1/Variables.md rename to samples/client/petstore/java/docs/servers/server1/Server1Variables19.md index b612a497734..b38864258d9 100644 --- a/samples/client/petstore/java/docs/servers/server1/Variables.md +++ b/samples/client/petstore/java/docs/servers/server1/Server1Variables19.md @@ -1,5 +1,5 @@ -# Variables -public class Variables
+# Server1Variables +public class Server1Variables
A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -12,50 +12,50 @@ A class that contains necessary nested ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | ---------------------- | -| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
sealed interface for validated payloads | -| record | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | -| static class | [Variables.Variables1](#variables1)
schema class | -| static class | [Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | -| static class | [Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| sealed interface | [Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | -| record | [Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | -| static class | [Variables.Version](#version)
schema class | -| enum | [Variables.StringVersionEnums](#stringversionenums)
String enum | -| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Variables.AdditionalProperties](#additionalproperties)
schema class | - -## Variables1Boxed -public sealed interface Variables1Boxed
+| sealed interface | [Server1Variables.Server1Variables1Boxed](#server1variables1boxed)
sealed interface for validated payloads | +| record | [Server1Variables.Server1Variables1BoxedMap](#server1variables1boxedmap)
boxed class to store validated Map payloads | +| static class | [Server1Variables.Server1Variables1](#server1variables1)
schema class | +| static class | [Server1Variables.Server1Variables15](#server1variables15)
builder for Map payloads | +| static class | [Server1Variables.Server1Variables16](#server1variables16)
output class for Map payloads | +| sealed interface | [Server1Variables.Server1Variables4Boxed](#server1variables4boxed)
sealed interface for validated payloads | +| record | [Server1Variables.Server1Variables4BoxedString](#server1variables4boxedstring)
boxed class to store validated String payloads | +| static class | [Server1Variables.Server1Variables4](#server1variables4)
schema class | +| enum | [Server1Variables.StringServer1Variables6](#stringserver1variables6)
String enum | +| sealed interface | [Server1Variables.Server1Variables9Boxed](#server1variables9boxed)
sealed interface for validated payloads | +| record | [Server1Variables.Server1Variables9BoxedVoid](#server1variables9boxedvoid)
boxed class to store validated null payloads | +| record | [Server1Variables.Server1Variables9BoxedBoolean](#server1variables9boxedboolean)
boxed class to store validated boolean payloads | +| record | [Server1Variables.Server1Variables9BoxedNumber](#server1variables9boxednumber)
boxed class to store validated Number payloads | +| record | [Server1Variables.Server1Variables9BoxedString](#server1variables9boxedstring)
boxed class to store validated String payloads | +| record | [Server1Variables.Server1Variables9BoxedList](#server1variables9boxedlist)
boxed class to store validated List payloads | +| record | [Server1Variables.Server1Variables9BoxedMap](#server1variables9boxedmap)
boxed class to store validated Map payloads | +| static class | [Server1Variables.Server1Variables9](#server1variables9)
schema class | + +## Server1Variables1Boxed +public sealed interface Server1Variables1Boxed
permits
-[Variables1BoxedMap](#variables1boxedmap) +[Server1Variables1BoxedMap](#server1variables1boxedmap) sealed interface that stores validated payloads using boxed classes -## Variables1BoxedMap -public record Variables1BoxedMap
-implements [Variables1Boxed](#variables1boxed) +## Server1Variables1BoxedMap +public record Server1Variables1BoxedMap
+implements [Server1Variables1Boxed](#server1variables1boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | +| Server1Variables1BoxedMap([Server1Variables16](#server1variables16) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | data()
validated payload | +| [Server1Variables16](#server1variables16) | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Variables1 -public static class Variables1
+## Server1Variables1 +public static class Server1Variables1
extends JsonSchema A schema class that validates payloads @@ -68,7 +68,7 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.servers.server1.Variables; +import org.openapijsonschematools.client.servers.server1.Server1Variables; import java.util.Arrays; import java.util.List; @@ -77,9 +77,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Variables.VariablesMap validatedPayload = - Variables.Variables1.validate( - new Variables.VariablesMapBuilder() +Server1Variables.Server1Variables16 validatedPayload = + Server1Variables.Server1Variables1.validate( + new Server1Variables.Server1Variables15() .version("v1") .build(), @@ -91,20 +91,20 @@ Variables.VariablesMap validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Server1Variables4.class](#server1variables4)))
)
| | Set | required = Set.of(
    "version"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | +| Class | additionalProperties = [Server1Variables9.class](#server1variables9) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Variables1BoxedMap](#variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Variables1Boxed](#variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| [Server1Variables16](#server1variables16) | validate([Map<?, ?>](#server1variables15) arg, SchemaConfiguration configuration) | +| [Server1Variables1BoxedMap](#server1variables1boxedmap) | validateAndBox([Map<?, ?>](#server1variables15) arg, SchemaConfiguration configuration) | +| [Server1Variables1Boxed](#server1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## VariablesMap0Builder -public class VariablesMap0Builder
+## Server1Variables17 +public class Server1Variables17
builder for `Map` A class that builds the Map input type @@ -112,15 +112,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| Server1Variables17(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## VariablesMapBuilder -public class VariablesMapBuilder
+## Server1Variables15 +public class Server1Variables15
builder for `Map` A class that builds the Map input type @@ -128,16 +128,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| VariablesMapBuilder()
Creates a builder that contains an empty map | +| Server1Variables15()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | -| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | +| [Server1Variables17](#server1variables17) | version(String value) | +| [Server1Variables17](#server1variables17) | version([StringServer1Variables6](#stringserver1variables6) value) | -## VariablesMap -public static class VariablesMap
+## Server1Variables16 +public static class Server1Variables16
extends FrozenMap A class to store validated Map payloads @@ -145,26 +145,26 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| static [Server1Variables16](#server1variables16) | of([Map](#server1variables15) arg, SchemaConfiguration configuration) | | String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v2 | -## VersionBoxed -public sealed interface VersionBoxed
+## Server1Variables4Boxed +public sealed interface Server1Variables4Boxed
permits
-[VersionBoxedString](#versionboxedstring) +[Server1Variables4BoxedString](#server1variables4boxedstring) sealed interface that stores validated payloads using boxed classes -## VersionBoxedString -public record VersionBoxedString
-implements [VersionBoxed](#versionboxed) +## Server1Variables4BoxedString +public record Server1Variables4BoxedString
+implements [Server1Variables4Boxed](#server1variables4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| VersionBoxedString(String data)
Creates an instance, private visibility | +| Server1Variables4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,8 +172,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Version -public static class Version
+## Server1Variables4 +public static class Server1Variables4
extends JsonSchema A schema class that validates payloads @@ -186,7 +186,7 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.servers.server1.Variables; +import org.openapijsonschematools.client.servers.server1.Server1Variables; import java.util.Arrays; import java.util.List; @@ -195,7 +195,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Variables.Version.validate( +String validatedPayload = Server1Variables.Server1Variables4.validate( "v1", configuration ); @@ -212,14 +212,14 @@ String validatedPayload = Variables.Version.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | -| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringServer1Variables6](#stringserver1variables6) arg, SchemaConfiguration configuration) | +| [Server1Variables4BoxedString](#server1variables4boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Server1Variables4Boxed](#server1variables4boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringVersionEnums -public enum StringVersionEnums
-extends `Enum` +## StringServer1Variables6 +public enum StringServer1Variables6
+extends `Enum` A class that stores String enum values @@ -229,28 +229,28 @@ A class that stores String enum values | V1 | value = "v1" | | V2 | value = "v2" | -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
+## Server1Variables9Boxed +public sealed interface Server1Variables9Boxed
permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) +[Server1Variables9BoxedVoid](#server1variables9boxedvoid), +[Server1Variables9BoxedBoolean](#server1variables9boxedboolean), +[Server1Variables9BoxedNumber](#server1variables9boxednumber), +[Server1Variables9BoxedString](#server1variables9boxedstring), +[Server1Variables9BoxedList](#server1variables9boxedlist), +[Server1Variables9BoxedMap](#server1variables9boxedmap) sealed interface that stores validated payloads using boxed classes -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server1Variables9BoxedVoid +public record Server1Variables9BoxedVoid
+implements [Server1Variables9Boxed](#server1variables9boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| Server1Variables9BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server1Variables9BoxedBoolean +public record Server1Variables9BoxedBoolean
+implements [Server1Variables9Boxed](#server1variables9boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| Server1Variables9BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server1Variables9BoxedNumber +public record Server1Variables9BoxedNumber
+implements [Server1Variables9Boxed](#server1variables9boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| Server1Variables9BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,16 +292,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server1Variables9BoxedString +public record Server1Variables9BoxedString
+implements [Server1Variables9Boxed](#server1variables9boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| Server1Variables9BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -309,16 +309,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server1Variables9BoxedList +public record Server1Variables9BoxedList
+implements [Server1Variables9Boxed](#server1variables9boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| Server1Variables9BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -326,16 +326,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) +## Server1Variables9BoxedMap +public record Server1Variables9BoxedMap
+implements [Server1Variables9Boxed](#server1variables9boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| Server1Variables9BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -343,8 +343,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## AdditionalProperties -public static class AdditionalProperties
+## Server1Variables9 +public static class Server1Variables9
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java similarity index 78% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java index daf1ac6bbd4..7d50300f378 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java @@ -9,13 +9,13 @@ import java.util.Objects; -public class RootServerInfo { - public static class RootServerInfo1 implements ServerProvider { +public class ServerInfo { + public static class ServerInfo1 implements ServerProvider { private final Server0 server0; private final Server1 server1; private final Server2 server2; - RootServerInfo1( + ServerInfo1( @Nullable Server0 server0, @Nullable Server1 server1, @Nullable Server2 server2 @@ -38,30 +38,30 @@ public Server getServer(ServerIndex serverIndex) { } } - public static class RootServerInfoBuilder { + public static class ServerInfoBuilder { private @Nullable Server0 server0; private @Nullable Server1 server1; private @Nullable Server2 server2; - public RootServerInfoBuilder() {} + public ServerInfoBuilder() {} - public RootServerInfoBuilder server0(Server0 server0) { + public ServerInfoBuilder server0(Server0 server0) { this.server0 = server0; return this; } - public RootServerInfoBuilder server1(Server1 server1) { + public ServerInfoBuilder server1(Server1 server1) { this.server1 = server1; return this; } - public RootServerInfoBuilder server2(Server2 server2) { + public ServerInfoBuilder server2(Server2 server2) { this.server2 = server2; return this; } - public RootServerInfo1 build() { - return new RootServerInfo1( + public ServerInfo1 build() { + return new ServerInfo1( server0, server1, server2 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java index 8fdcaa04966..90c3beccbc9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.servers.Server; import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; @@ -63,23 +63,23 @@ public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, public static class ServerInfo { final FooGetServerInfo.FooGetServerInfo1 fooGetServerInfo; final PetfindbystatusServerInfo.PetfindbystatusServerInfo1 petfindbystatusServerInfo; - final RootServerInfo.RootServerInfo1 rootServerInfo; + final ServerInfo.ServerInfo1 serverInfo; ServerInfo( FooGetServerInfo. @Nullable FooGetServerInfo1 fooGetServerInfo, PetfindbystatusServerInfo. @Nullable PetfindbystatusServerInfo1 petfindbystatusServerInfo, - RootServerInfo. @Nullable RootServerInfo1 rootServerInfo + ServerInfo. @Nullable ServerInfo1 serverInfo ) { this.fooGetServerInfo = Objects.requireNonNullElse(fooGetServerInfo, new FooGetServerInfo.FooGetServerInfoBuilder().build()); this.petfindbystatusServerInfo = Objects.requireNonNullElse(petfindbystatusServerInfo, new PetfindbystatusServerInfo.PetfindbystatusServerInfoBuilder().build()); - this.rootServerInfo = Objects.requireNonNullElse(rootServerInfo, new RootServerInfo.RootServerInfoBuilder().build()); + this.serverInfo = Objects.requireNonNullElse(serverInfo, new ServerInfo.ServerInfoBuilder().build()); } } public static class ServerInfoBuilder { private FooGetServerInfo. @Nullable FooGetServerInfo1 fooGetServerInfo; private PetfindbystatusServerInfo. @Nullable PetfindbystatusServerInfo1 petfindbystatusServerInfo; - private RootServerInfo. @Nullable RootServerInfo1 rootServerInfo; + private ServerInfo. @Nullable ServerInfo1 serverInfo; public ServerInfoBuilder() {} public ServerInfoBuilder fooGetServerInfo(FooGetServerInfo.FooGetServerInfo1 fooGetServerInfo) { @@ -92,8 +92,8 @@ public ServerInfoBuilder petfindbystatusServerInfo(PetfindbystatusServerInfo.Pet return this; } - public ServerInfoBuilder rootServerInfo(RootServerInfo.RootServerInfo1 rootServerInfo) { - this.rootServerInfo = rootServerInfo; + public ServerInfoBuilder serverInfo(ServerInfo.ServerInfo1 serverInfo) { + this.serverInfo = serverInfo; return this; } @@ -101,7 +101,7 @@ public ServerInfo build() { return new ServerInfo( fooGetServerInfo, petfindbystatusServerInfo, - rootServerInfo + serverInfo ); } } @@ -109,23 +109,23 @@ public ServerInfo build() { public static class ServerIndexInfo { final FooGetServerInfo.ServerIndex fooGetServerInfoServerIndex; final PetfindbystatusServerInfo.ServerIndex petfindbystatusServerInfoServerIndex; - final RootServerInfo.ServerIndex rootServerInfoServerIndex; + final ServerInfo.ServerIndex serverInfoServerIndex; ServerIndexInfo( FooGetServerInfo. @Nullable ServerIndex fooGetServerInfoServerIndex, PetfindbystatusServerInfo. @Nullable ServerIndex petfindbystatusServerInfoServerIndex, - RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex + ServerInfo. @Nullable ServerIndex serverInfoServerIndex ) { this.fooGetServerInfoServerIndex = Objects.requireNonNullElse(fooGetServerInfoServerIndex, FooGetServerInfo.ServerIndex.SERVER_0); this.petfindbystatusServerInfoServerIndex = Objects.requireNonNullElse(petfindbystatusServerInfoServerIndex, PetfindbystatusServerInfo.ServerIndex.SERVER_0); - this.rootServerInfoServerIndex = Objects.requireNonNullElse(rootServerInfoServerIndex, RootServerInfo.ServerIndex.SERVER_0); + this.serverInfoServerIndex = Objects.requireNonNullElse(serverInfoServerIndex, ServerInfo.ServerIndex.SERVER_0); } } public static class ServerIndexInfoBuilder { private FooGetServerInfo. @Nullable ServerIndex fooGetServerInfoServerIndex; private PetfindbystatusServerInfo. @Nullable ServerIndex petfindbystatusServerInfoServerIndex; - private RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; + private ServerInfo. @Nullable ServerIndex serverInfoServerIndex; public ServerIndexInfoBuilder() {} public ServerIndexInfoBuilder fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex serverIndex) { @@ -138,8 +138,8 @@ public ServerIndexInfoBuilder petfindbystatusServerInfoServerIndex(Petfindbystat return this; } - public ServerIndexInfoBuilder rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { - this.rootServerInfoServerIndex = serverIndex; + public ServerIndexInfoBuilder serverInfoServerIndex(ServerInfo.ServerIndex serverIndex) { + this.serverInfoServerIndex = serverIndex; return this; } @@ -147,7 +147,7 @@ public ServerIndexInfo build() { return new ServerIndexInfo( fooGetServerInfoServerIndex, petfindbystatusServerInfoServerIndex, - rootServerInfoServerIndex + serverInfoServerIndex ); } } @@ -170,10 +170,10 @@ public Server getServer(PetfindbystatusServerInfo. @Nullable ServerIndex serverI return serverProvider.getServer(serverIndex); } - public Server getServer(RootServerInfo. @Nullable ServerIndex serverIndex) { - var serverProvider = serverInfo.rootServerInfo; + public Server getServer(ServerInfo. @Nullable ServerIndex serverIndex) { + var serverProvider = serverInfo.serverInfo; if (serverIndex == null) { - RootServerInfo.ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; + ServerInfo.ServerIndex configServerIndex = serverIndexInfo.serverInfoServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/exceptions/InvalidTypeException.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/exceptions/InvalidTypeException.java deleted file mode 100644 index 02131fff34d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/exceptions/InvalidTypeException.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.openapijsonschematools.client.exceptions; - -@SuppressWarnings("serial") -public class InvalidTypeException extends BaseException { - public InvalidTypeException(String s) { - super(s); - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/exceptions/OpenapiDocumentException.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/exceptions/OpenapiDocumentException.java deleted file mode 100644 index 7614532f832..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/exceptions/OpenapiDocumentException.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.openapijsonschematools.client.exceptions; - -@SuppressWarnings("serial") -public class OpenapiDocumentException extends BaseException { - public OpenapiDocumentException(String s) { - super(s); - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java index 3351c5abf40..a5558b7f2b7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.anotherfakedummy; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,12 +84,12 @@ public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfig public static class PatchRequest { public AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PatchRequest( AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -100,14 +100,14 @@ public PatchRequest( public static class PatchNullableRequest { public AnotherfakedummyPatchRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PatchNullableRequest getInstance(); T getBuilderAfterServerIndex(PatchNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java index f4584e4a80a..3ae866cb0b8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Parameters; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; @@ -88,13 +88,13 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi public static class DeleteRequest { public CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters; public CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap headerParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters, CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap headerParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.pathParameters = pathParameters; @@ -107,7 +107,7 @@ public DeleteRequest( public static class DeleteNullableRequest { public CommonparamsubdirDeletePathParameters.@Nullable CommonparamsubdirDeletePathParametersMap pathParameters; public CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap headerParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ default T headerParameters(CommonparamsubdirDeleteHeaderParameters.Commonparamsu public interface SetterForServerIndex { DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java index 4e9df51675f..136e4df74bf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; import org.openapijsonschematools.client.paths.commonparamsubdir.get.Parameters; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; @@ -89,13 +89,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters; public CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters, CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap queryParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.pathParameters = pathParameters; @@ -108,7 +108,7 @@ public GetRequest( public static class GetNullableRequest { public CommonparamsubdirGetPathParameters.@Nullable CommonparamsubdirGetPathParametersMap pathParameters; public CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -125,7 +125,7 @@ default T queryParameters(CommonparamsubdirGetQueryParameters.CommonparamsubdirG public interface SetterForServerIndex { GetNullableRequest getInstance(); T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java index c1f09488efb..eed682768d7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; import org.openapijsonschematools.client.paths.commonparamsubdir.post.Parameters; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; @@ -88,13 +88,13 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters; public CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap headerParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters, CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap headerParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.pathParameters = pathParameters; @@ -107,7 +107,7 @@ public PostRequest( public static class PostNullableRequest { public CommonparamsubdirPostPathParameters.@Nullable CommonparamsubdirPostPathParametersMap pathParameters; public CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap headerParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ default T headerParameters(CommonparamsubdirPostHeaderParameters.Commonparamsubd public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java index 61fb91038b5..f4f4e131b07 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fake; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; @@ -100,14 +100,14 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi public static class DeleteRequest { public FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters; public FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public DeleteRequest( FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters, FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout ) { @@ -122,7 +122,7 @@ public DeleteRequest( public static class DeleteNullableRequest { public FakeDeleteHeaderParameters.@Nullable FakeDeleteHeaderParametersMap headerParameters; public FakeDeleteQueryParameters.@Nullable FakeDeleteQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -130,7 +130,7 @@ public static class DeleteNullableRequest { public interface SetterForServerIndex { DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java index 64738201ed4..91af6004236 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.get.Parameters; import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -106,7 +106,7 @@ public static class GetRequest { public FakeGetRequestBody.@Nullable SealedRequestBody requestBody; public FakeGetHeaderParameters.@Nullable FakeGetHeaderParametersMap headerParameters; public FakeGetQueryParameters.@Nullable FakeGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -143,7 +143,7 @@ default T queryParameters(FakeGetQueryParameters.FakeGetQueryParametersMap query public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java index e723af46b95..7440117dc17 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fake; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,12 +84,12 @@ public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfig public static class PatchRequest { public FakePatchRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PatchRequest( FakePatchRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -100,14 +100,14 @@ public PatchRequest( public static class PatchNullableRequest { public FakePatchRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PatchNullableRequest getInstance(); T getBuilderAfterServerIndex(PatchNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java index 7772656bdfe..14de68fe22a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fake.post.FakePostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -101,7 +101,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakePostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public FakePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -119,7 +119,7 @@ default T requestBody(FakePostRequestBody.SealedRequestBody requestBody) { public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java index 7cf5a80ec37..f8f5837a798 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public FakeadditionalpropertieswitharrayofenumsGetRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakeadditionalpropertieswitharrayofenumsGetRequestBody.Sea public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java index 7c9a7ce3ef7..9a8a862b8c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakebodywithfileschema; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,12 +84,12 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -100,14 +100,14 @@ public PutRequest( public static class PutNullableRequest { public FakebodywithfileschemaPutRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PutNullableRequest getInstance(); T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java index 5be02fcd272..b334aecedf9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakebodywithqueryparams; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Parameters; @@ -91,13 +91,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody; public FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody, FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -110,14 +110,14 @@ public PutRequest( public static class PutNullableRequest { public FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody requestBody; public FakebodywithqueryparamsPutQueryParameters.@Nullable FakebodywithqueryparamsPutQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PutNullableRequest getInstance(); T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java index 151c05d7f21..67555286080 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakecasesensitiveparams; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Parameters; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; @@ -81,12 +81,12 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.queryParameters = queryParameters; @@ -97,14 +97,14 @@ public PutRequest( public static class PutNullableRequest { public FakecasesensitiveparamsPutQueryParameters.@Nullable FakecasesensitiveparamsPutQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PutNullableRequest getInstance(); T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java index 798f569e7ab..3ecb1f95471 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeclassnametest; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; @@ -97,13 +97,13 @@ public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfig public static class PatchRequest { public FakeclassnametestPatchRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PatchRequest( FakeclassnametestPatchRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout ) { @@ -116,7 +116,7 @@ public PatchRequest( public static class PatchNullableRequest { public FakeclassnametestPatchRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ public static class PatchNullableRequest { public interface SetterForServerIndex { PatchNullableRequest getInstance(); T getBuilderAfterServerIndex(PatchNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java index 4fca9306157..4ac48d79d33 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakedeletecoffeeid; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Parameters; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; @@ -80,12 +80,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi public static class DeleteRequest { public FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.pathParameters = pathParameters; @@ -96,14 +96,14 @@ public DeleteRequest( public static class DeleteNullableRequest { public FakedeletecoffeeidDeletePathParameters.@Nullable FakedeletecoffeeidDeletePathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java index 49b0d51d461..578d4ab08f3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakehealth; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -74,14 +74,14 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java index 9eaf3f07fe2..7536494553e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,12 +84,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -100,14 +100,14 @@ public PostRequest( public static class PostNullableRequest { public FakeinlineadditionalpropertiesPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java index ce21538668b..7ad5df0ef62 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java @@ -3,7 +3,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Parameters; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -98,7 +98,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody requestBody; public FakeinlinecompositionPostQueryParameters.@Nullable FakeinlinecompositionPostQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -125,7 +125,7 @@ default T queryParameters(FakeinlinecompositionPostQueryParameters.Fakeinlinecom public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java index d0ab6bd7642..a583165ecb3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public FakejsonformdataGetRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakejsonformdataGetRequestBody.SealedRequestBody requestBo public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java index a13ac896280..25ffe66cd1f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfig public static class PatchRequest { public FakejsonpatchPatchRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakejsonpatchPatchRequestBody.SealedRequestBody requestBod public interface SetterForServerIndex { PatchRequest getInstance(); T getBuilderAfterServerIndex(PatchRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java index 480a7570011..81e30d3193d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakejsonwithcharsetPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakejsonwithcharsetPostRequestBody.SealedRequestBody reque public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java index 585ea8c5680..c76d6eaa950 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakemultiplerequestbodycontenttypesPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakemultiplerequestbodycontenttypesPostRequestBody.SealedR public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java index 78be3b0ebe6..eee00a7c9ea 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakemultipleresponsebodies; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -74,14 +74,14 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java index 99652396c14..4073bffd42c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakemultiplesecurities; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -87,7 +87,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public FakemultiplesecuritiesGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -95,7 +95,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java index fafba1cee8e..30b64417e43 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeobjinquery.get.Parameters; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,7 +84,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public FakeobjinqueryGetQueryParameters.@Nullable FakeobjinqueryGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -101,7 +101,7 @@ default T queryParameters(FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQuer public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java index 1e7dc076454..bd7756b0eba 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java @@ -5,7 +5,7 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Parameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; @@ -120,7 +120,7 @@ public static class PostRequest { public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters; public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters; public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap cookieParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( @@ -129,7 +129,7 @@ public PostRequest( Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters, Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters, Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap cookieParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.pathParameters = pathParameters; @@ -148,7 +148,7 @@ public static class PostNullableRequest { public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters; public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters; public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap cookieParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -195,7 +195,7 @@ default T cookieParameters(Fakeparametercollisions1ababselfabPostCookieParameter public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java index 5c627fe0093..d4a5f14f53f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public FakepemcontenttypeGetRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakepemcontenttypeGetRequestBody.SealedRequestBody request public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java index 647c538f1b2..7f03f5a4796 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.Parameters; @@ -107,14 +107,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters; public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters, FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout ) { @@ -129,7 +129,7 @@ public PostRequest( public static class PostNullableRequest { public FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters; public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -147,7 +147,7 @@ default T requestBody(FakepetiduploadimagewithrequiredfilePostRequestBody.Sealed public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java index 8f85d6a9c9e..27ee224e5e5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.Parameters; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; @@ -81,12 +81,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.queryParameters = queryParameters; @@ -97,14 +97,14 @@ public GetRequest( public static class GetNullableRequest { public FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetNullableRequest getInstance(); T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java index f73a54d32b6..be844b32e00 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeredirection; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -74,14 +74,14 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java index a216fc1f1d3..649af2d7483 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Parameters; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,7 +84,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public FakerefobjinqueryGetQueryParameters.@Nullable FakerefobjinqueryGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -101,7 +101,7 @@ default T queryParameters(FakerefobjinqueryGetQueryParameters.FakerefobjinqueryG public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java index 07af16ea8b6..115a7d981c6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakerefsarraymodelPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakerefsarraymodelPostRequestBody.SealedRequestBody reques public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java index 2e562146fb3..1b9ab4bb775 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakerefsarrayofenumsPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakerefsarrayofenumsPostRequestBody.SealedRequestBody requ public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java index 48e40534184..719f860f72e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakerefsbooleanPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakerefsbooleanPostRequestBody.SealedRequestBody requestBo public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java index 6b1f0e40677..9a482a51166 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakerefscomposedoneofnumberwithvalidationsPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakerefscomposedoneofnumberwithvalidationsPostRequestBody. public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java index 83b9713931f..69c169083fa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakerefsenumPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakerefsenumPostRequestBody.SealedRequestBody requestBody) public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java index 1107280199a..9a9f74a49af 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakerefsmammal; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,12 +84,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakerefsmammalPostRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( FakerefsmammalPostRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -100,14 +100,14 @@ public PostRequest( public static class PostNullableRequest { public FakerefsmammalPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java index 1d1a42bd13b..cdbad98d3d5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakerefsnumberPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakerefsnumberPostRequestBody.SealedRequestBody requestBod public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java index a0d92eb73a6..e617d8ca04a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakerefsobjectmodelwithrefpropsPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakerefsobjectmodelwithrefpropsPostRequestBody.SealedReque public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java index adc7818a1fa..b24fb96e4c3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakerefsstringPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakerefsstringPostRequestBody.SealedRequestBody requestBod public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java index 284c2b3309e..5669cc0b4f0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeresponsewithoutschema; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -74,14 +74,14 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java index 604870058a1..759b200dfc0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.faketestqueryparamters; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Parameters; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; @@ -81,12 +81,12 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.queryParameters = queryParameters; @@ -97,14 +97,14 @@ public PutRequest( public static class PutNullableRequest { public FaketestqueryparamtersPutQueryParameters.@Nullable FaketestqueryparamtersPutQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PutNullableRequest getInstance(); T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java index 40b05b37b3a..391f48f566e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakeuploaddownloadfile; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,12 +84,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -100,14 +100,14 @@ public PostRequest( public static class PostNullableRequest { public FakeuploaddownloadfilePostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java index 4a90826a6bd..3e6701b4e5b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakeuploadfilePostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakeuploadfilePostRequestBody.SealedRequestBody requestBod public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java index e35ade51c50..9b664f746cf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -88,7 +88,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakeuploadfilesPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -105,7 +105,7 @@ default T requestBody(FakeuploadfilesPostRequestBody.SealedRequestBody requestBo public interface SetterForServerIndex { PostRequest getInstance(); T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java index 1f7aab70481..88bfbb61533 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.fakewildcardresponses; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -74,14 +74,14 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java index e4a6dcceb9c..a00fa8864f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java @@ -5,16 +5,16 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.servers.ServerWithVariables; import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.paths.foo.get.servers.server1.Variables; +import org.openapijsonschematools.client.paths.foo.get.servers.server1.FooGetServer1Variables; import java.util.AbstractMap; -public class FooGetServer1 extends ServerWithVariables { - private static Variables.VariablesMap getVariables() { +public class FooGetServer1 extends ServerWithVariables { + private static FooGetServer1Variables.FooGetServer1Variables11 getVariables() { try { - return Variables.Variables1.getInstance().validate( + return FooGetServer1Variables.FooGetServer1Variables1.getInstance().validate( MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("version", Variables.Version.getInstance().defaultValue()) + new AbstractMap.SimpleEntry<>("version", FooGetServer1Variables.FooGetServer1Variables2.getInstance().defaultValue()) ), new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); @@ -29,7 +29,7 @@ public FooGetServer1() { getVariables() ); } - public FooGetServer1(Variables.VariablesMap variables) { + public FooGetServer1(FooGetServer1Variables.FooGetServer1Variables11 variables) { super("https://petstore.swagger.io/{version}", variables); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java index 8f803c6d955..09228a0d0a0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java @@ -29,27 +29,27 @@ import org.openapijsonschematools.client.schemas.validation.StringValueMethod; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class Variables { +public class FooGetServer1Variables { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FooGetServer1Variables6 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable FooGetServer1Variables6 instance = null; + public static FooGetServer1Variables6 getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new FooGetServer1Variables6(); } return instance; } } - public enum StringVersionEnums implements StringValueMethod { + public enum StringFooGetServer1Variables3 implements StringValueMethod { V1("v1"), V2("v2"); private final String value; - StringVersionEnums(String value) { + StringFooGetServer1Variables3(String value) { this.value = value; } public String value() { @@ -58,11 +58,11 @@ public String value() { } - public sealed interface VersionBoxed permits VersionBoxedString { + public sealed interface FooGetServer1Variables2Boxed permits FooGetServer1Variables2BoxedString { @Nullable Object getData(); } - public record VersionBoxedString(String data) implements VersionBoxed { + public record FooGetServer1Variables2BoxedString(String data) implements FooGetServer1Variables2Boxed { @Override public @Nullable Object getData() { return data; @@ -71,10 +71,10 @@ public record VersionBoxedString(String data) implements VersionBoxed { - public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Version instance = null; + public static class FooGetServer1Variables2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable FooGetServer1Variables2 instance = null; - protected Version() { + protected FooGetServer1Variables2() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -87,9 +87,9 @@ protected Version() { ); } - public static Version getInstance() { + public static FooGetServer1Variables2 getInstance() { if (instance == null) { - instance = new Version(); + instance = new FooGetServer1Variables2(); } return instance; } @@ -106,7 +106,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringFooGetServer1Variables3 arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -131,11 +131,11 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new VersionBoxedString(validate(arg, configuration)); + public FooGetServer1Variables2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new FooGetServer1Variables2BoxedString(validate(arg, configuration)); } @Override - public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FooGetServer1Variables2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } @@ -143,16 +143,16 @@ public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration con } } - public static class VariablesMap extends FrozenMap { - protected VariablesMap(FrozenMap m) { + public static class FooGetServer1Variables11 extends FrozenMap { + protected FooGetServer1Variables11(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "version" ); public static final Set optionalKeys = Set.of(); - public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Variables1.getInstance().validate(arg, configuration); + public static FooGetServer1Variables11 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FooGetServer1Variables1.getInstance().validate(arg, configuration); } public String version() { @@ -164,24 +164,24 @@ public String version() { } } - public interface SetterForVersion { + public interface SetterForFooGetServer1Variables2 { Map getInstance(); - T getBuilderAfterVersion(Map instance); + T getBuilderAfterFooGetServer1Variables2(Map instance); default T version(String value) { var instance = getInstance(); instance.put("version", value); - return getBuilderAfterVersion(instance); + return getBuilderAfterFooGetServer1Variables2(instance); } - default T version(StringVersionEnums value) { + default T version(StringFooGetServer1Variables3 value) { var instance = getInstance(); instance.put("version", value.value()); - return getBuilderAfterVersion(instance); + return getBuilderAfterFooGetServer1Variables2(instance); } } - public static class VariablesMap0Builder implements GenericBuilder> { + public static class FooGetServer1Variables12 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "version" @@ -189,7 +189,7 @@ public static class VariablesMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public VariablesMap0Builder(Map instance) { + public FooGetServer1Variables12(Map instance) { this.instance = instance; } public Map build() { @@ -197,25 +197,25 @@ public Map build() { } } - public static class VariablesMapBuilder implements SetterForVersion { + public static class FooGetServer1Variables10 implements SetterForFooGetServer1Variables2 { private final Map instance; - public VariablesMapBuilder() { + public FooGetServer1Variables10() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public VariablesMap0Builder getBuilderAfterVersion(Map instance) { - return new VariablesMap0Builder(instance); + public FooGetServer1Variables12 getBuilderAfterFooGetServer1Variables2(Map instance) { + return new FooGetServer1Variables12(instance); } } - public sealed interface Variables1Boxed permits Variables1BoxedMap { + public sealed interface FooGetServer1Variables1Boxed permits FooGetServer1Variables1BoxedMap { @Nullable Object getData(); } - public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { + public record FooGetServer1Variables1BoxedMap(FooGetServer1Variables11 data) implements FooGetServer1Variables1Boxed { @Override public @Nullable Object getData() { return data; @@ -223,30 +223,30 @@ public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { } - public static class Variables1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Variables1 instance = null; + public static class FooGetServer1Variables1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FooGetServer1Variables1 instance = null; - protected Variables1() { + protected FooGetServer1Variables1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( - new PropertyEntry("version", Version.class) + new PropertyEntry("version", FooGetServer1Variables2.class) )) .required(Set.of( "version" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(FooGetServer1Variables6.class) ); } - public static Variables1 getInstance() { + public static FooGetServer1Variables1 getInstance() { if (instance == null) { - instance = new Variables1(); + instance = new FooGetServer1Variables1(); } return instance; } - public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FooGetServer1Variables11 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -269,10 +269,10 @@ public VariablesMap getNewInstance(Map arg, List pathToItem, PathT properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new VariablesMap(castProperties); + return new FooGetServer1Variables11(castProperties); } - public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FooGetServer1Variables11 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -298,11 +298,11 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Variables1BoxedMap(validate(arg, configuration)); + public FooGetServer1Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FooGetServer1Variables1BoxedMap(validate(arg, configuration)); } @Override - public Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public FooGetServer1Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java index 1f9d0dc8431..48fe27b7c77 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.pet; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; @@ -97,13 +97,13 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public PetPostRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( PetPostRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, PetPostSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout ) { @@ -116,7 +116,7 @@ public PostRequest( public static class PostNullableRequest { public PetPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ public static class PostNullableRequest { public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java index 2fbf38a193b..a6dff90224b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.pet; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; @@ -96,13 +96,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public PetPutRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PutRequest( PetPutRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, PetPutSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout ) { @@ -115,7 +115,7 @@ public PutRequest( public static class PutNullableRequest { public PetPutRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ public static class PutNullableRequest { public interface SetterForServerIndex { PutNullableRequest getInstance(); T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java index 3642ace858f..65bd45331cc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java @@ -5,16 +5,16 @@ import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.servers.ServerWithVariables; import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.Variables; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.PetfindbystatusServer1Variables; import java.util.AbstractMap; -public class PetfindbystatusServer1 extends ServerWithVariables { - private static Variables.VariablesMap getVariables() { +public class PetfindbystatusServer1 extends ServerWithVariables { + private static PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11 getVariables() { try { - return Variables.Variables1.getInstance().validate( + return PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1.getInstance().validate( MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("version", Variables.Version.getInstance().defaultValue()) + new AbstractMap.SimpleEntry<>("version", PetfindbystatusServer1Variables.PetfindbystatusServer1Variables2.getInstance().defaultValue()) ), new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); @@ -29,7 +29,7 @@ public PetfindbystatusServer1() { getVariables() ); } - public PetfindbystatusServer1(Variables.VariablesMap variables) { + public PetfindbystatusServer1(PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11 variables) { super("https://petstore.swagger.io/{version}", variables); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java index 066bb13df2a..e6bc031fd26 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java @@ -29,27 +29,27 @@ import org.openapijsonschematools.client.schemas.validation.StringValueMethod; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class Variables { +public class PetfindbystatusServer1Variables { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetfindbystatusServer1Variables6 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable PetfindbystatusServer1Variables6 instance = null; + public static PetfindbystatusServer1Variables6 getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new PetfindbystatusServer1Variables6(); } return instance; } } - public enum StringVersionEnums implements StringValueMethod { + public enum StringPetfindbystatusServer1Variables3 implements StringValueMethod { V1("v1"), V2("v2"); private final String value; - StringVersionEnums(String value) { + StringPetfindbystatusServer1Variables3(String value) { this.value = value; } public String value() { @@ -58,11 +58,11 @@ public String value() { } - public sealed interface VersionBoxed permits VersionBoxedString { + public sealed interface PetfindbystatusServer1Variables2Boxed permits PetfindbystatusServer1Variables2BoxedString { @Nullable Object getData(); } - public record VersionBoxedString(String data) implements VersionBoxed { + public record PetfindbystatusServer1Variables2BoxedString(String data) implements PetfindbystatusServer1Variables2Boxed { @Override public @Nullable Object getData() { return data; @@ -71,10 +71,10 @@ public record VersionBoxedString(String data) implements VersionBoxed { - public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Version instance = null; + public static class PetfindbystatusServer1Variables2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable PetfindbystatusServer1Variables2 instance = null; - protected Version() { + protected PetfindbystatusServer1Variables2() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -87,9 +87,9 @@ protected Version() { ); } - public static Version getInstance() { + public static PetfindbystatusServer1Variables2 getInstance() { if (instance == null) { - instance = new Version(); + instance = new PetfindbystatusServer1Variables2(); } return instance; } @@ -106,7 +106,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringPetfindbystatusServer1Variables3 arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -131,11 +131,11 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new VersionBoxedString(validate(arg, configuration)); + public PetfindbystatusServer1Variables2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new PetfindbystatusServer1Variables2BoxedString(validate(arg, configuration)); } @Override - public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public PetfindbystatusServer1Variables2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } @@ -143,16 +143,16 @@ public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration con } } - public static class VariablesMap extends FrozenMap { - protected VariablesMap(FrozenMap m) { + public static class PetfindbystatusServer1Variables11 extends FrozenMap { + protected PetfindbystatusServer1Variables11(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "version" ); public static final Set optionalKeys = Set.of(); - public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Variables1.getInstance().validate(arg, configuration); + public static PetfindbystatusServer1Variables11 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetfindbystatusServer1Variables1.getInstance().validate(arg, configuration); } public String version() { @@ -164,24 +164,24 @@ public String version() { } } - public interface SetterForVersion { + public interface SetterForPetfindbystatusServer1Variables2 { Map getInstance(); - T getBuilderAfterVersion(Map instance); + T getBuilderAfterPetfindbystatusServer1Variables2(Map instance); default T version(String value) { var instance = getInstance(); instance.put("version", value); - return getBuilderAfterVersion(instance); + return getBuilderAfterPetfindbystatusServer1Variables2(instance); } - default T version(StringVersionEnums value) { + default T version(StringPetfindbystatusServer1Variables3 value) { var instance = getInstance(); instance.put("version", value.value()); - return getBuilderAfterVersion(instance); + return getBuilderAfterPetfindbystatusServer1Variables2(instance); } } - public static class VariablesMap0Builder implements GenericBuilder> { + public static class PetfindbystatusServer1Variables12 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "version" @@ -189,7 +189,7 @@ public static class VariablesMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public VariablesMap0Builder(Map instance) { + public PetfindbystatusServer1Variables12(Map instance) { this.instance = instance; } public Map build() { @@ -197,25 +197,25 @@ public Map build() { } } - public static class VariablesMapBuilder implements SetterForVersion { + public static class PetfindbystatusServer1Variables10 implements SetterForPetfindbystatusServer1Variables2 { private final Map instance; - public VariablesMapBuilder() { + public PetfindbystatusServer1Variables10() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public VariablesMap0Builder getBuilderAfterVersion(Map instance) { - return new VariablesMap0Builder(instance); + public PetfindbystatusServer1Variables12 getBuilderAfterPetfindbystatusServer1Variables2(Map instance) { + return new PetfindbystatusServer1Variables12(instance); } } - public sealed interface Variables1Boxed permits Variables1BoxedMap { + public sealed interface PetfindbystatusServer1Variables1Boxed permits PetfindbystatusServer1Variables1BoxedMap { @Nullable Object getData(); } - public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { + public record PetfindbystatusServer1Variables1BoxedMap(PetfindbystatusServer1Variables11 data) implements PetfindbystatusServer1Variables1Boxed { @Override public @Nullable Object getData() { return data; @@ -223,30 +223,30 @@ public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { } - public static class Variables1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Variables1 instance = null; + public static class PetfindbystatusServer1Variables1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetfindbystatusServer1Variables1 instance = null; - protected Variables1() { + protected PetfindbystatusServer1Variables1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( - new PropertyEntry("version", Version.class) + new PropertyEntry("version", PetfindbystatusServer1Variables2.class) )) .required(Set.of( "version" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(PetfindbystatusServer1Variables6.class) ); } - public static Variables1 getInstance() { + public static PetfindbystatusServer1Variables1 getInstance() { if (instance == null) { - instance = new Variables1(); + instance = new PetfindbystatusServer1Variables1(); } return instance; } - public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetfindbystatusServer1Variables11 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -269,10 +269,10 @@ public VariablesMap getNewInstance(Map arg, List pathToItem, PathT properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new VariablesMap(castProperties); + return new PetfindbystatusServer1Variables11(castProperties); } - public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetfindbystatusServer1Variables11 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -298,11 +298,11 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Variables1BoxedMap(validate(arg, configuration)); + public PetfindbystatusServer1Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetfindbystatusServer1Variables1BoxedMap(validate(arg, configuration)); } @Override - public Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public PetfindbystatusServer1Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java index 318fd196bae..0f56e08e4ef 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.petfindbytags; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; import org.openapijsonschematools.client.paths.petfindbytags.get.Parameters; @@ -94,13 +94,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout ) { @@ -113,7 +113,7 @@ public GetRequest( public static class GetNullableRequest { public PetfindbytagsGetQueryParameters.@Nullable PetfindbytagsGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -121,7 +121,7 @@ public static class GetNullableRequest { public interface SetterForServerIndex { GetNullableRequest getInstance(); T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java index 81fa39afd8f..fa78dc69d5c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; import org.openapijsonschematools.client.paths.petpetid.delete.Parameters; @@ -100,14 +100,14 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi public static class DeleteRequest { public PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters; public PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap headerParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public DeleteRequest( PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters, PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap headerParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout ) { @@ -122,7 +122,7 @@ public DeleteRequest( public static class DeleteNullableRequest { public PetpetidDeletePathParameters.@Nullable PetpetidDeletePathParametersMap pathParameters; public PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap headerParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -140,7 +140,7 @@ default T headerParameters(PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderPa public interface SetterForServerIndex { DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java index f3ec5bfc3bc..a8fac3e3874 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.petpetid; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; import org.openapijsonschematools.client.paths.petpetid.get.Parameters; @@ -93,13 +93,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout ) { @@ -112,7 +112,7 @@ public GetRequest( public static class GetNullableRequest { public PetpetidGetPathParameters.@Nullable PetpetidGetPathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -120,7 +120,7 @@ public static class GetNullableRequest { public interface SetterForServerIndex { GetNullableRequest getInstance(); T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java index c0b8ff9ea2c..8bb280dbd7d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; import org.openapijsonschematools.client.paths.petpetid.post.Parameters; @@ -106,14 +106,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters; public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters, PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout ) { @@ -128,7 +128,7 @@ public PostRequest( public static class PostNullableRequest { public PetpetidPostPathParameters.@Nullable PetpetidPostPathParametersMap pathParameters; public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -146,7 +146,7 @@ default T requestBody(PetpetidPostRequestBody.SealedRequestBody requestBody) { public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java index 8ad3eaff4a4..d2f8109124c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java @@ -2,7 +2,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostRequestBody; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.Parameters; @@ -107,14 +107,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters; public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters, PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout ) { @@ -129,7 +129,7 @@ public PostRequest( public static class PostNullableRequest { public PetpetiduploadimagePostPathParameters.@Nullable PetpetiduploadimagePostPathParametersMap pathParameters; public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -147,7 +147,7 @@ default T requestBody(PetpetiduploadimagePostRequestBody.SealedRequestBody reque public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java index 6d03a9384b5..e8ce1b7cce4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.solidus; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -74,14 +74,14 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java index 13cf7cda7a6..f4ca5e06da1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.storeinventory; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -87,7 +87,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public StoreinventoryGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; } @@ -95,7 +95,7 @@ public static class GetRequest { public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java index 7a9de50a73b..222774dc225 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.storeorder; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,12 +84,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public StoreorderPostRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( StoreorderPostRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -100,14 +100,14 @@ public PostRequest( public static class PostNullableRequest { public StoreorderPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java index 6ad421950d5..960ffd2287e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.storeorderorderid; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; import org.openapijsonschematools.client.paths.storeorderorderid.delete.Parameters; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; @@ -79,12 +79,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi public static class DeleteRequest { public StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.pathParameters = pathParameters; @@ -95,14 +95,14 @@ public DeleteRequest( public static class DeleteNullableRequest { public StoreorderorderidDeletePathParameters.@Nullable StoreorderorderidDeletePathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java index 05b1240c04d..02f5280193b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.storeorderorderid; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; import org.openapijsonschematools.client.paths.storeorderorderid.get.Parameters; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; @@ -80,12 +80,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.pathParameters = pathParameters; @@ -96,14 +96,14 @@ public GetRequest( public static class GetNullableRequest { public StoreorderorderidGetPathParameters.@Nullable StoreorderorderidGetPathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetNullableRequest getInstance(); T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java index 9881c39c507..b21a675ef4d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.user; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; import org.openapijsonschematools.client.paths.user.post.UserPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,12 +84,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public UserPostRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( UserPostRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -100,14 +100,14 @@ public PostRequest( public static class PostNullableRequest { public UserPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java index e3c07ef1234..2203dd12e4f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.usercreatewitharray; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,12 +84,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -100,14 +100,14 @@ public PostRequest( public static class PostNullableRequest { public UsercreatewitharrayPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java index 0d346b0d866..61ba96802a3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.usercreatewithlist; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; import org.openapijsonschematools.client.apiclient.ApiClient; @@ -84,12 +84,12 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public UsercreatewithlistPostRequestBody.SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( UsercreatewithlistPostRequestBody.SealedRequestBody requestBody, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -100,14 +100,14 @@ public PostRequest( public static class PostNullableRequest { public UsercreatewithlistPostRequestBody.@Nullable SealedRequestBody requestBody; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PostNullableRequest getInstance(); T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java index 15b691bd5c7..33ff6746e1f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.userlogin; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; import org.openapijsonschematools.client.paths.userlogin.get.Parameters; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; @@ -81,12 +81,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.queryParameters = queryParameters; @@ -97,14 +97,14 @@ public GetRequest( public static class GetNullableRequest { public UserloginGetQueryParameters.@Nullable UserloginGetQueryParametersMap queryParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetNullableRequest getInstance(); T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java index b55850dcc33..7cf2e0bb376 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.userlogout; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; import org.openapijsonschematools.client.apiclient.ApiClient; import org.openapijsonschematools.client.configurations.ApiConfiguration; @@ -74,14 +74,14 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetRequest getInstance(); T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java index 012abce1c6b..2c703941307 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.userusername; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; import org.openapijsonschematools.client.paths.userusername.delete.Parameters; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; @@ -80,12 +80,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi public static class DeleteRequest { public UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.pathParameters = pathParameters; @@ -96,14 +96,14 @@ public DeleteRequest( public static class DeleteNullableRequest { public UserusernameDeletePathParameters.@Nullable UserusernameDeletePathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { DeleteNullableRequest getInstance(); T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java index 5446f82e397..e5735b2c2bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.userusername; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; import org.openapijsonschematools.client.paths.userusername.get.Parameters; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; @@ -80,12 +80,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.pathParameters = pathParameters; @@ -96,14 +96,14 @@ public GetRequest( public static class GetNullableRequest { public UserusernameGetPathParameters.@Nullable UserusernameGetPathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { GetNullableRequest getInstance(); T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java index 6014b6f6d87..dca88adbed0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.paths.userusername; import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; import org.openapijsonschematools.client.paths.userusername.put.Parameters; @@ -89,13 +89,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public UserusernamePutRequestBody.SealedRequestBody requestBody; public UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( UserusernamePutRequestBody.SealedRequestBody requestBody, UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters, - RootServerInfo.@Nullable ServerIndex serverIndex, + ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { this.requestBody = requestBody; @@ -108,14 +108,14 @@ public PutRequest( public static class PutNullableRequest { public UserusernamePutRequestBody.@Nullable SealedRequestBody requestBody; public UserusernamePutPathParameters.@Nullable UserusernamePutPathParametersMap pathParameters; - public RootServerInfo.@Nullable ServerIndex serverIndex; + public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } public interface SetterForServerIndex { PutNullableRequest getInstance(); T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + default T serverIndex(ServerInfo.ServerIndex serverIndex) { var instance = getInstance(); instance.serverIndex = serverIndex; return getBuilderAfterServerIndex(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java deleted file mode 100644 index 1e88d82646c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.openapijsonschematools.client.response; - -import java.net.http.HttpResponse; - -public record DeserializedApiResponse(HttpResponse response, - SealedBodyOutputClass body, - HeaderOutputClass headers) implements ApiResponse { -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java index a33673dc30f..c8ee951bed5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java @@ -4,20 +4,20 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.servers.server0.Variables; +import org.openapijsonschematools.client.servers.server0.Server0Variables; import java.util.AbstractMap; -public class Server0 extends ServerWithVariables { +public class Server0 extends ServerWithVariables { /* petstore server */ - private static Variables.VariablesMap getVariables() { + private static Server0Variables.Server0Variables20 getVariables() { try { - return Variables.Variables1.getInstance().validate( + return Server0Variables.Server0Variables1.getInstance().validate( MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("port", Variables.Port.getInstance().defaultValue()), - new AbstractMap.SimpleEntry<>("server", Variables.Server.getInstance().defaultValue()) + new AbstractMap.SimpleEntry<>("port", Server0Variables.Server0Variables8.getInstance().defaultValue()), + new AbstractMap.SimpleEntry<>("server", Server0Variables.Server0Variables4.getInstance().defaultValue()) ), new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); @@ -32,7 +32,7 @@ public Server0() { getVariables() ); } - public Server0(Variables.VariablesMap variables) { + public Server0(Server0Variables.Server0Variables20 variables) { super("http://{server}.swagger.io:{port}/v2", variables); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java index c95f74ab89f..8bce3657caa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java @@ -4,19 +4,19 @@ import org.openapijsonschematools.client.configurations.SchemaConfiguration; import org.openapijsonschematools.client.exceptions.ValidationException; import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.servers.server1.Variables; +import org.openapijsonschematools.client.servers.server1.Server1Variables; import java.util.AbstractMap; -public class Server1 extends ServerWithVariables { +public class Server1 extends ServerWithVariables { /* The local server */ - private static Variables.VariablesMap getVariables() { + private static Server1Variables.Server1Variables16 getVariables() { try { - return Variables.Variables1.getInstance().validate( + return Server1Variables.Server1Variables1.getInstance().validate( MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("version", Variables.Version.getInstance().defaultValue()) + new AbstractMap.SimpleEntry<>("version", Server1Variables.Server1Variables4.getInstance().defaultValue()) ), new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); @@ -31,7 +31,7 @@ public Server1() { getVariables() ); } - public Server1(Variables.VariablesMap variables) { + public Server1(Server1Variables.Server1Variables16 variables) { super("https://localhost:8080/{version}", variables); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables24.java similarity index 70% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables24.java index e59a8e774ee..1e0e3415ae1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables24.java @@ -29,28 +29,28 @@ import org.openapijsonschematools.client.schemas.validation.StringValueMethod; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class Variables { +public class Server0Variables { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Server0Variables13 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable Server0Variables13 instance = null; + public static Server0Variables13 getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new Server0Variables13(); } return instance; } } - public enum StringServerEnums implements StringValueMethod { + public enum StringServer0Variables6 implements StringValueMethod { PETSTORE("petstore"), QA_HYPHEN_MINUS_PETSTORE("qa-petstore"), DEV_HYPHEN_MINUS_PETSTORE("dev-petstore"); private final String value; - StringServerEnums(String value) { + StringServer0Variables6(String value) { this.value = value; } public String value() { @@ -59,11 +59,11 @@ public String value() { } - public sealed interface ServerBoxed permits ServerBoxedString { + public sealed interface Server0Variables4Boxed permits Server0Variables4BoxedString { @Nullable Object getData(); } - public record ServerBoxedString(String data) implements ServerBoxed { + public record Server0Variables4BoxedString(String data) implements Server0Variables4Boxed { @Override public @Nullable Object getData() { return data; @@ -72,10 +72,10 @@ public record ServerBoxedString(String data) implements ServerBoxed { - public static class Server extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Server instance = null; + public static class Server0Variables4 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Server0Variables4 instance = null; - protected Server() { + protected Server0Variables4() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -89,9 +89,9 @@ protected Server() { ); } - public static Server getInstance() { + public static Server0Variables4 getInstance() { if (instance == null) { - instance = new Server(); + instance = new Server0Variables4(); } return instance; } @@ -108,7 +108,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringServerEnums arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringServer0Variables6 arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -133,23 +133,23 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public ServerBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new ServerBoxedString(validate(arg, configuration)); + public Server0Variables4BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Server0Variables4BoxedString(validate(arg, configuration)); } @Override - public ServerBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Server0Variables4Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } - public enum StringPortEnums implements StringValueMethod { + public enum StringServer0Variables10 implements StringValueMethod { POSITIVE_80("80"), POSITIVE_8080("8080"); private final String value; - StringPortEnums(String value) { + StringServer0Variables10(String value) { this.value = value; } public String value() { @@ -158,11 +158,11 @@ public String value() { } - public sealed interface PortBoxed permits PortBoxedString { + public sealed interface Server0Variables8Boxed permits Server0Variables8BoxedString { @Nullable Object getData(); } - public record PortBoxedString(String data) implements PortBoxed { + public record Server0Variables8BoxedString(String data) implements Server0Variables8Boxed { @Override public @Nullable Object getData() { return data; @@ -171,10 +171,10 @@ public record PortBoxedString(String data) implements PortBoxed { - public static class Port extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Port instance = null; + public static class Server0Variables8 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Server0Variables8 instance = null; - protected Port() { + protected Server0Variables8() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -187,9 +187,9 @@ protected Port() { ); } - public static Port getInstance() { + public static Server0Variables8 getInstance() { if (instance == null) { - instance = new Port(); + instance = new Server0Variables8(); } return instance; } @@ -206,7 +206,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringPortEnums arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringServer0Variables10 arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -231,11 +231,11 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public PortBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new PortBoxedString(validate(arg, configuration)); + public Server0Variables8BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Server0Variables8BoxedString(validate(arg, configuration)); } @Override - public PortBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Server0Variables8Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } @@ -243,8 +243,8 @@ public PortBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration config } } - public static class VariablesMap extends FrozenMap { - protected VariablesMap(FrozenMap m) { + public static class Server0Variables20 extends FrozenMap { + protected Server0Variables20(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( @@ -252,8 +252,8 @@ protected VariablesMap(FrozenMap m) { "server" ); public static final Set optionalKeys = Set.of(); - public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Variables1.getInstance().validate(arg, configuration); + public static Server0Variables20 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Server0Variables1.getInstance().validate(arg, configuration); } public String port() { @@ -273,41 +273,41 @@ public String server() { } } - public interface SetterForPort { + public interface SetterForServer0Variables8 { Map getInstance(); - T getBuilderAfterPort(Map instance); + T getBuilderAfterServer0Variables8(Map instance); default T port(String value) { var instance = getInstance(); instance.put("port", value); - return getBuilderAfterPort(instance); + return getBuilderAfterServer0Variables8(instance); } - default T port(StringPortEnums value) { + default T port(StringServer0Variables10 value) { var instance = getInstance(); instance.put("port", value.value()); - return getBuilderAfterPort(instance); + return getBuilderAfterServer0Variables8(instance); } } - public interface SetterForServer { + public interface SetterForServer0Variables4 { Map getInstance(); - T getBuilderAfterServer(Map instance); + T getBuilderAfterServer0Variables4(Map instance); default T server(String value) { var instance = getInstance(); instance.put("server", value); - return getBuilderAfterServer(instance); + return getBuilderAfterServer0Variables4(instance); } - default T server(StringServerEnums value) { + default T server(StringServer0Variables6 value) { var instance = getInstance(); instance.put("server", value.value()); - return getBuilderAfterServer(instance); + return getBuilderAfterServer0Variables4(instance); } } - public static class VariablesMap00Builder implements GenericBuilder> { + public static class Server0Variables21 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "port", @@ -316,7 +316,7 @@ public static class VariablesMap00Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public VariablesMap00Builder(Map instance) { + public Server0Variables21(Map instance) { this.instance = instance; } public Map build() { @@ -324,54 +324,54 @@ public Map build() { } } - public static class VariablesMap01Builder implements SetterForServer { + public static class Server0Variables22 implements SetterForServer0Variables4 { private final Map instance; - public VariablesMap01Builder(Map instance) { + public Server0Variables22(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public VariablesMap00Builder getBuilderAfterServer(Map instance) { - return new VariablesMap00Builder(instance); + public Server0Variables21 getBuilderAfterServer0Variables4(Map instance) { + return new Server0Variables21(instance); } } - public static class VariablesMap10Builder implements SetterForPort { + public static class Server0Variables23 implements SetterForServer0Variables8 { private final Map instance; - public VariablesMap10Builder(Map instance) { + public Server0Variables23(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public VariablesMap00Builder getBuilderAfterPort(Map instance) { - return new VariablesMap00Builder(instance); + public Server0Variables21 getBuilderAfterServer0Variables8(Map instance) { + return new Server0Variables21(instance); } } - public static class VariablesMapBuilder implements SetterForPort, SetterForServer { + public static class Server0Variables19 implements SetterForServer0Variables8, SetterForServer0Variables4 { private final Map instance; - public VariablesMapBuilder() { + public Server0Variables19() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public VariablesMap01Builder getBuilderAfterPort(Map instance) { - return new VariablesMap01Builder(instance); + public Server0Variables22 getBuilderAfterServer0Variables8(Map instance) { + return new Server0Variables22(instance); } - public VariablesMap10Builder getBuilderAfterServer(Map instance) { - return new VariablesMap10Builder(instance); + public Server0Variables23 getBuilderAfterServer0Variables4(Map instance) { + return new Server0Variables23(instance); } } - public sealed interface Variables1Boxed permits Variables1BoxedMap { + public sealed interface Server0Variables1Boxed permits Server0Variables1BoxedMap { @Nullable Object getData(); } - public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { + public record Server0Variables1BoxedMap(Server0Variables20 data) implements Server0Variables1Boxed { @Override public @Nullable Object getData() { return data; @@ -379,32 +379,32 @@ public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { } - public static class Variables1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Variables1 instance = null; + public static class Server0Variables1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Server0Variables1 instance = null; - protected Variables1() { + protected Server0Variables1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( - new PropertyEntry("server", Server.class), - new PropertyEntry("port", Port.class) + new PropertyEntry("server", Server0Variables4.class), + new PropertyEntry("port", Server0Variables8.class) )) .required(Set.of( "port", "server" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(Server0Variables13.class) ); } - public static Variables1 getInstance() { + public static Server0Variables1 getInstance() { if (instance == null) { - instance = new Variables1(); + instance = new Server0Variables1(); } return instance; } - public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Server0Variables20 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -427,10 +427,10 @@ public VariablesMap getNewInstance(Map arg, List pathToItem, PathT properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new VariablesMap(castProperties); + return new Server0Variables20(castProperties); } - public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Server0Variables20 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -456,11 +456,11 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Variables1BoxedMap(validate(arg, configuration)); + public Server0Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Server0Variables1BoxedMap(validate(arg, configuration)); } @Override - public Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Server0Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables18.java similarity index 71% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables18.java index e54d83dbf00..91b20cabd04 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables18.java @@ -29,27 +29,27 @@ import org.openapijsonschematools.client.schemas.validation.StringValueMethod; import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; -public class Variables { +public class Server1Variables { // nest classes so all schemas and input/output classes can be public - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Server1Variables9 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { + private static @Nullable Server1Variables9 instance = null; + public static Server1Variables9 getInstance() { if (instance == null) { - instance = new AdditionalProperties(); + instance = new Server1Variables9(); } return instance; } } - public enum StringVersionEnums implements StringValueMethod { + public enum StringServer1Variables6 implements StringValueMethod { V1("v1"), V2("v2"); private final String value; - StringVersionEnums(String value) { + StringServer1Variables6(String value) { this.value = value; } public String value() { @@ -58,11 +58,11 @@ public String value() { } - public sealed interface VersionBoxed permits VersionBoxedString { + public sealed interface Server1Variables4Boxed permits Server1Variables4BoxedString { @Nullable Object getData(); } - public record VersionBoxedString(String data) implements VersionBoxed { + public record Server1Variables4BoxedString(String data) implements Server1Variables4Boxed { @Override public @Nullable Object getData() { return data; @@ -71,10 +71,10 @@ public record VersionBoxedString(String data) implements VersionBoxed { - public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Version instance = null; + public static class Server1Variables4 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Server1Variables4 instance = null; - protected Version() { + protected Server1Variables4() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -87,9 +87,9 @@ protected Version() { ); } - public static Version getInstance() { + public static Server1Variables4 getInstance() { if (instance == null) { - instance = new Version(); + instance = new Server1Variables4(); } return instance; } @@ -106,7 +106,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringServer1Variables6 arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -131,11 +131,11 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new VersionBoxedString(validate(arg, configuration)); + public Server1Variables4BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Server1Variables4BoxedString(validate(arg, configuration)); } @Override - public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Server1Variables4Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } @@ -143,16 +143,16 @@ public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration con } } - public static class VariablesMap extends FrozenMap { - protected VariablesMap(FrozenMap m) { + public static class Server1Variables16 extends FrozenMap { + protected Server1Variables16(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "version" ); public static final Set optionalKeys = Set.of(); - public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Variables1.getInstance().validate(arg, configuration); + public static Server1Variables16 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Server1Variables1.getInstance().validate(arg, configuration); } public String version() { @@ -164,24 +164,24 @@ public String version() { } } - public interface SetterForVersion { + public interface SetterForServer1Variables4 { Map getInstance(); - T getBuilderAfterVersion(Map instance); + T getBuilderAfterServer1Variables4(Map instance); default T version(String value) { var instance = getInstance(); instance.put("version", value); - return getBuilderAfterVersion(instance); + return getBuilderAfterServer1Variables4(instance); } - default T version(StringVersionEnums value) { + default T version(StringServer1Variables6 value) { var instance = getInstance(); instance.put("version", value.value()); - return getBuilderAfterVersion(instance); + return getBuilderAfterServer1Variables4(instance); } } - public static class VariablesMap0Builder implements GenericBuilder> { + public static class Server1Variables17 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "version" @@ -189,7 +189,7 @@ public static class VariablesMap0Builder implements GenericBuilder getKnownKeys() { return knownKeys; } - public VariablesMap0Builder(Map instance) { + public Server1Variables17(Map instance) { this.instance = instance; } public Map build() { @@ -197,25 +197,25 @@ public Map build() { } } - public static class VariablesMapBuilder implements SetterForVersion { + public static class Server1Variables15 implements SetterForServer1Variables4 { private final Map instance; - public VariablesMapBuilder() { + public Server1Variables15() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public VariablesMap0Builder getBuilderAfterVersion(Map instance) { - return new VariablesMap0Builder(instance); + public Server1Variables17 getBuilderAfterServer1Variables4(Map instance) { + return new Server1Variables17(instance); } } - public sealed interface Variables1Boxed permits Variables1BoxedMap { + public sealed interface Server1Variables1Boxed permits Server1Variables1BoxedMap { @Nullable Object getData(); } - public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { + public record Server1Variables1BoxedMap(Server1Variables16 data) implements Server1Variables1Boxed { @Override public @Nullable Object getData() { return data; @@ -223,30 +223,30 @@ public record Variables1BoxedMap(VariablesMap data) implements Variables1Boxed { } - public static class Variables1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Variables1 instance = null; + public static class Server1Variables1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Server1Variables1 instance = null; - protected Variables1() { + protected Server1Variables1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( - new PropertyEntry("version", Version.class) + new PropertyEntry("version", Server1Variables4.class) )) .required(Set.of( "version" )) - .additionalProperties(AdditionalProperties.class) + .additionalProperties(Server1Variables9.class) ); } - public static Variables1 getInstance() { + public static Server1Variables1 getInstance() { if (instance == null) { - instance = new Variables1(); + instance = new Server1Variables1(); } return instance; } - public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Server1Variables16 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -269,10 +269,10 @@ public VariablesMap getNewInstance(Map arg, List pathToItem, PathT properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new VariablesMap(castProperties); + return new Server1Variables16(castProperties); } - public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Server1Variables16 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); @@ -298,11 +298,11 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); } @Override - public Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Variables1BoxedMap(validate(arg, configuration)); + public Server1Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Server1Variables1BoxedMap(validate(arg, configuration)); } @Override - public Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Server1Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof Map castArg) { return validateAndBox(castArg, configuration); } diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index 7675fd071f8..fdbb69b9d9e 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -4112,7 +4112,9 @@ private void updatePathsFilepath(String[] pathPieces) { } protected void updateServersFilepath(String[] pathPieces) { - String jsonPath = String.join("/", pathPieces); + String[] copiedPathPieces = pathPieces.clone(); + copiedPathPieces[0] = "#"; + String jsonPath = String.join("/", copiedPathPieces); if (pathPieces.length == 2) { // #/servers } else if (pathPieces.length == 3) { diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 981fe25a2e4..223f70c3752 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -133,17 +133,19 @@ public String toModuleFilename(String name, String jsonPath) { } protected void updateServersFilepath(String[] pathPieces) { + String[] copiedPathPieces = pathPieces.clone(); + copiedPathPieces[0] = "#"; + String jsonPath = String.join("/", copiedPathPieces); if (pathPieces.length == 2) { // #/servers - pathPieces[1] = "RootServerInfo"; + pathPieces[1] = "ServerInfo"; } else if (pathPieces.length == 3) { // #/servers/0 - String jsonPath = "#/servers/" + pathPieces[2]; pathPieces[2] = toServerFilename(pathPieces[2], jsonPath); } else { // #/servers/0/variables - pathPieces[2] = toServerFilename(pathPieces[2], null).toLowerCase(Locale.ROOT); - pathPieces[3] = "Variables"; + pathPieces[2] = toServerFilename(pathPieces[2], jsonPath).toLowerCase(Locale.ROOT); + pathPieces[3] = getPascalCase(CodegenKeyType.SCHEMA, pathPieces[3], jsonPath); } } @@ -155,7 +157,7 @@ public String getPascalCaseServer(String basename, String jsonPath) { @Override public String toServerFilename(String basename, String jsonPath) { - return getPascalCaseServer(basename, jsonPath); + return getPascalCase(CodegenKeyType.SERVER, basename, jsonPath); } @Override @@ -1353,16 +1355,32 @@ private String getSchemaPascalCaseName(String name, @NotNull String sourceJsonPa @Override public String getSchemaFilename(String jsonPath) { String modelName = schemaJsonPathToModelName.get(jsonPath); - if (modelName == null) { - String[] pathPieces = jsonPath.split("/"); - String lastFragment = pathPieces[pathPieces.length-1]; - if (jsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment)) { + if (modelName != null) { + return modelName; + } + String[] pathPieces = jsonPath.split("/"); + String lastFragment = pathPieces[pathPieces.length-1]; + boolean operationParametersSchema = jsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment); + if (operationParametersSchema) { + String prefix = getPathClassNamePrefix(jsonPath); + lastFragment = prefix + lastFragment; + } + boolean serverVariables = (lastFragment.equals("variables") && Set.of(4,6,7).contains(pathPieces.length)); + if (serverVariables) { + if (pathPieces.length == 4) { + // #/servers/0/variables -> 4 + lastFragment = "Server" + pathPieces[2] + "Variables"; + } else if (pathPieces.length == 6) { + // #/paths/somePath/servers/0/variables -> 6 + CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); + lastFragment = pathKey.pascalCase + "Server" + pathPieces[4] + "Variables"; + } else { + // #/paths/somePath/get/servers/0/variables -> 7 String prefix = getPathClassNamePrefix(jsonPath); - lastFragment = prefix + lastFragment; + lastFragment = prefix + "Server" + pathPieces[5] + "Variables"; } - return getSchemaPascalCaseName(lastFragment, jsonPath, false); } - return modelName; + return getSchemaPascalCaseName(lastFragment, jsonPath, false); } protected CodegenKey getContainerJsonPathPiece(String expectedComponentType, String currentJsonPath, String sourceJsonPath) { @@ -2624,10 +2642,27 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St if (jsonPath != null) { String[] pathPieces = jsonPath.split("/"); String lastFragment = pathPieces[pathPieces.length-1]; - if (jsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment)) { + boolean operationParametersSchema = jsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment); + if (operationParametersSchema) { + // for path/query/header/cookie parameter schemas add a prefix String prefix = getPathClassNamePrefix(jsonPath); lastJsonPathFragment = prefix + lastJsonPathFragment; } + boolean serverVariables = (lastFragment.equals("variables") && Set.of(4,6,7).contains(pathPieces.length)); + if (serverVariables) { + if (pathPieces.length == 4) { + // #/servers/0/variables -> 4 + lastJsonPathFragment = "Server" + pathPieces[2] + "Variables"; + } else if (pathPieces.length == 6) { + // #/paths/somePath/servers/0/variables -> 6 + CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); + lastJsonPathFragment = pathKey.pascalCase + "Server" + pathPieces[4] + "Variables"; + } else { + // #/paths/somePath/get/servers/0/variables -> 7 + String prefix = getPathClassNamePrefix(jsonPath); + lastJsonPathFragment = prefix + "Server" + pathPieces[5] + "Variables"; + } + } } return getSchemaPascalCaseName(lastJsonPathFragment, jsonPath, true); case PATH: @@ -2659,37 +2694,31 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St return prefix + "Code" + lastJsonPathFragment + "Response"; } case SERVER: - if (jsonPath != null) { - String[] pathPieces = jsonPath.split("/"); - if (jsonPath.startsWith("#/servers")) { - if (pathPieces.length == 2) { - // #/servers - return "RootServerInfo"; - } else { - // #/servers/0 - return "Server"+pathPieces[2]; - } - } else if (jsonPath.startsWith("#/paths") && pathPieces.length >= 4 && pathPieces[3].equals("servers")) { - CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); - if (pathPieces.length == 4) { - // #/paths/somePath/servers - return pathKey.pascalCase + "ServerInfo"; - } else { - // #/paths/somePath/servers/0 - return pathKey.pascalCase + "Server"+ pathPieces[4]; - } - } else if (jsonPath.startsWith("#/paths") && pathPieces.length >= 5 && pathPieces[4].equals("servers")) { - String prefix = getPathClassNamePrefix(jsonPath); - if (pathPieces.length == 5) { - // #/paths/somePath/get/servers - return prefix + "ServerInfo"; - } else { - // #/paths/somePath/get/servers/0 - return prefix + "Server" + pathPieces[5]; - } + String[] pathPieces = jsonPath.split("/"); + if (jsonPath.startsWith("#/servers")) { + if (pathPieces.length == 2) { + // #/servers + return "ServerInfo"; } + // #/servers/0 + return "Server"+pathPieces[2]; + } else if (jsonPath.startsWith("#/paths") && pathPieces.length >= 4 && pathPieces[3].equals("servers")) { + CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); + if (pathPieces.length == 4) { + // #/paths/somePath/servers + return pathKey.pascalCase + "ServerInfo"; + } + // #/paths/somePath/servers/0 + return pathKey.pascalCase + "Server"+ pathPieces[4]; + } + // jsonPath.startsWith("#/paths") && pathPieces.length >= 5 && pathPieces[4].equals("servers") + String prefix = getPathClassNamePrefix(jsonPath); + if (pathPieces.length == 5) { + // #/paths/somePath/get/servers + return prefix + "ServerInfo"; } - return "Server" + lastJsonPathFragment; + // #/paths/somePath/get/servers/0 + return prefix + "Server" + pathPieces[5]; case SECURITY: return toSecurityFilename(lastJsonPathFragment, jsonPath); default: From a67e21ee0e01c8bde75e86752a2d6516ec7386ca Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 17:24:08 -0700 Subject: [PATCH 06/12] Fixes server variables filenames --- .../petstore/java/.openapi-generator/FILES | 149 +-- .../java/docs/apis/paths/Commonparamsubdir.md | 12 +- .../petstore/java/docs/apis/paths/Fake.md | 8 +- .../apis/paths/Fakebodywithqueryparams.md | 4 +- .../apis/paths/Fakecasesensitiveparams.md | 4 +- .../docs/apis/paths/Fakedeletecoffeeid.md | 4 +- .../Fakeparametercollisions1ababselfab.md | 4 +- .../Fakepetiduploadimagewithrequiredfile.md | 4 +- .../Fakequeryparamwithjsoncontenttype.md | 4 +- .../docs/apis/paths/Faketestqueryparamters.md | 4 +- .../java/docs/apis/paths/Petfindbystatus.md | 4 +- .../java/docs/apis/paths/Petfindbytags.md | 4 +- .../petstore/java/docs/apis/paths/Petpetid.md | 12 +- .../docs/apis/paths/Petpetiduploadimage.md | 4 +- .../java/docs/apis/paths/Storeorderorderid.md | 8 +- .../java/docs/apis/paths/Userlogin.md | 4 +- .../java/docs/apis/paths/Userusername.md | 12 +- .../petstore/java/docs/apis/tags/Fake.md | 44 +- .../petstore/java/docs/apis/tags/Pet.md | 28 +- .../petstore/java/docs/apis/tags/Store.md | 8 +- .../petstore/java/docs/apis/tags/User.md | 16 +- .../CommonparamsubdirDelete.md | 16 +- .../commonparamsubdir/CommonparamsubdirGet.md | 16 +- .../CommonparamsubdirPost.md | 16 +- ...CommonparamsubdirDeleteHeaderParameters.md | 116 +- .../CommonparamsubdirDeletePathParameters.md | 124 +- .../get/CommonparamsubdirGetPathParameters.md | 124 +- .../CommonparamsubdirGetQueryParameters.md | 116 +- .../CommonparamsubdirPostHeaderParameters.md | 116 +- .../CommonparamsubdirPostPathParameters.md | 124 +- .../java/docs/paths/fake/FakeDelete.md | 24 +- .../petstore/java/docs/paths/fake/FakeGet.md | 8 +- .../fake/delete/FakeDeleteHeaderParameters.md | 128 +- .../fake/delete/FakeDeleteQueryParameters.md | 166 +-- .../paths/fake/get/FakeGetHeaderParameters.md | 120 +- .../paths/fake/get/FakeGetQueryParameters.md | 146 +-- .../FakebodywithqueryparamsPut.md | 12 +- ...kebodywithqueryparamsPutQueryParameters.md | 122 +- .../FakecasesensitiveparamsPut.md | 10 +- ...kecasesensitiveparamsPutQueryParameters.md | 180 +-- .../FakedeletecoffeeidDelete.md | 10 +- .../FakedeletecoffeeidDeletePathParameters.md | 122 +- .../FakeinlinecompositionPost.md | 4 +- ...akeinlinecompositionPostQueryParameters.md | 136 +-- .../paths/fakeobjinquery/FakeobjinqueryGet.md | 4 +- .../get/FakeobjinqueryGetQueryParameters.md | 116 +- .../Fakeparametercollisions1ababselfabPost.md | 28 +- ...llisions1ababselfabPostCookieParameters.md | 126 +- ...llisions1ababselfabPostHeaderParameters.md | 122 +- ...collisions1ababselfabPostPathParameters.md | 460 +++---- ...ollisions1ababselfabPostQueryParameters.md | 126 +- ...akepetiduploadimagewithrequiredfilePost.md | 10 +- ...imagewithrequiredfilePostPathParameters.md | 128 +- .../FakequeryparamwithjsoncontenttypeGet.md | 10 +- ...amwithjsoncontenttypeGetQueryParameters.md | 140 +-- .../fakerefobjinquery/FakerefobjinqueryGet.md | 4 +- .../FakerefobjinqueryGetQueryParameters.md | 116 +- .../FaketestqueryparamtersPut.md | 10 +- ...aketestqueryparamtersPutQueryParameters.md | 876 ++++++------- .../petfindbystatus/PetfindbystatusGet.md | 10 +- .../get/PetfindbystatusGetQueryParameters.md | 122 +- .../paths/petfindbytags/PetfindbytagsGet.md | 10 +- .../get/PetfindbytagsGetQueryParameters.md | 122 +- .../docs/paths/petpetid/PetpetidDelete.md | 16 +- .../java/docs/paths/petpetid/PetpetidGet.md | 10 +- .../java/docs/paths/petpetid/PetpetidPost.md | 10 +- .../delete/PetpetidDeleteHeaderParameters.md | 116 +- .../delete/PetpetidDeletePathParameters.md | 128 +- .../petpetid/get/PetpetidGetPathParameters.md | 128 +- .../post/PetpetidPostPathParameters.md | 128 +- .../PetpetiduploadimagePost.md | 10 +- .../PetpetiduploadimagePostPathParameters.md | 128 +- .../StoreorderorderidDelete.md | 10 +- .../storeorderorderid/StoreorderorderidGet.md | 10 +- .../StoreorderorderidDeletePathParameters.md | 122 +- .../get/StoreorderorderidGetPathParameters.md | 128 +- .../java/docs/paths/userlogin/UserloginGet.md | 10 +- .../get/UserloginGetQueryParameters.md | 140 +-- .../paths/userusername/UserusernameDelete.md | 10 +- .../paths/userusername/UserusernameGet.md | 10 +- .../paths/userusername/UserusernamePut.md | 12 +- .../UserusernameDeletePathParameters.md | 122 +- .../get/UserusernameGetPathParameters.md | 122 +- .../put/UserusernamePutPathParameters.md | 122 +- .../petstore/java/docs/servers/Server0.md | 4 +- .../petstore/java/docs/servers/Server1.md | 4 +- ...ver0Variables25.md => Server0Variables.md} | 228 ++-- ...ver1Variables19.md => Server1Variables.md} | 166 +-- .../CommonparamsubdirDelete.java | 16 +- .../CommonparamsubdirGet.java | 16 +- .../CommonparamsubdirPost.java | 16 +- ...mmonparamsubdirDeleteHeaderParameters.java | 38 +- ...CommonparamsubdirDeletePathParameters.java | 46 +- .../CommonparamsubdirGetPathParameters.java | 46 +- .../CommonparamsubdirGetQueryParameters.java | 38 +- ...CommonparamsubdirPostHeaderParameters.java | 38 +- .../CommonparamsubdirPostPathParameters.java | 46 +- .../client/paths/fake/FakeDelete.java | 16 +- .../client/paths/fake/FakeGet.java | 8 +- .../delete/FakeDeleteHeaderParameters.java | 56 +- .../delete/FakeDeleteQueryParameters.java | 98 +- .../fake/get/FakeGetHeaderParameters.java | 48 +- .../fake/get/FakeGetQueryParameters.java | 84 +- .../FakebodywithqueryparamsPut.java | 8 +- ...bodywithqueryparamsPutQueryParameters.java | 44 +- .../FakecasesensitiveparamsPut.java | 8 +- ...casesensitiveparamsPutQueryParameters.java | 124 +- .../FakedeletecoffeeidDelete.java | 8 +- ...akedeletecoffeeidDeletePathParameters.java | 44 +- .../FakeinlinecompositionPost.java | 4 +- ...einlinecompositionPostQueryParameters.java | 62 +- .../fakeobjinquery/FakeobjinqueryGet.java | 4 +- .../get/FakeobjinqueryGetQueryParameters.java | 38 +- ...akeparametercollisions1ababselfabPost.java | 32 +- ...isions1ababselfabPostCookieParameters.java | 70 +- ...isions1ababselfabPostHeaderParameters.java | 62 +- ...llisions1ababselfabPostPathParameters.java | 504 ++++---- ...lisions1ababselfabPostQueryParameters.java | 70 +- ...epetiduploadimagewithrequiredfilePost.java | 8 +- ...agewithrequiredfilePostPathParameters.java | 50 +- .../FakequeryparamwithjsoncontenttypeGet.java | 8 +- ...withjsoncontenttypeGetQueryParameters.java | 60 +- .../FakerefobjinqueryGet.java | 4 +- .../FakerefobjinqueryGetQueryParameters.java | 38 +- .../FaketestqueryparamtersPut.java | 8 +- ...etestqueryparamtersPutQueryParameters.java | 1086 ++++++++--------- .../petfindbystatus/PetfindbystatusGet.java | 8 +- .../PetfindbystatusGetQueryParameters.java | 44 +- .../paths/petfindbytags/PetfindbytagsGet.java | 8 +- .../get/PetfindbytagsGetQueryParameters.java | 44 +- .../client/paths/petpetid/PetpetidDelete.java | 16 +- .../client/paths/petpetid/PetpetidGet.java | 8 +- .../client/paths/petpetid/PetpetidPost.java | 8 +- .../PetpetidDeleteHeaderParameters.java | 38 +- .../delete/PetpetidDeletePathParameters.java | 50 +- .../get/PetpetidGetPathParameters.java | 50 +- .../post/PetpetidPostPathParameters.java | 50 +- .../PetpetiduploadimagePost.java | 8 +- ...PetpetiduploadimagePostPathParameters.java | 50 +- .../StoreorderorderidDelete.java | 8 +- .../StoreorderorderidGet.java | 8 +- ...StoreorderorderidDeletePathParameters.java | 44 +- .../StoreorderorderidGetPathParameters.java | 50 +- .../client/paths/userlogin/UserloginGet.java | 8 +- .../get/UserloginGetQueryParameters.java | 70 +- .../userusername/UserusernameDelete.java | 8 +- .../paths/userusername/UserusernameGet.java | 8 +- .../paths/userusername/UserusernamePut.java | 8 +- .../UserusernameDeletePathParameters.java | 44 +- .../get/UserusernameGetPathParameters.java | 44 +- .../put/UserusernamePutPathParameters.java | 44 +- .../client/servers/Server0.java | 10 +- .../client/servers/Server1.java | 8 +- ...Variables24.java => Server0Variables.java} | 134 +- ...Variables18.java => Server1Variables.java} | 76 +- .../generators/JavaClientGenerator.java | 72 +- 156 files changed, 5272 insertions(+), 5439 deletions(-) rename samples/client/petstore/java/docs/servers/server0/{Server0Variables25.md => Server0Variables.md} (64%) rename samples/client/petstore/java/docs/servers/server1/{Server1Variables19.md => Server1Variables.md} (64%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/{Server0Variables24.java => Server0Variables.java} (78%) rename samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/{Server1Variables18.java => Server1Variables.java} (82%) diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index d7481188066..2263447de42 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -749,8 +749,8 @@ docs/paths/userusername/put/responses/UserusernamePutCode404Response.md docs/servers/Server0.md docs/servers/Server1.md docs/servers/Server2.md -docs/servers/server0/Server0Variables25.md -docs/servers/server1/Server1Variables19.md +docs/servers/server0/Server0Variables.md +docs/servers/server1/Server1Variables.md pom.xml src/main/java/org/openapijsonschematools/client/ServerInfo.java src/main/java/org/openapijsonschematools/client/apiclient/ApiClient.java @@ -1823,149 +1823,8 @@ src/main/java/org/openapijsonschematools/client/servers/Server2.java src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java -src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables24.java -src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables18.java -src/test/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessageTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClassTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchemaTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnumsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/AddressTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/AnimalFarmTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/AnimalTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormatTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotStringTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchemaTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/AppleReqTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/AppleTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyTypeTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnlyTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnumsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnlyTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTestTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItemsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/BananaReqTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/BananaTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/BarTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/BasquePigTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/BooleanEnumTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/BooleanSchemaTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/CapitalizationTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/CatTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/CategoryTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ChildCatTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ClassModelTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ClientTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateralTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidationsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ComposedArrayTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ComposedBoolTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNoneTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNumberTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ComposedObjectTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypesTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ComposedStringTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/CurrencyTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/DanishPigTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeTestTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidationsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/DateWithValidationsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/DecimalPayloadTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/DogTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/DrawingTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/EnumArraysTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/EnumClassTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/EnumTestTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangleTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClassTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/FileTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/FooTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/FormatTestTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/FromSchemaTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/FruitReqTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/FruitTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/GmFruitTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimalTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnlyTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/HealthCheckResultTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBigTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValueTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValueTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMax10Test.java -src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMin15Test.java -src/test/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangleTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ItemsSchemaTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ItemsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTestTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopyTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemoveTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/MammalTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/MapTestTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClassTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/MoneyTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/MultiPropertiesSchemaTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/MyObjectDtoTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/NameTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/NoAdditionalPropertiesTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/NullableClassTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/NullableShapeTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/NullableStringTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/NumberOnlyTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/NumberSchemaTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMaxTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithValidationsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBaseTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectInterfaceTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsPropertiesTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefPropsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddPropTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingPropertiesTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalPropertiesTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedPropsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionPropertyTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedPropertiesTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValuesTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalPropsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestPropTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidationsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/OrderTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDtoTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ParentPetTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/PetTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/PigTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/PlayerTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/PublicKeyTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterfaceTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirstTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/RefPetTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddPropsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddPropsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddPropsTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ReturnSchemaTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangleTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/Schema200ResponseTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModelTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModelTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ShapeOrNullTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ShapeTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateralTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/SomeObjectTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/SpecialModelnameTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/StringBooleanMapTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValueTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/StringSchemaTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/StringWithValidationTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/TagTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/TriangleInterfaceTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/TriangleTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/UUIDStringTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/UserTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/WhaleTest.java -src/test/java/org/openapijsonschematools/client/components/schemas/ZebraTest.java +src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java +src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java src/test/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlagsTest.java src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java diff --git a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md index a664937fbd9..d483f8fc78a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md +++ b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md @@ -86,9 +86,9 @@ Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConf // Map validation -CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters = +CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters = CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( - new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMapBuilder() + new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters8() .subDir("c") .build(), @@ -186,9 +186,9 @@ Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConf // Map validation -CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters = +CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters = CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( - new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMapBuilder() + new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters8() .subDir("a") .build(), @@ -286,9 +286,9 @@ Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConf // Map validation -CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters = +CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters = CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( - new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMapBuilder() + new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters8() .subDir("a") .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Fake.md b/samples/client/petstore/java/docs/apis/paths/Fake.md index f2c3e7a57f5..c02192b4b04 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fake.md +++ b/samples/client/petstore/java/docs/apis/paths/Fake.md @@ -100,9 +100,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters = +FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters = FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( - new FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMapBuilder() + new FakeDeleteHeaderParameters.FakeDeleteHeaderParameters11() .required_boolean_group("true") .boolean_group("true") @@ -112,9 +112,9 @@ FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters = ); // Map validation -FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters = +FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters = FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( - new FakeDeleteQueryParameters.FakeDeleteQueryParametersMapBuilder() + new FakeDeleteQueryParameters.FakeDeleteQueryParameters13() .required_int64_group(1L) .required_string_group("a") diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md index 3b02f7cd9b9..7b07cdb65a8 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md @@ -107,9 +107,9 @@ User1BoxedMap requestBodyPayload = FakebodywithqueryparamsPut.SealedRequestBody requestBody = new FakebodywithqueryparamsPut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters = +FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters = FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( - new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMapBuilder() + new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters8() .query("a") .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md index c330c955afe..dfd38672aac 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md @@ -81,9 +81,9 @@ Fakecasesensitiveparams apiClient = new Fakecasesensitiveparams(apiConfiguration // Map validation -FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters = +FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters = FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( - new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMapBuilder() + new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters10() .SomeVar("a") .someVar("a") diff --git a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md index 20337b04aa4..74ed388455e 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md @@ -82,9 +82,9 @@ Fakedeletecoffeeid apiClient = new Fakedeletecoffeeid(apiConfiguration, schemaCo // Map validation -FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters = +FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters = FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( - new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMapBuilder() + new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters8() .id("a") .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md index 72e03d28340..c497e6bc637 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md @@ -83,9 +83,9 @@ Fakeparametercollisions1ababselfab apiClient = new Fakeparametercollisions1ababs // Map validation -Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters = +Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters = Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( - new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMapBuilder() + new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters12() .positive1("a") .aHyphenMinusB("a") diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md index fe90cb9440c..e368077db75 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md @@ -91,9 +91,9 @@ Fakepetiduploadimagewithrequiredfile apiClient = new Fakepetiduploadimagewithreq // Map validation -FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters = +FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters = FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( - new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder() + new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters8() .petId(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md index ae7d0904158..23f3595a14c 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md @@ -79,9 +79,9 @@ Fakequeryparamwithjsoncontenttype apiClient = new Fakequeryparamwithjsoncontentt // Map validation -FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters = +FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters = FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( - new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder() + new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters8() .build(), schemaConfiguration ); diff --git a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md index f42c42e3b38..0a629247502 100644 --- a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md +++ b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md @@ -81,9 +81,9 @@ Faketestqueryparamters apiClient = new Faketestqueryparamters(apiConfiguration, // Map validation -FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters = +FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters = FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( - new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMapBuilder() + new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters13() .context( Arrays.asList( "a" diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md index f0f4f2499a1..944e0630b72 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md @@ -95,9 +95,9 @@ Petfindbystatus apiClient = new Petfindbystatus(apiConfiguration, schemaConfigur // Map validation -PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters = +PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters = PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( - new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMapBuilder() + new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters8() .status( Arrays.asList( "available" diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md index a39879fd9d5..91cea50ba47 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md @@ -92,9 +92,9 @@ Petfindbytags apiClient = new Petfindbytags(apiConfiguration, schemaConfiguratio // Map validation -PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters = +PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters = PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( - new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMapBuilder() + new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters8() .tags( Arrays.asList( "a" diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetid.md b/samples/client/petstore/java/docs/apis/paths/Petpetid.md index b44d5c64fee..0aafc86e3d5 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetid.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetid.md @@ -99,9 +99,9 @@ Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); // Map validation -PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters = +PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters = PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( - new PetpetidDeletePathParameters.PetpetidDeletePathParametersMapBuilder() + new PetpetidDeletePathParameters.PetpetidDeletePathParameters8() .petId(1L) .build(), @@ -216,9 +216,9 @@ Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); // Map validation -PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters = +PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters = PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( - new PetpetidGetPathParameters.PetpetidGetPathParametersMapBuilder() + new PetpetidGetPathParameters.PetpetidGetPathParameters8() .petId(1L) .build(), @@ -340,9 +340,9 @@ Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); // Map validation -PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters = +PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters = PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( - new PetpetidPostPathParameters.PetpetidPostPathParametersMapBuilder() + new PetpetidPostPathParameters.PetpetidPostPathParameters8() .petId(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md index 4a549392692..f0456450874 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md @@ -92,9 +92,9 @@ Petpetiduploadimage apiClient = new Petpetiduploadimage(apiConfiguration, schema // Map validation -PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters = +PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters = PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( - new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMapBuilder() + new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters8() .petId(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md index 9bfb1b2bc60..167e4722b31 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md @@ -84,9 +84,9 @@ Storeorderorderid apiClient = new Storeorderorderid(apiConfiguration, schemaConf // Map validation -StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters = +StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters = StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( - new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMapBuilder() + new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters8() .order_id("a") .build(), @@ -189,9 +189,9 @@ Storeorderorderid apiClient = new Storeorderorderid(apiConfiguration, schemaConf // Map validation -StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters = +StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters = StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( - new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMapBuilder() + new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters8() .order_id(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogin.md b/samples/client/petstore/java/docs/apis/paths/Userlogin.md index 0b2ddfe44af..1cbbc3dbc62 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogin.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogin.md @@ -83,9 +83,9 @@ Userlogin apiClient = new Userlogin(apiConfiguration, schemaConfiguration); // Map validation -UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters = +UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters = UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( - new UserloginGetQueryParameters.UserloginGetQueryParametersMapBuilder() + new UserloginGetQueryParameters.UserloginGetQueryParameters9() .password("a") .username("a") diff --git a/samples/client/petstore/java/docs/apis/paths/Userusername.md b/samples/client/petstore/java/docs/apis/paths/Userusername.md index d4f44cd8d70..56938fdad2e 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userusername.md +++ b/samples/client/petstore/java/docs/apis/paths/Userusername.md @@ -86,9 +86,9 @@ Userusername apiClient = new Userusername(apiConfiguration, schemaConfiguration) // Map validation -UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters = +UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters = UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( - new UserusernameDeletePathParameters.UserusernameDeletePathParametersMapBuilder() + new UserusernameDeletePathParameters.UserusernameDeletePathParameters8() .username("a") .build(), @@ -192,9 +192,9 @@ Userusername apiClient = new Userusername(apiConfiguration, schemaConfiguration) // Map validation -UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters = +UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters = UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( - new UserusernameGetPathParameters.UserusernameGetPathParametersMapBuilder() + new UserusernameGetPathParameters.UserusernameGetPathParameters8() .username("a") .build(), @@ -331,9 +331,9 @@ User1BoxedMap requestBodyPayload = UserusernamePut.SealedRequestBody requestBody = new UserusernamePut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters = +UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters = UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( - new UserusernamePutPathParameters.UserusernamePutPathParametersMapBuilder() + new UserusernamePutPathParameters.UserusernamePutPathParameters8() .username("a") .build(), diff --git a/samples/client/petstore/java/docs/apis/tags/Fake.md b/samples/client/petstore/java/docs/apis/tags/Fake.md index e1f1fcb67f2..a3a05d51c9a 100644 --- a/samples/client/petstore/java/docs/apis/tags/Fake.md +++ b/samples/client/petstore/java/docs/apis/tags/Fake.md @@ -346,9 +346,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters = +CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters = CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( - new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMapBuilder() + new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters8() .subDir("c") .build(), @@ -446,9 +446,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters = +CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters = CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( - new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMapBuilder() + new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters8() .subDir("a") .build(), @@ -546,9 +546,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters = +CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters = CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( - new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMapBuilder() + new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters8() .subDir("a") .build(), @@ -647,9 +647,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters = +FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters = FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( - new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMapBuilder() + new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters10() .SomeVar("a") .someVar("a") @@ -885,9 +885,9 @@ User1BoxedMap requestBodyPayload = FakebodywithqueryparamsPut.SealedRequestBody requestBody = new FakebodywithqueryparamsPut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters = +FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters = FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( - new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMapBuilder() + new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters8() .query("a") .build(), @@ -1924,9 +1924,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters = +FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters = FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( - new FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMapBuilder() + new FakeDeleteHeaderParameters.FakeDeleteHeaderParameters11() .required_boolean_group("true") .boolean_group("true") @@ -1936,9 +1936,9 @@ FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters = ); // Map validation -FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters = +FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters = FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( - new FakeDeleteQueryParameters.FakeDeleteQueryParametersMapBuilder() + new FakeDeleteQueryParameters.FakeDeleteQueryParameters13() .required_int64_group(1L) .required_string_group("a") @@ -3183,9 +3183,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters = +Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters = Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( - new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMapBuilder() + new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters12() .positive1("a") .aHyphenMinusB("a") @@ -3292,9 +3292,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters = +FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters = FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( - new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder() + new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters8() .build(), schemaConfiguration ); @@ -3585,9 +3585,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters = +FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters = FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( - new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMapBuilder() + new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters13() .context( Arrays.asList( "a" @@ -4266,9 +4266,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters = +FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters = FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( - new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMapBuilder() + new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters8() .id("a") .build(), diff --git a/samples/client/petstore/java/docs/apis/tags/Pet.md b/samples/client/petstore/java/docs/apis/tags/Pet.md index 3273498b7fc..39ab87d7366 100644 --- a/samples/client/petstore/java/docs/apis/tags/Pet.md +++ b/samples/client/petstore/java/docs/apis/tags/Pet.md @@ -108,9 +108,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters = +FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters = FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( - new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder() + new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters8() .petId(1L) .build(), @@ -520,9 +520,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters = +PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters = PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( - new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMapBuilder() + new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters8() .tags( Arrays.asList( "a" @@ -642,9 +642,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters = +PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters = PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( - new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMapBuilder() + new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters8() .status( Arrays.asList( "available" @@ -761,9 +761,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters = +PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters = PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( - new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMapBuilder() + new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters8() .petId(1L) .build(), @@ -877,9 +877,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters = +PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters = PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( - new PetpetidDeletePathParameters.PetpetidDeletePathParametersMapBuilder() + new PetpetidDeletePathParameters.PetpetidDeletePathParameters8() .petId(1L) .build(), @@ -994,9 +994,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters = +PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters = PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( - new PetpetidGetPathParameters.PetpetidGetPathParametersMapBuilder() + new PetpetidGetPathParameters.PetpetidGetPathParameters8() .petId(1L) .build(), @@ -1118,9 +1118,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters = +PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters = PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( - new PetpetidPostPathParameters.PetpetidPostPathParametersMapBuilder() + new PetpetidPostPathParameters.PetpetidPostPathParameters8() .petId(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/tags/Store.md b/samples/client/petstore/java/docs/apis/tags/Store.md index 58522d6a4f4..2313fba4c7f 100644 --- a/samples/client/petstore/java/docs/apis/tags/Store.md +++ b/samples/client/petstore/java/docs/apis/tags/Store.md @@ -191,9 +191,9 @@ Store apiClient = new Store(apiConfiguration, schemaConfiguration); // Map validation -StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters = +StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters = StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( - new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMapBuilder() + new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters8() .order_id("a") .build(), @@ -296,9 +296,9 @@ Store apiClient = new Store(apiConfiguration, schemaConfiguration); // Map validation -StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters = +StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters = StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( - new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMapBuilder() + new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters8() .order_id(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/tags/User.md b/samples/client/petstore/java/docs/apis/tags/User.md index e4d95e3afb1..aa7b46392a3 100644 --- a/samples/client/petstore/java/docs/apis/tags/User.md +++ b/samples/client/petstore/java/docs/apis/tags/User.md @@ -444,9 +444,9 @@ User apiClient = new User(apiConfiguration, schemaConfiguration); // Map validation -UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters = +UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters = UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( - new UserloginGetQueryParameters.UserloginGetQueryParametersMapBuilder() + new UserloginGetQueryParameters.UserloginGetQueryParameters9() .password("a") .username("a") @@ -557,9 +557,9 @@ User apiClient = new User(apiConfiguration, schemaConfiguration); // Map validation -UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters = +UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters = UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( - new UserusernameDeletePathParameters.UserusernameDeletePathParametersMapBuilder() + new UserusernameDeletePathParameters.UserusernameDeletePathParameters8() .username("a") .build(), @@ -663,9 +663,9 @@ User apiClient = new User(apiConfiguration, schemaConfiguration); // Map validation -UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters = +UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters = UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( - new UserusernameGetPathParameters.UserusernameGetPathParametersMapBuilder() + new UserusernameGetPathParameters.UserusernameGetPathParameters8() .username("a") .build(), @@ -802,9 +802,9 @@ User1BoxedMap requestBodyPayload = UserusernamePut.SealedRequestBody requestBody = new UserusernamePut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters = +UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters = UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( - new UserusernamePutPathParameters.UserusernamePutPathParametersMapBuilder() + new UserusernamePutPathParameters.UserusernamePutPathParameters8() .username("a") .build(), diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index eb838362623..63e18708657 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -75,9 +75,9 @@ CommonparamsubdirDelete.Delete apiClient = new CommonparamsubdirDelete.Delete(ap // Map validation -CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters = +CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters = CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( - new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMapBuilder() + new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters8() .subDir("c") .build(), @@ -135,8 +135,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparametersmap) | pathParameters | -| [CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparametersmap) | headerParameters
optional | +| [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparameters9) | pathParameters | +| [CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparameters9) | headerParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -148,8 +148,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirDeletePathParameters.@Nullable CommonparamsubdirDeletePathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparametersmap) | pathParameters | -| [CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparametersmap) | headerParameters | +| [CommonparamsubdirDeletePathParameters.@Nullable CommonparamsubdirDeletePathParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparameters9) | pathParameters | +| [CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparameters9) | headerParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -167,7 +167,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([CommonparamsubdirDeleteHeaderParametersCommonparamsubdirDeleteHeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparametersmap) headerParameters)
sets the optional property | +| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([CommonparamsubdirDeleteHeaderParametersCommonparamsubdirDeleteHeaderParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparameters9) headerParameters)
sets the optional property | | [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([CommonparamsubdirDeletePathParametersCommonparamsubdirDeletePathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparametersmap) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([CommonparamsubdirDeletePathParametersCommonparamsubdirDeletePathParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md index 43379277820..fa512457a86 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -75,9 +75,9 @@ CommonparamsubdirGet.Get apiClient = new CommonparamsubdirGet.Get(apiConfigurati // Map validation -CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters = +CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters = CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( - new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMapBuilder() + new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters8() .subDir("a") .build(), @@ -135,8 +135,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparametersmap) | pathParameters | -| [CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparametersmap) | queryParameters
optional | +| [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparameters9) | pathParameters | +| [CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparameters9) | queryParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -148,8 +148,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirGetPathParameters.@Nullable CommonparamsubdirGetPathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparametersmap) | pathParameters | -| [CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparametersmap) | queryParameters | +| [CommonparamsubdirGetPathParameters.@Nullable CommonparamsubdirGetPathParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparameters9) | pathParameters | +| [CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparameters9) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -167,7 +167,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([CommonparamsubdirGetQueryParametersCommonparamsubdirGetQueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparametersmap) queryParameters)
sets the optional property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([CommonparamsubdirGetQueryParametersCommonparamsubdirGetQueryParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparameters9) queryParameters)
sets the optional property | | [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([CommonparamsubdirGetPathParametersCommonparamsubdirGetPathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparametersmap) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([CommonparamsubdirGetPathParametersCommonparamsubdirGetPathParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md index 52e4c7d73c8..29b6709535d 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -75,9 +75,9 @@ CommonparamsubdirPost.Post apiClient = new CommonparamsubdirPost.Post(apiConfigu // Map validation -CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters = +CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters = CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( - new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMapBuilder() + new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters8() .subDir("a") .build(), @@ -135,8 +135,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparametersmap) | pathParameters | -| [CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparametersmap) | headerParameters
optional | +| [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparameters9) | pathParameters | +| [CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparameters9) | headerParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -148,8 +148,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirPostPathParameters.@Nullable CommonparamsubdirPostPathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparametersmap) | pathParameters | -| [CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparametersmap) | headerParameters | +| [CommonparamsubdirPostPathParameters.@Nullable CommonparamsubdirPostPathParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparameters9) | pathParameters | +| [CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparameters9) | headerParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -167,7 +167,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([CommonparamsubdirPostHeaderParametersCommonparamsubdirPostHeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparametersmap) headerParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([CommonparamsubdirPostHeaderParametersCommonparamsubdirPostHeaderParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparameters9) headerParameters)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([CommonparamsubdirPostPathParametersCommonparamsubdirPostPathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparametersmap) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([CommonparamsubdirPostPathParametersCommonparamsubdirPostPathParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md index 1acedc6bca7..dc557b64842 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1](#commonparamsubdirdeleteheaderparameters1)
schema class | -| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParametersMapBuilder](#commonparamsubdirdeleteheaderparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParametersMap](#commonparamsubdirdeleteheaderparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedVoid](#commonparamsubdirdeleteadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean](#commonparamsubdirdeleteadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedNumber](#commonparamsubdirdeleteadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedString](#commonparamsubdirdeleteadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedList](#commonparamsubdirdeleteadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedMap](#commonparamsubdirdeleteadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteadditionalProperties](#commonparamsubdirdeleteadditionalproperties)
schema class | +| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters8](#commonparamsubdirdeleteheaderparameters8)
builder for Map payloads | +| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters9](#commonparamsubdirdeleteheaderparameters9)
output class for Map payloads | +| sealed interface | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedVoid](#commonparamsubdirdeleteheaderparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedBoolean](#commonparamsubdirdeleteheaderparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedNumber](#commonparamsubdirdeleteheaderparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedString](#commonparamsubdirdeleteheaderparameters4boxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedList](#commonparamsubdirdeleteheaderparameters4boxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedMap](#commonparamsubdirdeleteheaderparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4](#commonparamsubdirdeleteheaderparameters4)
schema class | ## CommonparamsubdirDeleteHeaderParameters1Boxed public sealed interface CommonparamsubdirDeleteHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteHeaderParameters1BoxedMap([CommonparamsubdirDeleteHeaderParametersMap](#commonparamsubdirdeleteheaderparametersmap) data)
Creates an instance, private visibility | +| CommonparamsubdirDeleteHeaderParameters1BoxedMap([CommonparamsubdirDeleteHeaderParameters9](#commonparamsubdirdeleteheaderparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeleteHeaderParametersMap](#commonparamsubdirdeleteheaderparametersmap) | data()
validated payload | +| [CommonparamsubdirDeleteHeaderParameters9](#commonparamsubdirdeleteheaderparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirDeleteHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParametersMap validatedPayload = +CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters9 validatedPayload = CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1.validate( - new CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParametersMapBuilder() + new CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters8() .someHeader("a") .build(), @@ -87,18 +87,18 @@ CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParametersM | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("someHeader", [Schema0.Schema01.class](../../../paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [CommonparamsubdirDeleteadditionalProperties.class](#commonparamsubdirdeleteadditionalproperties) | +| Class | additionalProperties = [CommonparamsubdirDeleteHeaderParameters4.class](#commonparamsubdirdeleteheaderparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeleteHeaderParametersMap](#commonparamsubdirdeleteheaderparametersmap) | validate([Map<?, ?>](#commonparamsubdirdeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirdeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeleteHeaderParameters9](#commonparamsubdirdeleteheaderparameters9) | validate([Map<?, ?>](#commonparamsubdirdeleteheaderparameters8) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirdeleteheaderparameters8) arg, SchemaConfiguration configuration) | | [CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirDeleteHeaderParametersMapBuilder -public class CommonparamsubdirDeleteHeaderParametersMapBuilder
+## CommonparamsubdirDeleteHeaderParameters8 +public class CommonparamsubdirDeleteHeaderParameters8
builder for `Map` A class that builds the Map input type @@ -106,16 +106,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteHeaderParametersMapBuilder()
Creates a builder that contains an empty map | +| CommonparamsubdirDeleteHeaderParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [CommonparamsubdirDeleteHeaderParametersMapBuilder](#commonparamsubdirdeleteheaderparametersmapbuilder) | someHeader(String value) | +| [CommonparamsubdirDeleteHeaderParameters8](#commonparamsubdirdeleteheaderparameters8) | someHeader(String value) | -## CommonparamsubdirDeleteHeaderParametersMap -public static class CommonparamsubdirDeleteHeaderParametersMap
+## CommonparamsubdirDeleteHeaderParameters9 +public static class CommonparamsubdirDeleteHeaderParameters9
extends FrozenMap A class to store validated Map payloads @@ -123,31 +123,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirDeleteHeaderParametersMap](#commonparamsubdirdeleteheaderparametersmap) | of([Map](#commonparamsubdirdeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [CommonparamsubdirDeleteHeaderParameters9](#commonparamsubdirdeleteheaderparameters9) | of([Map](#commonparamsubdirdeleteheaderparameters8) arg, SchemaConfiguration configuration) | | String | someHeader()
[optional] | -## CommonparamsubdirDeleteadditionalPropertiesBoxed -public sealed interface CommonparamsubdirDeleteadditionalPropertiesBoxed
+## CommonparamsubdirDeleteHeaderParameters4Boxed +public sealed interface CommonparamsubdirDeleteHeaderParameters4Boxed
permits
-[CommonparamsubdirDeleteadditionalPropertiesBoxedVoid](#commonparamsubdirdeleteadditionalpropertiesboxedvoid), -[CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean](#commonparamsubdirdeleteadditionalpropertiesboxedboolean), -[CommonparamsubdirDeleteadditionalPropertiesBoxedNumber](#commonparamsubdirdeleteadditionalpropertiesboxednumber), -[CommonparamsubdirDeleteadditionalPropertiesBoxedString](#commonparamsubdirdeleteadditionalpropertiesboxedstring), -[CommonparamsubdirDeleteadditionalPropertiesBoxedList](#commonparamsubdirdeleteadditionalpropertiesboxedlist), -[CommonparamsubdirDeleteadditionalPropertiesBoxedMap](#commonparamsubdirdeleteadditionalpropertiesboxedmap) +[CommonparamsubdirDeleteHeaderParameters4BoxedVoid](#commonparamsubdirdeleteheaderparameters4boxedvoid), +[CommonparamsubdirDeleteHeaderParameters4BoxedBoolean](#commonparamsubdirdeleteheaderparameters4boxedboolean), +[CommonparamsubdirDeleteHeaderParameters4BoxedNumber](#commonparamsubdirdeleteheaderparameters4boxednumber), +[CommonparamsubdirDeleteHeaderParameters4BoxedString](#commonparamsubdirdeleteheaderparameters4boxedstring), +[CommonparamsubdirDeleteHeaderParameters4BoxedList](#commonparamsubdirdeleteheaderparameters4boxedlist), +[CommonparamsubdirDeleteHeaderParameters4BoxedMap](#commonparamsubdirdeleteheaderparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirDeleteadditionalPropertiesBoxedVoid -public record CommonparamsubdirDeleteadditionalPropertiesBoxedVoid
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeleteHeaderParameters4BoxedVoid +public record CommonparamsubdirDeleteHeaderParameters4BoxedVoid
+implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| CommonparamsubdirDeleteHeaderParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -155,16 +155,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean -public record CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeleteHeaderParameters4BoxedBoolean +public record CommonparamsubdirDeleteHeaderParameters4BoxedBoolean
+implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| CommonparamsubdirDeleteHeaderParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalPropertiesBoxedNumber -public record CommonparamsubdirDeleteadditionalPropertiesBoxedNumber
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeleteHeaderParameters4BoxedNumber +public record CommonparamsubdirDeleteHeaderParameters4BoxedNumber
+implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| CommonparamsubdirDeleteHeaderParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalPropertiesBoxedString -public record CommonparamsubdirDeleteadditionalPropertiesBoxedString
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeleteHeaderParameters4BoxedString +public record CommonparamsubdirDeleteHeaderParameters4BoxedString
+implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| CommonparamsubdirDeleteHeaderParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalPropertiesBoxedList -public record CommonparamsubdirDeleteadditionalPropertiesBoxedList
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeleteHeaderParameters4BoxedList +public record CommonparamsubdirDeleteHeaderParameters4BoxedList
+implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirDeleteHeaderParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalPropertiesBoxedMap -public record CommonparamsubdirDeleteadditionalPropertiesBoxedMap
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeleteHeaderParameters4BoxedMap +public record CommonparamsubdirDeleteHeaderParameters4BoxedMap
+implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirDeleteHeaderParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,8 +240,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalProperties -public static class CommonparamsubdirDeleteadditionalProperties
+## CommonparamsubdirDeleteHeaderParameters4 +public static class CommonparamsubdirDeleteHeaderParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md index 62e02ea4ad8..2b290390151 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1](#commonparamsubdirdeletepathparameters1)
schema class | -| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMapBuilder](#commonparamsubdirdeletepathparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap](#commonparamsubdirdeletepathparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedVoid](#commonparamsubdirdeleteadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean](#commonparamsubdirdeleteadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedNumber](#commonparamsubdirdeleteadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedString](#commonparamsubdirdeleteadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedList](#commonparamsubdirdeleteadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeleteadditionalPropertiesBoxedMap](#commonparamsubdirdeleteadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeleteadditionalProperties](#commonparamsubdirdeleteadditionalproperties)
schema class | +| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters8](#commonparamsubdirdeletepathparameters8)
builder for Map payloads | +| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9](#commonparamsubdirdeletepathparameters9)
output class for Map payloads | +| sealed interface | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedVoid](#commonparamsubdirdeletepathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedBoolean](#commonparamsubdirdeletepathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedNumber](#commonparamsubdirdeletepathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedString](#commonparamsubdirdeletepathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedList](#commonparamsubdirdeletepathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedMap](#commonparamsubdirdeletepathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4](#commonparamsubdirdeletepathparameters4)
schema class | ## CommonparamsubdirDeletePathParameters1Boxed public sealed interface CommonparamsubdirDeletePathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParameters1BoxedMap([CommonparamsubdirDeletePathParametersMap](#commonparamsubdirdeletepathparametersmap) data)
Creates an instance, private visibility | +| CommonparamsubdirDeletePathParameters1BoxedMap([CommonparamsubdirDeletePathParameters9](#commonparamsubdirdeletepathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeletePathParametersMap](#commonparamsubdirdeletepathparametersmap) | data()
validated payload | +| [CommonparamsubdirDeletePathParameters9](#commonparamsubdirdeletepathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirDeletePathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap validatedPayload = +CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 validatedPayload = CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( - new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMapBuilder() + new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters8() .subDir("c") .build(), @@ -88,18 +88,18 @@ CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap v | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [Schema1.Schema11.class](../../../paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md#schema11))
)
| | Set | required = Set.of(
    "subDir"
)
| -| Class | additionalProperties = [CommonparamsubdirDeleteadditionalProperties.class](#commonparamsubdirdeleteadditionalproperties) | +| Class | additionalProperties = [CommonparamsubdirDeletePathParameters4.class](#commonparamsubdirdeletepathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeletePathParametersMap](#commonparamsubdirdeletepathparametersmap) | validate([Map<?, ?>](#commonparamsubdirdeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirdeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeletePathParameters9](#commonparamsubdirdeletepathparameters9) | validate([Map<?, ?>](#commonparamsubdirdeletepathparameters8) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirdeletepathparameters8) arg, SchemaConfiguration configuration) | | [CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirDeletePathParametersMap0Builder -public class CommonparamsubdirDeletePathParametersMap0Builder
+## CommonparamsubdirDeletePathParameters10 +public class CommonparamsubdirDeletePathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| CommonparamsubdirDeletePathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## CommonparamsubdirDeletePathParametersMapBuilder -public class CommonparamsubdirDeletePathParametersMapBuilder
+## CommonparamsubdirDeletePathParameters8 +public class CommonparamsubdirDeletePathParameters8
builder for `Map` A class that builds the Map input type @@ -123,16 +123,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParametersMapBuilder()
Creates a builder that contains an empty map | +| CommonparamsubdirDeletePathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeletePathParametersMap0Builder](#commonparamsubdirdeletepathparametersmap0builder) | subDir(String value) | -| [CommonparamsubdirDeletePathParametersMap0Builder](#commonparamsubdirdeletepathparametersmap0builder) | subDir([Schema1.StringSchemaEnums1](../../../paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | +| [CommonparamsubdirDeletePathParameters10](#commonparamsubdirdeletepathparameters10) | subDir(String value) | +| [CommonparamsubdirDeletePathParameters10](#commonparamsubdirdeletepathparameters10) | subDir([Schema1.StringSchemaEnums1](../../../paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | -## CommonparamsubdirDeletePathParametersMap -public static class CommonparamsubdirDeletePathParametersMap
+## CommonparamsubdirDeletePathParameters9 +public static class CommonparamsubdirDeletePathParameters9
extends FrozenMap A class to store validated Map payloads @@ -140,31 +140,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirDeletePathParametersMap](#commonparamsubdirdeletepathparametersmap) | of([Map](#commonparamsubdirdeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [CommonparamsubdirDeletePathParameters9](#commonparamsubdirdeletepathparameters9) | of([Map](#commonparamsubdirdeletepathparameters8) arg, SchemaConfiguration configuration) | | String | subDir()
| -## CommonparamsubdirDeleteadditionalPropertiesBoxed -public sealed interface CommonparamsubdirDeleteadditionalPropertiesBoxed
+## CommonparamsubdirDeletePathParameters4Boxed +public sealed interface CommonparamsubdirDeletePathParameters4Boxed
permits
-[CommonparamsubdirDeleteadditionalPropertiesBoxedVoid](#commonparamsubdirdeleteadditionalpropertiesboxedvoid), -[CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean](#commonparamsubdirdeleteadditionalpropertiesboxedboolean), -[CommonparamsubdirDeleteadditionalPropertiesBoxedNumber](#commonparamsubdirdeleteadditionalpropertiesboxednumber), -[CommonparamsubdirDeleteadditionalPropertiesBoxedString](#commonparamsubdirdeleteadditionalpropertiesboxedstring), -[CommonparamsubdirDeleteadditionalPropertiesBoxedList](#commonparamsubdirdeleteadditionalpropertiesboxedlist), -[CommonparamsubdirDeleteadditionalPropertiesBoxedMap](#commonparamsubdirdeleteadditionalpropertiesboxedmap) +[CommonparamsubdirDeletePathParameters4BoxedVoid](#commonparamsubdirdeletepathparameters4boxedvoid), +[CommonparamsubdirDeletePathParameters4BoxedBoolean](#commonparamsubdirdeletepathparameters4boxedboolean), +[CommonparamsubdirDeletePathParameters4BoxedNumber](#commonparamsubdirdeletepathparameters4boxednumber), +[CommonparamsubdirDeletePathParameters4BoxedString](#commonparamsubdirdeletepathparameters4boxedstring), +[CommonparamsubdirDeletePathParameters4BoxedList](#commonparamsubdirdeletepathparameters4boxedlist), +[CommonparamsubdirDeletePathParameters4BoxedMap](#commonparamsubdirdeletepathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirDeleteadditionalPropertiesBoxedVoid -public record CommonparamsubdirDeleteadditionalPropertiesBoxedVoid
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeletePathParameters4BoxedVoid +public record CommonparamsubdirDeletePathParameters4BoxedVoid
+implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| CommonparamsubdirDeletePathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean -public record CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeletePathParameters4BoxedBoolean +public record CommonparamsubdirDeletePathParameters4BoxedBoolean
+implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| CommonparamsubdirDeletePathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalPropertiesBoxedNumber -public record CommonparamsubdirDeleteadditionalPropertiesBoxedNumber
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeletePathParameters4BoxedNumber +public record CommonparamsubdirDeletePathParameters4BoxedNumber
+implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| CommonparamsubdirDeletePathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalPropertiesBoxedString -public record CommonparamsubdirDeleteadditionalPropertiesBoxedString
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeletePathParameters4BoxedString +public record CommonparamsubdirDeletePathParameters4BoxedString
+implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| CommonparamsubdirDeletePathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalPropertiesBoxedList -public record CommonparamsubdirDeleteadditionalPropertiesBoxedList
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeletePathParameters4BoxedList +public record CommonparamsubdirDeletePathParameters4BoxedList
+implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirDeletePathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,16 +240,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalPropertiesBoxedMap -public record CommonparamsubdirDeleteadditionalPropertiesBoxedMap
-implements [CommonparamsubdirDeleteadditionalPropertiesBoxed](#commonparamsubdirdeleteadditionalpropertiesboxed) +## CommonparamsubdirDeletePathParameters4BoxedMap +public record CommonparamsubdirDeletePathParameters4BoxedMap
+implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirDeletePathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -257,8 +257,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteadditionalProperties -public static class CommonparamsubdirDeleteadditionalProperties
+## CommonparamsubdirDeletePathParameters4 +public static class CommonparamsubdirDeletePathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md index eed90e0e7c1..5401a5e9c1b 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1](#commonparamsubdirgetpathparameters1)
schema class | -| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMapBuilder](#commonparamsubdirgetpathparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap](#commonparamsubdirgetpathparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetadditionalPropertiesBoxedVoid](#commonparamsubdirgetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetadditionalPropertiesBoxedBoolean](#commonparamsubdirgetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetadditionalPropertiesBoxedNumber](#commonparamsubdirgetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetadditionalPropertiesBoxedString](#commonparamsubdirgetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetadditionalPropertiesBoxedList](#commonparamsubdirgetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetadditionalPropertiesBoxedMap](#commonparamsubdirgetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetadditionalProperties](#commonparamsubdirgetadditionalproperties)
schema class | +| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters8](#commonparamsubdirgetpathparameters8)
builder for Map payloads | +| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9](#commonparamsubdirgetpathparameters9)
output class for Map payloads | +| sealed interface | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedVoid](#commonparamsubdirgetpathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedBoolean](#commonparamsubdirgetpathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedNumber](#commonparamsubdirgetpathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedString](#commonparamsubdirgetpathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedList](#commonparamsubdirgetpathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedMap](#commonparamsubdirgetpathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4](#commonparamsubdirgetpathparameters4)
schema class | ## CommonparamsubdirGetPathParameters1Boxed public sealed interface CommonparamsubdirGetPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParameters1BoxedMap([CommonparamsubdirGetPathParametersMap](#commonparamsubdirgetpathparametersmap) data)
Creates an instance, private visibility | +| CommonparamsubdirGetPathParameters1BoxedMap([CommonparamsubdirGetPathParameters9](#commonparamsubdirgetpathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetPathParametersMap](#commonparamsubdirgetpathparametersmap) | data()
validated payload | +| [CommonparamsubdirGetPathParameters9](#commonparamsubdirgetpathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirGetPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap validatedPayload = +CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 validatedPayload = CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( - new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMapBuilder() + new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters8() .subDir("a") .build(), @@ -88,18 +88,18 @@ CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap validat | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [RouteParamSchema0.RouteParamSchema01.class](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#routeparamschema01))
)
| | Set | required = Set.of(
    "subDir"
)
| -| Class | additionalProperties = [CommonparamsubdirGetadditionalProperties.class](#commonparamsubdirgetadditionalproperties) | +| Class | additionalProperties = [CommonparamsubdirGetPathParameters4.class](#commonparamsubdirgetpathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetPathParametersMap](#commonparamsubdirgetpathparametersmap) | validate([Map<?, ?>](#commonparamsubdirgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetPathParameters9](#commonparamsubdirgetpathparameters9) | validate([Map<?, ?>](#commonparamsubdirgetpathparameters8) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirgetpathparameters8) arg, SchemaConfiguration configuration) | | [CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirGetPathParametersMap0Builder -public class CommonparamsubdirGetPathParametersMap0Builder
+## CommonparamsubdirGetPathParameters10 +public class CommonparamsubdirGetPathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| CommonparamsubdirGetPathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## CommonparamsubdirGetPathParametersMapBuilder -public class CommonparamsubdirGetPathParametersMapBuilder
+## CommonparamsubdirGetPathParameters8 +public class CommonparamsubdirGetPathParameters8
builder for `Map` A class that builds the Map input type @@ -123,16 +123,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParametersMapBuilder()
Creates a builder that contains an empty map | +| CommonparamsubdirGetPathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetPathParametersMap0Builder](#commonparamsubdirgetpathparametersmap0builder) | subDir(String value) | -| [CommonparamsubdirGetPathParametersMap0Builder](#commonparamsubdirgetpathparametersmap0builder) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | +| [CommonparamsubdirGetPathParameters10](#commonparamsubdirgetpathparameters10) | subDir(String value) | +| [CommonparamsubdirGetPathParameters10](#commonparamsubdirgetpathparameters10) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | -## CommonparamsubdirGetPathParametersMap -public static class CommonparamsubdirGetPathParametersMap
+## CommonparamsubdirGetPathParameters9 +public static class CommonparamsubdirGetPathParameters9
extends FrozenMap A class to store validated Map payloads @@ -140,31 +140,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirGetPathParametersMap](#commonparamsubdirgetpathparametersmap) | of([Map](#commonparamsubdirgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [CommonparamsubdirGetPathParameters9](#commonparamsubdirgetpathparameters9) | of([Map](#commonparamsubdirgetpathparameters8) arg, SchemaConfiguration configuration) | | String | subDir()
| -## CommonparamsubdirGetadditionalPropertiesBoxed -public sealed interface CommonparamsubdirGetadditionalPropertiesBoxed
+## CommonparamsubdirGetPathParameters4Boxed +public sealed interface CommonparamsubdirGetPathParameters4Boxed
permits
-[CommonparamsubdirGetadditionalPropertiesBoxedVoid](#commonparamsubdirgetadditionalpropertiesboxedvoid), -[CommonparamsubdirGetadditionalPropertiesBoxedBoolean](#commonparamsubdirgetadditionalpropertiesboxedboolean), -[CommonparamsubdirGetadditionalPropertiesBoxedNumber](#commonparamsubdirgetadditionalpropertiesboxednumber), -[CommonparamsubdirGetadditionalPropertiesBoxedString](#commonparamsubdirgetadditionalpropertiesboxedstring), -[CommonparamsubdirGetadditionalPropertiesBoxedList](#commonparamsubdirgetadditionalpropertiesboxedlist), -[CommonparamsubdirGetadditionalPropertiesBoxedMap](#commonparamsubdirgetadditionalpropertiesboxedmap) +[CommonparamsubdirGetPathParameters4BoxedVoid](#commonparamsubdirgetpathparameters4boxedvoid), +[CommonparamsubdirGetPathParameters4BoxedBoolean](#commonparamsubdirgetpathparameters4boxedboolean), +[CommonparamsubdirGetPathParameters4BoxedNumber](#commonparamsubdirgetpathparameters4boxednumber), +[CommonparamsubdirGetPathParameters4BoxedString](#commonparamsubdirgetpathparameters4boxedstring), +[CommonparamsubdirGetPathParameters4BoxedList](#commonparamsubdirgetpathparameters4boxedlist), +[CommonparamsubdirGetPathParameters4BoxedMap](#commonparamsubdirgetpathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirGetadditionalPropertiesBoxedVoid -public record CommonparamsubdirGetadditionalPropertiesBoxedVoid
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetPathParameters4BoxedVoid +public record CommonparamsubdirGetPathParameters4BoxedVoid
+implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| CommonparamsubdirGetPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalPropertiesBoxedBoolean -public record CommonparamsubdirGetadditionalPropertiesBoxedBoolean
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetPathParameters4BoxedBoolean +public record CommonparamsubdirGetPathParameters4BoxedBoolean
+implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| CommonparamsubdirGetPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalPropertiesBoxedNumber -public record CommonparamsubdirGetadditionalPropertiesBoxedNumber
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetPathParameters4BoxedNumber +public record CommonparamsubdirGetPathParameters4BoxedNumber
+implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| CommonparamsubdirGetPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalPropertiesBoxedString -public record CommonparamsubdirGetadditionalPropertiesBoxedString
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetPathParameters4BoxedString +public record CommonparamsubdirGetPathParameters4BoxedString
+implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| CommonparamsubdirGetPathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalPropertiesBoxedList -public record CommonparamsubdirGetadditionalPropertiesBoxedList
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetPathParameters4BoxedList +public record CommonparamsubdirGetPathParameters4BoxedList
+implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirGetPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,16 +240,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalPropertiesBoxedMap -public record CommonparamsubdirGetadditionalPropertiesBoxedMap
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetPathParameters4BoxedMap +public record CommonparamsubdirGetPathParameters4BoxedMap
+implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirGetPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -257,8 +257,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalProperties -public static class CommonparamsubdirGetadditionalProperties
+## CommonparamsubdirGetPathParameters4 +public static class CommonparamsubdirGetPathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md index 32a24a2bd57..15b7bd3a42d 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1](#commonparamsubdirgetqueryparameters1)
schema class | -| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParametersMapBuilder](#commonparamsubdirgetqueryparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParametersMap](#commonparamsubdirgetqueryparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetadditionalPropertiesBoxedVoid](#commonparamsubdirgetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetadditionalPropertiesBoxedBoolean](#commonparamsubdirgetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetadditionalPropertiesBoxedNumber](#commonparamsubdirgetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetadditionalPropertiesBoxedString](#commonparamsubdirgetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetadditionalPropertiesBoxedList](#commonparamsubdirgetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetadditionalPropertiesBoxedMap](#commonparamsubdirgetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetadditionalProperties](#commonparamsubdirgetadditionalproperties)
schema class | +| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters8](#commonparamsubdirgetqueryparameters8)
builder for Map payloads | +| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters9](#commonparamsubdirgetqueryparameters9)
output class for Map payloads | +| sealed interface | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedVoid](#commonparamsubdirgetqueryparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedBoolean](#commonparamsubdirgetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedNumber](#commonparamsubdirgetqueryparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedString](#commonparamsubdirgetqueryparameters4boxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedList](#commonparamsubdirgetqueryparameters4boxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedMap](#commonparamsubdirgetqueryparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4](#commonparamsubdirgetqueryparameters4)
schema class | ## CommonparamsubdirGetQueryParameters1Boxed public sealed interface CommonparamsubdirGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetQueryParameters1BoxedMap([CommonparamsubdirGetQueryParametersMap](#commonparamsubdirgetqueryparametersmap) data)
Creates an instance, private visibility | +| CommonparamsubdirGetQueryParameters1BoxedMap([CommonparamsubdirGetQueryParameters9](#commonparamsubdirgetqueryparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetQueryParametersMap](#commonparamsubdirgetqueryparametersmap) | data()
validated payload | +| [CommonparamsubdirGetQueryParameters9](#commonparamsubdirgetqueryparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParametersMap validatedPayload = +CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters9 validatedPayload = CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1.validate( - new CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParametersMapBuilder() + new CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters8() .searchStr("a") .build(), @@ -87,18 +87,18 @@ CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParametersMap valid | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("searchStr", [Schema0.Schema01.class](../../../paths/commonparamsubdir/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [CommonparamsubdirGetadditionalProperties.class](#commonparamsubdirgetadditionalproperties) | +| Class | additionalProperties = [CommonparamsubdirGetQueryParameters4.class](#commonparamsubdirgetqueryparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetQueryParametersMap](#commonparamsubdirgetqueryparametersmap) | validate([Map<?, ?>](#commonparamsubdirgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetQueryParameters9](#commonparamsubdirgetqueryparameters9) | validate([Map<?, ?>](#commonparamsubdirgetqueryparameters8) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirgetqueryparameters8) arg, SchemaConfiguration configuration) | | [CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirGetQueryParametersMapBuilder -public class CommonparamsubdirGetQueryParametersMapBuilder
+## CommonparamsubdirGetQueryParameters8 +public class CommonparamsubdirGetQueryParameters8
builder for `Map` A class that builds the Map input type @@ -106,16 +106,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| CommonparamsubdirGetQueryParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [CommonparamsubdirGetQueryParametersMapBuilder](#commonparamsubdirgetqueryparametersmapbuilder) | searchStr(String value) | +| [CommonparamsubdirGetQueryParameters8](#commonparamsubdirgetqueryparameters8) | searchStr(String value) | -## CommonparamsubdirGetQueryParametersMap -public static class CommonparamsubdirGetQueryParametersMap
+## CommonparamsubdirGetQueryParameters9 +public static class CommonparamsubdirGetQueryParameters9
extends FrozenMap A class to store validated Map payloads @@ -123,31 +123,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirGetQueryParametersMap](#commonparamsubdirgetqueryparametersmap) | of([Map](#commonparamsubdirgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [CommonparamsubdirGetQueryParameters9](#commonparamsubdirgetqueryparameters9) | of([Map](#commonparamsubdirgetqueryparameters8) arg, SchemaConfiguration configuration) | | String | searchStr()
[optional] | -## CommonparamsubdirGetadditionalPropertiesBoxed -public sealed interface CommonparamsubdirGetadditionalPropertiesBoxed
+## CommonparamsubdirGetQueryParameters4Boxed +public sealed interface CommonparamsubdirGetQueryParameters4Boxed
permits
-[CommonparamsubdirGetadditionalPropertiesBoxedVoid](#commonparamsubdirgetadditionalpropertiesboxedvoid), -[CommonparamsubdirGetadditionalPropertiesBoxedBoolean](#commonparamsubdirgetadditionalpropertiesboxedboolean), -[CommonparamsubdirGetadditionalPropertiesBoxedNumber](#commonparamsubdirgetadditionalpropertiesboxednumber), -[CommonparamsubdirGetadditionalPropertiesBoxedString](#commonparamsubdirgetadditionalpropertiesboxedstring), -[CommonparamsubdirGetadditionalPropertiesBoxedList](#commonparamsubdirgetadditionalpropertiesboxedlist), -[CommonparamsubdirGetadditionalPropertiesBoxedMap](#commonparamsubdirgetadditionalpropertiesboxedmap) +[CommonparamsubdirGetQueryParameters4BoxedVoid](#commonparamsubdirgetqueryparameters4boxedvoid), +[CommonparamsubdirGetQueryParameters4BoxedBoolean](#commonparamsubdirgetqueryparameters4boxedboolean), +[CommonparamsubdirGetQueryParameters4BoxedNumber](#commonparamsubdirgetqueryparameters4boxednumber), +[CommonparamsubdirGetQueryParameters4BoxedString](#commonparamsubdirgetqueryparameters4boxedstring), +[CommonparamsubdirGetQueryParameters4BoxedList](#commonparamsubdirgetqueryparameters4boxedlist), +[CommonparamsubdirGetQueryParameters4BoxedMap](#commonparamsubdirgetqueryparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirGetadditionalPropertiesBoxedVoid -public record CommonparamsubdirGetadditionalPropertiesBoxedVoid
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetQueryParameters4BoxedVoid +public record CommonparamsubdirGetQueryParameters4BoxedVoid
+implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| CommonparamsubdirGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -155,16 +155,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalPropertiesBoxedBoolean -public record CommonparamsubdirGetadditionalPropertiesBoxedBoolean
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetQueryParameters4BoxedBoolean +public record CommonparamsubdirGetQueryParameters4BoxedBoolean
+implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| CommonparamsubdirGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalPropertiesBoxedNumber -public record CommonparamsubdirGetadditionalPropertiesBoxedNumber
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetQueryParameters4BoxedNumber +public record CommonparamsubdirGetQueryParameters4BoxedNumber
+implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| CommonparamsubdirGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalPropertiesBoxedString -public record CommonparamsubdirGetadditionalPropertiesBoxedString
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetQueryParameters4BoxedString +public record CommonparamsubdirGetQueryParameters4BoxedString
+implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| CommonparamsubdirGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalPropertiesBoxedList -public record CommonparamsubdirGetadditionalPropertiesBoxedList
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetQueryParameters4BoxedList +public record CommonparamsubdirGetQueryParameters4BoxedList
+implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalPropertiesBoxedMap -public record CommonparamsubdirGetadditionalPropertiesBoxedMap
-implements [CommonparamsubdirGetadditionalPropertiesBoxed](#commonparamsubdirgetadditionalpropertiesboxed) +## CommonparamsubdirGetQueryParameters4BoxedMap +public record CommonparamsubdirGetQueryParameters4BoxedMap
+implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,8 +240,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetadditionalProperties -public static class CommonparamsubdirGetadditionalProperties
+## CommonparamsubdirGetQueryParameters4 +public static class CommonparamsubdirGetQueryParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md index 8e6e4dc7616..53d98a3dcc1 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1](#commonparamsubdirpostheaderparameters1)
schema class | -| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParametersMapBuilder](#commonparamsubdirpostheaderparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParametersMap](#commonparamsubdirpostheaderparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostadditionalPropertiesBoxedVoid](#commonparamsubdirpostadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostadditionalPropertiesBoxedBoolean](#commonparamsubdirpostadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostadditionalPropertiesBoxedNumber](#commonparamsubdirpostadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostadditionalPropertiesBoxedString](#commonparamsubdirpostadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostadditionalPropertiesBoxedList](#commonparamsubdirpostadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostadditionalPropertiesBoxedMap](#commonparamsubdirpostadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostadditionalProperties](#commonparamsubdirpostadditionalproperties)
schema class | +| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters8](#commonparamsubdirpostheaderparameters8)
builder for Map payloads | +| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters9](#commonparamsubdirpostheaderparameters9)
output class for Map payloads | +| sealed interface | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedVoid](#commonparamsubdirpostheaderparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedBoolean](#commonparamsubdirpostheaderparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedNumber](#commonparamsubdirpostheaderparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedString](#commonparamsubdirpostheaderparameters4boxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedList](#commonparamsubdirpostheaderparameters4boxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedMap](#commonparamsubdirpostheaderparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4](#commonparamsubdirpostheaderparameters4)
schema class | ## CommonparamsubdirPostHeaderParameters1Boxed public sealed interface CommonparamsubdirPostHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostHeaderParameters1BoxedMap([CommonparamsubdirPostHeaderParametersMap](#commonparamsubdirpostheaderparametersmap) data)
Creates an instance, private visibility | +| CommonparamsubdirPostHeaderParameters1BoxedMap([CommonparamsubdirPostHeaderParameters9](#commonparamsubdirpostheaderparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostHeaderParametersMap](#commonparamsubdirpostheaderparametersmap) | data()
validated payload | +| [CommonparamsubdirPostHeaderParameters9](#commonparamsubdirpostheaderparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirPostHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParametersMap validatedPayload = +CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters9 validatedPayload = CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1.validate( - new CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParametersMapBuilder() + new CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters8() .someHeader("a") .build(), @@ -87,18 +87,18 @@ CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParametersMap v | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("someHeader", [Schema0.Schema01.class](../../../paths/commonparamsubdir/post/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [CommonparamsubdirPostadditionalProperties.class](#commonparamsubdirpostadditionalproperties) | +| Class | additionalProperties = [CommonparamsubdirPostHeaderParameters4.class](#commonparamsubdirpostheaderparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostHeaderParametersMap](#commonparamsubdirpostheaderparametersmap) | validate([Map<?, ?>](#commonparamsubdirpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostHeaderParameters9](#commonparamsubdirpostheaderparameters9) | validate([Map<?, ?>](#commonparamsubdirpostheaderparameters8) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirpostheaderparameters8) arg, SchemaConfiguration configuration) | | [CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirPostHeaderParametersMapBuilder -public class CommonparamsubdirPostHeaderParametersMapBuilder
+## CommonparamsubdirPostHeaderParameters8 +public class CommonparamsubdirPostHeaderParameters8
builder for `Map` A class that builds the Map input type @@ -106,16 +106,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostHeaderParametersMapBuilder()
Creates a builder that contains an empty map | +| CommonparamsubdirPostHeaderParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [CommonparamsubdirPostHeaderParametersMapBuilder](#commonparamsubdirpostheaderparametersmapbuilder) | someHeader(String value) | +| [CommonparamsubdirPostHeaderParameters8](#commonparamsubdirpostheaderparameters8) | someHeader(String value) | -## CommonparamsubdirPostHeaderParametersMap -public static class CommonparamsubdirPostHeaderParametersMap
+## CommonparamsubdirPostHeaderParameters9 +public static class CommonparamsubdirPostHeaderParameters9
extends FrozenMap A class to store validated Map payloads @@ -123,31 +123,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirPostHeaderParametersMap](#commonparamsubdirpostheaderparametersmap) | of([Map](#commonparamsubdirpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [CommonparamsubdirPostHeaderParameters9](#commonparamsubdirpostheaderparameters9) | of([Map](#commonparamsubdirpostheaderparameters8) arg, SchemaConfiguration configuration) | | String | someHeader()
[optional] | -## CommonparamsubdirPostadditionalPropertiesBoxed -public sealed interface CommonparamsubdirPostadditionalPropertiesBoxed
+## CommonparamsubdirPostHeaderParameters4Boxed +public sealed interface CommonparamsubdirPostHeaderParameters4Boxed
permits
-[CommonparamsubdirPostadditionalPropertiesBoxedVoid](#commonparamsubdirpostadditionalpropertiesboxedvoid), -[CommonparamsubdirPostadditionalPropertiesBoxedBoolean](#commonparamsubdirpostadditionalpropertiesboxedboolean), -[CommonparamsubdirPostadditionalPropertiesBoxedNumber](#commonparamsubdirpostadditionalpropertiesboxednumber), -[CommonparamsubdirPostadditionalPropertiesBoxedString](#commonparamsubdirpostadditionalpropertiesboxedstring), -[CommonparamsubdirPostadditionalPropertiesBoxedList](#commonparamsubdirpostadditionalpropertiesboxedlist), -[CommonparamsubdirPostadditionalPropertiesBoxedMap](#commonparamsubdirpostadditionalpropertiesboxedmap) +[CommonparamsubdirPostHeaderParameters4BoxedVoid](#commonparamsubdirpostheaderparameters4boxedvoid), +[CommonparamsubdirPostHeaderParameters4BoxedBoolean](#commonparamsubdirpostheaderparameters4boxedboolean), +[CommonparamsubdirPostHeaderParameters4BoxedNumber](#commonparamsubdirpostheaderparameters4boxednumber), +[CommonparamsubdirPostHeaderParameters4BoxedString](#commonparamsubdirpostheaderparameters4boxedstring), +[CommonparamsubdirPostHeaderParameters4BoxedList](#commonparamsubdirpostheaderparameters4boxedlist), +[CommonparamsubdirPostHeaderParameters4BoxedMap](#commonparamsubdirpostheaderparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirPostadditionalPropertiesBoxedVoid -public record CommonparamsubdirPostadditionalPropertiesBoxedVoid
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostHeaderParameters4BoxedVoid +public record CommonparamsubdirPostHeaderParameters4BoxedVoid
+implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| CommonparamsubdirPostHeaderParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -155,16 +155,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalPropertiesBoxedBoolean -public record CommonparamsubdirPostadditionalPropertiesBoxedBoolean
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostHeaderParameters4BoxedBoolean +public record CommonparamsubdirPostHeaderParameters4BoxedBoolean
+implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| CommonparamsubdirPostHeaderParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalPropertiesBoxedNumber -public record CommonparamsubdirPostadditionalPropertiesBoxedNumber
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostHeaderParameters4BoxedNumber +public record CommonparamsubdirPostHeaderParameters4BoxedNumber
+implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| CommonparamsubdirPostHeaderParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalPropertiesBoxedString -public record CommonparamsubdirPostadditionalPropertiesBoxedString
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostHeaderParameters4BoxedString +public record CommonparamsubdirPostHeaderParameters4BoxedString
+implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| CommonparamsubdirPostHeaderParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalPropertiesBoxedList -public record CommonparamsubdirPostadditionalPropertiesBoxedList
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostHeaderParameters4BoxedList +public record CommonparamsubdirPostHeaderParameters4BoxedList
+implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirPostHeaderParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalPropertiesBoxedMap -public record CommonparamsubdirPostadditionalPropertiesBoxedMap
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostHeaderParameters4BoxedMap +public record CommonparamsubdirPostHeaderParameters4BoxedMap
+implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirPostHeaderParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,8 +240,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalProperties -public static class CommonparamsubdirPostadditionalProperties
+## CommonparamsubdirPostHeaderParameters4 +public static class CommonparamsubdirPostHeaderParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md index 7693f93a48b..917b27ec038 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1](#commonparamsubdirpostpathparameters1)
schema class | -| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMapBuilder](#commonparamsubdirpostpathparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap](#commonparamsubdirpostpathparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostadditionalPropertiesBoxedVoid](#commonparamsubdirpostadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostadditionalPropertiesBoxedBoolean](#commonparamsubdirpostadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostadditionalPropertiesBoxedNumber](#commonparamsubdirpostadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostadditionalPropertiesBoxedString](#commonparamsubdirpostadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostadditionalPropertiesBoxedList](#commonparamsubdirpostadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostadditionalPropertiesBoxedMap](#commonparamsubdirpostadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostadditionalProperties](#commonparamsubdirpostadditionalproperties)
schema class | +| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters8](#commonparamsubdirpostpathparameters8)
builder for Map payloads | +| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9](#commonparamsubdirpostpathparameters9)
output class for Map payloads | +| sealed interface | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedVoid](#commonparamsubdirpostpathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedBoolean](#commonparamsubdirpostpathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedNumber](#commonparamsubdirpostpathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedString](#commonparamsubdirpostpathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedList](#commonparamsubdirpostpathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedMap](#commonparamsubdirpostpathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4](#commonparamsubdirpostpathparameters4)
schema class | ## CommonparamsubdirPostPathParameters1Boxed public sealed interface CommonparamsubdirPostPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParameters1BoxedMap([CommonparamsubdirPostPathParametersMap](#commonparamsubdirpostpathparametersmap) data)
Creates an instance, private visibility | +| CommonparamsubdirPostPathParameters1BoxedMap([CommonparamsubdirPostPathParameters9](#commonparamsubdirpostpathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostPathParametersMap](#commonparamsubdirpostpathparametersmap) | data()
validated payload | +| [CommonparamsubdirPostPathParameters9](#commonparamsubdirpostpathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirPostPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap validatedPayload = +CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 validatedPayload = CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( - new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMapBuilder() + new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters8() .subDir("a") .build(), @@ -88,18 +88,18 @@ CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap valid | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [RouteParamSchema0.RouteParamSchema01.class](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#routeparamschema01))
)
| | Set | required = Set.of(
    "subDir"
)
| -| Class | additionalProperties = [CommonparamsubdirPostadditionalProperties.class](#commonparamsubdirpostadditionalproperties) | +| Class | additionalProperties = [CommonparamsubdirPostPathParameters4.class](#commonparamsubdirpostpathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostPathParametersMap](#commonparamsubdirpostpathparametersmap) | validate([Map<?, ?>](#commonparamsubdirpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostPathParameters9](#commonparamsubdirpostpathparameters9) | validate([Map<?, ?>](#commonparamsubdirpostpathparameters8) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirpostpathparameters8) arg, SchemaConfiguration configuration) | | [CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirPostPathParametersMap0Builder -public class CommonparamsubdirPostPathParametersMap0Builder
+## CommonparamsubdirPostPathParameters10 +public class CommonparamsubdirPostPathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| CommonparamsubdirPostPathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## CommonparamsubdirPostPathParametersMapBuilder -public class CommonparamsubdirPostPathParametersMapBuilder
+## CommonparamsubdirPostPathParameters8 +public class CommonparamsubdirPostPathParameters8
builder for `Map` A class that builds the Map input type @@ -123,16 +123,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParametersMapBuilder()
Creates a builder that contains an empty map | +| CommonparamsubdirPostPathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostPathParametersMap0Builder](#commonparamsubdirpostpathparametersmap0builder) | subDir(String value) | -| [CommonparamsubdirPostPathParametersMap0Builder](#commonparamsubdirpostpathparametersmap0builder) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | +| [CommonparamsubdirPostPathParameters10](#commonparamsubdirpostpathparameters10) | subDir(String value) | +| [CommonparamsubdirPostPathParameters10](#commonparamsubdirpostpathparameters10) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | -## CommonparamsubdirPostPathParametersMap -public static class CommonparamsubdirPostPathParametersMap
+## CommonparamsubdirPostPathParameters9 +public static class CommonparamsubdirPostPathParameters9
extends FrozenMap A class to store validated Map payloads @@ -140,31 +140,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirPostPathParametersMap](#commonparamsubdirpostpathparametersmap) | of([Map](#commonparamsubdirpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [CommonparamsubdirPostPathParameters9](#commonparamsubdirpostpathparameters9) | of([Map](#commonparamsubdirpostpathparameters8) arg, SchemaConfiguration configuration) | | String | subDir()
| -## CommonparamsubdirPostadditionalPropertiesBoxed -public sealed interface CommonparamsubdirPostadditionalPropertiesBoxed
+## CommonparamsubdirPostPathParameters4Boxed +public sealed interface CommonparamsubdirPostPathParameters4Boxed
permits
-[CommonparamsubdirPostadditionalPropertiesBoxedVoid](#commonparamsubdirpostadditionalpropertiesboxedvoid), -[CommonparamsubdirPostadditionalPropertiesBoxedBoolean](#commonparamsubdirpostadditionalpropertiesboxedboolean), -[CommonparamsubdirPostadditionalPropertiesBoxedNumber](#commonparamsubdirpostadditionalpropertiesboxednumber), -[CommonparamsubdirPostadditionalPropertiesBoxedString](#commonparamsubdirpostadditionalpropertiesboxedstring), -[CommonparamsubdirPostadditionalPropertiesBoxedList](#commonparamsubdirpostadditionalpropertiesboxedlist), -[CommonparamsubdirPostadditionalPropertiesBoxedMap](#commonparamsubdirpostadditionalpropertiesboxedmap) +[CommonparamsubdirPostPathParameters4BoxedVoid](#commonparamsubdirpostpathparameters4boxedvoid), +[CommonparamsubdirPostPathParameters4BoxedBoolean](#commonparamsubdirpostpathparameters4boxedboolean), +[CommonparamsubdirPostPathParameters4BoxedNumber](#commonparamsubdirpostpathparameters4boxednumber), +[CommonparamsubdirPostPathParameters4BoxedString](#commonparamsubdirpostpathparameters4boxedstring), +[CommonparamsubdirPostPathParameters4BoxedList](#commonparamsubdirpostpathparameters4boxedlist), +[CommonparamsubdirPostPathParameters4BoxedMap](#commonparamsubdirpostpathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirPostadditionalPropertiesBoxedVoid -public record CommonparamsubdirPostadditionalPropertiesBoxedVoid
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostPathParameters4BoxedVoid +public record CommonparamsubdirPostPathParameters4BoxedVoid
+implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| CommonparamsubdirPostPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalPropertiesBoxedBoolean -public record CommonparamsubdirPostadditionalPropertiesBoxedBoolean
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostPathParameters4BoxedBoolean +public record CommonparamsubdirPostPathParameters4BoxedBoolean
+implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| CommonparamsubdirPostPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalPropertiesBoxedNumber -public record CommonparamsubdirPostadditionalPropertiesBoxedNumber
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostPathParameters4BoxedNumber +public record CommonparamsubdirPostPathParameters4BoxedNumber
+implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| CommonparamsubdirPostPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalPropertiesBoxedString -public record CommonparamsubdirPostadditionalPropertiesBoxedString
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostPathParameters4BoxedString +public record CommonparamsubdirPostPathParameters4BoxedString
+implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| CommonparamsubdirPostPathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalPropertiesBoxedList -public record CommonparamsubdirPostadditionalPropertiesBoxedList
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostPathParameters4BoxedList +public record CommonparamsubdirPostPathParameters4BoxedList
+implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirPostPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,16 +240,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalPropertiesBoxedMap -public record CommonparamsubdirPostadditionalPropertiesBoxedMap
-implements [CommonparamsubdirPostadditionalPropertiesBoxed](#commonparamsubdirpostadditionalpropertiesboxed) +## CommonparamsubdirPostPathParameters4BoxedMap +public record CommonparamsubdirPostPathParameters4BoxedMap
+implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| CommonparamsubdirPostPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -257,8 +257,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostadditionalProperties -public static class CommonparamsubdirPostadditionalProperties
+## CommonparamsubdirPostPathParameters4 +public static class CommonparamsubdirPostPathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md index 11cae8d28e2..1878e4fe164 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -89,9 +89,9 @@ FakeDelete.Delete apiClient = new FakeDelete.Delete(apiConfiguration, schemaConf // Map validation -FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters = +FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters = FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( - new FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMapBuilder() + new FakeDeleteHeaderParameters.FakeDeleteHeaderParameters11() .required_boolean_group("true") .boolean_group("true") @@ -101,9 +101,9 @@ FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters = ); // Map validation -FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters = +FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters = FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( - new FakeDeleteQueryParameters.FakeDeleteQueryParametersMapBuilder() + new FakeDeleteQueryParameters.FakeDeleteQueryParameters13() .required_int64_group(1L) .required_string_group("a") @@ -168,8 +168,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparametersmap) | headerParameters | -| [FakeDeleteQueryParameters.FakeDeleteQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparametersmap) | queryParameters | +| [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparameters12) | headerParameters | +| [FakeDeleteQueryParameters.FakeDeleteQueryParameters14](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparameters14) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -182,8 +182,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakeDeleteHeaderParameters.@Nullable FakeDeleteHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparametersmap) | headerParameters | -| [FakeDeleteQueryParameters.@Nullable FakeDeleteQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparametersmap) | queryParameters | +| [FakeDeleteHeaderParameters.@Nullable FakeDeleteHeaderParameters12](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparameters12) | headerParameters | +| [FakeDeleteQueryParameters.@Nullable FakeDeleteQueryParameters14](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparameters14) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -219,7 +219,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete00RequestBuilder](#delete00requestbuilder) | queryParameters([FakeDeleteQueryParametersFakeDeleteQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparametersmap) queryParameters)
sets the property | +| [Delete00RequestBuilder](#delete00requestbuilder) | queryParameters([FakeDeleteQueryParametersFakeDeleteQueryParameters14](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparameters14) queryParameters)
sets the property | ## Delete10RequestBuilder public static class Delete10RequestBuilder
@@ -234,7 +234,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete00RequestBuilder](#delete00requestbuilder) | headerParameters([FakeDeleteHeaderParametersFakeDeleteHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparametersmap) headerParameters)
sets the property | +| [Delete00RequestBuilder](#delete00requestbuilder) | headerParameters([FakeDeleteHeaderParametersFakeDeleteHeaderParameters12](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparameters12) headerParameters)
sets the property | ## DeleteRequestBuilder public static class DeleteRequestBuilder
@@ -249,7 +249,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete01RequestBuilder](#delete01requestbuilder) | headerParameters([FakeDeleteHeaderParametersFakeDeleteHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparametersmap) headerParameters)
sets the property | -| [Delete10RequestBuilder](#delete10requestbuilder) | queryParameters([FakeDeleteQueryParametersFakeDeleteQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparametersmap) queryParameters)
sets the property | +| [Delete01RequestBuilder](#delete01requestbuilder) | headerParameters([FakeDeleteHeaderParametersFakeDeleteHeaderParameters12](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparameters12) headerParameters)
sets the property | +| [Delete10RequestBuilder](#delete10requestbuilder) | queryParameters([FakeDeleteQueryParametersFakeDeleteQueryParameters14](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparameters14) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md index a6a86931fcc..b9c2012398a 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -128,8 +128,8 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeGetRequestBody.@Nullable SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) | requestBody
optional | -| [FakeGetHeaderParameters.@Nullable FakeGetHeaderParametersMap](../../paths/fake/get/FakeGetHeaderParameters.md#fakegetheaderparametersmap) | headerParameters
optional | -| [FakeGetQueryParameters.@Nullable FakeGetQueryParametersMap](../../paths/fake/get/FakeGetQueryParameters.md#fakegetqueryparametersmap) | queryParameters
optional | +| [FakeGetHeaderParameters.@Nullable FakeGetHeaderParameters10](../../paths/fake/get/FakeGetHeaderParameters.md#fakegetheaderparameters10) | headerParameters
optional | +| [FakeGetQueryParameters.@Nullable FakeGetQueryParameters12](../../paths/fake/get/FakeGetQueryParameters.md#fakegetqueryparameters12) | queryParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -148,8 +148,8 @@ a builder for request inputs | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([FakeGetRequestBody.SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | headerParameters([FakeGetHeaderParametersFakeGetHeaderParametersMap](../../paths/fake/get/FakeGetHeaderParameters.md#fakegetheaderparametersmap) headerParameters)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeGetQueryParametersFakeGetQueryParametersMap](../../paths/fake/get/FakeGetQueryParameters.md#fakegetqueryparametersmap) queryParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | headerParameters([FakeGetHeaderParametersFakeGetHeaderParameters10](../../paths/fake/get/FakeGetHeaderParameters.md#fakegetheaderparameters10) headerParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeGetQueryParametersFakeGetQueryParameters12](../../paths/fake/get/FakeGetQueryParameters.md#fakegetqueryparameters12) queryParameters)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md index c39d5ece8b9..1c04fb03f38 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed)
sealed interface for validated payloads | | record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1](#fakedeleteheaderparameters1)
schema class | -| static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMapBuilder](#fakedeleteheaderparametersmapbuilder)
builder for Map payloads | -| static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap](#fakedeleteheaderparametersmap)
output class for Map payloads | -| sealed interface | [FakeDeleteHeaderParameters.FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteadditionalPropertiesBoxedVoid](#fakedeleteadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteadditionalPropertiesBoxedBoolean](#fakedeleteadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteadditionalPropertiesBoxedNumber](#fakedeleteadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteadditionalPropertiesBoxedString](#fakedeleteadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteadditionalPropertiesBoxedList](#fakedeleteadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteadditionalPropertiesBoxedMap](#fakedeleteadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeDeleteHeaderParameters.FakeDeleteadditionalProperties](#fakedeleteadditionalproperties)
schema class | +| static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters11](#fakedeleteheaderparameters11)
builder for Map payloads | +| static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12](#fakedeleteheaderparameters12)
output class for Map payloads | +| sealed interface | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed)
sealed interface for validated payloads | +| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedVoid](#fakedeleteheaderparameters5boxedvoid)
boxed class to store validated null payloads | +| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedBoolean](#fakedeleteheaderparameters5boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedNumber](#fakedeleteheaderparameters5boxednumber)
boxed class to store validated Number payloads | +| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedString](#fakedeleteheaderparameters5boxedstring)
boxed class to store validated String payloads | +| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedList](#fakedeleteheaderparameters5boxedlist)
boxed class to store validated List payloads | +| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedMap](#fakedeleteheaderparameters5boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5](#fakedeleteheaderparameters5)
schema class | ## FakeDeleteHeaderParameters1Boxed public sealed interface FakeDeleteHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParameters1BoxedMap([FakeDeleteHeaderParametersMap](#fakedeleteheaderparametersmap) data)
Creates an instance, private visibility | +| FakeDeleteHeaderParameters1BoxedMap([FakeDeleteHeaderParameters12](#fakedeleteheaderparameters12) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteHeaderParametersMap](#fakedeleteheaderparametersmap) | data()
validated payload | +| [FakeDeleteHeaderParameters12](#fakedeleteheaderparameters12) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeDeleteHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap validatedPayload = +FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 validatedPayload = FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( - new FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMapBuilder() + new FakeDeleteHeaderParameters.FakeDeleteHeaderParameters11() .required_boolean_group("true") .boolean_group("true") @@ -90,18 +90,18 @@ FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("required_boolean_group", [Schema1.Schema11.class](../../../paths/fake/delete/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("boolean_group", [Schema4.Schema41.class](../../../paths/fake/delete/parameters/parameter4/Schema4.md#schema41))
)
| | Set | required = Set.of(
    "required_boolean_group"
)
| -| Class | additionalProperties = [FakeDeleteadditionalProperties.class](#fakedeleteadditionalproperties) | +| Class | additionalProperties = [FakeDeleteHeaderParameters5.class](#fakedeleteheaderparameters5) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteHeaderParametersMap](#fakedeleteheaderparametersmap) | validate([Map<?, ?>](#fakedeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteHeaderParameters12](#fakedeleteheaderparameters12) | validate([Map<?, ?>](#fakedeleteheaderparameters11) arg, SchemaConfiguration configuration) | +| [FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeleteheaderparameters11) arg, SchemaConfiguration configuration) | | [FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeDeleteHeaderParametersMap0Builder -public class FakeDeleteHeaderParametersMap0Builder
+## FakeDeleteHeaderParameters13 +public class FakeDeleteHeaderParameters13
builder for `Map` A class that builds the Map input type @@ -109,17 +109,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| FakeDeleteHeaderParameters13(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [FakeDeleteHeaderParametersMap0Builder](#fakedeleteheaderparametersmap0builder) | boolean_group(String value) | -| [FakeDeleteHeaderParametersMap0Builder](#fakedeleteheaderparametersmap0builder) | boolean_group([Schema4.StringSchemaEnums4](../../../paths/fake/delete/parameters/parameter4/Schema4.md#stringschemaenums4) value) | +| [FakeDeleteHeaderParameters13](#fakedeleteheaderparameters13) | boolean_group(String value) | +| [FakeDeleteHeaderParameters13](#fakedeleteheaderparameters13) | boolean_group([Schema4.StringSchemaEnums4](../../../paths/fake/delete/parameters/parameter4/Schema4.md#stringschemaenums4) value) | -## FakeDeleteHeaderParametersMapBuilder -public class FakeDeleteHeaderParametersMapBuilder
+## FakeDeleteHeaderParameters11 +public class FakeDeleteHeaderParameters11
builder for `Map` A class that builds the Map input type @@ -127,16 +127,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParametersMapBuilder()
Creates a builder that contains an empty map | +| FakeDeleteHeaderParameters11()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteHeaderParametersMap0Builder](#fakedeleteheaderparametersmap0builder) | required_boolean_group(String value) | -| [FakeDeleteHeaderParametersMap0Builder](#fakedeleteheaderparametersmap0builder) | required_boolean_group([Schema1.StringSchemaEnums1](../../../paths/fake/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | +| [FakeDeleteHeaderParameters13](#fakedeleteheaderparameters13) | required_boolean_group(String value) | +| [FakeDeleteHeaderParameters13](#fakedeleteheaderparameters13) | required_boolean_group([Schema1.StringSchemaEnums1](../../../paths/fake/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | -## FakeDeleteHeaderParametersMap -public static class FakeDeleteHeaderParametersMap
+## FakeDeleteHeaderParameters12 +public static class FakeDeleteHeaderParameters12
extends FrozenMap A class to store validated Map payloads @@ -144,32 +144,32 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeDeleteHeaderParametersMap](#fakedeleteheaderparametersmap) | of([Map](#fakedeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakeDeleteHeaderParameters12](#fakedeleteheaderparameters12) | of([Map](#fakedeleteheaderparameters11) arg, SchemaConfiguration configuration) | | String | required_boolean_group()
| | String | boolean_group()
[optional] | -## FakeDeleteadditionalPropertiesBoxed -public sealed interface FakeDeleteadditionalPropertiesBoxed
+## FakeDeleteHeaderParameters5Boxed +public sealed interface FakeDeleteHeaderParameters5Boxed
permits
-[FakeDeleteadditionalPropertiesBoxedVoid](#fakedeleteadditionalpropertiesboxedvoid), -[FakeDeleteadditionalPropertiesBoxedBoolean](#fakedeleteadditionalpropertiesboxedboolean), -[FakeDeleteadditionalPropertiesBoxedNumber](#fakedeleteadditionalpropertiesboxednumber), -[FakeDeleteadditionalPropertiesBoxedString](#fakedeleteadditionalpropertiesboxedstring), -[FakeDeleteadditionalPropertiesBoxedList](#fakedeleteadditionalpropertiesboxedlist), -[FakeDeleteadditionalPropertiesBoxedMap](#fakedeleteadditionalpropertiesboxedmap) +[FakeDeleteHeaderParameters5BoxedVoid](#fakedeleteheaderparameters5boxedvoid), +[FakeDeleteHeaderParameters5BoxedBoolean](#fakedeleteheaderparameters5boxedboolean), +[FakeDeleteHeaderParameters5BoxedNumber](#fakedeleteheaderparameters5boxednumber), +[FakeDeleteHeaderParameters5BoxedString](#fakedeleteheaderparameters5boxedstring), +[FakeDeleteHeaderParameters5BoxedList](#fakedeleteheaderparameters5boxedlist), +[FakeDeleteHeaderParameters5BoxedMap](#fakedeleteheaderparameters5boxedmap) sealed interface that stores validated payloads using boxed classes -## FakeDeleteadditionalPropertiesBoxedVoid -public record FakeDeleteadditionalPropertiesBoxedVoid
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteHeaderParameters5BoxedVoid +public record FakeDeleteHeaderParameters5BoxedVoid
+implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakeDeleteHeaderParameters5BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -177,16 +177,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalPropertiesBoxedBoolean -public record FakeDeleteadditionalPropertiesBoxedBoolean
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteHeaderParameters5BoxedBoolean +public record FakeDeleteHeaderParameters5BoxedBoolean
+implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakeDeleteHeaderParameters5BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -194,16 +194,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalPropertiesBoxedNumber -public record FakeDeleteadditionalPropertiesBoxedNumber
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteHeaderParameters5BoxedNumber +public record FakeDeleteHeaderParameters5BoxedNumber
+implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakeDeleteHeaderParameters5BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -211,16 +211,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalPropertiesBoxedString -public record FakeDeleteadditionalPropertiesBoxedString
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteHeaderParameters5BoxedString +public record FakeDeleteHeaderParameters5BoxedString
+implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakeDeleteHeaderParameters5BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -228,16 +228,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalPropertiesBoxedList -public record FakeDeleteadditionalPropertiesBoxedList
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteHeaderParameters5BoxedList +public record FakeDeleteHeaderParameters5BoxedList
+implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakeDeleteHeaderParameters5BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -245,16 +245,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalPropertiesBoxedMap -public record FakeDeleteadditionalPropertiesBoxedMap
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteHeaderParameters5BoxedMap +public record FakeDeleteHeaderParameters5BoxedMap
+implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakeDeleteHeaderParameters5BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -262,8 +262,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalProperties -public static class FakeDeleteadditionalProperties
+## FakeDeleteHeaderParameters5 +public static class FakeDeleteHeaderParameters5
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md index ebaddcc38c2..6f42ebb5021 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed)
sealed interface for validated payloads | | record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1](#fakedeletequeryparameters1)
schema class | -| static class | [FakeDeleteQueryParameters.FakeDeleteQueryParametersMapBuilder](#fakedeletequeryparametersmapbuilder)
builder for Map payloads | -| static class | [FakeDeleteQueryParameters.FakeDeleteQueryParametersMap](#fakedeletequeryparametersmap)
output class for Map payloads | -| sealed interface | [FakeDeleteQueryParameters.FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteadditionalPropertiesBoxedVoid](#fakedeleteadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteadditionalPropertiesBoxedBoolean](#fakedeleteadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteadditionalPropertiesBoxedNumber](#fakedeleteadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteadditionalPropertiesBoxedString](#fakedeleteadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteadditionalPropertiesBoxedList](#fakedeleteadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteadditionalPropertiesBoxedMap](#fakedeleteadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeDeleteQueryParameters.FakeDeleteadditionalProperties](#fakedeleteadditionalproperties)
schema class | +| static class | [FakeDeleteQueryParameters.FakeDeleteQueryParameters13](#fakedeletequeryparameters13)
builder for Map payloads | +| static class | [FakeDeleteQueryParameters.FakeDeleteQueryParameters14](#fakedeletequeryparameters14)
output class for Map payloads | +| sealed interface | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed)
sealed interface for validated payloads | +| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedVoid](#fakedeletequeryparameters7boxedvoid)
boxed class to store validated null payloads | +| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedBoolean](#fakedeletequeryparameters7boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedNumber](#fakedeletequeryparameters7boxednumber)
boxed class to store validated Number payloads | +| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedString](#fakedeletequeryparameters7boxedstring)
boxed class to store validated String payloads | +| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedList](#fakedeletequeryparameters7boxedlist)
boxed class to store validated List payloads | +| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedMap](#fakedeletequeryparameters7boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7](#fakedeletequeryparameters7)
schema class | ## FakeDeleteQueryParameters1Boxed public sealed interface FakeDeleteQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters1BoxedMap([FakeDeleteQueryParametersMap](#fakedeletequeryparametersmap) data)
Creates an instance, private visibility | +| FakeDeleteQueryParameters1BoxedMap([FakeDeleteQueryParameters14](#fakedeletequeryparameters14) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteQueryParametersMap](#fakedeletequeryparametersmap) | data()
validated payload | +| [FakeDeleteQueryParameters14](#fakedeletequeryparameters14) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeDeleteQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeDeleteQueryParameters.FakeDeleteQueryParametersMap validatedPayload = +FakeDeleteQueryParameters.FakeDeleteQueryParameters14 validatedPayload = FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( - new FakeDeleteQueryParameters.FakeDeleteQueryParametersMapBuilder() + new FakeDeleteQueryParameters.FakeDeleteQueryParameters13() .required_int64_group(1L) .required_string_group("a") @@ -94,18 +94,18 @@ FakeDeleteQueryParameters.FakeDeleteQueryParametersMap validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("required_string_group", [Schema0.Schema01.class](../../../paths/fake/delete/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("int64_group", [Schema5.Schema51.class](../../../paths/fake/delete/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("string_group", [Schema3.Schema31.class](../../../paths/fake/delete/parameters/parameter3/Schema3.md#schema31)),
    new PropertyEntry("required_int64_group", [Schema2.Schema21.class](../../../paths/fake/delete/parameters/parameter2/Schema2.md#schema21))
)
| | Set | required = Set.of(
    "required_int64_group",
    "required_string_group"
)
| -| Class | additionalProperties = [FakeDeleteadditionalProperties.class](#fakedeleteadditionalproperties) | +| Class | additionalProperties = [FakeDeleteQueryParameters7.class](#fakedeletequeryparameters7) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteQueryParametersMap](#fakedeletequeryparametersmap) | validate([Map<?, ?>](#fakedeletequeryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeletequeryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteQueryParameters14](#fakedeletequeryparameters14) | validate([Map<?, ?>](#fakedeletequeryparameters13) arg, SchemaConfiguration configuration) | +| [FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeletequeryparameters13) arg, SchemaConfiguration configuration) | | [FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeDeleteQueryParametersMap00Builder -public class FakeDeleteQueryParametersMap00Builder
+## FakeDeleteQueryParameters15 +public class FakeDeleteQueryParameters15
builder for `Map` A class that builds the Map input type @@ -113,20 +113,20 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParametersMap00Builder(Map instance)
Creates a builder that contains the passed instance | +| FakeDeleteQueryParameters15(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [FakeDeleteQueryParametersMap00Builder](#fakedeletequeryparametersmap00builder) | int64_group(int value) | -| [FakeDeleteQueryParametersMap00Builder](#fakedeletequeryparametersmap00builder) | int64_group(float value) | -| [FakeDeleteQueryParametersMap00Builder](#fakedeletequeryparametersmap00builder) | int64_group(long value) | -| [FakeDeleteQueryParametersMap00Builder](#fakedeletequeryparametersmap00builder) | int64_group(double value) | -| [FakeDeleteQueryParametersMap00Builder](#fakedeletequeryparametersmap00builder) | string_group(String value) | - -## FakeDeleteQueryParametersMap01Builder -public class FakeDeleteQueryParametersMap01Builder
+| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | int64_group(int value) | +| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | int64_group(float value) | +| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | int64_group(long value) | +| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | int64_group(double value) | +| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | string_group(String value) | + +## FakeDeleteQueryParameters16 +public class FakeDeleteQueryParameters16
builder for `Map` A class that builds the Map input type @@ -134,15 +134,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParametersMap01Builder(Map instance)
Creates a builder that contains the passed instance | +| FakeDeleteQueryParameters16(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteQueryParametersMap00Builder](#fakedeletequeryparametersmap00builder) | required_string_group(String value) | +| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | required_string_group(String value) | -## FakeDeleteQueryParametersMap10Builder -public class FakeDeleteQueryParametersMap10Builder
+## FakeDeleteQueryParameters17 +public class FakeDeleteQueryParameters17
builder for `Map` A class that builds the Map input type @@ -150,18 +150,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParametersMap10Builder(Map instance)
Creates a builder that contains the passed instance | +| FakeDeleteQueryParameters17(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteQueryParametersMap00Builder](#fakedeletequeryparametersmap00builder) | required_int64_group(int value) | -| [FakeDeleteQueryParametersMap00Builder](#fakedeletequeryparametersmap00builder) | required_int64_group(float value) | -| [FakeDeleteQueryParametersMap00Builder](#fakedeletequeryparametersmap00builder) | required_int64_group(long value) | -| [FakeDeleteQueryParametersMap00Builder](#fakedeletequeryparametersmap00builder) | required_int64_group(double value) | +| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | required_int64_group(int value) | +| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | required_int64_group(float value) | +| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | required_int64_group(long value) | +| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | required_int64_group(double value) | -## FakeDeleteQueryParametersMapBuilder -public class FakeDeleteQueryParametersMapBuilder
+## FakeDeleteQueryParameters13 +public class FakeDeleteQueryParameters13
builder for `Map` A class that builds the Map input type @@ -169,19 +169,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| FakeDeleteQueryParameters13()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteQueryParametersMap01Builder](#fakedeletequeryparametersmap01builder) | required_int64_group(int value) | -| [FakeDeleteQueryParametersMap01Builder](#fakedeletequeryparametersmap01builder) | required_int64_group(float value) | -| [FakeDeleteQueryParametersMap01Builder](#fakedeletequeryparametersmap01builder) | required_int64_group(long value) | -| [FakeDeleteQueryParametersMap01Builder](#fakedeletequeryparametersmap01builder) | required_int64_group(double value) | -| [FakeDeleteQueryParametersMap10Builder](#fakedeletequeryparametersmap10builder) | required_string_group(String value) | - -## FakeDeleteQueryParametersMap -public static class FakeDeleteQueryParametersMap
+| [FakeDeleteQueryParameters16](#fakedeletequeryparameters16) | required_int64_group(int value) | +| [FakeDeleteQueryParameters16](#fakedeletequeryparameters16) | required_int64_group(float value) | +| [FakeDeleteQueryParameters16](#fakedeletequeryparameters16) | required_int64_group(long value) | +| [FakeDeleteQueryParameters16](#fakedeletequeryparameters16) | required_int64_group(double value) | +| [FakeDeleteQueryParameters17](#fakedeletequeryparameters17) | required_string_group(String value) | + +## FakeDeleteQueryParameters14 +public static class FakeDeleteQueryParameters14
extends FrozenMap A class to store validated Map payloads @@ -189,34 +189,34 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeDeleteQueryParametersMap](#fakedeletequeryparametersmap) | of([Map](#fakedeletequeryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakeDeleteQueryParameters14](#fakedeletequeryparameters14) | of([Map](#fakedeletequeryparameters13) arg, SchemaConfiguration configuration) | | Number | required_int64_group()
| | String | required_string_group()
| | Number | int64_group()
[optional] | | String | string_group()
[optional] | -## FakeDeleteadditionalPropertiesBoxed -public sealed interface FakeDeleteadditionalPropertiesBoxed
+## FakeDeleteQueryParameters7Boxed +public sealed interface FakeDeleteQueryParameters7Boxed
permits
-[FakeDeleteadditionalPropertiesBoxedVoid](#fakedeleteadditionalpropertiesboxedvoid), -[FakeDeleteadditionalPropertiesBoxedBoolean](#fakedeleteadditionalpropertiesboxedboolean), -[FakeDeleteadditionalPropertiesBoxedNumber](#fakedeleteadditionalpropertiesboxednumber), -[FakeDeleteadditionalPropertiesBoxedString](#fakedeleteadditionalpropertiesboxedstring), -[FakeDeleteadditionalPropertiesBoxedList](#fakedeleteadditionalpropertiesboxedlist), -[FakeDeleteadditionalPropertiesBoxedMap](#fakedeleteadditionalpropertiesboxedmap) +[FakeDeleteQueryParameters7BoxedVoid](#fakedeletequeryparameters7boxedvoid), +[FakeDeleteQueryParameters7BoxedBoolean](#fakedeletequeryparameters7boxedboolean), +[FakeDeleteQueryParameters7BoxedNumber](#fakedeletequeryparameters7boxednumber), +[FakeDeleteQueryParameters7BoxedString](#fakedeletequeryparameters7boxedstring), +[FakeDeleteQueryParameters7BoxedList](#fakedeletequeryparameters7boxedlist), +[FakeDeleteQueryParameters7BoxedMap](#fakedeletequeryparameters7boxedmap) sealed interface that stores validated payloads using boxed classes -## FakeDeleteadditionalPropertiesBoxedVoid -public record FakeDeleteadditionalPropertiesBoxedVoid
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteQueryParameters7BoxedVoid +public record FakeDeleteQueryParameters7BoxedVoid
+implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakeDeleteQueryParameters7BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -224,16 +224,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalPropertiesBoxedBoolean -public record FakeDeleteadditionalPropertiesBoxedBoolean
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteQueryParameters7BoxedBoolean +public record FakeDeleteQueryParameters7BoxedBoolean
+implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakeDeleteQueryParameters7BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -241,16 +241,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalPropertiesBoxedNumber -public record FakeDeleteadditionalPropertiesBoxedNumber
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteQueryParameters7BoxedNumber +public record FakeDeleteQueryParameters7BoxedNumber
+implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakeDeleteQueryParameters7BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalPropertiesBoxedString -public record FakeDeleteadditionalPropertiesBoxedString
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteQueryParameters7BoxedString +public record FakeDeleteQueryParameters7BoxedString
+implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakeDeleteQueryParameters7BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalPropertiesBoxedList -public record FakeDeleteadditionalPropertiesBoxedList
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteQueryParameters7BoxedList +public record FakeDeleteQueryParameters7BoxedList
+implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakeDeleteQueryParameters7BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,16 +292,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalPropertiesBoxedMap -public record FakeDeleteadditionalPropertiesBoxedMap
-implements [FakeDeleteadditionalPropertiesBoxed](#fakedeleteadditionalpropertiesboxed) +## FakeDeleteQueryParameters7BoxedMap +public record FakeDeleteQueryParameters7BoxedMap
+implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakeDeleteQueryParameters7BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -309,8 +309,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteadditionalProperties -public static class FakeDeleteadditionalProperties
+## FakeDeleteQueryParameters7 +public static class FakeDeleteQueryParameters7
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md index 786bd606a2d..12cea47d8a2 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeGetHeaderParameters.FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed)
sealed interface for validated payloads | | record | [FakeGetHeaderParameters.FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeGetHeaderParameters.FakeGetHeaderParameters1](#fakegetheaderparameters1)
schema class | -| static class | [FakeGetHeaderParameters.FakeGetHeaderParametersMapBuilder](#fakegetheaderparametersmapbuilder)
builder for Map payloads | -| static class | [FakeGetHeaderParameters.FakeGetHeaderParametersMap](#fakegetheaderparametersmap)
output class for Map payloads | -| sealed interface | [FakeGetHeaderParameters.FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeGetHeaderParameters.FakeGetadditionalPropertiesBoxedVoid](#fakegetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeGetHeaderParameters.FakeGetadditionalPropertiesBoxedBoolean](#fakegetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeGetHeaderParameters.FakeGetadditionalPropertiesBoxedNumber](#fakegetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeGetHeaderParameters.FakeGetadditionalPropertiesBoxedString](#fakegetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeGetHeaderParameters.FakeGetadditionalPropertiesBoxedList](#fakegetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeGetHeaderParameters.FakeGetadditionalPropertiesBoxedMap](#fakegetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeGetHeaderParameters.FakeGetadditionalProperties](#fakegetadditionalproperties)
schema class | +| static class | [FakeGetHeaderParameters.FakeGetHeaderParameters9](#fakegetheaderparameters9)
builder for Map payloads | +| static class | [FakeGetHeaderParameters.FakeGetHeaderParameters10](#fakegetheaderparameters10)
output class for Map payloads | +| sealed interface | [FakeGetHeaderParameters.FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed)
sealed interface for validated payloads | +| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedVoid](#fakegetheaderparameters5boxedvoid)
boxed class to store validated null payloads | +| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedBoolean](#fakegetheaderparameters5boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedNumber](#fakegetheaderparameters5boxednumber)
boxed class to store validated Number payloads | +| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedString](#fakegetheaderparameters5boxedstring)
boxed class to store validated String payloads | +| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedList](#fakegetheaderparameters5boxedlist)
boxed class to store validated List payloads | +| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedMap](#fakegetheaderparameters5boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeGetHeaderParameters.FakeGetHeaderParameters5](#fakegetheaderparameters5)
schema class | ## FakeGetHeaderParameters1Boxed public sealed interface FakeGetHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetHeaderParameters1BoxedMap([FakeGetHeaderParametersMap](#fakegetheaderparametersmap) data)
Creates an instance, private visibility | +| FakeGetHeaderParameters1BoxedMap([FakeGetHeaderParameters10](#fakegetheaderparameters10) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeGetHeaderParametersMap](#fakegetheaderparametersmap) | data()
validated payload | +| [FakeGetHeaderParameters10](#fakegetheaderparameters10) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeGetHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeGetHeaderParameters.FakeGetHeaderParametersMap validatedPayload = +FakeGetHeaderParameters.FakeGetHeaderParameters10 validatedPayload = FakeGetHeaderParameters.FakeGetHeaderParameters1.validate( - new FakeGetHeaderParameters.FakeGetHeaderParametersMapBuilder() + new FakeGetHeaderParameters.FakeGetHeaderParameters9() .enum_header_string("_abc") .enum_header_string_array( @@ -92,18 +92,18 @@ FakeGetHeaderParameters.FakeGetHeaderParametersMap validatedPayload = | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("enum_header_string", [Schema1.Schema11.class](../../../paths/fake/get/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("enum_header_string_array", [Schema0.Schema01.class](../../../paths/fake/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [FakeGetadditionalProperties.class](#fakegetadditionalproperties) | +| Class | additionalProperties = [FakeGetHeaderParameters5.class](#fakegetheaderparameters5) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeGetHeaderParametersMap](#fakegetheaderparametersmap) | validate([Map<?, ?>](#fakegetheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakegetheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetHeaderParameters10](#fakegetheaderparameters10) | validate([Map<?, ?>](#fakegetheaderparameters9) arg, SchemaConfiguration configuration) | +| [FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakegetheaderparameters9) arg, SchemaConfiguration configuration) | | [FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeGetHeaderParametersMapBuilder -public class FakeGetHeaderParametersMapBuilder
+## FakeGetHeaderParameters9 +public class FakeGetHeaderParameters9
builder for `Map` A class that builds the Map input type @@ -111,18 +111,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetHeaderParametersMapBuilder()
Creates a builder that contains an empty map | +| FakeGetHeaderParameters9()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [FakeGetHeaderParametersMapBuilder](#fakegetheaderparametersmapbuilder) | enum_header_string(String value) | -| [FakeGetHeaderParametersMapBuilder](#fakegetheaderparametersmapbuilder) | enum_header_string([Schema1.StringSchemaEnums1](../../../paths/fake/get/parameters/parameter1/Schema1.md#stringschemaenums1) value) | -| [FakeGetHeaderParametersMapBuilder](#fakegetheaderparametersmapbuilder) | enum_header_string_array(List value) | +| [FakeGetHeaderParameters9](#fakegetheaderparameters9) | enum_header_string(String value) | +| [FakeGetHeaderParameters9](#fakegetheaderparameters9) | enum_header_string([Schema1.StringSchemaEnums1](../../../paths/fake/get/parameters/parameter1/Schema1.md#stringschemaenums1) value) | +| [FakeGetHeaderParameters9](#fakegetheaderparameters9) | enum_header_string_array(List value) | -## FakeGetHeaderParametersMap -public static class FakeGetHeaderParametersMap
+## FakeGetHeaderParameters10 +public static class FakeGetHeaderParameters10
extends FrozenMap A class to store validated Map payloads @@ -130,32 +130,32 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeGetHeaderParametersMap](#fakegetheaderparametersmap) | of([Map](#fakegetheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakeGetHeaderParameters10](#fakegetheaderparameters10) | of([Map](#fakegetheaderparameters9) arg, SchemaConfiguration configuration) | | String | enum_header_string()
[optional] | | [Schema0.SchemaList0](../../../paths/fake/get/parameters/parameter0/Schema0.md#schemalist0) | enum_header_string_array()
[optional] | -## FakeGetadditionalPropertiesBoxed -public sealed interface FakeGetadditionalPropertiesBoxed
+## FakeGetHeaderParameters5Boxed +public sealed interface FakeGetHeaderParameters5Boxed
permits
-[FakeGetadditionalPropertiesBoxedVoid](#fakegetadditionalpropertiesboxedvoid), -[FakeGetadditionalPropertiesBoxedBoolean](#fakegetadditionalpropertiesboxedboolean), -[FakeGetadditionalPropertiesBoxedNumber](#fakegetadditionalpropertiesboxednumber), -[FakeGetadditionalPropertiesBoxedString](#fakegetadditionalpropertiesboxedstring), -[FakeGetadditionalPropertiesBoxedList](#fakegetadditionalpropertiesboxedlist), -[FakeGetadditionalPropertiesBoxedMap](#fakegetadditionalpropertiesboxedmap) +[FakeGetHeaderParameters5BoxedVoid](#fakegetheaderparameters5boxedvoid), +[FakeGetHeaderParameters5BoxedBoolean](#fakegetheaderparameters5boxedboolean), +[FakeGetHeaderParameters5BoxedNumber](#fakegetheaderparameters5boxednumber), +[FakeGetHeaderParameters5BoxedString](#fakegetheaderparameters5boxedstring), +[FakeGetHeaderParameters5BoxedList](#fakegetheaderparameters5boxedlist), +[FakeGetHeaderParameters5BoxedMap](#fakegetheaderparameters5boxedmap) sealed interface that stores validated payloads using boxed classes -## FakeGetadditionalPropertiesBoxedVoid -public record FakeGetadditionalPropertiesBoxedVoid
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetHeaderParameters5BoxedVoid +public record FakeGetHeaderParameters5BoxedVoid
+implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakeGetHeaderParameters5BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -163,16 +163,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalPropertiesBoxedBoolean -public record FakeGetadditionalPropertiesBoxedBoolean
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetHeaderParameters5BoxedBoolean +public record FakeGetHeaderParameters5BoxedBoolean
+implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakeGetHeaderParameters5BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -180,16 +180,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalPropertiesBoxedNumber -public record FakeGetadditionalPropertiesBoxedNumber
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetHeaderParameters5BoxedNumber +public record FakeGetHeaderParameters5BoxedNumber
+implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakeGetHeaderParameters5BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -197,16 +197,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalPropertiesBoxedString -public record FakeGetadditionalPropertiesBoxedString
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetHeaderParameters5BoxedString +public record FakeGetHeaderParameters5BoxedString
+implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakeGetHeaderParameters5BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -214,16 +214,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalPropertiesBoxedList -public record FakeGetadditionalPropertiesBoxedList
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetHeaderParameters5BoxedList +public record FakeGetHeaderParameters5BoxedList
+implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakeGetHeaderParameters5BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -231,16 +231,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalPropertiesBoxedMap -public record FakeGetadditionalPropertiesBoxedMap
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetHeaderParameters5BoxedMap +public record FakeGetHeaderParameters5BoxedMap
+implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakeGetHeaderParameters5BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -248,8 +248,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalProperties -public static class FakeGetadditionalProperties
+## FakeGetHeaderParameters5 +public static class FakeGetHeaderParameters5
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md index 83475a59e39..346086c500a 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeGetQueryParameters.FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakeGetQueryParameters.FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeGetQueryParameters.FakeGetQueryParameters1](#fakegetqueryparameters1)
schema class | -| static class | [FakeGetQueryParameters.FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder)
builder for Map payloads | -| static class | [FakeGetQueryParameters.FakeGetQueryParametersMap](#fakegetqueryparametersmap)
output class for Map payloads | -| sealed interface | [FakeGetQueryParameters.FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeGetQueryParameters.FakeGetadditionalPropertiesBoxedVoid](#fakegetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeGetQueryParameters.FakeGetadditionalPropertiesBoxedBoolean](#fakegetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeGetQueryParameters.FakeGetadditionalPropertiesBoxedNumber](#fakegetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeGetQueryParameters.FakeGetadditionalPropertiesBoxedString](#fakegetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeGetQueryParameters.FakeGetadditionalPropertiesBoxedList](#fakegetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeGetQueryParameters.FakeGetadditionalPropertiesBoxedMap](#fakegetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeGetQueryParameters.FakeGetadditionalProperties](#fakegetadditionalproperties)
schema class | +| static class | [FakeGetQueryParameters.FakeGetQueryParameters11](#fakegetqueryparameters11)
builder for Map payloads | +| static class | [FakeGetQueryParameters.FakeGetQueryParameters12](#fakegetqueryparameters12)
output class for Map payloads | +| sealed interface | [FakeGetQueryParameters.FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed)
sealed interface for validated payloads | +| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedVoid](#fakegetqueryparameters7boxedvoid)
boxed class to store validated null payloads | +| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedBoolean](#fakegetqueryparameters7boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedNumber](#fakegetqueryparameters7boxednumber)
boxed class to store validated Number payloads | +| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedString](#fakegetqueryparameters7boxedstring)
boxed class to store validated String payloads | +| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedList](#fakegetqueryparameters7boxedlist)
boxed class to store validated List payloads | +| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedMap](#fakegetqueryparameters7boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeGetQueryParameters.FakeGetQueryParameters7](#fakegetqueryparameters7)
schema class | ## FakeGetQueryParameters1Boxed public sealed interface FakeGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetQueryParameters1BoxedMap([FakeGetQueryParametersMap](#fakegetqueryparametersmap) data)
Creates an instance, private visibility | +| FakeGetQueryParameters1BoxedMap([FakeGetQueryParameters12](#fakegetqueryparameters12) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeGetQueryParametersMap](#fakegetqueryparametersmap) | data()
validated payload | +| [FakeGetQueryParameters12](#fakegetqueryparameters12) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeGetQueryParameters.FakeGetQueryParametersMap validatedPayload = +FakeGetQueryParameters.FakeGetQueryParameters12 validatedPayload = FakeGetQueryParameters.FakeGetQueryParameters1.validate( - new FakeGetQueryParameters.FakeGetQueryParametersMapBuilder() + new FakeGetQueryParameters.FakeGetQueryParameters11() .enum_query_double(3.14d) .enum_query_string("_abc") @@ -96,18 +96,18 @@ FakeGetQueryParameters.FakeGetQueryParametersMap validatedPayload = | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("enum_query_double", [Schema5.Schema51.class](../../../paths/fake/get/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("enum_query_string", [Schema3.Schema31.class](../../../paths/fake/get/parameters/parameter3/Schema3.md#schema31)),
    new PropertyEntry("enum_query_integer", [Schema4.Schema41.class](../../../paths/fake/get/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("enum_query_string_array", [Schema2.Schema21.class](../../../paths/fake/get/parameters/parameter2/Schema2.md#schema21))
)
| -| Class | additionalProperties = [FakeGetadditionalProperties.class](#fakegetadditionalproperties) | +| Class | additionalProperties = [FakeGetQueryParameters7.class](#fakegetqueryparameters7) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeGetQueryParametersMap](#fakegetqueryparametersmap) | validate([Map<?, ?>](#fakegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetQueryParameters12](#fakegetqueryparameters12) | validate([Map<?, ?>](#fakegetqueryparameters11) arg, SchemaConfiguration configuration) | +| [FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakegetqueryparameters11) arg, SchemaConfiguration configuration) | | [FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeGetQueryParametersMapBuilder -public class FakeGetQueryParametersMapBuilder
+## FakeGetQueryParameters11 +public class FakeGetQueryParameters11
builder for `Map` A class that builds the Map input type @@ -115,30 +115,30 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| FakeGetQueryParameters11()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_double(int value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_double(float value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_double(long value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_double(double value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_double([Schema5.DoubleSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#doubleschemaenums5) value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_double([Schema5.FloatSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#floatschemaenums5) value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_string(String value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_string([Schema3.StringSchemaEnums3](../../../paths/fake/get/parameters/parameter3/Schema3.md#stringschemaenums3) value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_integer(int value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_integer(float value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_integer([Schema4.IntegerSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#integerschemaenums4) value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_integer([Schema4.LongSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#longschemaenums4) value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_integer([Schema4.FloatSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#floatschemaenums4) value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_integer([Schema4.DoubleSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#doubleschemaenums4) value) | -| [FakeGetQueryParametersMapBuilder](#fakegetqueryparametersmapbuilder) | enum_query_string_array(List value) | - -## FakeGetQueryParametersMap -public static class FakeGetQueryParametersMap
+| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double(int value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double(float value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double(long value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double(double value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double([Schema5.DoubleSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#doubleschemaenums5) value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double([Schema5.FloatSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#floatschemaenums5) value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_string(String value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_string([Schema3.StringSchemaEnums3](../../../paths/fake/get/parameters/parameter3/Schema3.md#stringschemaenums3) value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer(int value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer(float value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer([Schema4.IntegerSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#integerschemaenums4) value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer([Schema4.LongSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#longschemaenums4) value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer([Schema4.FloatSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#floatschemaenums4) value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer([Schema4.DoubleSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#doubleschemaenums4) value) | +| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_string_array(List value) | + +## FakeGetQueryParameters12 +public static class FakeGetQueryParameters12
extends FrozenMap A class to store validated Map payloads @@ -146,34 +146,34 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeGetQueryParametersMap](#fakegetqueryparametersmap) | of([Map](#fakegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakeGetQueryParameters12](#fakegetqueryparameters12) | of([Map](#fakegetqueryparameters11) arg, SchemaConfiguration configuration) | | Number | enum_query_double()
[optional] | | String | enum_query_string()
[optional] | | Number | enum_query_integer()
[optional] | | [Schema2.SchemaList2](../../../paths/fake/get/parameters/parameter2/Schema2.md#schemalist2) | enum_query_string_array()
[optional] | -## FakeGetadditionalPropertiesBoxed -public sealed interface FakeGetadditionalPropertiesBoxed
+## FakeGetQueryParameters7Boxed +public sealed interface FakeGetQueryParameters7Boxed
permits
-[FakeGetadditionalPropertiesBoxedVoid](#fakegetadditionalpropertiesboxedvoid), -[FakeGetadditionalPropertiesBoxedBoolean](#fakegetadditionalpropertiesboxedboolean), -[FakeGetadditionalPropertiesBoxedNumber](#fakegetadditionalpropertiesboxednumber), -[FakeGetadditionalPropertiesBoxedString](#fakegetadditionalpropertiesboxedstring), -[FakeGetadditionalPropertiesBoxedList](#fakegetadditionalpropertiesboxedlist), -[FakeGetadditionalPropertiesBoxedMap](#fakegetadditionalpropertiesboxedmap) +[FakeGetQueryParameters7BoxedVoid](#fakegetqueryparameters7boxedvoid), +[FakeGetQueryParameters7BoxedBoolean](#fakegetqueryparameters7boxedboolean), +[FakeGetQueryParameters7BoxedNumber](#fakegetqueryparameters7boxednumber), +[FakeGetQueryParameters7BoxedString](#fakegetqueryparameters7boxedstring), +[FakeGetQueryParameters7BoxedList](#fakegetqueryparameters7boxedlist), +[FakeGetQueryParameters7BoxedMap](#fakegetqueryparameters7boxedmap) sealed interface that stores validated payloads using boxed classes -## FakeGetadditionalPropertiesBoxedVoid -public record FakeGetadditionalPropertiesBoxedVoid
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetQueryParameters7BoxedVoid +public record FakeGetQueryParameters7BoxedVoid
+implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakeGetQueryParameters7BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -181,16 +181,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalPropertiesBoxedBoolean -public record FakeGetadditionalPropertiesBoxedBoolean
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetQueryParameters7BoxedBoolean +public record FakeGetQueryParameters7BoxedBoolean
+implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakeGetQueryParameters7BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -198,16 +198,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalPropertiesBoxedNumber -public record FakeGetadditionalPropertiesBoxedNumber
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetQueryParameters7BoxedNumber +public record FakeGetQueryParameters7BoxedNumber
+implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakeGetQueryParameters7BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -215,16 +215,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalPropertiesBoxedString -public record FakeGetadditionalPropertiesBoxedString
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetQueryParameters7BoxedString +public record FakeGetQueryParameters7BoxedString
+implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakeGetQueryParameters7BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -232,16 +232,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalPropertiesBoxedList -public record FakeGetadditionalPropertiesBoxedList
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetQueryParameters7BoxedList +public record FakeGetQueryParameters7BoxedList
+implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakeGetQueryParameters7BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -249,16 +249,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalPropertiesBoxedMap -public record FakeGetadditionalPropertiesBoxedMap
-implements [FakeGetadditionalPropertiesBoxed](#fakegetadditionalpropertiesboxed) +## FakeGetQueryParameters7BoxedMap +public record FakeGetQueryParameters7BoxedMap
+implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakeGetQueryParameters7BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -266,8 +266,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetadditionalProperties -public static class FakeGetadditionalProperties
+## FakeGetQueryParameters7 +public static class FakeGetQueryParameters7
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index becf37b97e6..92f5fea3547 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -104,9 +104,9 @@ User1BoxedMap requestBodyPayload = FakebodywithqueryparamsPut.SealedRequestBody requestBody = new FakebodywithqueryparamsPut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters = +FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters = FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( - new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMapBuilder() + new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters8() .query("a") .build(), @@ -166,7 +166,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | -| [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparametersmap) | queryParameters | +| [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparameters9) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -179,7 +179,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | -| [FakebodywithqueryparamsPutQueryParameters.@Nullable FakebodywithqueryparamsPutQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparametersmap) | queryParameters | +| [FakebodywithqueryparamsPutQueryParameters.@Nullable FakebodywithqueryparamsPutQueryParameters9](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparameters9) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -213,7 +213,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersFakebodywithqueryparamsPutQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparametersmap) queryParameters)
sets the property | +| [Put00RequestBuilder](#put00requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersFakebodywithqueryparamsPutQueryParameters9](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparameters9) queryParameters)
sets the property | ## Put10RequestBuilder public static class Put10RequestBuilder
@@ -244,6 +244,6 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Put01RequestBuilder](#put01requestbuilder) | requestBody([FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | -| [Put10RequestBuilder](#put10requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersFakebodywithqueryparamsPutQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparametersmap) queryParameters)
sets the property | +| [Put10RequestBuilder](#put10requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersFakebodywithqueryparamsPutQueryParameters9](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparameters9) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md index 2820848ff8d..e3c8c67ad90 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1](#fakebodywithqueryparamsputqueryparameters1)
schema class | -| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMapBuilder](#fakebodywithqueryparamsputqueryparametersmapbuilder)
builder for Map payloads | -| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap](#fakebodywithqueryparamsputqueryparametersmap)
output class for Map payloads | -| sealed interface | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutadditionalPropertiesBoxedVoid](#fakebodywithqueryparamsputadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutadditionalPropertiesBoxedBoolean](#fakebodywithqueryparamsputadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutadditionalPropertiesBoxedNumber](#fakebodywithqueryparamsputadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutadditionalPropertiesBoxedString](#fakebodywithqueryparamsputadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutadditionalPropertiesBoxedList](#fakebodywithqueryparamsputadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutadditionalPropertiesBoxedMap](#fakebodywithqueryparamsputadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutadditionalProperties](#fakebodywithqueryparamsputadditionalproperties)
schema class | +| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters8](#fakebodywithqueryparamsputqueryparameters8)
builder for Map payloads | +| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9](#fakebodywithqueryparamsputqueryparameters9)
output class for Map payloads | +| sealed interface | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed)
sealed interface for validated payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedVoid](#fakebodywithqueryparamsputqueryparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedBoolean](#fakebodywithqueryparamsputqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedNumber](#fakebodywithqueryparamsputqueryparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedString](#fakebodywithqueryparamsputqueryparameters4boxedstring)
boxed class to store validated String payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedList](#fakebodywithqueryparamsputqueryparameters4boxedlist)
boxed class to store validated List payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedMap](#fakebodywithqueryparamsputqueryparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4](#fakebodywithqueryparamsputqueryparameters4)
schema class | ## FakebodywithqueryparamsPutQueryParameters1Boxed public sealed interface FakebodywithqueryparamsPutQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParameters1BoxedMap([FakebodywithqueryparamsPutQueryParametersMap](#fakebodywithqueryparamsputqueryparametersmap) data)
Creates an instance, private visibility | +| FakebodywithqueryparamsPutQueryParameters1BoxedMap([FakebodywithqueryparamsPutQueryParameters9](#fakebodywithqueryparamsputqueryparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakebodywithqueryparamsPutQueryParametersMap](#fakebodywithqueryparamsputqueryparametersmap) | data()
validated payload | +| [FakebodywithqueryparamsPutQueryParameters9](#fakebodywithqueryparamsputqueryparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakebodywithqueryparamsPutQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap validatedPayload = +FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 validatedPayload = FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( - new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMapBuilder() + new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters8() .query("a") .build(), @@ -88,18 +88,18 @@ FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParamet | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("query", [Schema0.Schema01.class](../../../paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "query"
)
| -| Class | additionalProperties = [FakebodywithqueryparamsPutadditionalProperties.class](#fakebodywithqueryparamsputadditionalproperties) | +| Class | additionalProperties = [FakebodywithqueryparamsPutQueryParameters4.class](#fakebodywithqueryparamsputqueryparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakebodywithqueryparamsPutQueryParametersMap](#fakebodywithqueryparamsputqueryparametersmap) | validate([Map<?, ?>](#fakebodywithqueryparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakebodywithqueryparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakebodywithqueryparamsPutQueryParameters9](#fakebodywithqueryparamsputqueryparameters9) | validate([Map<?, ?>](#fakebodywithqueryparamsputqueryparameters8) arg, SchemaConfiguration configuration) | +| [FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakebodywithqueryparamsputqueryparameters8) arg, SchemaConfiguration configuration) | | [FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakebodywithqueryparamsPutQueryParametersMap0Builder -public class FakebodywithqueryparamsPutQueryParametersMap0Builder
+## FakebodywithqueryparamsPutQueryParameters10 +public class FakebodywithqueryparamsPutQueryParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| FakebodywithqueryparamsPutQueryParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FakebodywithqueryparamsPutQueryParametersMapBuilder -public class FakebodywithqueryparamsPutQueryParametersMapBuilder
+## FakebodywithqueryparamsPutQueryParameters8 +public class FakebodywithqueryparamsPutQueryParameters8
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| FakebodywithqueryparamsPutQueryParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakebodywithqueryparamsPutQueryParametersMap0Builder](#fakebodywithqueryparamsputqueryparametersmap0builder) | query(String value) | +| [FakebodywithqueryparamsPutQueryParameters10](#fakebodywithqueryparamsputqueryparameters10) | query(String value) | -## FakebodywithqueryparamsPutQueryParametersMap -public static class FakebodywithqueryparamsPutQueryParametersMap
+## FakebodywithqueryparamsPutQueryParameters9 +public static class FakebodywithqueryparamsPutQueryParameters9
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakebodywithqueryparamsPutQueryParametersMap](#fakebodywithqueryparamsputqueryparametersmap) | of([Map](#fakebodywithqueryparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakebodywithqueryparamsPutQueryParameters9](#fakebodywithqueryparamsputqueryparameters9) | of([Map](#fakebodywithqueryparamsputqueryparameters8) arg, SchemaConfiguration configuration) | | String | query()
| -## FakebodywithqueryparamsPutadditionalPropertiesBoxed -public sealed interface FakebodywithqueryparamsPutadditionalPropertiesBoxed
+## FakebodywithqueryparamsPutQueryParameters4Boxed +public sealed interface FakebodywithqueryparamsPutQueryParameters4Boxed
permits
-[FakebodywithqueryparamsPutadditionalPropertiesBoxedVoid](#fakebodywithqueryparamsputadditionalpropertiesboxedvoid), -[FakebodywithqueryparamsPutadditionalPropertiesBoxedBoolean](#fakebodywithqueryparamsputadditionalpropertiesboxedboolean), -[FakebodywithqueryparamsPutadditionalPropertiesBoxedNumber](#fakebodywithqueryparamsputadditionalpropertiesboxednumber), -[FakebodywithqueryparamsPutadditionalPropertiesBoxedString](#fakebodywithqueryparamsputadditionalpropertiesboxedstring), -[FakebodywithqueryparamsPutadditionalPropertiesBoxedList](#fakebodywithqueryparamsputadditionalpropertiesboxedlist), -[FakebodywithqueryparamsPutadditionalPropertiesBoxedMap](#fakebodywithqueryparamsputadditionalpropertiesboxedmap) +[FakebodywithqueryparamsPutQueryParameters4BoxedVoid](#fakebodywithqueryparamsputqueryparameters4boxedvoid), +[FakebodywithqueryparamsPutQueryParameters4BoxedBoolean](#fakebodywithqueryparamsputqueryparameters4boxedboolean), +[FakebodywithqueryparamsPutQueryParameters4BoxedNumber](#fakebodywithqueryparamsputqueryparameters4boxednumber), +[FakebodywithqueryparamsPutQueryParameters4BoxedString](#fakebodywithqueryparamsputqueryparameters4boxedstring), +[FakebodywithqueryparamsPutQueryParameters4BoxedList](#fakebodywithqueryparamsputqueryparameters4boxedlist), +[FakebodywithqueryparamsPutQueryParameters4BoxedMap](#fakebodywithqueryparamsputqueryparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## FakebodywithqueryparamsPutadditionalPropertiesBoxedVoid -public record FakebodywithqueryparamsPutadditionalPropertiesBoxedVoid
-implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) +## FakebodywithqueryparamsPutQueryParameters4BoxedVoid +public record FakebodywithqueryparamsPutQueryParameters4BoxedVoid
+implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakebodywithqueryparamsPutQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutadditionalPropertiesBoxedBoolean -public record FakebodywithqueryparamsPutadditionalPropertiesBoxedBoolean
-implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) +## FakebodywithqueryparamsPutQueryParameters4BoxedBoolean +public record FakebodywithqueryparamsPutQueryParameters4BoxedBoolean
+implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakebodywithqueryparamsPutQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutadditionalPropertiesBoxedNumber -public record FakebodywithqueryparamsPutadditionalPropertiesBoxedNumber
-implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) +## FakebodywithqueryparamsPutQueryParameters4BoxedNumber +public record FakebodywithqueryparamsPutQueryParameters4BoxedNumber
+implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakebodywithqueryparamsPutQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutadditionalPropertiesBoxedString -public record FakebodywithqueryparamsPutadditionalPropertiesBoxedString
-implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) +## FakebodywithqueryparamsPutQueryParameters4BoxedString +public record FakebodywithqueryparamsPutQueryParameters4BoxedString
+implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakebodywithqueryparamsPutQueryParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutadditionalPropertiesBoxedList -public record FakebodywithqueryparamsPutadditionalPropertiesBoxedList
-implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) +## FakebodywithqueryparamsPutQueryParameters4BoxedList +public record FakebodywithqueryparamsPutQueryParameters4BoxedList
+implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakebodywithqueryparamsPutQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutadditionalPropertiesBoxedMap -public record FakebodywithqueryparamsPutadditionalPropertiesBoxedMap
-implements [FakebodywithqueryparamsPutadditionalPropertiesBoxed](#fakebodywithqueryparamsputadditionalpropertiesboxed) +## FakebodywithqueryparamsPutQueryParameters4BoxedMap +public record FakebodywithqueryparamsPutQueryParameters4BoxedMap
+implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakebodywithqueryparamsPutQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutadditionalProperties -public static class FakebodywithqueryparamsPutadditionalProperties
+## FakebodywithqueryparamsPutQueryParameters4 +public static class FakebodywithqueryparamsPutQueryParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md index ea4782cc895..e64b442662f 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -74,9 +74,9 @@ FakecasesensitiveparamsPut.Put apiClient = new FakecasesensitiveparamsPut.Put(ap // Map validation -FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters = +FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters = FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( - new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMapBuilder() + new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters10() .SomeVar("a") .someVar("a") @@ -138,7 +138,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparametersmap) | queryParameters | +| [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparameters11) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -150,7 +150,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakecasesensitiveparamsPutQueryParameters.@Nullable FakecasesensitiveparamsPutQueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparametersmap) | queryParameters | +| [FakecasesensitiveparamsPutQueryParameters.@Nullable FakecasesensitiveparamsPutQueryParameters11](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparameters11) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FakecasesensitiveparamsPutQueryParametersFakecasesensitiveparamsPutQueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparametersmap) queryParameters)
sets the property | +| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FakecasesensitiveparamsPutQueryParametersFakecasesensitiveparamsPutQueryParameters11](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparameters11) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md index 5f7234f94b2..78b24ed4bc0 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1](#fakecasesensitiveparamsputqueryparameters1)
schema class | -| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMapBuilder](#fakecasesensitiveparamsputqueryparametersmapbuilder)
builder for Map payloads | -| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap](#fakecasesensitiveparamsputqueryparametersmap)
output class for Map payloads | -| sealed interface | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutadditionalPropertiesBoxedVoid](#fakecasesensitiveparamsputadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutadditionalPropertiesBoxedBoolean](#fakecasesensitiveparamsputadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutadditionalPropertiesBoxedNumber](#fakecasesensitiveparamsputadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutadditionalPropertiesBoxedString](#fakecasesensitiveparamsputadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutadditionalPropertiesBoxedList](#fakecasesensitiveparamsputadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutadditionalPropertiesBoxedMap](#fakecasesensitiveparamsputadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutadditionalProperties](#fakecasesensitiveparamsputadditionalproperties)
schema class | +| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters10](#fakecasesensitiveparamsputqueryparameters10)
builder for Map payloads | +| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11](#fakecasesensitiveparamsputqueryparameters11)
output class for Map payloads | +| sealed interface | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed)
sealed interface for validated payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedVoid](#fakecasesensitiveparamsputqueryparameters6boxedvoid)
boxed class to store validated null payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedBoolean](#fakecasesensitiveparamsputqueryparameters6boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedNumber](#fakecasesensitiveparamsputqueryparameters6boxednumber)
boxed class to store validated Number payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedString](#fakecasesensitiveparamsputqueryparameters6boxedstring)
boxed class to store validated String payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedList](#fakecasesensitiveparamsputqueryparameters6boxedlist)
boxed class to store validated List payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedMap](#fakecasesensitiveparamsputqueryparameters6boxedmap)
boxed class to store validated Map payloads | +| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6](#fakecasesensitiveparamsputqueryparameters6)
schema class | ## FakecasesensitiveparamsPutQueryParameters1Boxed public sealed interface FakecasesensitiveparamsPutQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters1BoxedMap([FakecasesensitiveparamsPutQueryParametersMap](#fakecasesensitiveparamsputqueryparametersmap) data)
Creates an instance, private visibility | +| FakecasesensitiveparamsPutQueryParameters1BoxedMap([FakecasesensitiveparamsPutQueryParameters11](#fakecasesensitiveparamsputqueryparameters11) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParametersMap](#fakecasesensitiveparamsputqueryparametersmap) | data()
validated payload | +| [FakecasesensitiveparamsPutQueryParameters11](#fakecasesensitiveparamsputqueryparameters11) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakecasesensitiveparamsPutQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap validatedPayload = +FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 validatedPayload = FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( - new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMapBuilder() + new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters10() .SomeVar("a") .someVar("a") @@ -92,18 +92,18 @@ FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParamet | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("someVar", [Schema0.Schema01.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("some_var", [Schema2.Schema21.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("SomeVar", [Schema1.Schema11.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md#schema11))
)
| | Set | required = Set.of(
    "SomeVar",
    "someVar",
    "some_var"
)
| -| Class | additionalProperties = [FakecasesensitiveparamsPutadditionalProperties.class](#fakecasesensitiveparamsputadditionalproperties) | +| Class | additionalProperties = [FakecasesensitiveparamsPutQueryParameters6.class](#fakecasesensitiveparamsputqueryparameters6) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParametersMap](#fakecasesensitiveparamsputqueryparametersmap) | validate([Map<?, ?>](#fakecasesensitiveparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakecasesensitiveparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakecasesensitiveparamsPutQueryParameters11](#fakecasesensitiveparamsputqueryparameters11) | validate([Map<?, ?>](#fakecasesensitiveparamsputqueryparameters10) arg, SchemaConfiguration configuration) | +| [FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakecasesensitiveparamsputqueryparameters10) arg, SchemaConfiguration configuration) | | [FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakecasesensitiveparamsPutQueryParametersMap000Builder -public class FakecasesensitiveparamsPutQueryParametersMap000Builder
+## FakecasesensitiveparamsPutQueryParameters12 +public class FakecasesensitiveparamsPutQueryParameters12
builder for `Map` A class that builds the Map input type @@ -111,15 +111,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParametersMap000Builder(Map instance)
Creates a builder that contains the passed instance | +| FakecasesensitiveparamsPutQueryParameters12(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FakecasesensitiveparamsPutQueryParametersMap001Builder -public class FakecasesensitiveparamsPutQueryParametersMap001Builder
+## FakecasesensitiveparamsPutQueryParameters13 +public class FakecasesensitiveparamsPutQueryParameters13
builder for `Map` A class that builds the Map input type @@ -127,15 +127,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParametersMap001Builder(Map instance)
Creates a builder that contains the passed instance | +| FakecasesensitiveparamsPutQueryParameters13(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParametersMap000Builder](#fakecasesensitiveparamsputqueryparametersmap000builder) | some_var(String value) | +| [FakecasesensitiveparamsPutQueryParameters12](#fakecasesensitiveparamsputqueryparameters12) | some_var(String value) | -## FakecasesensitiveparamsPutQueryParametersMap010Builder -public class FakecasesensitiveparamsPutQueryParametersMap010Builder
+## FakecasesensitiveparamsPutQueryParameters14 +public class FakecasesensitiveparamsPutQueryParameters14
builder for `Map` A class that builds the Map input type @@ -143,15 +143,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParametersMap010Builder(Map instance)
Creates a builder that contains the passed instance | +| FakecasesensitiveparamsPutQueryParameters14(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParametersMap000Builder](#fakecasesensitiveparamsputqueryparametersmap000builder) | someVar(String value) | +| [FakecasesensitiveparamsPutQueryParameters12](#fakecasesensitiveparamsputqueryparameters12) | someVar(String value) | -## FakecasesensitiveparamsPutQueryParametersMap011Builder -public class FakecasesensitiveparamsPutQueryParametersMap011Builder
+## FakecasesensitiveparamsPutQueryParameters15 +public class FakecasesensitiveparamsPutQueryParameters15
builder for `Map` A class that builds the Map input type @@ -159,16 +159,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParametersMap011Builder(Map instance)
Creates a builder that contains the passed instance | +| FakecasesensitiveparamsPutQueryParameters15(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParametersMap001Builder](#fakecasesensitiveparamsputqueryparametersmap001builder) | someVar(String value) | -| [FakecasesensitiveparamsPutQueryParametersMap010Builder](#fakecasesensitiveparamsputqueryparametersmap010builder) | some_var(String value) | +| [FakecasesensitiveparamsPutQueryParameters13](#fakecasesensitiveparamsputqueryparameters13) | someVar(String value) | +| [FakecasesensitiveparamsPutQueryParameters14](#fakecasesensitiveparamsputqueryparameters14) | some_var(String value) | -## FakecasesensitiveparamsPutQueryParametersMap100Builder -public class FakecasesensitiveparamsPutQueryParametersMap100Builder
+## FakecasesensitiveparamsPutQueryParameters16 +public class FakecasesensitiveparamsPutQueryParameters16
builder for `Map` A class that builds the Map input type @@ -176,15 +176,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParametersMap100Builder(Map instance)
Creates a builder that contains the passed instance | +| FakecasesensitiveparamsPutQueryParameters16(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParametersMap000Builder](#fakecasesensitiveparamsputqueryparametersmap000builder) | SomeVar(String value) | +| [FakecasesensitiveparamsPutQueryParameters12](#fakecasesensitiveparamsputqueryparameters12) | SomeVar(String value) | -## FakecasesensitiveparamsPutQueryParametersMap101Builder -public class FakecasesensitiveparamsPutQueryParametersMap101Builder
+## FakecasesensitiveparamsPutQueryParameters17 +public class FakecasesensitiveparamsPutQueryParameters17
builder for `Map` A class that builds the Map input type @@ -192,16 +192,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParametersMap101Builder(Map instance)
Creates a builder that contains the passed instance | +| FakecasesensitiveparamsPutQueryParameters17(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParametersMap001Builder](#fakecasesensitiveparamsputqueryparametersmap001builder) | SomeVar(String value) | -| [FakecasesensitiveparamsPutQueryParametersMap100Builder](#fakecasesensitiveparamsputqueryparametersmap100builder) | some_var(String value) | +| [FakecasesensitiveparamsPutQueryParameters13](#fakecasesensitiveparamsputqueryparameters13) | SomeVar(String value) | +| [FakecasesensitiveparamsPutQueryParameters16](#fakecasesensitiveparamsputqueryparameters16) | some_var(String value) | -## FakecasesensitiveparamsPutQueryParametersMap110Builder -public class FakecasesensitiveparamsPutQueryParametersMap110Builder
+## FakecasesensitiveparamsPutQueryParameters18 +public class FakecasesensitiveparamsPutQueryParameters18
builder for `Map` A class that builds the Map input type @@ -209,16 +209,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParametersMap110Builder(Map instance)
Creates a builder that contains the passed instance | +| FakecasesensitiveparamsPutQueryParameters18(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParametersMap010Builder](#fakecasesensitiveparamsputqueryparametersmap010builder) | SomeVar(String value) | -| [FakecasesensitiveparamsPutQueryParametersMap100Builder](#fakecasesensitiveparamsputqueryparametersmap100builder) | someVar(String value) | +| [FakecasesensitiveparamsPutQueryParameters14](#fakecasesensitiveparamsputqueryparameters14) | SomeVar(String value) | +| [FakecasesensitiveparamsPutQueryParameters16](#fakecasesensitiveparamsputqueryparameters16) | someVar(String value) | -## FakecasesensitiveparamsPutQueryParametersMapBuilder -public class FakecasesensitiveparamsPutQueryParametersMapBuilder
+## FakecasesensitiveparamsPutQueryParameters10 +public class FakecasesensitiveparamsPutQueryParameters10
builder for `Map` A class that builds the Map input type @@ -226,17 +226,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| FakecasesensitiveparamsPutQueryParameters10()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParametersMap011Builder](#fakecasesensitiveparamsputqueryparametersmap011builder) | SomeVar(String value) | -| [FakecasesensitiveparamsPutQueryParametersMap101Builder](#fakecasesensitiveparamsputqueryparametersmap101builder) | someVar(String value) | -| [FakecasesensitiveparamsPutQueryParametersMap110Builder](#fakecasesensitiveparamsputqueryparametersmap110builder) | some_var(String value) | +| [FakecasesensitiveparamsPutQueryParameters15](#fakecasesensitiveparamsputqueryparameters15) | SomeVar(String value) | +| [FakecasesensitiveparamsPutQueryParameters17](#fakecasesensitiveparamsputqueryparameters17) | someVar(String value) | +| [FakecasesensitiveparamsPutQueryParameters18](#fakecasesensitiveparamsputqueryparameters18) | some_var(String value) | -## FakecasesensitiveparamsPutQueryParametersMap -public static class FakecasesensitiveparamsPutQueryParametersMap
+## FakecasesensitiveparamsPutQueryParameters11 +public static class FakecasesensitiveparamsPutQueryParameters11
extends FrozenMap A class to store validated Map payloads @@ -244,33 +244,33 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakecasesensitiveparamsPutQueryParametersMap](#fakecasesensitiveparamsputqueryparametersmap) | of([Map](#fakecasesensitiveparamsputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakecasesensitiveparamsPutQueryParameters11](#fakecasesensitiveparamsputqueryparameters11) | of([Map](#fakecasesensitiveparamsputqueryparameters10) arg, SchemaConfiguration configuration) | | String | SomeVar()
| | String | someVar()
| | String | some_var()
| -## FakecasesensitiveparamsPutadditionalPropertiesBoxed -public sealed interface FakecasesensitiveparamsPutadditionalPropertiesBoxed
+## FakecasesensitiveparamsPutQueryParameters6Boxed +public sealed interface FakecasesensitiveparamsPutQueryParameters6Boxed
permits
-[FakecasesensitiveparamsPutadditionalPropertiesBoxedVoid](#fakecasesensitiveparamsputadditionalpropertiesboxedvoid), -[FakecasesensitiveparamsPutadditionalPropertiesBoxedBoolean](#fakecasesensitiveparamsputadditionalpropertiesboxedboolean), -[FakecasesensitiveparamsPutadditionalPropertiesBoxedNumber](#fakecasesensitiveparamsputadditionalpropertiesboxednumber), -[FakecasesensitiveparamsPutadditionalPropertiesBoxedString](#fakecasesensitiveparamsputadditionalpropertiesboxedstring), -[FakecasesensitiveparamsPutadditionalPropertiesBoxedList](#fakecasesensitiveparamsputadditionalpropertiesboxedlist), -[FakecasesensitiveparamsPutadditionalPropertiesBoxedMap](#fakecasesensitiveparamsputadditionalpropertiesboxedmap) +[FakecasesensitiveparamsPutQueryParameters6BoxedVoid](#fakecasesensitiveparamsputqueryparameters6boxedvoid), +[FakecasesensitiveparamsPutQueryParameters6BoxedBoolean](#fakecasesensitiveparamsputqueryparameters6boxedboolean), +[FakecasesensitiveparamsPutQueryParameters6BoxedNumber](#fakecasesensitiveparamsputqueryparameters6boxednumber), +[FakecasesensitiveparamsPutQueryParameters6BoxedString](#fakecasesensitiveparamsputqueryparameters6boxedstring), +[FakecasesensitiveparamsPutQueryParameters6BoxedList](#fakecasesensitiveparamsputqueryparameters6boxedlist), +[FakecasesensitiveparamsPutQueryParameters6BoxedMap](#fakecasesensitiveparamsputqueryparameters6boxedmap) sealed interface that stores validated payloads using boxed classes -## FakecasesensitiveparamsPutadditionalPropertiesBoxedVoid -public record FakecasesensitiveparamsPutadditionalPropertiesBoxedVoid
-implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) +## FakecasesensitiveparamsPutQueryParameters6BoxedVoid +public record FakecasesensitiveparamsPutQueryParameters6BoxedVoid
+implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakecasesensitiveparamsPutQueryParameters6BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -278,16 +278,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutadditionalPropertiesBoxedBoolean -public record FakecasesensitiveparamsPutadditionalPropertiesBoxedBoolean
-implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) +## FakecasesensitiveparamsPutQueryParameters6BoxedBoolean +public record FakecasesensitiveparamsPutQueryParameters6BoxedBoolean
+implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakecasesensitiveparamsPutQueryParameters6BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -295,16 +295,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutadditionalPropertiesBoxedNumber -public record FakecasesensitiveparamsPutadditionalPropertiesBoxedNumber
-implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) +## FakecasesensitiveparamsPutQueryParameters6BoxedNumber +public record FakecasesensitiveparamsPutQueryParameters6BoxedNumber
+implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakecasesensitiveparamsPutQueryParameters6BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -312,16 +312,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutadditionalPropertiesBoxedString -public record FakecasesensitiveparamsPutadditionalPropertiesBoxedString
-implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) +## FakecasesensitiveparamsPutQueryParameters6BoxedString +public record FakecasesensitiveparamsPutQueryParameters6BoxedString
+implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakecasesensitiveparamsPutQueryParameters6BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -329,16 +329,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutadditionalPropertiesBoxedList -public record FakecasesensitiveparamsPutadditionalPropertiesBoxedList
-implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) +## FakecasesensitiveparamsPutQueryParameters6BoxedList +public record FakecasesensitiveparamsPutQueryParameters6BoxedList
+implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakecasesensitiveparamsPutQueryParameters6BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -346,16 +346,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutadditionalPropertiesBoxedMap -public record FakecasesensitiveparamsPutadditionalPropertiesBoxedMap
-implements [FakecasesensitiveparamsPutadditionalPropertiesBoxed](#fakecasesensitiveparamsputadditionalpropertiesboxed) +## FakecasesensitiveparamsPutQueryParameters6BoxedMap +public record FakecasesensitiveparamsPutQueryParameters6BoxedMap
+implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakecasesensitiveparamsPutQueryParameters6BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -363,8 +363,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutadditionalProperties -public static class FakecasesensitiveparamsPutadditionalProperties
+## FakecasesensitiveparamsPutQueryParameters6 +public static class FakecasesensitiveparamsPutQueryParameters6
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index ede4014ccba..76adc2d2271 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -75,9 +75,9 @@ FakedeletecoffeeidDelete.Delete apiClient = new FakedeletecoffeeidDelete.Delete( // Map validation -FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters = +FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters = FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( - new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMapBuilder() + new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters8() .id("a") .build(), @@ -138,7 +138,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparametersmap) | pathParameters | +| [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -150,7 +150,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakedeletecoffeeidDeletePathParameters.@Nullable FakedeletecoffeeidDeletePathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparametersmap) | pathParameters | +| [FakedeletecoffeeidDeletePathParameters.@Nullable FakedeletecoffeeidDeletePathParameters9](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([FakedeletecoffeeidDeletePathParametersFakedeletecoffeeidDeletePathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparametersmap) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([FakedeletecoffeeidDeletePathParametersFakedeletecoffeeidDeletePathParameters9](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md index eb755ab6b0d..2197db5eaea 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed)
sealed interface for validated payloads | | record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1](#fakedeletecoffeeiddeletepathparameters1)
schema class | -| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMapBuilder](#fakedeletecoffeeiddeletepathparametersmapbuilder)
builder for Map payloads | -| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap](#fakedeletecoffeeiddeletepathparametersmap)
output class for Map payloads | -| sealed interface | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeleteadditionalPropertiesBoxedVoid](#fakedeletecoffeeiddeleteadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeleteadditionalPropertiesBoxedBoolean](#fakedeletecoffeeiddeleteadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeleteadditionalPropertiesBoxedNumber](#fakedeletecoffeeiddeleteadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeleteadditionalPropertiesBoxedString](#fakedeletecoffeeiddeleteadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeleteadditionalPropertiesBoxedList](#fakedeletecoffeeiddeleteadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeleteadditionalPropertiesBoxedMap](#fakedeletecoffeeiddeleteadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeleteadditionalProperties](#fakedeletecoffeeiddeleteadditionalproperties)
schema class | +| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters8](#fakedeletecoffeeiddeletepathparameters8)
builder for Map payloads | +| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9](#fakedeletecoffeeiddeletepathparameters9)
output class for Map payloads | +| sealed interface | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed)
sealed interface for validated payloads | +| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedVoid](#fakedeletecoffeeiddeletepathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedBoolean](#fakedeletecoffeeiddeletepathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedNumber](#fakedeletecoffeeiddeletepathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedString](#fakedeletecoffeeiddeletepathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedList](#fakedeletecoffeeiddeletepathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedMap](#fakedeletecoffeeiddeletepathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4](#fakedeletecoffeeiddeletepathparameters4)
schema class | ## FakedeletecoffeeidDeletePathParameters1Boxed public sealed interface FakedeletecoffeeidDeletePathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParameters1BoxedMap([FakedeletecoffeeidDeletePathParametersMap](#fakedeletecoffeeiddeletepathparametersmap) data)
Creates an instance, private visibility | +| FakedeletecoffeeidDeletePathParameters1BoxedMap([FakedeletecoffeeidDeletePathParameters9](#fakedeletecoffeeiddeletepathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakedeletecoffeeidDeletePathParametersMap](#fakedeletecoffeeiddeletepathparametersmap) | data()
validated payload | +| [FakedeletecoffeeidDeletePathParameters9](#fakedeletecoffeeiddeletepathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakedeletecoffeeidDeletePathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap validatedPayload = +FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 validatedPayload = FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( - new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMapBuilder() + new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters8() .id("a") .build(), @@ -88,18 +88,18 @@ FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("id", [Schema0.Schema01.class](../../../paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "id"
)
| -| Class | additionalProperties = [FakedeletecoffeeidDeleteadditionalProperties.class](#fakedeletecoffeeiddeleteadditionalproperties) | +| Class | additionalProperties = [FakedeletecoffeeidDeletePathParameters4.class](#fakedeletecoffeeiddeletepathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakedeletecoffeeidDeletePathParametersMap](#fakedeletecoffeeiddeletepathparametersmap) | validate([Map<?, ?>](#fakedeletecoffeeiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeletecoffeeiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakedeletecoffeeidDeletePathParameters9](#fakedeletecoffeeiddeletepathparameters9) | validate([Map<?, ?>](#fakedeletecoffeeiddeletepathparameters8) arg, SchemaConfiguration configuration) | +| [FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeletecoffeeiddeletepathparameters8) arg, SchemaConfiguration configuration) | | [FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakedeletecoffeeidDeletePathParametersMap0Builder -public class FakedeletecoffeeidDeletePathParametersMap0Builder
+## FakedeletecoffeeidDeletePathParameters10 +public class FakedeletecoffeeidDeletePathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| FakedeletecoffeeidDeletePathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FakedeletecoffeeidDeletePathParametersMapBuilder -public class FakedeletecoffeeidDeletePathParametersMapBuilder
+## FakedeletecoffeeidDeletePathParameters8 +public class FakedeletecoffeeidDeletePathParameters8
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParametersMapBuilder()
Creates a builder that contains an empty map | +| FakedeletecoffeeidDeletePathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakedeletecoffeeidDeletePathParametersMap0Builder](#fakedeletecoffeeiddeletepathparametersmap0builder) | id(String value) | +| [FakedeletecoffeeidDeletePathParameters10](#fakedeletecoffeeiddeletepathparameters10) | id(String value) | -## FakedeletecoffeeidDeletePathParametersMap -public static class FakedeletecoffeeidDeletePathParametersMap
+## FakedeletecoffeeidDeletePathParameters9 +public static class FakedeletecoffeeidDeletePathParameters9
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakedeletecoffeeidDeletePathParametersMap](#fakedeletecoffeeiddeletepathparametersmap) | of([Map](#fakedeletecoffeeiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakedeletecoffeeidDeletePathParameters9](#fakedeletecoffeeiddeletepathparameters9) | of([Map](#fakedeletecoffeeiddeletepathparameters8) arg, SchemaConfiguration configuration) | | String | id()
| -## FakedeletecoffeeidDeleteadditionalPropertiesBoxed -public sealed interface FakedeletecoffeeidDeleteadditionalPropertiesBoxed
+## FakedeletecoffeeidDeletePathParameters4Boxed +public sealed interface FakedeletecoffeeidDeletePathParameters4Boxed
permits
-[FakedeletecoffeeidDeleteadditionalPropertiesBoxedVoid](#fakedeletecoffeeiddeleteadditionalpropertiesboxedvoid), -[FakedeletecoffeeidDeleteadditionalPropertiesBoxedBoolean](#fakedeletecoffeeiddeleteadditionalpropertiesboxedboolean), -[FakedeletecoffeeidDeleteadditionalPropertiesBoxedNumber](#fakedeletecoffeeiddeleteadditionalpropertiesboxednumber), -[FakedeletecoffeeidDeleteadditionalPropertiesBoxedString](#fakedeletecoffeeiddeleteadditionalpropertiesboxedstring), -[FakedeletecoffeeidDeleteadditionalPropertiesBoxedList](#fakedeletecoffeeiddeleteadditionalpropertiesboxedlist), -[FakedeletecoffeeidDeleteadditionalPropertiesBoxedMap](#fakedeletecoffeeiddeleteadditionalpropertiesboxedmap) +[FakedeletecoffeeidDeletePathParameters4BoxedVoid](#fakedeletecoffeeiddeletepathparameters4boxedvoid), +[FakedeletecoffeeidDeletePathParameters4BoxedBoolean](#fakedeletecoffeeiddeletepathparameters4boxedboolean), +[FakedeletecoffeeidDeletePathParameters4BoxedNumber](#fakedeletecoffeeiddeletepathparameters4boxednumber), +[FakedeletecoffeeidDeletePathParameters4BoxedString](#fakedeletecoffeeiddeletepathparameters4boxedstring), +[FakedeletecoffeeidDeletePathParameters4BoxedList](#fakedeletecoffeeiddeletepathparameters4boxedlist), +[FakedeletecoffeeidDeletePathParameters4BoxedMap](#fakedeletecoffeeiddeletepathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## FakedeletecoffeeidDeleteadditionalPropertiesBoxedVoid -public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedVoid
-implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) +## FakedeletecoffeeidDeletePathParameters4BoxedVoid +public record FakedeletecoffeeidDeletePathParameters4BoxedVoid
+implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakedeletecoffeeidDeletePathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeleteadditionalPropertiesBoxedBoolean -public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedBoolean
-implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) +## FakedeletecoffeeidDeletePathParameters4BoxedBoolean +public record FakedeletecoffeeidDeletePathParameters4BoxedBoolean
+implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakedeletecoffeeidDeletePathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeleteadditionalPropertiesBoxedNumber -public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedNumber
-implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) +## FakedeletecoffeeidDeletePathParameters4BoxedNumber +public record FakedeletecoffeeidDeletePathParameters4BoxedNumber
+implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakedeletecoffeeidDeletePathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeleteadditionalPropertiesBoxedString -public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedString
-implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) +## FakedeletecoffeeidDeletePathParameters4BoxedString +public record FakedeletecoffeeidDeletePathParameters4BoxedString
+implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakedeletecoffeeidDeletePathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeleteadditionalPropertiesBoxedList -public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedList
-implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) +## FakedeletecoffeeidDeletePathParameters4BoxedList +public record FakedeletecoffeeidDeletePathParameters4BoxedList
+implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeleteadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakedeletecoffeeidDeletePathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeleteadditionalPropertiesBoxedMap -public record FakedeletecoffeeidDeleteadditionalPropertiesBoxedMap
-implements [FakedeletecoffeeidDeleteadditionalPropertiesBoxed](#fakedeletecoffeeiddeleteadditionalpropertiesboxed) +## FakedeletecoffeeidDeletePathParameters4BoxedMap +public record FakedeletecoffeeidDeletePathParameters4BoxedMap
+implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeleteadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakedeletecoffeeidDeletePathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeleteadditionalProperties -public static class FakedeletecoffeeidDeleteadditionalProperties
+## FakedeletecoffeeidDeletePathParameters4 +public static class FakedeletecoffeeidDeletePathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index a02c9251da2..2ccf96b2089 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -129,7 +129,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [FakeinlinecompositionPostQueryParameters.@Nullable FakeinlinecompositionPostQueryParametersMap](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#fakeinlinecompositionpostqueryparametersmap) | queryParameters
optional | +| [FakeinlinecompositionPostQueryParameters.@Nullable FakeinlinecompositionPostQueryParameters10](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#fakeinlinecompositionpostqueryparameters10) | queryParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -148,7 +148,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeinlinecompositionPostRequestBody.SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | queryParameters([FakeinlinecompositionPostQueryParametersFakeinlinecompositionPostQueryParametersMap](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#fakeinlinecompositionpostqueryparametersmap) queryParameters)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | queryParameters([FakeinlinecompositionPostQueryParametersFakeinlinecompositionPostQueryParameters10](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#fakeinlinecompositionpostqueryparameters10) queryParameters)
sets the optional property | | [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md index c741dbb86a4..8a9aff38ac4 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1](#fakeinlinecompositionpostqueryparameters1)
schema class | -| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder)
builder for Map payloads | -| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParametersMap](#fakeinlinecompositionpostqueryparametersmap)
output class for Map payloads | -| sealed interface | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostadditionalPropertiesBoxedVoid](#fakeinlinecompositionpostadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostadditionalPropertiesBoxedBoolean](#fakeinlinecompositionpostadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostadditionalPropertiesBoxedNumber](#fakeinlinecompositionpostadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostadditionalPropertiesBoxedString](#fakeinlinecompositionpostadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostadditionalPropertiesBoxedList](#fakeinlinecompositionpostadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostadditionalPropertiesBoxedMap](#fakeinlinecompositionpostadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostadditionalProperties](#fakeinlinecompositionpostadditionalproperties)
schema class | +| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9)
builder for Map payloads | +| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters10](#fakeinlinecompositionpostqueryparameters10)
output class for Map payloads | +| sealed interface | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed)
sealed interface for validated payloads | +| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedVoid](#fakeinlinecompositionpostqueryparameters5boxedvoid)
boxed class to store validated null payloads | +| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedBoolean](#fakeinlinecompositionpostqueryparameters5boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedNumber](#fakeinlinecompositionpostqueryparameters5boxednumber)
boxed class to store validated Number payloads | +| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedString](#fakeinlinecompositionpostqueryparameters5boxedstring)
boxed class to store validated String payloads | +| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedList](#fakeinlinecompositionpostqueryparameters5boxedlist)
boxed class to store validated List payloads | +| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedMap](#fakeinlinecompositionpostqueryparameters5boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5](#fakeinlinecompositionpostqueryparameters5)
schema class | ## FakeinlinecompositionPostQueryParameters1Boxed public sealed interface FakeinlinecompositionPostQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostQueryParameters1BoxedMap([FakeinlinecompositionPostQueryParametersMap](#fakeinlinecompositionpostqueryparametersmap) data)
Creates an instance, private visibility | +| FakeinlinecompositionPostQueryParameters1BoxedMap([FakeinlinecompositionPostQueryParameters10](#fakeinlinecompositionpostqueryparameters10) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeinlinecompositionPostQueryParametersMap](#fakeinlinecompositionpostqueryparametersmap) | data()
validated payload | +| [FakeinlinecompositionPostQueryParameters10](#fakeinlinecompositionpostqueryparameters10) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeinlinecompositionPostQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParametersMap validatedPayload = +FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters10 validatedPayload = FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1.validate( - new FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParametersMapBuilder() + new FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters9() .compositionInProperty( MapUtils.makeMap( ) @@ -89,18 +89,18 @@ FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameter | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("compositionAtRoot", [Schema0.Schema01.class](../../../paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("compositionInProperty", [Schema1.Schema11.class](../../../paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md#schema11))
)
| -| Class | additionalProperties = [FakeinlinecompositionPostadditionalProperties.class](#fakeinlinecompositionpostadditionalproperties) | +| Class | additionalProperties = [FakeinlinecompositionPostQueryParameters5.class](#fakeinlinecompositionpostqueryparameters5) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeinlinecompositionPostQueryParametersMap](#fakeinlinecompositionpostqueryparametersmap) | validate([Map<?, ?>](#fakeinlinecompositionpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeinlinecompositionpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeinlinecompositionPostQueryParameters10](#fakeinlinecompositionpostqueryparameters10) | validate([Map<?, ?>](#fakeinlinecompositionpostqueryparameters9) arg, SchemaConfiguration configuration) | +| [FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeinlinecompositionpostqueryparameters9) arg, SchemaConfiguration configuration) | | [FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeinlinecompositionPostQueryParametersMapBuilder -public class FakeinlinecompositionPostQueryParametersMapBuilder
+## FakeinlinecompositionPostQueryParameters9 +public class FakeinlinecompositionPostQueryParameters9
builder for `Map` A class that builds the Map input type @@ -108,25 +108,25 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| FakeinlinecompositionPostQueryParameters9()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder) | compositionAtRoot(Void value) | -| [FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder) | compositionAtRoot(boolean value) | -| [FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder) | compositionAtRoot(String value) | -| [FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder) | compositionAtRoot(int value) | -| [FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder) | compositionAtRoot(float value) | -| [FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder) | compositionAtRoot(long value) | -| [FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder) | compositionAtRoot(double value) | -| [FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder) | compositionAtRoot(List value) | -| [FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder) | compositionAtRoot(Map value) | -| [FakeinlinecompositionPostQueryParametersMapBuilder](#fakeinlinecompositionpostqueryparametersmapbuilder) | compositionInProperty(Map value) | - -## FakeinlinecompositionPostQueryParametersMap -public static class FakeinlinecompositionPostQueryParametersMap
+| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(Void value) | +| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(boolean value) | +| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(String value) | +| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(int value) | +| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(float value) | +| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(long value) | +| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(double value) | +| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(List value) | +| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(Map value) | +| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionInProperty(Map value) | + +## FakeinlinecompositionPostQueryParameters10 +public static class FakeinlinecompositionPostQueryParameters10
extends FrozenMap A class to store validated Map payloads @@ -134,32 +134,32 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeinlinecompositionPostQueryParametersMap](#fakeinlinecompositionpostqueryparametersmap) | of([Map](#fakeinlinecompositionpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakeinlinecompositionPostQueryParameters10](#fakeinlinecompositionpostqueryparameters10) | of([Map](#fakeinlinecompositionpostqueryparameters9) arg, SchemaConfiguration configuration) | | @Nullable Object | compositionAtRoot()
[optional] | | [Schema1.SchemaMap1](../../../paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md#schemamap1) | compositionInProperty()
[optional] | -## FakeinlinecompositionPostadditionalPropertiesBoxed -public sealed interface FakeinlinecompositionPostadditionalPropertiesBoxed
+## FakeinlinecompositionPostQueryParameters5Boxed +public sealed interface FakeinlinecompositionPostQueryParameters5Boxed
permits
-[FakeinlinecompositionPostadditionalPropertiesBoxedVoid](#fakeinlinecompositionpostadditionalpropertiesboxedvoid), -[FakeinlinecompositionPostadditionalPropertiesBoxedBoolean](#fakeinlinecompositionpostadditionalpropertiesboxedboolean), -[FakeinlinecompositionPostadditionalPropertiesBoxedNumber](#fakeinlinecompositionpostadditionalpropertiesboxednumber), -[FakeinlinecompositionPostadditionalPropertiesBoxedString](#fakeinlinecompositionpostadditionalpropertiesboxedstring), -[FakeinlinecompositionPostadditionalPropertiesBoxedList](#fakeinlinecompositionpostadditionalpropertiesboxedlist), -[FakeinlinecompositionPostadditionalPropertiesBoxedMap](#fakeinlinecompositionpostadditionalpropertiesboxedmap) +[FakeinlinecompositionPostQueryParameters5BoxedVoid](#fakeinlinecompositionpostqueryparameters5boxedvoid), +[FakeinlinecompositionPostQueryParameters5BoxedBoolean](#fakeinlinecompositionpostqueryparameters5boxedboolean), +[FakeinlinecompositionPostQueryParameters5BoxedNumber](#fakeinlinecompositionpostqueryparameters5boxednumber), +[FakeinlinecompositionPostQueryParameters5BoxedString](#fakeinlinecompositionpostqueryparameters5boxedstring), +[FakeinlinecompositionPostQueryParameters5BoxedList](#fakeinlinecompositionpostqueryparameters5boxedlist), +[FakeinlinecompositionPostQueryParameters5BoxedMap](#fakeinlinecompositionpostqueryparameters5boxedmap) sealed interface that stores validated payloads using boxed classes -## FakeinlinecompositionPostadditionalPropertiesBoxedVoid -public record FakeinlinecompositionPostadditionalPropertiesBoxedVoid
-implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) +## FakeinlinecompositionPostQueryParameters5BoxedVoid +public record FakeinlinecompositionPostQueryParameters5BoxedVoid
+implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakeinlinecompositionPostQueryParameters5BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -167,16 +167,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostadditionalPropertiesBoxedBoolean -public record FakeinlinecompositionPostadditionalPropertiesBoxedBoolean
-implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) +## FakeinlinecompositionPostQueryParameters5BoxedBoolean +public record FakeinlinecompositionPostQueryParameters5BoxedBoolean
+implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakeinlinecompositionPostQueryParameters5BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -184,16 +184,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostadditionalPropertiesBoxedNumber -public record FakeinlinecompositionPostadditionalPropertiesBoxedNumber
-implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) +## FakeinlinecompositionPostQueryParameters5BoxedNumber +public record FakeinlinecompositionPostQueryParameters5BoxedNumber
+implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakeinlinecompositionPostQueryParameters5BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -201,16 +201,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostadditionalPropertiesBoxedString -public record FakeinlinecompositionPostadditionalPropertiesBoxedString
-implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) +## FakeinlinecompositionPostQueryParameters5BoxedString +public record FakeinlinecompositionPostQueryParameters5BoxedString
+implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakeinlinecompositionPostQueryParameters5BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -218,16 +218,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostadditionalPropertiesBoxedList -public record FakeinlinecompositionPostadditionalPropertiesBoxedList
-implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) +## FakeinlinecompositionPostQueryParameters5BoxedList +public record FakeinlinecompositionPostQueryParameters5BoxedList
+implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakeinlinecompositionPostQueryParameters5BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -235,16 +235,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostadditionalPropertiesBoxedMap -public record FakeinlinecompositionPostadditionalPropertiesBoxedMap
-implements [FakeinlinecompositionPostadditionalPropertiesBoxed](#fakeinlinecompositionpostadditionalpropertiesboxed) +## FakeinlinecompositionPostQueryParameters5BoxedMap +public record FakeinlinecompositionPostQueryParameters5BoxedMap
+implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakeinlinecompositionPostQueryParameters5BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -252,8 +252,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostadditionalProperties -public static class FakeinlinecompositionPostadditionalProperties
+## FakeinlinecompositionPostQueryParameters5 +public static class FakeinlinecompositionPostQueryParameters5
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index c67974031e9..fe021d00782 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -120,7 +120,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakeobjinqueryGetQueryParameters.@Nullable FakeobjinqueryGetQueryParametersMap](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#fakeobjinquerygetqueryparametersmap) | queryParameters
optional | +| [FakeobjinqueryGetQueryParameters.@Nullable FakeobjinqueryGetQueryParameters9](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#fakeobjinquerygetqueryparameters9) | queryParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -138,7 +138,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeobjinqueryGetQueryParametersFakeobjinqueryGetQueryParametersMap](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#fakeobjinquerygetqueryparametersmap) queryParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeobjinqueryGetQueryParametersFakeobjinqueryGetQueryParameters9](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#fakeobjinquerygetqueryparameters9) queryParameters)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md index 454d5ae13a2..c8b92e6f868 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1](#fakeobjinquerygetqueryparameters1)
schema class | -| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParametersMapBuilder](#fakeobjinquerygetqueryparametersmapbuilder)
builder for Map payloads | -| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParametersMap](#fakeobjinquerygetqueryparametersmap)
output class for Map payloads | -| sealed interface | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetadditionalPropertiesBoxedVoid](#fakeobjinquerygetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetadditionalPropertiesBoxedBoolean](#fakeobjinquerygetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetadditionalPropertiesBoxedNumber](#fakeobjinquerygetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetadditionalPropertiesBoxedString](#fakeobjinquerygetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetadditionalPropertiesBoxedList](#fakeobjinquerygetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetadditionalPropertiesBoxedMap](#fakeobjinquerygetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetadditionalProperties](#fakeobjinquerygetadditionalproperties)
schema class | +| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters8](#fakeobjinquerygetqueryparameters8)
builder for Map payloads | +| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters9](#fakeobjinquerygetqueryparameters9)
output class for Map payloads | +| sealed interface | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed)
sealed interface for validated payloads | +| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedVoid](#fakeobjinquerygetqueryparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedBoolean](#fakeobjinquerygetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedNumber](#fakeobjinquerygetqueryparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedString](#fakeobjinquerygetqueryparameters4boxedstring)
boxed class to store validated String payloads | +| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedList](#fakeobjinquerygetqueryparameters4boxedlist)
boxed class to store validated List payloads | +| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedMap](#fakeobjinquerygetqueryparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4](#fakeobjinquerygetqueryparameters4)
schema class | ## FakeobjinqueryGetQueryParameters1Boxed public sealed interface FakeobjinqueryGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetQueryParameters1BoxedMap([FakeobjinqueryGetQueryParametersMap](#fakeobjinquerygetqueryparametersmap) data)
Creates an instance, private visibility | +| FakeobjinqueryGetQueryParameters1BoxedMap([FakeobjinqueryGetQueryParameters9](#fakeobjinquerygetqueryparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeobjinqueryGetQueryParametersMap](#fakeobjinquerygetqueryparametersmap) | data()
validated payload | +| [FakeobjinqueryGetQueryParameters9](#fakeobjinquerygetqueryparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeobjinqueryGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParametersMap validatedPayload = +FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters9 validatedPayload = FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1.validate( - new FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParametersMapBuilder() + new FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters8() .mapBean( MapUtils.makeMap( new AbstractMap.SimpleEntry( @@ -93,18 +93,18 @@ FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParametersMap validatedPa | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("mapBean", [Schema0.Schema01.class](../../../paths/fakeobjinquery/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [FakeobjinqueryGetadditionalProperties.class](#fakeobjinquerygetadditionalproperties) | +| Class | additionalProperties = [FakeobjinqueryGetQueryParameters4.class](#fakeobjinquerygetqueryparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeobjinqueryGetQueryParametersMap](#fakeobjinquerygetqueryparametersmap) | validate([Map<?, ?>](#fakeobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeobjinqueryGetQueryParameters9](#fakeobjinquerygetqueryparameters9) | validate([Map<?, ?>](#fakeobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | +| [FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | | [FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeobjinqueryGetQueryParametersMapBuilder -public class FakeobjinqueryGetQueryParametersMapBuilder
+## FakeobjinqueryGetQueryParameters8 +public class FakeobjinqueryGetQueryParameters8
builder for `Map>` A class that builds the Map input type @@ -112,16 +112,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| FakeobjinqueryGetQueryParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map> | build()
Returns map input that should be used with Schema.validate | -| [FakeobjinqueryGetQueryParametersMapBuilder](#fakeobjinquerygetqueryparametersmapbuilder) | mapBean(Map value) | +| [FakeobjinqueryGetQueryParameters8](#fakeobjinquerygetqueryparameters8) | mapBean(Map value) | -## FakeobjinqueryGetQueryParametersMap -public static class FakeobjinqueryGetQueryParametersMap
+## FakeobjinqueryGetQueryParameters9 +public static class FakeobjinqueryGetQueryParameters9
extends FrozenMap A class to store validated Map payloads @@ -129,31 +129,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeobjinqueryGetQueryParametersMap](#fakeobjinquerygetqueryparametersmap) | of([Map>](#fakeobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakeobjinqueryGetQueryParameters9](#fakeobjinquerygetqueryparameters9) | of([Map>](#fakeobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | | [Schema0.SchemaMap0](../../../paths/fakeobjinquery/get/parameters/parameter0/Schema0.md#schemamap0) | mapBean()
[optional] | -## FakeobjinqueryGetadditionalPropertiesBoxed -public sealed interface FakeobjinqueryGetadditionalPropertiesBoxed
+## FakeobjinqueryGetQueryParameters4Boxed +public sealed interface FakeobjinqueryGetQueryParameters4Boxed
permits
-[FakeobjinqueryGetadditionalPropertiesBoxedVoid](#fakeobjinquerygetadditionalpropertiesboxedvoid), -[FakeobjinqueryGetadditionalPropertiesBoxedBoolean](#fakeobjinquerygetadditionalpropertiesboxedboolean), -[FakeobjinqueryGetadditionalPropertiesBoxedNumber](#fakeobjinquerygetadditionalpropertiesboxednumber), -[FakeobjinqueryGetadditionalPropertiesBoxedString](#fakeobjinquerygetadditionalpropertiesboxedstring), -[FakeobjinqueryGetadditionalPropertiesBoxedList](#fakeobjinquerygetadditionalpropertiesboxedlist), -[FakeobjinqueryGetadditionalPropertiesBoxedMap](#fakeobjinquerygetadditionalpropertiesboxedmap) +[FakeobjinqueryGetQueryParameters4BoxedVoid](#fakeobjinquerygetqueryparameters4boxedvoid), +[FakeobjinqueryGetQueryParameters4BoxedBoolean](#fakeobjinquerygetqueryparameters4boxedboolean), +[FakeobjinqueryGetQueryParameters4BoxedNumber](#fakeobjinquerygetqueryparameters4boxednumber), +[FakeobjinqueryGetQueryParameters4BoxedString](#fakeobjinquerygetqueryparameters4boxedstring), +[FakeobjinqueryGetQueryParameters4BoxedList](#fakeobjinquerygetqueryparameters4boxedlist), +[FakeobjinqueryGetQueryParameters4BoxedMap](#fakeobjinquerygetqueryparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## FakeobjinqueryGetadditionalPropertiesBoxedVoid -public record FakeobjinqueryGetadditionalPropertiesBoxedVoid
-implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) +## FakeobjinqueryGetQueryParameters4BoxedVoid +public record FakeobjinqueryGetQueryParameters4BoxedVoid
+implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakeobjinqueryGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -161,16 +161,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetadditionalPropertiesBoxedBoolean -public record FakeobjinqueryGetadditionalPropertiesBoxedBoolean
-implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) +## FakeobjinqueryGetQueryParameters4BoxedBoolean +public record FakeobjinqueryGetQueryParameters4BoxedBoolean
+implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakeobjinqueryGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -178,16 +178,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetadditionalPropertiesBoxedNumber -public record FakeobjinqueryGetadditionalPropertiesBoxedNumber
-implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) +## FakeobjinqueryGetQueryParameters4BoxedNumber +public record FakeobjinqueryGetQueryParameters4BoxedNumber
+implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakeobjinqueryGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -195,16 +195,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetadditionalPropertiesBoxedString -public record FakeobjinqueryGetadditionalPropertiesBoxedString
-implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) +## FakeobjinqueryGetQueryParameters4BoxedString +public record FakeobjinqueryGetQueryParameters4BoxedString
+implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakeobjinqueryGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -212,16 +212,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetadditionalPropertiesBoxedList -public record FakeobjinqueryGetadditionalPropertiesBoxedList
-implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) +## FakeobjinqueryGetQueryParameters4BoxedList +public record FakeobjinqueryGetQueryParameters4BoxedList
+implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakeobjinqueryGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -229,16 +229,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetadditionalPropertiesBoxedMap -public record FakeobjinqueryGetadditionalPropertiesBoxedMap
-implements [FakeobjinqueryGetadditionalPropertiesBoxed](#fakeobjinquerygetadditionalpropertiesboxed) +## FakeobjinqueryGetQueryParameters4BoxedMap +public record FakeobjinqueryGetQueryParameters4BoxedMap
+implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakeobjinqueryGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -246,8 +246,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetadditionalProperties -public static class FakeobjinqueryGetadditionalProperties
+## FakeobjinqueryGetQueryParameters4 +public static class FakeobjinqueryGetQueryParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index be5fed9618e..6681f3cf69e 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -78,9 +78,9 @@ Fakeparametercollisions1ababselfabPost.Post apiClient = new Fakeparametercollisi // Map validation -Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters = +Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters = Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( - new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMapBuilder() + new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters12() .positive1("a") .aHyphenMinusB("a") @@ -148,11 +148,11 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparametersmap) | pathParameters | +| [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparameters13) | pathParameters | | [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparametersmap) | headerParameters
optional | -| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparametersmap) | queryParameters
optional | -| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparametersmap) | cookieParameters
optional | +| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParameters12](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparameters12) | headerParameters
optional | +| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparameters13) | queryParameters
optional | +| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparameters13) | cookieParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -164,11 +164,11 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters.@Nullable Fakeparametercollisions1ababselfabPostPathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparametersmap) | pathParameters | +| [Fakeparametercollisions1ababselfabPostPathParameters.@Nullable Fakeparametercollisions1ababselfabPostPathParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparameters13) | pathParameters | | [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody | -| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparametersmap) | headerParameters | -| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparametersmap) | queryParameters | -| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparametersmap) | cookieParameters | +| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParameters12](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparameters12) | headerParameters | +| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparameters13) | queryParameters | +| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparameters13) | cookieParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -187,9 +187,9 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([Fakeparametercollisions1ababselfabPostHeaderParametersFakeparametercollisions1ababselfabPostHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparametersmap) headerParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | queryParameters([Fakeparametercollisions1ababselfabPostQueryParametersFakeparametercollisions1ababselfabPostQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparametersmap) queryParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | cookieParameters([Fakeparametercollisions1ababselfabPostCookieParametersFakeparametercollisions1ababselfabPostCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparametersmap) cookieParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([Fakeparametercollisions1ababselfabPostHeaderParametersFakeparametercollisions1ababselfabPostHeaderParameters12](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparameters12) headerParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | queryParameters([Fakeparametercollisions1ababselfabPostQueryParametersFakeparametercollisions1ababselfabPostQueryParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparameters13) queryParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | cookieParameters([Fakeparametercollisions1ababselfabPostCookieParametersFakeparametercollisions1ababselfabPostCookieParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparameters13) cookieParameters)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -206,6 +206,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([Fakeparametercollisions1ababselfabPostPathParametersFakeparametercollisions1ababselfabPostPathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparametersmap) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([Fakeparametercollisions1ababselfabPostPathParametersFakeparametercollisions1ababselfabPostPathParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparameters13) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md index aa5cbc51772..4f3864cc822 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed)
sealed interface for validated payloads | | record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1](#fakeparametercollisions1ababselfabpostcookieparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParametersMap](#fakeparametercollisions1ababselfabpostcookieparametersmap)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostadditionalProperties](#fakeparametercollisions1ababselfabpostadditionalproperties)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters13](#fakeparametercollisions1ababselfabpostcookieparameters13)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostcookieparameters8boxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostcookieparameters8boxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostcookieparameters8boxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedString](#fakeparametercollisions1ababselfabpostcookieparameters8boxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedList](#fakeparametercollisions1ababselfabpostcookieparameters8boxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters8boxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8](#fakeparametercollisions1ababselfabpostcookieparameters8)
schema class | ## Fakeparametercollisions1ababselfabPostCookieParameters1Boxed public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap([Fakeparametercollisions1ababselfabPostCookieParametersMap](#fakeparametercollisions1ababselfabpostcookieparametersmap) data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap([Fakeparametercollisions1ababselfabPostCookieParameters13](#fakeparametercollisions1ababselfabpostcookieparameters13) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostCookieParametersMap](#fakeparametercollisions1ababselfabpostcookieparametersmap) | data()
validated payload | +| [Fakeparametercollisions1ababselfabPostCookieParameters13](#fakeparametercollisions1ababselfabpostcookieparameters13) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Fakeparametercollisions1ababselfabPostCookieParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParametersMap validatedPayload = +Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters13 validatedPayload = Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1.validate( - new Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder() + new Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters12() .positive1("a") .aB("a") @@ -95,18 +95,18 @@ Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1a | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema14.Schema141.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md#schema141)),
    new PropertyEntry("aB", [Schema15.Schema151.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md#schema151)),
    new PropertyEntry("Ab", [Schema16.Schema161.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md#schema161)),
    new PropertyEntry("A-B", [Schema18.Schema181.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md#schema181)),
    new PropertyEntry("self", [Schema17.Schema171.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md#schema171))
)
| -| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostadditionalProperties.class](#fakeparametercollisions1ababselfabpostadditionalproperties) | +| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostCookieParameters8.class](#fakeparametercollisions1ababselfabpostcookieparameters8) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostCookieParametersMap](#fakeparametercollisions1ababselfabpostcookieparametersmap) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostCookieParameters13](#fakeparametercollisions1ababselfabpostcookieparameters13) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostcookieparameters12) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostcookieparameters12) arg, SchemaConfiguration configuration) | | [Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder -public class Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder
+## Fakeparametercollisions1ababselfabPostCookieParameters12 +public class Fakeparametercollisions1ababselfabPostCookieParameters12
builder for `Map` A class that builds the Map input type @@ -114,20 +114,20 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder()
Creates a builder that contains an empty map | +| Fakeparametercollisions1ababselfabPostCookieParameters12()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) | self(String value) | - -## Fakeparametercollisions1ababselfabPostCookieParametersMap -public static class Fakeparametercollisions1ababselfabPostCookieParametersMap
+| [Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12) | self(String value) | + +## Fakeparametercollisions1ababselfabPostCookieParameters13 +public static class Fakeparametercollisions1ababselfabPostCookieParameters13
extends FrozenMap A class to store validated Map payloads @@ -135,34 +135,34 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Fakeparametercollisions1ababselfabPostCookieParametersMap](#fakeparametercollisions1ababselfabpostcookieparametersmap) | of([Map](#fakeparametercollisions1ababselfabpostcookieparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [Fakeparametercollisions1ababselfabPostCookieParameters13](#fakeparametercollisions1ababselfabpostcookieparameters13) | of([Map](#fakeparametercollisions1ababselfabpostcookieparameters12) arg, SchemaConfiguration configuration) | | String | aB()
[optional] | | String | Ab()
[optional] | | String | self()
[optional] | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed -public sealed interface Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed
+## Fakeparametercollisions1ababselfabPostCookieParameters8Boxed +public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters8Boxed
permits
-[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap) +[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostcookieparameters8boxedvoid), +[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostcookieparameters8boxedboolean), +[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostcookieparameters8boxednumber), +[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedString](#fakeparametercollisions1ababselfabpostcookieparameters8boxedstring), +[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedList](#fakeparametercollisions1ababselfabpostcookieparameters8boxedlist), +[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters8boxedmap) sealed interface that stores validated payloads using boxed classes -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedVoid +public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedVoid
+implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -170,16 +170,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedBoolean +public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedBoolean
+implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -187,16 +187,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedNumber +public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedNumber
+implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -204,16 +204,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedString +public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedString
+implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -221,16 +221,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedList +public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedList
+implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -238,16 +238,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedMap +public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedMap
+implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -255,8 +255,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalProperties -public static class Fakeparametercollisions1ababselfabPostadditionalProperties
+## Fakeparametercollisions1ababselfabPostCookieParameters8 +public static class Fakeparametercollisions1ababselfabPostCookieParameters8
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md index 469ac3b89ee..560a6bc19a9 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed)
sealed interface for validated payloads | | record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1](#fakeparametercollisions1ababselfabpostheaderparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParametersMap](#fakeparametercollisions1ababselfabpostheaderparametersmap)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostadditionalProperties](#fakeparametercollisions1ababselfabpostadditionalproperties)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters11](#fakeparametercollisions1ababselfabpostheaderparameters11)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters12](#fakeparametercollisions1ababselfabpostheaderparameters12)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedVoid](#fakeparametercollisions1ababselfabpostheaderparameters7boxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedBoolean](#fakeparametercollisions1ababselfabpostheaderparameters7boxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedNumber](#fakeparametercollisions1ababselfabpostheaderparameters7boxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedString](#fakeparametercollisions1ababselfabpostheaderparameters7boxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedList](#fakeparametercollisions1ababselfabpostheaderparameters7boxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters7boxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7](#fakeparametercollisions1ababselfabpostheaderparameters7)
schema class | ## Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap([Fakeparametercollisions1ababselfabPostHeaderParametersMap](#fakeparametercollisions1ababselfabpostheaderparametersmap) data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap([Fakeparametercollisions1ababselfabPostHeaderParameters12](#fakeparametercollisions1ababselfabpostheaderparameters12) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostHeaderParametersMap](#fakeparametercollisions1ababselfabpostheaderparametersmap) | data()
validated payload | +| [Fakeparametercollisions1ababselfabPostHeaderParameters12](#fakeparametercollisions1ababselfabpostheaderparameters12) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Fakeparametercollisions1ababselfabPostHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParametersMap validatedPayload = +Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters12 validatedPayload = Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1.validate( - new Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder() + new Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters11() .positive1("a") .aB("a") @@ -93,18 +93,18 @@ Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1a | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema5.Schema51.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("aB", [Schema6.Schema61.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md#schema61)),
    new PropertyEntry("A-B", [Schema8.Schema81.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md#schema81)),
    new PropertyEntry("self", [Schema7.Schema71.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md#schema71))
)
| -| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostadditionalProperties.class](#fakeparametercollisions1ababselfabpostadditionalproperties) | +| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostHeaderParameters7.class](#fakeparametercollisions1ababselfabpostheaderparameters7) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostHeaderParametersMap](#fakeparametercollisions1ababselfabpostheaderparametersmap) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters12](#fakeparametercollisions1ababselfabpostheaderparameters12) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostheaderparameters11) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostheaderparameters11) arg, SchemaConfiguration configuration) | | [Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder -public class Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder
+## Fakeparametercollisions1ababselfabPostHeaderParameters11 +public class Fakeparametercollisions1ababselfabPostHeaderParameters11
builder for `Map` A class that builds the Map input type @@ -112,19 +112,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder()
Creates a builder that contains an empty map | +| Fakeparametercollisions1ababselfabPostHeaderParameters11()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters11](#fakeparametercollisions1ababselfabpostheaderparameters11) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters11](#fakeparametercollisions1ababselfabpostheaderparameters11) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters11](#fakeparametercollisions1ababselfabpostheaderparameters11) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters11](#fakeparametercollisions1ababselfabpostheaderparameters11) | self(String value) | -## Fakeparametercollisions1ababselfabPostHeaderParametersMap -public static class Fakeparametercollisions1ababselfabPostHeaderParametersMap
+## Fakeparametercollisions1ababselfabPostHeaderParameters12 +public static class Fakeparametercollisions1ababselfabPostHeaderParameters12
extends FrozenMap A class to store validated Map payloads @@ -132,33 +132,33 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Fakeparametercollisions1ababselfabPostHeaderParametersMap](#fakeparametercollisions1ababselfabpostheaderparametersmap) | of([Map](#fakeparametercollisions1ababselfabpostheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [Fakeparametercollisions1ababselfabPostHeaderParameters12](#fakeparametercollisions1ababselfabpostheaderparameters12) | of([Map](#fakeparametercollisions1ababselfabpostheaderparameters11) arg, SchemaConfiguration configuration) | | String | aB()
[optional] | | String | self()
[optional] | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed -public sealed interface Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed
+## Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed +public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed
permits
-[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap) +[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedVoid](#fakeparametercollisions1ababselfabpostheaderparameters7boxedvoid), +[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedBoolean](#fakeparametercollisions1ababselfabpostheaderparameters7boxedboolean), +[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedNumber](#fakeparametercollisions1ababselfabpostheaderparameters7boxednumber), +[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedString](#fakeparametercollisions1ababselfabpostheaderparameters7boxedstring), +[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedList](#fakeparametercollisions1ababselfabpostheaderparameters7boxedlist), +[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters7boxedmap) sealed interface that stores validated payloads using boxed classes -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedVoid +public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedVoid
+implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -166,16 +166,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedBoolean +public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedBoolean
+implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -183,16 +183,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedNumber +public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedNumber
+implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -200,16 +200,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedString +public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedString
+implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -217,16 +217,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedList +public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedList
+implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -234,16 +234,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedMap +public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedMap
+implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -251,8 +251,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalProperties -public static class Fakeparametercollisions1ababselfabPostadditionalProperties
+## Fakeparametercollisions1ababselfabPostHeaderParameters7 +public static class Fakeparametercollisions1ababselfabPostHeaderParameters7
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md index 7585710f95e..8918724d717 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed)
sealed interface for validated payloads | | record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1](#fakeparametercollisions1ababselfabpostpathparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMapBuilder](#fakeparametercollisions1ababselfabpostpathparametersmapbuilder)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap](#fakeparametercollisions1ababselfabpostpathparametersmap)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostadditionalProperties](#fakeparametercollisions1ababselfabpostadditionalproperties)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters12](#fakeparametercollisions1ababselfabpostpathparameters12)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13](#fakeparametercollisions1ababselfabpostpathparameters13)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostpathparameters8boxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostpathparameters8boxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostpathparameters8boxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedString](#fakeparametercollisions1ababselfabpostpathparameters8boxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedList](#fakeparametercollisions1ababselfabpostpathparameters8boxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters8boxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8](#fakeparametercollisions1ababselfabpostpathparameters8)
schema class | ## Fakeparametercollisions1ababselfabPostPathParameters1Boxed public sealed interface Fakeparametercollisions1ababselfabPostPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap([Fakeparametercollisions1ababselfabPostPathParametersMap](#fakeparametercollisions1ababselfabpostpathparametersmap) data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap([Fakeparametercollisions1ababselfabPostPathParameters13](#fakeparametercollisions1ababselfabpostpathparameters13) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap](#fakeparametercollisions1ababselfabpostpathparametersmap) | data()
validated payload | +| [Fakeparametercollisions1ababselfabPostPathParameters13](#fakeparametercollisions1ababselfabpostpathparameters13) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Fakeparametercollisions1ababselfabPostPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap validatedPayload = +Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 validatedPayload = Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( - new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMapBuilder() + new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters12() .positive1("a") .aHyphenMinusB("a") @@ -96,18 +96,18 @@ Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1aba | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema9.Schema91.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md#schema91)),
    new PropertyEntry("aB", [Schema10.Schema101.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md#schema101)),
    new PropertyEntry("Ab", [Schema11.Schema111.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md#schema111)),
    new PropertyEntry("A-B", [Schema13.Schema131.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md#schema131)),
    new PropertyEntry("self", [Schema12.Schema121.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md#schema121))
)
| | Set | required = Set.of(
    "1",
    "A-B",
    "Ab",
    "aB",
    "self"
)
| -| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostadditionalProperties.class](#fakeparametercollisions1ababselfabpostadditionalproperties) | +| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostPathParameters8.class](#fakeparametercollisions1ababselfabpostpathparameters8) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap](#fakeparametercollisions1ababselfabpostpathparametersmap) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostPathParameters13](#fakeparametercollisions1ababselfabpostpathparameters13) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostpathparameters12) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostpathparameters12) arg, SchemaConfiguration configuration) | | [Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder
+## Fakeparametercollisions1ababselfabPostPathParameters14 +public class Fakeparametercollisions1ababselfabPostPathParameters14
builder for `Map` A class that builds the Map input type @@ -115,15 +115,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters14(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder
+## Fakeparametercollisions1ababselfabPostPathParameters15 +public class Fakeparametercollisions1ababselfabPostPathParameters15
builder for `Map` A class that builds the Map input type @@ -131,15 +131,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters15(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00000builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters14](#fakeparametercollisions1ababselfabpostpathparameters14) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder
+## Fakeparametercollisions1ababselfabPostPathParameters16 +public class Fakeparametercollisions1ababselfabPostPathParameters16
builder for `Map` A class that builds the Map input type @@ -147,15 +147,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters16(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00000builder) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters14](#fakeparametercollisions1ababselfabpostpathparameters14) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder
+## Fakeparametercollisions1ababselfabPostPathParameters17 +public class Fakeparametercollisions1ababselfabPostPathParameters17
builder for `Map` A class that builds the Map input type @@ -163,16 +163,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters17(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00001builder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00010builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters15](#fakeparametercollisions1ababselfabpostpathparameters15) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters16](#fakeparametercollisions1ababselfabpostpathparameters16) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder
+## Fakeparametercollisions1ababselfabPostPathParameters18 +public class Fakeparametercollisions1ababselfabPostPathParameters18
builder for `Map` A class that builds the Map input type @@ -180,15 +180,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters18(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00000builder) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters14](#fakeparametercollisions1ababselfabpostpathparameters14) | Ab(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder
+## Fakeparametercollisions1ababselfabPostPathParameters19 +public class Fakeparametercollisions1ababselfabPostPathParameters19
builder for `Map` A class that builds the Map input type @@ -196,16 +196,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters19(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00001builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00100builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters15](#fakeparametercollisions1ababselfabpostpathparameters15) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters18](#fakeparametercollisions1ababselfabpostpathparameters18) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder
+## Fakeparametercollisions1ababselfabPostPathParameters20 +public class Fakeparametercollisions1ababselfabPostPathParameters20
builder for `Map` A class that builds the Map input type @@ -213,16 +213,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters20(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00010builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00100builder) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters16](#fakeparametercollisions1ababselfabpostpathparameters16) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters18](#fakeparametercollisions1ababselfabpostpathparameters18) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder
+## Fakeparametercollisions1ababselfabPostPathParameters21 +public class Fakeparametercollisions1ababselfabPostPathParameters21
builder for `Map` A class that builds the Map input type @@ -230,17 +230,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters21(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00011builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00101builder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00110builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters17](#fakeparametercollisions1ababselfabpostpathparameters17) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters19](#fakeparametercollisions1ababselfabpostpathparameters19) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters20](#fakeparametercollisions1ababselfabpostpathparameters20) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder
+## Fakeparametercollisions1ababselfabPostPathParameters22 +public class Fakeparametercollisions1ababselfabPostPathParameters22
builder for `Map` A class that builds the Map input type @@ -248,15 +248,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters22(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00000builder) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters14](#fakeparametercollisions1ababselfabpostpathparameters14) | aHyphenMinusB(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder
+## Fakeparametercollisions1ababselfabPostPathParameters23 +public class Fakeparametercollisions1ababselfabPostPathParameters23
builder for `Map` A class that builds the Map input type @@ -264,16 +264,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters23(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00001builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01000builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters15](#fakeparametercollisions1ababselfabpostpathparameters15) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters22](#fakeparametercollisions1ababselfabpostpathparameters22) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder
+## Fakeparametercollisions1ababselfabPostPathParameters24 +public class Fakeparametercollisions1ababselfabPostPathParameters24
builder for `Map` A class that builds the Map input type @@ -281,16 +281,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters24(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00010builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01000builder) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters16](#fakeparametercollisions1ababselfabpostpathparameters16) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters22](#fakeparametercollisions1ababselfabpostpathparameters22) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder
+## Fakeparametercollisions1ababselfabPostPathParameters25 +public class Fakeparametercollisions1ababselfabPostPathParameters25
builder for `Map` A class that builds the Map input type @@ -298,17 +298,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters25(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00011builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01001builder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01010builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters17](#fakeparametercollisions1ababselfabpostpathparameters17) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters23](#fakeparametercollisions1ababselfabpostpathparameters23) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters24](#fakeparametercollisions1ababselfabpostpathparameters24) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder
+## Fakeparametercollisions1ababselfabPostPathParameters26 +public class Fakeparametercollisions1ababselfabPostPathParameters26
builder for `Map` A class that builds the Map input type @@ -316,16 +316,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters26(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00100builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01000builder) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters18](#fakeparametercollisions1ababselfabpostpathparameters18) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters22](#fakeparametercollisions1ababselfabpostpathparameters22) | Ab(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder
+## Fakeparametercollisions1ababselfabPostPathParameters27 +public class Fakeparametercollisions1ababselfabPostPathParameters27
builder for `Map` A class that builds the Map input type @@ -333,17 +333,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters27(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00101builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01001builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01100builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters19](#fakeparametercollisions1ababselfabpostpathparameters19) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters23](#fakeparametercollisions1ababselfabpostpathparameters23) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters26](#fakeparametercollisions1ababselfabpostpathparameters26) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder
+## Fakeparametercollisions1ababselfabPostPathParameters28 +public class Fakeparametercollisions1ababselfabPostPathParameters28
builder for `Map` A class that builds the Map input type @@ -351,17 +351,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters28(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00110builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01010builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01100builder) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters20](#fakeparametercollisions1ababselfabpostpathparameters20) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters24](#fakeparametercollisions1ababselfabpostpathparameters24) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters26](#fakeparametercollisions1ababselfabpostpathparameters26) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder
+## Fakeparametercollisions1ababselfabPostPathParameters29 +public class Fakeparametercollisions1ababselfabPostPathParameters29
builder for `Map` A class that builds the Map input type @@ -369,18 +369,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters29(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00111builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01011builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01101builder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01110builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters21](#fakeparametercollisions1ababselfabpostpathparameters21) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters25](#fakeparametercollisions1ababselfabpostpathparameters25) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters27](#fakeparametercollisions1ababselfabpostpathparameters27) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters28](#fakeparametercollisions1ababselfabpostpathparameters28) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder
+## Fakeparametercollisions1ababselfabPostPathParameters30 +public class Fakeparametercollisions1ababselfabPostPathParameters30
builder for `Map` A class that builds the Map input type @@ -388,15 +388,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters30(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00000builder) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters14](#fakeparametercollisions1ababselfabpostpathparameters14) | positive1(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder
+## Fakeparametercollisions1ababselfabPostPathParameters31 +public class Fakeparametercollisions1ababselfabPostPathParameters31
builder for `Map` A class that builds the Map input type @@ -404,16 +404,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters31(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00001builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10000builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters15](#fakeparametercollisions1ababselfabpostpathparameters15) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters30](#fakeparametercollisions1ababselfabpostpathparameters30) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder
+## Fakeparametercollisions1ababselfabPostPathParameters32 +public class Fakeparametercollisions1ababselfabPostPathParameters32
builder for `Map` A class that builds the Map input type @@ -421,16 +421,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters32(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00010builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10000builder) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters16](#fakeparametercollisions1ababselfabpostpathparameters16) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters30](#fakeparametercollisions1ababselfabpostpathparameters30) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder
+## Fakeparametercollisions1ababselfabPostPathParameters33 +public class Fakeparametercollisions1ababselfabPostPathParameters33
builder for `Map` A class that builds the Map input type @@ -438,17 +438,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters33(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00011builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10001builder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10010builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters17](#fakeparametercollisions1ababselfabpostpathparameters17) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters31](#fakeparametercollisions1ababselfabpostpathparameters31) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters32](#fakeparametercollisions1ababselfabpostpathparameters32) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder
+## Fakeparametercollisions1ababselfabPostPathParameters34 +public class Fakeparametercollisions1ababselfabPostPathParameters34
builder for `Map` A class that builds the Map input type @@ -456,16 +456,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters34(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00100builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10000builder) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters18](#fakeparametercollisions1ababselfabpostpathparameters18) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters30](#fakeparametercollisions1ababselfabpostpathparameters30) | Ab(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder
+## Fakeparametercollisions1ababselfabPostPathParameters35 +public class Fakeparametercollisions1ababselfabPostPathParameters35
builder for `Map` A class that builds the Map input type @@ -473,17 +473,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters35(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00101builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10001builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10100builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters19](#fakeparametercollisions1ababselfabpostpathparameters19) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters31](#fakeparametercollisions1ababselfabpostpathparameters31) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters34](#fakeparametercollisions1ababselfabpostpathparameters34) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder
+## Fakeparametercollisions1ababselfabPostPathParameters36 +public class Fakeparametercollisions1ababselfabPostPathParameters36
builder for `Map` A class that builds the Map input type @@ -491,17 +491,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters36(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00110builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10010builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10100builder) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters20](#fakeparametercollisions1ababselfabpostpathparameters20) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters32](#fakeparametercollisions1ababselfabpostpathparameters32) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters34](#fakeparametercollisions1ababselfabpostpathparameters34) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder
+## Fakeparametercollisions1ababselfabPostPathParameters37 +public class Fakeparametercollisions1ababselfabPostPathParameters37
builder for `Map` A class that builds the Map input type @@ -509,18 +509,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters37(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder](#fakeparametercollisions1ababselfabpostpathparametersmap00111builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10011builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10101builder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10110builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters21](#fakeparametercollisions1ababselfabpostpathparameters21) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters33](#fakeparametercollisions1ababselfabpostpathparameters33) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters35](#fakeparametercollisions1ababselfabpostpathparameters35) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters36](#fakeparametercollisions1ababselfabpostpathparameters36) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder
+## Fakeparametercollisions1ababselfabPostPathParameters38 +public class Fakeparametercollisions1ababselfabPostPathParameters38
builder for `Map` A class that builds the Map input type @@ -528,16 +528,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters38(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01000builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10000builder) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters22](#fakeparametercollisions1ababselfabpostpathparameters22) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters30](#fakeparametercollisions1ababselfabpostpathparameters30) | aHyphenMinusB(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder
+## Fakeparametercollisions1ababselfabPostPathParameters39 +public class Fakeparametercollisions1ababselfabPostPathParameters39
builder for `Map` A class that builds the Map input type @@ -545,17 +545,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters39(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01001builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10001builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11000builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters23](#fakeparametercollisions1ababselfabpostpathparameters23) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters31](#fakeparametercollisions1ababselfabpostpathparameters31) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters38](#fakeparametercollisions1ababselfabpostpathparameters38) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder
+## Fakeparametercollisions1ababselfabPostPathParameters40 +public class Fakeparametercollisions1ababselfabPostPathParameters40
builder for `Map` A class that builds the Map input type @@ -563,17 +563,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters40(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01010builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10010builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11000builder) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters24](#fakeparametercollisions1ababselfabpostpathparameters24) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters32](#fakeparametercollisions1ababselfabpostpathparameters32) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters38](#fakeparametercollisions1ababselfabpostpathparameters38) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder
+## Fakeparametercollisions1ababselfabPostPathParameters41 +public class Fakeparametercollisions1ababselfabPostPathParameters41
builder for `Map` A class that builds the Map input type @@ -581,18 +581,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters41(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01011builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10011builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11001builder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11010builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters25](#fakeparametercollisions1ababselfabpostpathparameters25) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters33](#fakeparametercollisions1ababselfabpostpathparameters33) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters39](#fakeparametercollisions1ababselfabpostpathparameters39) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters40](#fakeparametercollisions1ababselfabpostpathparameters40) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder
+## Fakeparametercollisions1ababselfabPostPathParameters42 +public class Fakeparametercollisions1ababselfabPostPathParameters42
builder for `Map` A class that builds the Map input type @@ -600,17 +600,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters42(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01100builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10100builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11000builder) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters26](#fakeparametercollisions1ababselfabpostpathparameters26) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters34](#fakeparametercollisions1ababselfabpostpathparameters34) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters38](#fakeparametercollisions1ababselfabpostpathparameters38) | Ab(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder
+## Fakeparametercollisions1ababselfabPostPathParameters43 +public class Fakeparametercollisions1ababselfabPostPathParameters43
builder for `Map` A class that builds the Map input type @@ -618,18 +618,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters43(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01101builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10101builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11001builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11100builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters27](#fakeparametercollisions1ababselfabpostpathparameters27) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters35](#fakeparametercollisions1ababselfabpostpathparameters35) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters39](#fakeparametercollisions1ababselfabpostpathparameters39) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters42](#fakeparametercollisions1ababselfabpostpathparameters42) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder -public class Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder
+## Fakeparametercollisions1ababselfabPostPathParameters44 +public class Fakeparametercollisions1ababselfabPostPathParameters44
builder for `Map` A class that builds the Map input type @@ -637,18 +637,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder(Map instance)
Creates a builder that contains the passed instance | +| Fakeparametercollisions1ababselfabPostPathParameters44(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01110builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10110builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11010builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11100builder) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters28](#fakeparametercollisions1ababselfabpostpathparameters28) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters36](#fakeparametercollisions1ababselfabpostpathparameters36) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters40](#fakeparametercollisions1ababselfabpostpathparameters40) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters42](#fakeparametercollisions1ababselfabpostpathparameters42) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMapBuilder -public class Fakeparametercollisions1ababselfabPostPathParametersMapBuilder
+## Fakeparametercollisions1ababselfabPostPathParameters12 +public class Fakeparametercollisions1ababselfabPostPathParameters12
builder for `Map` A class that builds the Map input type @@ -656,19 +656,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParametersMapBuilder()
Creates a builder that contains an empty map | +| Fakeparametercollisions1ababselfabPostPathParameters12()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder](#fakeparametercollisions1ababselfabpostpathparametersmap01111builder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder](#fakeparametercollisions1ababselfabpostpathparametersmap10111builder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11011builder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11101builder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder](#fakeparametercollisions1ababselfabpostpathparametersmap11110builder) | self(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters29](#fakeparametercollisions1ababselfabpostpathparameters29) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters37](#fakeparametercollisions1ababselfabpostpathparameters37) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters41](#fakeparametercollisions1ababselfabpostpathparameters41) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters43](#fakeparametercollisions1ababselfabpostpathparameters43) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostPathParameters44](#fakeparametercollisions1ababselfabpostpathparameters44) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParametersMap -public static class Fakeparametercollisions1ababselfabPostPathParametersMap
+## Fakeparametercollisions1ababselfabPostPathParameters13 +public static class Fakeparametercollisions1ababselfabPostPathParameters13
extends FrozenMap A class to store validated Map payloads @@ -676,34 +676,34 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Fakeparametercollisions1ababselfabPostPathParametersMap](#fakeparametercollisions1ababselfabpostpathparametersmap) | of([Map](#fakeparametercollisions1ababselfabpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [Fakeparametercollisions1ababselfabPostPathParameters13](#fakeparametercollisions1ababselfabpostpathparameters13) | of([Map](#fakeparametercollisions1ababselfabpostpathparameters12) arg, SchemaConfiguration configuration) | | String | Ab()
| | String | aB()
| | String | self()
| | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed -public sealed interface Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed
+## Fakeparametercollisions1ababselfabPostPathParameters8Boxed +public sealed interface Fakeparametercollisions1ababselfabPostPathParameters8Boxed
permits
-[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap) +[Fakeparametercollisions1ababselfabPostPathParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostpathparameters8boxedvoid), +[Fakeparametercollisions1ababselfabPostPathParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostpathparameters8boxedboolean), +[Fakeparametercollisions1ababselfabPostPathParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostpathparameters8boxednumber), +[Fakeparametercollisions1ababselfabPostPathParameters8BoxedString](#fakeparametercollisions1ababselfabpostpathparameters8boxedstring), +[Fakeparametercollisions1ababselfabPostPathParameters8BoxedList](#fakeparametercollisions1ababselfabpostpathparameters8boxedlist), +[Fakeparametercollisions1ababselfabPostPathParameters8BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters8boxedmap) sealed interface that stores validated payloads using boxed classes -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostPathParameters8BoxedVoid +public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedVoid
+implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostPathParameters8BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -711,16 +711,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostPathParameters8BoxedBoolean +public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedBoolean
+implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostPathParameters8BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -728,16 +728,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostPathParameters8BoxedNumber +public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedNumber
+implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostPathParameters8BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -745,16 +745,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostPathParameters8BoxedString +public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedString
+implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostPathParameters8BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -762,16 +762,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostPathParameters8BoxedList +public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedList
+implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostPathParameters8BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -779,16 +779,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostPathParameters8BoxedMap +public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedMap
+implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostPathParameters8BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -796,8 +796,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalProperties -public static class Fakeparametercollisions1ababselfabPostadditionalProperties
+## Fakeparametercollisions1ababselfabPostPathParameters8 +public static class Fakeparametercollisions1ababselfabPostPathParameters8
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md index e791e7eae15..87dd3f349dd 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed)
sealed interface for validated payloads | | record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1](#fakeparametercollisions1ababselfabpostqueryparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParametersMap](#fakeparametercollisions1ababselfabpostqueryparametersmap)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostadditionalProperties](#fakeparametercollisions1ababselfabpostadditionalproperties)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters13](#fakeparametercollisions1ababselfabpostqueryparameters13)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostqueryparameters8boxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostqueryparameters8boxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostqueryparameters8boxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedString](#fakeparametercollisions1ababselfabpostqueryparameters8boxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedList](#fakeparametercollisions1ababselfabpostqueryparameters8boxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters8boxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8](#fakeparametercollisions1ababselfabpostqueryparameters8)
schema class | ## Fakeparametercollisions1ababselfabPostQueryParameters1Boxed public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap([Fakeparametercollisions1ababselfabPostQueryParametersMap](#fakeparametercollisions1ababselfabpostqueryparametersmap) data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap([Fakeparametercollisions1ababselfabPostQueryParameters13](#fakeparametercollisions1ababselfabpostqueryparameters13) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostQueryParametersMap](#fakeparametercollisions1ababselfabpostqueryparametersmap) | data()
validated payload | +| [Fakeparametercollisions1ababselfabPostQueryParameters13](#fakeparametercollisions1ababselfabpostqueryparameters13) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Fakeparametercollisions1ababselfabPostQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParametersMap validatedPayload = +Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters13 validatedPayload = Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1.validate( - new Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder() + new Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters12() .positive1("a") .aB("a") @@ -95,18 +95,18 @@ Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ab | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema0.Schema01.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("aB", [Schema1.Schema11.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("Ab", [Schema2.Schema21.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("A-B", [Schema4.Schema41.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("self", [Schema3.Schema31.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md#schema31))
)
| -| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostadditionalProperties.class](#fakeparametercollisions1ababselfabpostadditionalproperties) | +| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostQueryParameters8.class](#fakeparametercollisions1ababselfabpostqueryparameters8) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostQueryParametersMap](#fakeparametercollisions1ababselfabpostqueryparametersmap) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostQueryParameters13](#fakeparametercollisions1ababselfabpostqueryparameters13) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostqueryparameters12) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostqueryparameters12) arg, SchemaConfiguration configuration) | | [Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder -public class Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder
+## Fakeparametercollisions1ababselfabPostQueryParameters12 +public class Fakeparametercollisions1ababselfabPostQueryParameters12
builder for `Map` A class that builds the Map input type @@ -114,20 +114,20 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| Fakeparametercollisions1ababselfabPostQueryParameters12()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) | self(String value) | - -## Fakeparametercollisions1ababselfabPostQueryParametersMap -public static class Fakeparametercollisions1ababselfabPostQueryParametersMap
+| [Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12) | positive1(String value) | +| [Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12) | aB(String value) | +| [Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12) | Ab(String value) | +| [Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12) | aHyphenMinusB(String value) | +| [Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12) | self(String value) | + +## Fakeparametercollisions1ababselfabPostQueryParameters13 +public static class Fakeparametercollisions1ababselfabPostQueryParameters13
extends FrozenMap A class to store validated Map payloads @@ -135,34 +135,34 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Fakeparametercollisions1ababselfabPostQueryParametersMap](#fakeparametercollisions1ababselfabpostqueryparametersmap) | of([Map](#fakeparametercollisions1ababselfabpostqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [Fakeparametercollisions1ababselfabPostQueryParameters13](#fakeparametercollisions1ababselfabpostqueryparameters13) | of([Map](#fakeparametercollisions1ababselfabpostqueryparameters12) arg, SchemaConfiguration configuration) | | String | aB()
[optional] | | String | Ab()
[optional] | | String | self()
[optional] | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed -public sealed interface Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed
+## Fakeparametercollisions1ababselfabPostQueryParameters8Boxed +public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters8Boxed
permits
-[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedvoid), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedboolean), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxednumber), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedstring), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedlist), -[Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxedmap) +[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostqueryparameters8boxedvoid), +[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostqueryparameters8boxedboolean), +[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostqueryparameters8boxednumber), +[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedString](#fakeparametercollisions1ababselfabpostqueryparameters8boxedstring), +[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedList](#fakeparametercollisions1ababselfabpostqueryparameters8boxedlist), +[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters8boxedmap) sealed interface that stores validated payloads using boxed classes -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedVoid +public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedVoid
+implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -170,16 +170,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedBoolean +public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedBoolean
+implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -187,16 +187,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedNumber +public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedNumber
+implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -204,16 +204,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedString +public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedString
+implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -221,16 +221,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedList +public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedList
+implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -238,16 +238,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap -public record Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap
-implements [Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxed](#fakeparametercollisions1ababselfabpostadditionalpropertiesboxed) +## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedMap +public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedMap
+implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -255,8 +255,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostadditionalProperties -public static class Fakeparametercollisions1ababselfabPostadditionalProperties
+## Fakeparametercollisions1ababselfabPostQueryParameters8 +public static class Fakeparametercollisions1ababselfabPostQueryParameters8
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index 6e555a19662..2abe4097f6a 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -84,9 +84,9 @@ FakepetiduploadimagewithrequiredfilePost.Post apiClient = new Fakepetiduploadima // Map validation -FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters = +FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters = FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( - new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder() + new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters8() .petId(1L) .build(), @@ -146,7 +146,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparametersmap) | pathParameters | +| [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparameters9) | pathParameters | | [FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) | requestBody
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | @@ -160,7 +160,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable FakepetiduploadimagewithrequiredfilePostPathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparametersmap) | pathParameters | +| [FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable FakepetiduploadimagewithrequiredfilePostPathParameters9](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparameters9) | pathParameters | | [FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) | requestBody | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex | @@ -198,6 +198,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([FakepetiduploadimagewithrequiredfilePostPathParametersFakepetiduploadimagewithrequiredfilePostPathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparametersmap) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([FakepetiduploadimagewithrequiredfilePostPathParametersFakepetiduploadimagewithrequiredfilePostPathParameters9](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md index d22af4b6f75..0960e974625 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed)
sealed interface for validated payloads | | record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1](#fakepetiduploadimagewithrequiredfilepostpathparameters1)
schema class | -| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder](#fakepetiduploadimagewithrequiredfilepostpathparametersmapbuilder)
builder for Map payloads | -| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap](#fakepetiduploadimagewithrequiredfilepostpathparametersmap)
output class for Map payloads | -| sealed interface | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedVoid](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedBoolean](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedNumber](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedString](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedList](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedMap](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostadditionalProperties](#fakepetiduploadimagewithrequiredfilepostadditionalproperties)
schema class | +| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters8](#fakepetiduploadimagewithrequiredfilepostpathparameters8)
builder for Map payloads | +| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9](#fakepetiduploadimagewithrequiredfilepostpathparameters9)
output class for Map payloads | +| sealed interface | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed)
sealed interface for validated payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedVoid](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedBoolean](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedNumber](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedString](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedList](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4](#fakepetiduploadimagewithrequiredfilepostpathparameters4)
schema class | ## FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap([FakepetiduploadimagewithrequiredfilePostPathParametersMap](#fakepetiduploadimagewithrequiredfilepostpathparametersmap) data)
Creates an instance, private visibility | +| FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap([FakepetiduploadimagewithrequiredfilePostPathParameters9](#fakepetiduploadimagewithrequiredfilepostpathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParametersMap](#fakepetiduploadimagewithrequiredfilepostpathparametersmap) | data()
validated payload | +| [FakepetiduploadimagewithrequiredfilePostPathParameters9](#fakepetiduploadimagewithrequiredfilepostpathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakepetiduploadimagewithrequiredfilePostPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap validatedPayload = +FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 validatedPayload = FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( - new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder() + new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters8() .petId(1L) .build(), @@ -88,18 +88,18 @@ FakepetiduploadimagewithrequiredfilePostPathParameters.Fakepetiduploadimagewithr | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [FakepetiduploadimagewithrequiredfilePostadditionalProperties.class](#fakepetiduploadimagewithrequiredfilepostadditionalproperties) | +| Class | additionalProperties = [FakepetiduploadimagewithrequiredfilePostPathParameters4.class](#fakepetiduploadimagewithrequiredfilepostpathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParametersMap](#fakepetiduploadimagewithrequiredfilepostpathparametersmap) | validate([Map<?, ?>](#fakepetiduploadimagewithrequiredfilepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakepetiduploadimagewithrequiredfilepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters9](#fakepetiduploadimagewithrequiredfilepostpathparameters9) | validate([Map<?, ?>](#fakepetiduploadimagewithrequiredfilepostpathparameters8) arg, SchemaConfiguration configuration) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakepetiduploadimagewithrequiredfilepostpathparameters8) arg, SchemaConfiguration configuration) | | [FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder -public class FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder
+## FakepetiduploadimagewithrequiredfilePostPathParameters10 +public class FakepetiduploadimagewithrequiredfilePostPathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| FakepetiduploadimagewithrequiredfilePostPathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder -public class FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder
+## FakepetiduploadimagewithrequiredfilePostPathParameters8 +public class FakepetiduploadimagewithrequiredfilePostPathParameters8
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder()
Creates a builder that contains an empty map | +| FakepetiduploadimagewithrequiredfilePostPathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder](#fakepetiduploadimagewithrequiredfilepostpathparametersmap0builder) | petId(int value) | -| [FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder](#fakepetiduploadimagewithrequiredfilepostpathparametersmap0builder) | petId(float value) | -| [FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder](#fakepetiduploadimagewithrequiredfilepostpathparametersmap0builder) | petId(long value) | -| [FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder](#fakepetiduploadimagewithrequiredfilepostpathparametersmap0builder) | petId(double value) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters10](#fakepetiduploadimagewithrequiredfilepostpathparameters10) | petId(int value) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters10](#fakepetiduploadimagewithrequiredfilepostpathparameters10) | petId(float value) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters10](#fakepetiduploadimagewithrequiredfilepostpathparameters10) | petId(long value) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters10](#fakepetiduploadimagewithrequiredfilepostpathparameters10) | petId(double value) | -## FakepetiduploadimagewithrequiredfilePostPathParametersMap -public static class FakepetiduploadimagewithrequiredfilePostPathParametersMap
+## FakepetiduploadimagewithrequiredfilePostPathParameters9 +public static class FakepetiduploadimagewithrequiredfilePostPathParameters9
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakepetiduploadimagewithrequiredfilePostPathParametersMap](#fakepetiduploadimagewithrequiredfilepostpathparametersmap) | of([Map](#fakepetiduploadimagewithrequiredfilepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakepetiduploadimagewithrequiredfilePostPathParameters9](#fakepetiduploadimagewithrequiredfilepostpathparameters9) | of([Map](#fakepetiduploadimagewithrequiredfilepostpathparameters8) arg, SchemaConfiguration configuration) | | Number | petId()
| -## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed -public sealed interface FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed
+## FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed +public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed
permits
-[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedVoid](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedvoid), -[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedBoolean](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedboolean), -[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedNumber](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxednumber), -[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedString](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedstring), -[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedList](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedlist), -[FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedMap](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxedmap) +[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedVoid](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedvoid), +[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedBoolean](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedboolean), +[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedNumber](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxednumber), +[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedString](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedstring), +[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedList](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedlist), +[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedVoid -public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedVoid
-implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) +## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedVoid +public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedVoid
+implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedBoolean -public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedBoolean
-implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) +## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedBoolean +public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedBoolean
+implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedNumber -public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedNumber
-implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) +## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedNumber +public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedNumber
+implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedString -public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedString
-implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) +## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedString +public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedString
+implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedList -public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedList
-implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) +## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedList +public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedList
+implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedMap -public record FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedMap
-implements [FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxed](#fakepetiduploadimagewithrequiredfilepostadditionalpropertiesboxed) +## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedMap +public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedMap
+implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostadditionalProperties -public static class FakepetiduploadimagewithrequiredfilePostadditionalProperties
+## FakepetiduploadimagewithrequiredfilePostPathParameters4 +public static class FakepetiduploadimagewithrequiredfilePostPathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index db1ef832cbd..cb976074337 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -74,9 +74,9 @@ FakequeryparamwithjsoncontenttypeGet.Get apiClient = new Fakequeryparamwithjsonc // Map validation -FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters = +FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters = FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( - new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder() + new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters8() .build(), schemaConfiguration ); @@ -134,7 +134,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | queryParameters | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparameters9) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -146,7 +146,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable FakequeryparamwithjsoncontenttypeGetQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | queryParameters | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters9](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparameters9) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -180,6 +180,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([FakequeryparamwithjsoncontenttypeGetQueryParametersFakequeryparamwithjsoncontenttypeGetQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparametersmap) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([FakequeryparamwithjsoncontenttypeGetQueryParametersFakequeryparamwithjsoncontenttypeGetQueryParameters9](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparameters9) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md index da87a34b4ff..8cea5869de4 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1](#fakequeryparamwithjsoncontenttypegetqueryparameters1)
schema class | -| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder](#fakequeryparamwithjsoncontenttypegetqueryparametersmapbuilder)
builder for Map payloads | -| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap](#fakequeryparamwithjsoncontenttypegetqueryparametersmap)
output class for Map payloads | -| sealed interface | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedVoid](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedBoolean](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedNumber](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedString](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedList](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedMap](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetadditionalProperties](#fakequeryparamwithjsoncontenttypegetadditionalproperties)
schema class | +| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters8](#fakequeryparamwithjsoncontenttypegetqueryparameters8)
builder for Map payloads | +| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9](#fakequeryparamwithjsoncontenttypegetqueryparameters9)
output class for Map payloads | +| sealed interface | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed)
sealed interface for validated payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedVoid](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedBoolean](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedNumber](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedString](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedstring)
boxed class to store validated String payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedList](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedlist)
boxed class to store validated List payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4](#fakequeryparamwithjsoncontenttypegetqueryparameters4)
schema class | ## FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap([FakequeryparamwithjsoncontenttypeGetQueryParametersMap](#fakequeryparamwithjsoncontenttypegetqueryparametersmap) data)
Creates an instance, private visibility | +| FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap([FakequeryparamwithjsoncontenttypeGetQueryParameters9](#fakequeryparamwithjsoncontenttypegetqueryparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap](#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | data()
validated payload | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters9](#fakequeryparamwithjsoncontenttypegetqueryparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakequeryparamwithjsoncontenttypeGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap validatedPayload = +FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 validatedPayload = FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( - new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder() + new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters8() .build(), configuration ); @@ -86,18 +86,18 @@ FakequeryparamwithjsoncontenttypeGetQueryParameters.Fakequeryparamwithjsonconten | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("someParam", [Schema0.Schema01.class](../../../paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "someParam"
)
| -| Class | additionalProperties = [FakequeryparamwithjsoncontenttypeGetadditionalProperties.class](#fakequeryparamwithjsoncontenttypegetadditionalproperties) | +| Class | additionalProperties = [FakequeryparamwithjsoncontenttypeGetQueryParameters4.class](#fakequeryparamwithjsoncontenttypegetqueryparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap](#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | validate([Map<?, ?>](#fakequeryparamwithjsoncontenttypegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakequeryparamwithjsoncontenttypegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters9](#fakequeryparamwithjsoncontenttypegetqueryparameters9) | validate([Map<?, ?>](#fakequeryparamwithjsoncontenttypegetqueryparameters8) arg, SchemaConfiguration configuration) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakequeryparamwithjsoncontenttypegetqueryparameters8) arg, SchemaConfiguration configuration) | | [FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder -public class FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder
+## FakequeryparamwithjsoncontenttypeGetQueryParameters10 +public class FakequeryparamwithjsoncontenttypeGetQueryParameters10
builder for `Map` A class that builds the Map input type @@ -105,15 +105,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| FakequeryparamwithjsoncontenttypeGetQueryParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder -public class FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder
+## FakequeryparamwithjsoncontenttypeGetQueryParameters8 +public class FakequeryparamwithjsoncontenttypeGetQueryParameters8
builder for `Map` A class that builds the Map input type @@ -121,23 +121,23 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| FakequeryparamwithjsoncontenttypeGetQueryParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder](#fakequeryparamwithjsoncontenttypegetqueryparametersmap0builder) | someParam(Void value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder](#fakequeryparamwithjsoncontenttypegetqueryparametersmap0builder) | someParam(boolean value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder](#fakequeryparamwithjsoncontenttypegetqueryparametersmap0builder) | someParam(String value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder](#fakequeryparamwithjsoncontenttypegetqueryparametersmap0builder) | someParam(int value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder](#fakequeryparamwithjsoncontenttypegetqueryparametersmap0builder) | someParam(float value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder](#fakequeryparamwithjsoncontenttypegetqueryparametersmap0builder) | someParam(long value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder](#fakequeryparamwithjsoncontenttypegetqueryparametersmap0builder) | someParam(double value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder](#fakequeryparamwithjsoncontenttypegetqueryparametersmap0builder) | someParam(List value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder](#fakequeryparamwithjsoncontenttypegetqueryparametersmap0builder) | someParam(Map value) | - -## FakequeryparamwithjsoncontenttypeGetQueryParametersMap -public static class FakequeryparamwithjsoncontenttypeGetQueryParametersMap
+| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(Void value) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(boolean value) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(String value) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(int value) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(float value) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(long value) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(double value) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(List value) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(Map value) | + +## FakequeryparamwithjsoncontenttypeGetQueryParameters9 +public static class FakequeryparamwithjsoncontenttypeGetQueryParameters9
extends FrozenMap A class to store validated Map payloads @@ -145,31 +145,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakequeryparamwithjsoncontenttypeGetQueryParametersMap](#fakequeryparamwithjsoncontenttypegetqueryparametersmap) | of([Map](#fakequeryparamwithjsoncontenttypegetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakequeryparamwithjsoncontenttypeGetQueryParameters9](#fakequeryparamwithjsoncontenttypegetqueryparameters9) | of([Map](#fakequeryparamwithjsoncontenttypegetqueryparameters8) arg, SchemaConfiguration configuration) | | @Nullable Object | someParam()
| -## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed -public sealed interface FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed
+## FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed +public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed
permits
-[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedVoid](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedvoid), -[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedBoolean](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedboolean), -[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedNumber](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxednumber), -[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedString](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedstring), -[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedList](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedlist), -[FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedMap](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxedmap) +[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedVoid](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedvoid), +[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedBoolean](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedboolean), +[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedNumber](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxednumber), +[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedString](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedstring), +[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedList](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedlist), +[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedVoid -public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedVoid
-implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) +## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedVoid +public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedVoid
+implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -177,16 +177,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedBoolean -public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedBoolean
-implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) +## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedBoolean +public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedBoolean
+implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -194,16 +194,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedNumber -public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedNumber
-implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) +## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedNumber +public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedNumber
+implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -211,16 +211,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedString -public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedString
-implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) +## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedString +public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedString
+implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -228,16 +228,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedList -public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedList
-implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) +## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedList +public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedList
+implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -245,16 +245,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedMap -public record FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedMap
-implements [FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxed](#fakequeryparamwithjsoncontenttypegetadditionalpropertiesboxed) +## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedMap +public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedMap
+implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -262,8 +262,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetadditionalProperties -public static class FakequeryparamwithjsoncontenttypeGetadditionalProperties
+## FakequeryparamwithjsoncontenttypeGetQueryParameters4 +public static class FakequeryparamwithjsoncontenttypeGetQueryParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md index 68ee0f9c794..89af79b14df 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -120,7 +120,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakerefobjinqueryGetQueryParameters.@Nullable FakerefobjinqueryGetQueryParametersMap](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#fakerefobjinquerygetqueryparametersmap) | queryParameters
optional | +| [FakerefobjinqueryGetQueryParameters.@Nullable FakerefobjinqueryGetQueryParameters9](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#fakerefobjinquerygetqueryparameters9) | queryParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -138,7 +138,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakerefobjinqueryGetQueryParametersFakerefobjinqueryGetQueryParametersMap](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#fakerefobjinquerygetqueryparametersmap) queryParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakerefobjinqueryGetQueryParametersFakerefobjinqueryGetQueryParameters9](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#fakerefobjinquerygetqueryparameters9) queryParameters)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md index 53a2d3b33d2..19a7ca133c6 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1](#fakerefobjinquerygetqueryparameters1)
schema class | -| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParametersMapBuilder](#fakerefobjinquerygetqueryparametersmapbuilder)
builder for Map payloads | -| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParametersMap](#fakerefobjinquerygetqueryparametersmap)
output class for Map payloads | -| sealed interface | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetadditionalPropertiesBoxedVoid](#fakerefobjinquerygetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetadditionalPropertiesBoxedBoolean](#fakerefobjinquerygetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetadditionalPropertiesBoxedNumber](#fakerefobjinquerygetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetadditionalPropertiesBoxedString](#fakerefobjinquerygetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetadditionalPropertiesBoxedList](#fakerefobjinquerygetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetadditionalPropertiesBoxedMap](#fakerefobjinquerygetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetadditionalProperties](#fakerefobjinquerygetadditionalproperties)
schema class | +| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters8](#fakerefobjinquerygetqueryparameters8)
builder for Map payloads | +| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters9](#fakerefobjinquerygetqueryparameters9)
output class for Map payloads | +| sealed interface | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed)
sealed interface for validated payloads | +| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedVoid](#fakerefobjinquerygetqueryparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedBoolean](#fakerefobjinquerygetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedNumber](#fakerefobjinquerygetqueryparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedString](#fakerefobjinquerygetqueryparameters4boxedstring)
boxed class to store validated String payloads | +| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedList](#fakerefobjinquerygetqueryparameters4boxedlist)
boxed class to store validated List payloads | +| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedMap](#fakerefobjinquerygetqueryparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4](#fakerefobjinquerygetqueryparameters4)
schema class | ## FakerefobjinqueryGetQueryParameters1Boxed public sealed interface FakerefobjinqueryGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetQueryParameters1BoxedMap([FakerefobjinqueryGetQueryParametersMap](#fakerefobjinquerygetqueryparametersmap) data)
Creates an instance, private visibility | +| FakerefobjinqueryGetQueryParameters1BoxedMap([FakerefobjinqueryGetQueryParameters9](#fakerefobjinquerygetqueryparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefobjinqueryGetQueryParametersMap](#fakerefobjinquerygetqueryparametersmap) | data()
validated payload | +| [FakerefobjinqueryGetQueryParameters9](#fakerefobjinquerygetqueryparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakerefobjinqueryGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParametersMap validatedPayload = +FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters9 validatedPayload = FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1.validate( - new FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParametersMapBuilder() + new FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters8() .mapBean( MapUtils.makeMap( new AbstractMap.SimpleEntry( @@ -93,18 +93,18 @@ FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParametersMap valid | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("mapBean", [Foo.Foo1.class](../../../components/schemas/Foo.md#foo1))
)
| -| Class | additionalProperties = [FakerefobjinqueryGetadditionalProperties.class](#fakerefobjinquerygetadditionalproperties) | +| Class | additionalProperties = [FakerefobjinqueryGetQueryParameters4.class](#fakerefobjinquerygetqueryparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefobjinqueryGetQueryParametersMap](#fakerefobjinquerygetqueryparametersmap) | validate([Map<?, ?>](#fakerefobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakerefobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakerefobjinqueryGetQueryParameters9](#fakerefobjinquerygetqueryparameters9) | validate([Map<?, ?>](#fakerefobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | +| [FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakerefobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | | [FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakerefobjinqueryGetQueryParametersMapBuilder -public class FakerefobjinqueryGetQueryParametersMapBuilder
+## FakerefobjinqueryGetQueryParameters8 +public class FakerefobjinqueryGetQueryParameters8
builder for `Map>` A class that builds the Map input type @@ -112,16 +112,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| FakerefobjinqueryGetQueryParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map> | build()
Returns map input that should be used with Schema.validate | -| [FakerefobjinqueryGetQueryParametersMapBuilder](#fakerefobjinquerygetqueryparametersmapbuilder) | mapBean(Map value) | +| [FakerefobjinqueryGetQueryParameters8](#fakerefobjinquerygetqueryparameters8) | mapBean(Map value) | -## FakerefobjinqueryGetQueryParametersMap -public static class FakerefobjinqueryGetQueryParametersMap
+## FakerefobjinqueryGetQueryParameters9 +public static class FakerefobjinqueryGetQueryParameters9
extends FrozenMap A class to store validated Map payloads @@ -129,31 +129,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakerefobjinqueryGetQueryParametersMap](#fakerefobjinquerygetqueryparametersmap) | of([Map>](#fakerefobjinquerygetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FakerefobjinqueryGetQueryParameters9](#fakerefobjinquerygetqueryparameters9) | of([Map>](#fakerefobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | | [Foo.FooMap](../../../components/schemas/Foo.md#foomap) | mapBean()
[optional] | -## FakerefobjinqueryGetadditionalPropertiesBoxed -public sealed interface FakerefobjinqueryGetadditionalPropertiesBoxed
+## FakerefobjinqueryGetQueryParameters4Boxed +public sealed interface FakerefobjinqueryGetQueryParameters4Boxed
permits
-[FakerefobjinqueryGetadditionalPropertiesBoxedVoid](#fakerefobjinquerygetadditionalpropertiesboxedvoid), -[FakerefobjinqueryGetadditionalPropertiesBoxedBoolean](#fakerefobjinquerygetadditionalpropertiesboxedboolean), -[FakerefobjinqueryGetadditionalPropertiesBoxedNumber](#fakerefobjinquerygetadditionalpropertiesboxednumber), -[FakerefobjinqueryGetadditionalPropertiesBoxedString](#fakerefobjinquerygetadditionalpropertiesboxedstring), -[FakerefobjinqueryGetadditionalPropertiesBoxedList](#fakerefobjinquerygetadditionalpropertiesboxedlist), -[FakerefobjinqueryGetadditionalPropertiesBoxedMap](#fakerefobjinquerygetadditionalpropertiesboxedmap) +[FakerefobjinqueryGetQueryParameters4BoxedVoid](#fakerefobjinquerygetqueryparameters4boxedvoid), +[FakerefobjinqueryGetQueryParameters4BoxedBoolean](#fakerefobjinquerygetqueryparameters4boxedboolean), +[FakerefobjinqueryGetQueryParameters4BoxedNumber](#fakerefobjinquerygetqueryparameters4boxednumber), +[FakerefobjinqueryGetQueryParameters4BoxedString](#fakerefobjinquerygetqueryparameters4boxedstring), +[FakerefobjinqueryGetQueryParameters4BoxedList](#fakerefobjinquerygetqueryparameters4boxedlist), +[FakerefobjinqueryGetQueryParameters4BoxedMap](#fakerefobjinquerygetqueryparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## FakerefobjinqueryGetadditionalPropertiesBoxedVoid -public record FakerefobjinqueryGetadditionalPropertiesBoxedVoid
-implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) +## FakerefobjinqueryGetQueryParameters4BoxedVoid +public record FakerefobjinqueryGetQueryParameters4BoxedVoid
+implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FakerefobjinqueryGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -161,16 +161,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetadditionalPropertiesBoxedBoolean -public record FakerefobjinqueryGetadditionalPropertiesBoxedBoolean
-implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) +## FakerefobjinqueryGetQueryParameters4BoxedBoolean +public record FakerefobjinqueryGetQueryParameters4BoxedBoolean
+implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FakerefobjinqueryGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -178,16 +178,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetadditionalPropertiesBoxedNumber -public record FakerefobjinqueryGetadditionalPropertiesBoxedNumber
-implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) +## FakerefobjinqueryGetQueryParameters4BoxedNumber +public record FakerefobjinqueryGetQueryParameters4BoxedNumber
+implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FakerefobjinqueryGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -195,16 +195,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetadditionalPropertiesBoxedString -public record FakerefobjinqueryGetadditionalPropertiesBoxedString
-implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) +## FakerefobjinqueryGetQueryParameters4BoxedString +public record FakerefobjinqueryGetQueryParameters4BoxedString
+implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FakerefobjinqueryGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -212,16 +212,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetadditionalPropertiesBoxedList -public record FakerefobjinqueryGetadditionalPropertiesBoxedList
-implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) +## FakerefobjinqueryGetQueryParameters4BoxedList +public record FakerefobjinqueryGetQueryParameters4BoxedList
+implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FakerefobjinqueryGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -229,16 +229,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetadditionalPropertiesBoxedMap -public record FakerefobjinqueryGetadditionalPropertiesBoxedMap
-implements [FakerefobjinqueryGetadditionalPropertiesBoxed](#fakerefobjinquerygetadditionalpropertiesboxed) +## FakerefobjinqueryGetQueryParameters4BoxedMap +public record FakerefobjinqueryGetQueryParameters4BoxedMap
+implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FakerefobjinqueryGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -246,8 +246,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetadditionalProperties -public static class FakerefobjinqueryGetadditionalProperties
+## FakerefobjinqueryGetQueryParameters4 +public static class FakerefobjinqueryGetQueryParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index ac46f713b29..b56954122aa 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -74,9 +74,9 @@ FaketestqueryparamtersPut.Put apiClient = new FaketestqueryparamtersPut.Put(apiC // Map validation -FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters = +FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters = FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( - new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMapBuilder() + new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters13() .context( Arrays.asList( "a" @@ -159,7 +159,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparametersmap) | queryParameters | +| [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparameters14) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -171,7 +171,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FaketestqueryparamtersPutQueryParameters.@Nullable FaketestqueryparamtersPutQueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparametersmap) | queryParameters | +| [FaketestqueryparamtersPutQueryParameters.@Nullable FaketestqueryparamtersPutQueryParameters14](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparameters14) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -205,6 +205,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FaketestqueryparamtersPutQueryParametersFaketestqueryparamtersPutQueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparametersmap) queryParameters)
sets the property | +| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FaketestqueryparamtersPutQueryParametersFaketestqueryparamtersPutQueryParameters14](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparameters14) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md index 4e6592928d0..cdb3c642490 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed)
sealed interface for validated payloads | | record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1](#faketestqueryparamtersputqueryparameters1)
schema class | -| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMapBuilder](#faketestqueryparamtersputqueryparametersmapbuilder)
builder for Map payloads | -| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap](#faketestqueryparamtersputqueryparametersmap)
output class for Map payloads | -| sealed interface | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutadditionalPropertiesBoxedVoid](#faketestqueryparamtersputadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutadditionalPropertiesBoxedBoolean](#faketestqueryparamtersputadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutadditionalPropertiesBoxedNumber](#faketestqueryparamtersputadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutadditionalPropertiesBoxedString](#faketestqueryparamtersputadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutadditionalPropertiesBoxedList](#faketestqueryparamtersputadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutadditionalPropertiesBoxedMap](#faketestqueryparamtersputadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutadditionalProperties](#faketestqueryparamtersputadditionalproperties)
schema class | +| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters13](#faketestqueryparamtersputqueryparameters13)
builder for Map payloads | +| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14](#faketestqueryparamtersputqueryparameters14)
output class for Map payloads | +| sealed interface | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed)
sealed interface for validated payloads | +| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedVoid](#faketestqueryparamtersputqueryparameters9boxedvoid)
boxed class to store validated null payloads | +| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedBoolean](#faketestqueryparamtersputqueryparameters9boxedboolean)
boxed class to store validated boolean payloads | +| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedNumber](#faketestqueryparamtersputqueryparameters9boxednumber)
boxed class to store validated Number payloads | +| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedString](#faketestqueryparamtersputqueryparameters9boxedstring)
boxed class to store validated String payloads | +| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedList](#faketestqueryparamtersputqueryparameters9boxedlist)
boxed class to store validated List payloads | +| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedMap](#faketestqueryparamtersputqueryparameters9boxedmap)
boxed class to store validated Map payloads | +| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9](#faketestqueryparamtersputqueryparameters9)
schema class | ## FaketestqueryparamtersPutQueryParameters1Boxed public sealed interface FaketestqueryparamtersPutQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters1BoxedMap([FaketestqueryparamtersPutQueryParametersMap](#faketestqueryparamtersputqueryparametersmap) data)
Creates an instance, private visibility | +| FaketestqueryparamtersPutQueryParameters1BoxedMap([FaketestqueryparamtersPutQueryParameters14](#faketestqueryparamtersputqueryparameters14) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap](#faketestqueryparamtersputqueryparametersmap) | data()
validated payload | +| [FaketestqueryparamtersPutQueryParameters14](#faketestqueryparamtersputqueryparameters14) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FaketestqueryparamtersPutQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap validatedPayload = +FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 validatedPayload = FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( - new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMapBuilder() + new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters13() .context( Arrays.asList( "a" @@ -113,18 +113,18 @@ FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameter | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("refParam", [StringWithValidation.StringWithValidation1.class](../../../components/schemas/StringWithValidation.md#stringwithvalidation1)),
    new PropertyEntry("ioutil", [Schema1.Schema11.class](../../../paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("context", [Schema4.Schema41.class](../../../paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("http", [Schema2.Schema21.class](../../../paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("pipe", [Schema0.Schema01.class](../../../paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("url", [Schema3.Schema31.class](../../../paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md#schema31))
)
| | Set | required = Set.of(
    "context",
    "http",
    "ioutil",
    "pipe",
    "refParam",
    "url"
)
| -| Class | additionalProperties = [FaketestqueryparamtersPutadditionalProperties.class](#faketestqueryparamtersputadditionalproperties) | +| Class | additionalProperties = [FaketestqueryparamtersPutQueryParameters9.class](#faketestqueryparamtersputqueryparameters9) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap](#faketestqueryparamtersputqueryparametersmap) | validate([Map<?, ?>](#faketestqueryparamtersputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#faketestqueryparamtersputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FaketestqueryparamtersPutQueryParameters14](#faketestqueryparamtersputqueryparameters14) | validate([Map<?, ?>](#faketestqueryparamtersputqueryparameters13) arg, SchemaConfiguration configuration) | +| [FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#faketestqueryparamtersputqueryparameters13) arg, SchemaConfiguration configuration) | | [FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FaketestqueryparamtersPutQueryParametersMap000000Builder -public class FaketestqueryparamtersPutQueryParametersMap000000Builder
+## FaketestqueryparamtersPutQueryParameters15 +public class FaketestqueryparamtersPutQueryParameters15
builder for `Map` A class that builds the Map input type @@ -132,15 +132,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap000000Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters15(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FaketestqueryparamtersPutQueryParametersMap000001Builder -public class FaketestqueryparamtersPutQueryParametersMap000001Builder
+## FaketestqueryparamtersPutQueryParameters16 +public class FaketestqueryparamtersPutQueryParameters16
builder for `Map` A class that builds the Map input type @@ -148,15 +148,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap000001Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters16(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap000010Builder -public class FaketestqueryparamtersPutQueryParametersMap000010Builder
+## FaketestqueryparamtersPutQueryParameters17 +public class FaketestqueryparamtersPutQueryParameters17
builder for `Map` A class that builds the Map input type @@ -164,15 +164,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap000010Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters17(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap000011Builder -public class FaketestqueryparamtersPutQueryParametersMap000011Builder
+## FaketestqueryparamtersPutQueryParameters18 +public class FaketestqueryparamtersPutQueryParameters18
builder for `Map` A class that builds the Map input type @@ -180,16 +180,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap000011Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters18(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000001Builder](#faketestqueryparamtersputqueryparametersmap000001builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap000010Builder](#faketestqueryparamtersputqueryparametersmap000010builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters16](#faketestqueryparamtersputqueryparameters16) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters17](#faketestqueryparamtersputqueryparameters17) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap000100Builder -public class FaketestqueryparamtersPutQueryParametersMap000100Builder
+## FaketestqueryparamtersPutQueryParameters19 +public class FaketestqueryparamtersPutQueryParameters19
builder for `Map` A class that builds the Map input type @@ -197,15 +197,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap000100Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters19(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | pipe(List value) | -## FaketestqueryparamtersPutQueryParametersMap000101Builder -public class FaketestqueryparamtersPutQueryParametersMap000101Builder
+## FaketestqueryparamtersPutQueryParameters20 +public class FaketestqueryparamtersPutQueryParameters20
builder for `Map` A class that builds the Map input type @@ -213,16 +213,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap000101Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters20(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000001Builder](#faketestqueryparamtersputqueryparametersmap000001builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap000100Builder](#faketestqueryparamtersputqueryparametersmap000100builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters16](#faketestqueryparamtersputqueryparameters16) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters19](#faketestqueryparamtersputqueryparameters19) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap000110Builder -public class FaketestqueryparamtersPutQueryParametersMap000110Builder
+## FaketestqueryparamtersPutQueryParameters21 +public class FaketestqueryparamtersPutQueryParameters21
builder for `Map` A class that builds the Map input type @@ -230,16 +230,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap000110Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters21(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000010Builder](#faketestqueryparamtersputqueryparametersmap000010builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap000100Builder](#faketestqueryparamtersputqueryparametersmap000100builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters17](#faketestqueryparamtersputqueryparameters17) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters19](#faketestqueryparamtersputqueryparameters19) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap000111Builder -public class FaketestqueryparamtersPutQueryParametersMap000111Builder
+## FaketestqueryparamtersPutQueryParameters22 +public class FaketestqueryparamtersPutQueryParameters22
builder for `Map` A class that builds the Map input type @@ -247,17 +247,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap000111Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters22(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000011Builder](#faketestqueryparamtersputqueryparametersmap000011builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap000101Builder](#faketestqueryparamtersputqueryparametersmap000101builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap000110Builder](#faketestqueryparamtersputqueryparametersmap000110builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters18](#faketestqueryparamtersputqueryparameters18) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters20](#faketestqueryparamtersputqueryparameters20) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters21](#faketestqueryparamtersputqueryparameters21) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap001000Builder -public class FaketestqueryparamtersPutQueryParametersMap001000Builder
+## FaketestqueryparamtersPutQueryParameters23 +public class FaketestqueryparamtersPutQueryParameters23
builder for `Map` A class that builds the Map input type @@ -265,15 +265,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap001000Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters23(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | ioutil(List value) | -## FaketestqueryparamtersPutQueryParametersMap001001Builder -public class FaketestqueryparamtersPutQueryParametersMap001001Builder
+## FaketestqueryparamtersPutQueryParameters24 +public class FaketestqueryparamtersPutQueryParameters24
builder for `Map` A class that builds the Map input type @@ -281,16 +281,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap001001Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters24(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000001Builder](#faketestqueryparamtersputqueryparametersmap000001builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap001000Builder](#faketestqueryparamtersputqueryparametersmap001000builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters16](#faketestqueryparamtersputqueryparameters16) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters23](#faketestqueryparamtersputqueryparameters23) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap001010Builder -public class FaketestqueryparamtersPutQueryParametersMap001010Builder
+## FaketestqueryparamtersPutQueryParameters25 +public class FaketestqueryparamtersPutQueryParameters25
builder for `Map` A class that builds the Map input type @@ -298,16 +298,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap001010Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters25(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000010Builder](#faketestqueryparamtersputqueryparametersmap000010builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap001000Builder](#faketestqueryparamtersputqueryparametersmap001000builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters17](#faketestqueryparamtersputqueryparameters17) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters23](#faketestqueryparamtersputqueryparameters23) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap001011Builder -public class FaketestqueryparamtersPutQueryParametersMap001011Builder
+## FaketestqueryparamtersPutQueryParameters26 +public class FaketestqueryparamtersPutQueryParameters26
builder for `Map` A class that builds the Map input type @@ -315,17 +315,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap001011Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters26(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000011Builder](#faketestqueryparamtersputqueryparametersmap000011builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap001001Builder](#faketestqueryparamtersputqueryparametersmap001001builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap001010Builder](#faketestqueryparamtersputqueryparametersmap001010builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters18](#faketestqueryparamtersputqueryparameters18) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters24](#faketestqueryparamtersputqueryparameters24) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters25](#faketestqueryparamtersputqueryparameters25) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap001100Builder -public class FaketestqueryparamtersPutQueryParametersMap001100Builder
+## FaketestqueryparamtersPutQueryParameters27 +public class FaketestqueryparamtersPutQueryParameters27
builder for `Map` A class that builds the Map input type @@ -333,16 +333,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap001100Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters27(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000100Builder](#faketestqueryparamtersputqueryparametersmap000100builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap001000Builder](#faketestqueryparamtersputqueryparametersmap001000builder) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters19](#faketestqueryparamtersputqueryparameters19) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters23](#faketestqueryparamtersputqueryparameters23) | pipe(List value) | -## FaketestqueryparamtersPutQueryParametersMap001101Builder -public class FaketestqueryparamtersPutQueryParametersMap001101Builder
+## FaketestqueryparamtersPutQueryParameters28 +public class FaketestqueryparamtersPutQueryParameters28
builder for `Map` A class that builds the Map input type @@ -350,17 +350,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap001101Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters28(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000101Builder](#faketestqueryparamtersputqueryparametersmap000101builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap001001Builder](#faketestqueryparamtersputqueryparametersmap001001builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap001100Builder](#faketestqueryparamtersputqueryparametersmap001100builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters20](#faketestqueryparamtersputqueryparameters20) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters24](#faketestqueryparamtersputqueryparameters24) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters27](#faketestqueryparamtersputqueryparameters27) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap001110Builder -public class FaketestqueryparamtersPutQueryParametersMap001110Builder
+## FaketestqueryparamtersPutQueryParameters29 +public class FaketestqueryparamtersPutQueryParameters29
builder for `Map` A class that builds the Map input type @@ -368,17 +368,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap001110Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters29(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000110Builder](#faketestqueryparamtersputqueryparametersmap000110builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap001010Builder](#faketestqueryparamtersputqueryparametersmap001010builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap001100Builder](#faketestqueryparamtersputqueryparametersmap001100builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters21](#faketestqueryparamtersputqueryparameters21) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters25](#faketestqueryparamtersputqueryparameters25) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters27](#faketestqueryparamtersputqueryparameters27) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap001111Builder -public class FaketestqueryparamtersPutQueryParametersMap001111Builder
+## FaketestqueryparamtersPutQueryParameters30 +public class FaketestqueryparamtersPutQueryParameters30
builder for `Map` A class that builds the Map input type @@ -386,18 +386,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap001111Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters30(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000111Builder](#faketestqueryparamtersputqueryparametersmap000111builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap001011Builder](#faketestqueryparamtersputqueryparametersmap001011builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap001101Builder](#faketestqueryparamtersputqueryparametersmap001101builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap001110Builder](#faketestqueryparamtersputqueryparametersmap001110builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters22](#faketestqueryparamtersputqueryparameters22) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters26](#faketestqueryparamtersputqueryparameters26) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters28](#faketestqueryparamtersputqueryparameters28) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters29](#faketestqueryparamtersputqueryparameters29) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap010000Builder -public class FaketestqueryparamtersPutQueryParametersMap010000Builder
+## FaketestqueryparamtersPutQueryParameters31 +public class FaketestqueryparamtersPutQueryParameters31
builder for `Map` A class that builds the Map input type @@ -405,15 +405,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap010000Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters31(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | http(List value) | -## FaketestqueryparamtersPutQueryParametersMap010001Builder -public class FaketestqueryparamtersPutQueryParametersMap010001Builder
+## FaketestqueryparamtersPutQueryParameters32 +public class FaketestqueryparamtersPutQueryParameters32
builder for `Map` A class that builds the Map input type @@ -421,16 +421,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap010001Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters32(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000001Builder](#faketestqueryparamtersputqueryparametersmap000001builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010000Builder](#faketestqueryparamtersputqueryparametersmap010000builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters16](#faketestqueryparamtersputqueryparameters16) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters31](#faketestqueryparamtersputqueryparameters31) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap010010Builder -public class FaketestqueryparamtersPutQueryParametersMap010010Builder
+## FaketestqueryparamtersPutQueryParameters33 +public class FaketestqueryparamtersPutQueryParameters33
builder for `Map` A class that builds the Map input type @@ -438,16 +438,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap010010Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters33(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000010Builder](#faketestqueryparamtersputqueryparametersmap000010builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010000Builder](#faketestqueryparamtersputqueryparametersmap010000builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters17](#faketestqueryparamtersputqueryparameters17) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters31](#faketestqueryparamtersputqueryparameters31) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap010011Builder -public class FaketestqueryparamtersPutQueryParametersMap010011Builder
+## FaketestqueryparamtersPutQueryParameters34 +public class FaketestqueryparamtersPutQueryParameters34
builder for `Map` A class that builds the Map input type @@ -455,17 +455,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap010011Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters34(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000011Builder](#faketestqueryparamtersputqueryparametersmap000011builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010001Builder](#faketestqueryparamtersputqueryparametersmap010001builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap010010Builder](#faketestqueryparamtersputqueryparametersmap010010builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters18](#faketestqueryparamtersputqueryparameters18) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters32](#faketestqueryparamtersputqueryparameters32) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters33](#faketestqueryparamtersputqueryparameters33) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap010100Builder -public class FaketestqueryparamtersPutQueryParametersMap010100Builder
+## FaketestqueryparamtersPutQueryParameters35 +public class FaketestqueryparamtersPutQueryParameters35
builder for `Map` A class that builds the Map input type @@ -473,16 +473,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap010100Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters35(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000100Builder](#faketestqueryparamtersputqueryparametersmap000100builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010000Builder](#faketestqueryparamtersputqueryparametersmap010000builder) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters19](#faketestqueryparamtersputqueryparameters19) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters31](#faketestqueryparamtersputqueryparameters31) | pipe(List value) | -## FaketestqueryparamtersPutQueryParametersMap010101Builder -public class FaketestqueryparamtersPutQueryParametersMap010101Builder
+## FaketestqueryparamtersPutQueryParameters36 +public class FaketestqueryparamtersPutQueryParameters36
builder for `Map` A class that builds the Map input type @@ -490,17 +490,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap010101Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters36(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000101Builder](#faketestqueryparamtersputqueryparametersmap000101builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010001Builder](#faketestqueryparamtersputqueryparametersmap010001builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010100Builder](#faketestqueryparamtersputqueryparametersmap010100builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters20](#faketestqueryparamtersputqueryparameters20) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters32](#faketestqueryparamtersputqueryparameters32) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters35](#faketestqueryparamtersputqueryparameters35) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap010110Builder -public class FaketestqueryparamtersPutQueryParametersMap010110Builder
+## FaketestqueryparamtersPutQueryParameters37 +public class FaketestqueryparamtersPutQueryParameters37
builder for `Map` A class that builds the Map input type @@ -508,17 +508,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap010110Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters37(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000110Builder](#faketestqueryparamtersputqueryparametersmap000110builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010010Builder](#faketestqueryparamtersputqueryparametersmap010010builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010100Builder](#faketestqueryparamtersputqueryparametersmap010100builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters21](#faketestqueryparamtersputqueryparameters21) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters33](#faketestqueryparamtersputqueryparameters33) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters35](#faketestqueryparamtersputqueryparameters35) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap010111Builder -public class FaketestqueryparamtersPutQueryParametersMap010111Builder
+## FaketestqueryparamtersPutQueryParameters38 +public class FaketestqueryparamtersPutQueryParameters38
builder for `Map` A class that builds the Map input type @@ -526,18 +526,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap010111Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters38(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000111Builder](#faketestqueryparamtersputqueryparametersmap000111builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010011Builder](#faketestqueryparamtersputqueryparametersmap010011builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010101Builder](#faketestqueryparamtersputqueryparametersmap010101builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap010110Builder](#faketestqueryparamtersputqueryparametersmap010110builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters22](#faketestqueryparamtersputqueryparameters22) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters34](#faketestqueryparamtersputqueryparameters34) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters36](#faketestqueryparamtersputqueryparameters36) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters37](#faketestqueryparamtersputqueryparameters37) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap011000Builder -public class FaketestqueryparamtersPutQueryParametersMap011000Builder
+## FaketestqueryparamtersPutQueryParameters39 +public class FaketestqueryparamtersPutQueryParameters39
builder for `Map` A class that builds the Map input type @@ -545,16 +545,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap011000Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters39(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001000Builder](#faketestqueryparamtersputqueryparametersmap001000builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010000Builder](#faketestqueryparamtersputqueryparametersmap010000builder) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters23](#faketestqueryparamtersputqueryparameters23) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters31](#faketestqueryparamtersputqueryparameters31) | ioutil(List value) | -## FaketestqueryparamtersPutQueryParametersMap011001Builder -public class FaketestqueryparamtersPutQueryParametersMap011001Builder
+## FaketestqueryparamtersPutQueryParameters40 +public class FaketestqueryparamtersPutQueryParameters40
builder for `Map` A class that builds the Map input type @@ -562,17 +562,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap011001Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters40(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001001Builder](#faketestqueryparamtersputqueryparametersmap001001builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010001Builder](#faketestqueryparamtersputqueryparametersmap010001builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap011000Builder](#faketestqueryparamtersputqueryparametersmap011000builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters24](#faketestqueryparamtersputqueryparameters24) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters32](#faketestqueryparamtersputqueryparameters32) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters39](#faketestqueryparamtersputqueryparameters39) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap011010Builder -public class FaketestqueryparamtersPutQueryParametersMap011010Builder
+## FaketestqueryparamtersPutQueryParameters41 +public class FaketestqueryparamtersPutQueryParameters41
builder for `Map` A class that builds the Map input type @@ -580,17 +580,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap011010Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters41(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001010Builder](#faketestqueryparamtersputqueryparametersmap001010builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010010Builder](#faketestqueryparamtersputqueryparametersmap010010builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap011000Builder](#faketestqueryparamtersputqueryparametersmap011000builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters25](#faketestqueryparamtersputqueryparameters25) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters33](#faketestqueryparamtersputqueryparameters33) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters39](#faketestqueryparamtersputqueryparameters39) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap011011Builder -public class FaketestqueryparamtersPutQueryParametersMap011011Builder
+## FaketestqueryparamtersPutQueryParameters42 +public class FaketestqueryparamtersPutQueryParameters42
builder for `Map` A class that builds the Map input type @@ -598,18 +598,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap011011Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters42(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001011Builder](#faketestqueryparamtersputqueryparametersmap001011builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010011Builder](#faketestqueryparamtersputqueryparametersmap010011builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap011001Builder](#faketestqueryparamtersputqueryparametersmap011001builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap011010Builder](#faketestqueryparamtersputqueryparametersmap011010builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters26](#faketestqueryparamtersputqueryparameters26) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters34](#faketestqueryparamtersputqueryparameters34) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters40](#faketestqueryparamtersputqueryparameters40) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters41](#faketestqueryparamtersputqueryparameters41) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap011100Builder -public class FaketestqueryparamtersPutQueryParametersMap011100Builder
+## FaketestqueryparamtersPutQueryParameters43 +public class FaketestqueryparamtersPutQueryParameters43
builder for `Map` A class that builds the Map input type @@ -617,17 +617,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap011100Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters43(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001100Builder](#faketestqueryparamtersputqueryparametersmap001100builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010100Builder](#faketestqueryparamtersputqueryparametersmap010100builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap011000Builder](#faketestqueryparamtersputqueryparametersmap011000builder) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters27](#faketestqueryparamtersputqueryparameters27) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters35](#faketestqueryparamtersputqueryparameters35) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters39](#faketestqueryparamtersputqueryparameters39) | pipe(List value) | -## FaketestqueryparamtersPutQueryParametersMap011101Builder -public class FaketestqueryparamtersPutQueryParametersMap011101Builder
+## FaketestqueryparamtersPutQueryParameters44 +public class FaketestqueryparamtersPutQueryParameters44
builder for `Map` A class that builds the Map input type @@ -635,18 +635,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap011101Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters44(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001101Builder](#faketestqueryparamtersputqueryparametersmap001101builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010101Builder](#faketestqueryparamtersputqueryparametersmap010101builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap011001Builder](#faketestqueryparamtersputqueryparametersmap011001builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap011100Builder](#faketestqueryparamtersputqueryparametersmap011100builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters28](#faketestqueryparamtersputqueryparameters28) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters36](#faketestqueryparamtersputqueryparameters36) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters40](#faketestqueryparamtersputqueryparameters40) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters43](#faketestqueryparamtersputqueryparameters43) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap011110Builder -public class FaketestqueryparamtersPutQueryParametersMap011110Builder
+## FaketestqueryparamtersPutQueryParameters45 +public class FaketestqueryparamtersPutQueryParameters45
builder for `Map` A class that builds the Map input type @@ -654,18 +654,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap011110Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters45(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001110Builder](#faketestqueryparamtersputqueryparametersmap001110builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010110Builder](#faketestqueryparamtersputqueryparametersmap010110builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap011010Builder](#faketestqueryparamtersputqueryparametersmap011010builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap011100Builder](#faketestqueryparamtersputqueryparametersmap011100builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters29](#faketestqueryparamtersputqueryparameters29) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters37](#faketestqueryparamtersputqueryparameters37) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters41](#faketestqueryparamtersputqueryparameters41) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters43](#faketestqueryparamtersputqueryparameters43) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap011111Builder -public class FaketestqueryparamtersPutQueryParametersMap011111Builder
+## FaketestqueryparamtersPutQueryParameters46 +public class FaketestqueryparamtersPutQueryParameters46
builder for `Map` A class that builds the Map input type @@ -673,19 +673,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap011111Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters46(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001111Builder](#faketestqueryparamtersputqueryparametersmap001111builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap010111Builder](#faketestqueryparamtersputqueryparametersmap010111builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap011011Builder](#faketestqueryparamtersputqueryparametersmap011011builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap011101Builder](#faketestqueryparamtersputqueryparametersmap011101builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap011110Builder](#faketestqueryparamtersputqueryparametersmap011110builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters30](#faketestqueryparamtersputqueryparameters30) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters38](#faketestqueryparamtersputqueryparameters38) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters42](#faketestqueryparamtersputqueryparameters42) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters44](#faketestqueryparamtersputqueryparameters44) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters45](#faketestqueryparamtersputqueryparameters45) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap100000Builder -public class FaketestqueryparamtersPutQueryParametersMap100000Builder
+## FaketestqueryparamtersPutQueryParameters47 +public class FaketestqueryparamtersPutQueryParameters47
builder for `Map` A class that builds the Map input type @@ -693,15 +693,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap100000Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters47(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000000Builder](#faketestqueryparamtersputqueryparametersmap000000builder) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | context(List value) | -## FaketestqueryparamtersPutQueryParametersMap100001Builder -public class FaketestqueryparamtersPutQueryParametersMap100001Builder
+## FaketestqueryparamtersPutQueryParameters48 +public class FaketestqueryparamtersPutQueryParameters48
builder for `Map` A class that builds the Map input type @@ -709,16 +709,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap100001Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters48(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000001Builder](#faketestqueryparamtersputqueryparametersmap000001builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100000Builder](#faketestqueryparamtersputqueryparametersmap100000builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters16](#faketestqueryparamtersputqueryparameters16) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters47](#faketestqueryparamtersputqueryparameters47) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap100010Builder -public class FaketestqueryparamtersPutQueryParametersMap100010Builder
+## FaketestqueryparamtersPutQueryParameters49 +public class FaketestqueryparamtersPutQueryParameters49
builder for `Map` A class that builds the Map input type @@ -726,16 +726,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap100010Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters49(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000010Builder](#faketestqueryparamtersputqueryparametersmap000010builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100000Builder](#faketestqueryparamtersputqueryparametersmap100000builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters17](#faketestqueryparamtersputqueryparameters17) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters47](#faketestqueryparamtersputqueryparameters47) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap100011Builder -public class FaketestqueryparamtersPutQueryParametersMap100011Builder
+## FaketestqueryparamtersPutQueryParameters50 +public class FaketestqueryparamtersPutQueryParameters50
builder for `Map` A class that builds the Map input type @@ -743,17 +743,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap100011Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters50(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000011Builder](#faketestqueryparamtersputqueryparametersmap000011builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100001Builder](#faketestqueryparamtersputqueryparametersmap100001builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap100010Builder](#faketestqueryparamtersputqueryparametersmap100010builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters18](#faketestqueryparamtersputqueryparameters18) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters48](#faketestqueryparamtersputqueryparameters48) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters49](#faketestqueryparamtersputqueryparameters49) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap100100Builder -public class FaketestqueryparamtersPutQueryParametersMap100100Builder
+## FaketestqueryparamtersPutQueryParameters51 +public class FaketestqueryparamtersPutQueryParameters51
builder for `Map` A class that builds the Map input type @@ -761,16 +761,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap100100Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters51(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000100Builder](#faketestqueryparamtersputqueryparametersmap000100builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100000Builder](#faketestqueryparamtersputqueryparametersmap100000builder) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters19](#faketestqueryparamtersputqueryparameters19) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters47](#faketestqueryparamtersputqueryparameters47) | pipe(List value) | -## FaketestqueryparamtersPutQueryParametersMap100101Builder -public class FaketestqueryparamtersPutQueryParametersMap100101Builder
+## FaketestqueryparamtersPutQueryParameters52 +public class FaketestqueryparamtersPutQueryParameters52
builder for `Map` A class that builds the Map input type @@ -778,17 +778,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap100101Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters52(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000101Builder](#faketestqueryparamtersputqueryparametersmap000101builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100001Builder](#faketestqueryparamtersputqueryparametersmap100001builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100100Builder](#faketestqueryparamtersputqueryparametersmap100100builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters20](#faketestqueryparamtersputqueryparameters20) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters48](#faketestqueryparamtersputqueryparameters48) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters51](#faketestqueryparamtersputqueryparameters51) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap100110Builder -public class FaketestqueryparamtersPutQueryParametersMap100110Builder
+## FaketestqueryparamtersPutQueryParameters53 +public class FaketestqueryparamtersPutQueryParameters53
builder for `Map` A class that builds the Map input type @@ -796,17 +796,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap100110Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters53(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000110Builder](#faketestqueryparamtersputqueryparametersmap000110builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100010Builder](#faketestqueryparamtersputqueryparametersmap100010builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100100Builder](#faketestqueryparamtersputqueryparametersmap100100builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters21](#faketestqueryparamtersputqueryparameters21) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters49](#faketestqueryparamtersputqueryparameters49) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters51](#faketestqueryparamtersputqueryparameters51) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap100111Builder -public class FaketestqueryparamtersPutQueryParametersMap100111Builder
+## FaketestqueryparamtersPutQueryParameters54 +public class FaketestqueryparamtersPutQueryParameters54
builder for `Map` A class that builds the Map input type @@ -814,18 +814,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap100111Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters54(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap000111Builder](#faketestqueryparamtersputqueryparametersmap000111builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100011Builder](#faketestqueryparamtersputqueryparametersmap100011builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100101Builder](#faketestqueryparamtersputqueryparametersmap100101builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap100110Builder](#faketestqueryparamtersputqueryparametersmap100110builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters22](#faketestqueryparamtersputqueryparameters22) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters50](#faketestqueryparamtersputqueryparameters50) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters52](#faketestqueryparamtersputqueryparameters52) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters53](#faketestqueryparamtersputqueryparameters53) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap101000Builder -public class FaketestqueryparamtersPutQueryParametersMap101000Builder
+## FaketestqueryparamtersPutQueryParameters55 +public class FaketestqueryparamtersPutQueryParameters55
builder for `Map` A class that builds the Map input type @@ -833,16 +833,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap101000Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters55(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001000Builder](#faketestqueryparamtersputqueryparametersmap001000builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100000Builder](#faketestqueryparamtersputqueryparametersmap100000builder) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters23](#faketestqueryparamtersputqueryparameters23) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters47](#faketestqueryparamtersputqueryparameters47) | ioutil(List value) | -## FaketestqueryparamtersPutQueryParametersMap101001Builder -public class FaketestqueryparamtersPutQueryParametersMap101001Builder
+## FaketestqueryparamtersPutQueryParameters56 +public class FaketestqueryparamtersPutQueryParameters56
builder for `Map` A class that builds the Map input type @@ -850,17 +850,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap101001Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters56(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001001Builder](#faketestqueryparamtersputqueryparametersmap001001builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100001Builder](#faketestqueryparamtersputqueryparametersmap100001builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101000Builder](#faketestqueryparamtersputqueryparametersmap101000builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters24](#faketestqueryparamtersputqueryparameters24) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters48](#faketestqueryparamtersputqueryparameters48) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters55](#faketestqueryparamtersputqueryparameters55) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap101010Builder -public class FaketestqueryparamtersPutQueryParametersMap101010Builder
+## FaketestqueryparamtersPutQueryParameters57 +public class FaketestqueryparamtersPutQueryParameters57
builder for `Map` A class that builds the Map input type @@ -868,17 +868,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap101010Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters57(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001010Builder](#faketestqueryparamtersputqueryparametersmap001010builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100010Builder](#faketestqueryparamtersputqueryparametersmap100010builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101000Builder](#faketestqueryparamtersputqueryparametersmap101000builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters25](#faketestqueryparamtersputqueryparameters25) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters49](#faketestqueryparamtersputqueryparameters49) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters55](#faketestqueryparamtersputqueryparameters55) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap101011Builder -public class FaketestqueryparamtersPutQueryParametersMap101011Builder
+## FaketestqueryparamtersPutQueryParameters58 +public class FaketestqueryparamtersPutQueryParameters58
builder for `Map` A class that builds the Map input type @@ -886,18 +886,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap101011Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters58(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001011Builder](#faketestqueryparamtersputqueryparametersmap001011builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100011Builder](#faketestqueryparamtersputqueryparametersmap100011builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101001Builder](#faketestqueryparamtersputqueryparametersmap101001builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap101010Builder](#faketestqueryparamtersputqueryparametersmap101010builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters26](#faketestqueryparamtersputqueryparameters26) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters50](#faketestqueryparamtersputqueryparameters50) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters56](#faketestqueryparamtersputqueryparameters56) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters57](#faketestqueryparamtersputqueryparameters57) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap101100Builder -public class FaketestqueryparamtersPutQueryParametersMap101100Builder
+## FaketestqueryparamtersPutQueryParameters59 +public class FaketestqueryparamtersPutQueryParameters59
builder for `Map` A class that builds the Map input type @@ -905,17 +905,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap101100Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters59(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001100Builder](#faketestqueryparamtersputqueryparametersmap001100builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100100Builder](#faketestqueryparamtersputqueryparametersmap100100builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101000Builder](#faketestqueryparamtersputqueryparametersmap101000builder) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters27](#faketestqueryparamtersputqueryparameters27) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters51](#faketestqueryparamtersputqueryparameters51) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters55](#faketestqueryparamtersputqueryparameters55) | pipe(List value) | -## FaketestqueryparamtersPutQueryParametersMap101101Builder -public class FaketestqueryparamtersPutQueryParametersMap101101Builder
+## FaketestqueryparamtersPutQueryParameters60 +public class FaketestqueryparamtersPutQueryParameters60
builder for `Map` A class that builds the Map input type @@ -923,18 +923,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap101101Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters60(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001101Builder](#faketestqueryparamtersputqueryparametersmap001101builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100101Builder](#faketestqueryparamtersputqueryparametersmap100101builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101001Builder](#faketestqueryparamtersputqueryparametersmap101001builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101100Builder](#faketestqueryparamtersputqueryparametersmap101100builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters28](#faketestqueryparamtersputqueryparameters28) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters52](#faketestqueryparamtersputqueryparameters52) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters56](#faketestqueryparamtersputqueryparameters56) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters59](#faketestqueryparamtersputqueryparameters59) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap101110Builder -public class FaketestqueryparamtersPutQueryParametersMap101110Builder
+## FaketestqueryparamtersPutQueryParameters61 +public class FaketestqueryparamtersPutQueryParameters61
builder for `Map` A class that builds the Map input type @@ -942,18 +942,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap101110Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters61(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001110Builder](#faketestqueryparamtersputqueryparametersmap001110builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100110Builder](#faketestqueryparamtersputqueryparametersmap100110builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101010Builder](#faketestqueryparamtersputqueryparametersmap101010builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101100Builder](#faketestqueryparamtersputqueryparametersmap101100builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters29](#faketestqueryparamtersputqueryparameters29) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters53](#faketestqueryparamtersputqueryparameters53) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters57](#faketestqueryparamtersputqueryparameters57) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters59](#faketestqueryparamtersputqueryparameters59) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap101111Builder -public class FaketestqueryparamtersPutQueryParametersMap101111Builder
+## FaketestqueryparamtersPutQueryParameters62 +public class FaketestqueryparamtersPutQueryParameters62
builder for `Map` A class that builds the Map input type @@ -961,19 +961,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap101111Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters62(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap001111Builder](#faketestqueryparamtersputqueryparametersmap001111builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100111Builder](#faketestqueryparamtersputqueryparametersmap100111builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101011Builder](#faketestqueryparamtersputqueryparametersmap101011builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101101Builder](#faketestqueryparamtersputqueryparametersmap101101builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap101110Builder](#faketestqueryparamtersputqueryparametersmap101110builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters30](#faketestqueryparamtersputqueryparameters30) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters54](#faketestqueryparamtersputqueryparameters54) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters58](#faketestqueryparamtersputqueryparameters58) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters60](#faketestqueryparamtersputqueryparameters60) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters61](#faketestqueryparamtersputqueryparameters61) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap110000Builder -public class FaketestqueryparamtersPutQueryParametersMap110000Builder
+## FaketestqueryparamtersPutQueryParameters63 +public class FaketestqueryparamtersPutQueryParameters63
builder for `Map` A class that builds the Map input type @@ -981,16 +981,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap110000Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters63(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap010000Builder](#faketestqueryparamtersputqueryparametersmap010000builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100000Builder](#faketestqueryparamtersputqueryparametersmap100000builder) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters31](#faketestqueryparamtersputqueryparameters31) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters47](#faketestqueryparamtersputqueryparameters47) | http(List value) | -## FaketestqueryparamtersPutQueryParametersMap110001Builder -public class FaketestqueryparamtersPutQueryParametersMap110001Builder
+## FaketestqueryparamtersPutQueryParameters64 +public class FaketestqueryparamtersPutQueryParameters64
builder for `Map` A class that builds the Map input type @@ -998,17 +998,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap110001Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters64(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap010001Builder](#faketestqueryparamtersputqueryparametersmap010001builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100001Builder](#faketestqueryparamtersputqueryparametersmap100001builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110000Builder](#faketestqueryparamtersputqueryparametersmap110000builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters32](#faketestqueryparamtersputqueryparameters32) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters48](#faketestqueryparamtersputqueryparameters48) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters63](#faketestqueryparamtersputqueryparameters63) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap110010Builder -public class FaketestqueryparamtersPutQueryParametersMap110010Builder
+## FaketestqueryparamtersPutQueryParameters65 +public class FaketestqueryparamtersPutQueryParameters65
builder for `Map` A class that builds the Map input type @@ -1016,17 +1016,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap110010Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters65(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap010010Builder](#faketestqueryparamtersputqueryparametersmap010010builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100010Builder](#faketestqueryparamtersputqueryparametersmap100010builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110000Builder](#faketestqueryparamtersputqueryparametersmap110000builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters33](#faketestqueryparamtersputqueryparameters33) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters49](#faketestqueryparamtersputqueryparameters49) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters63](#faketestqueryparamtersputqueryparameters63) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap110011Builder -public class FaketestqueryparamtersPutQueryParametersMap110011Builder
+## FaketestqueryparamtersPutQueryParameters66 +public class FaketestqueryparamtersPutQueryParameters66
builder for `Map` A class that builds the Map input type @@ -1034,18 +1034,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap110011Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters66(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap010011Builder](#faketestqueryparamtersputqueryparametersmap010011builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100011Builder](#faketestqueryparamtersputqueryparametersmap100011builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110001Builder](#faketestqueryparamtersputqueryparametersmap110001builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap110010Builder](#faketestqueryparamtersputqueryparametersmap110010builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters34](#faketestqueryparamtersputqueryparameters34) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters50](#faketestqueryparamtersputqueryparameters50) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters64](#faketestqueryparamtersputqueryparameters64) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters65](#faketestqueryparamtersputqueryparameters65) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap110100Builder -public class FaketestqueryparamtersPutQueryParametersMap110100Builder
+## FaketestqueryparamtersPutQueryParameters67 +public class FaketestqueryparamtersPutQueryParameters67
builder for `Map` A class that builds the Map input type @@ -1053,17 +1053,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap110100Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters67(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap010100Builder](#faketestqueryparamtersputqueryparametersmap010100builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100100Builder](#faketestqueryparamtersputqueryparametersmap100100builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110000Builder](#faketestqueryparamtersputqueryparametersmap110000builder) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters35](#faketestqueryparamtersputqueryparameters35) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters51](#faketestqueryparamtersputqueryparameters51) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters63](#faketestqueryparamtersputqueryparameters63) | pipe(List value) | -## FaketestqueryparamtersPutQueryParametersMap110101Builder -public class FaketestqueryparamtersPutQueryParametersMap110101Builder
+## FaketestqueryparamtersPutQueryParameters68 +public class FaketestqueryparamtersPutQueryParameters68
builder for `Map` A class that builds the Map input type @@ -1071,18 +1071,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap110101Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters68(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap010101Builder](#faketestqueryparamtersputqueryparametersmap010101builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100101Builder](#faketestqueryparamtersputqueryparametersmap100101builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110001Builder](#faketestqueryparamtersputqueryparametersmap110001builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110100Builder](#faketestqueryparamtersputqueryparametersmap110100builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters36](#faketestqueryparamtersputqueryparameters36) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters52](#faketestqueryparamtersputqueryparameters52) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters64](#faketestqueryparamtersputqueryparameters64) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters67](#faketestqueryparamtersputqueryparameters67) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap110110Builder -public class FaketestqueryparamtersPutQueryParametersMap110110Builder
+## FaketestqueryparamtersPutQueryParameters69 +public class FaketestqueryparamtersPutQueryParameters69
builder for `Map` A class that builds the Map input type @@ -1090,18 +1090,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap110110Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters69(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap010110Builder](#faketestqueryparamtersputqueryparametersmap010110builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100110Builder](#faketestqueryparamtersputqueryparametersmap100110builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110010Builder](#faketestqueryparamtersputqueryparametersmap110010builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110100Builder](#faketestqueryparamtersputqueryparametersmap110100builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters37](#faketestqueryparamtersputqueryparameters37) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters53](#faketestqueryparamtersputqueryparameters53) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters65](#faketestqueryparamtersputqueryparameters65) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters67](#faketestqueryparamtersputqueryparameters67) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap110111Builder -public class FaketestqueryparamtersPutQueryParametersMap110111Builder
+## FaketestqueryparamtersPutQueryParameters70 +public class FaketestqueryparamtersPutQueryParameters70
builder for `Map` A class that builds the Map input type @@ -1109,19 +1109,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap110111Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters70(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap010111Builder](#faketestqueryparamtersputqueryparametersmap010111builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap100111Builder](#faketestqueryparamtersputqueryparametersmap100111builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110011Builder](#faketestqueryparamtersputqueryparametersmap110011builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110101Builder](#faketestqueryparamtersputqueryparametersmap110101builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap110110Builder](#faketestqueryparamtersputqueryparametersmap110110builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters38](#faketestqueryparamtersputqueryparameters38) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters54](#faketestqueryparamtersputqueryparameters54) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters66](#faketestqueryparamtersputqueryparameters66) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters68](#faketestqueryparamtersputqueryparameters68) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters69](#faketestqueryparamtersputqueryparameters69) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap111000Builder -public class FaketestqueryparamtersPutQueryParametersMap111000Builder
+## FaketestqueryparamtersPutQueryParameters71 +public class FaketestqueryparamtersPutQueryParameters71
builder for `Map` A class that builds the Map input type @@ -1129,17 +1129,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap111000Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters71(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap011000Builder](#faketestqueryparamtersputqueryparametersmap011000builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101000Builder](#faketestqueryparamtersputqueryparametersmap101000builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110000Builder](#faketestqueryparamtersputqueryparametersmap110000builder) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters39](#faketestqueryparamtersputqueryparameters39) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters55](#faketestqueryparamtersputqueryparameters55) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters63](#faketestqueryparamtersputqueryparameters63) | ioutil(List value) | -## FaketestqueryparamtersPutQueryParametersMap111001Builder -public class FaketestqueryparamtersPutQueryParametersMap111001Builder
+## FaketestqueryparamtersPutQueryParameters72 +public class FaketestqueryparamtersPutQueryParameters72
builder for `Map` A class that builds the Map input type @@ -1147,18 +1147,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap111001Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters72(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap011001Builder](#faketestqueryparamtersputqueryparametersmap011001builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101001Builder](#faketestqueryparamtersputqueryparametersmap101001builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110001Builder](#faketestqueryparamtersputqueryparametersmap110001builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap111000Builder](#faketestqueryparamtersputqueryparametersmap111000builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters40](#faketestqueryparamtersputqueryparameters40) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters56](#faketestqueryparamtersputqueryparameters56) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters64](#faketestqueryparamtersputqueryparameters64) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters71](#faketestqueryparamtersputqueryparameters71) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap111010Builder -public class FaketestqueryparamtersPutQueryParametersMap111010Builder
+## FaketestqueryparamtersPutQueryParameters73 +public class FaketestqueryparamtersPutQueryParameters73
builder for `Map` A class that builds the Map input type @@ -1166,18 +1166,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap111010Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters73(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap011010Builder](#faketestqueryparamtersputqueryparametersmap011010builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101010Builder](#faketestqueryparamtersputqueryparametersmap101010builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110010Builder](#faketestqueryparamtersputqueryparametersmap110010builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap111000Builder](#faketestqueryparamtersputqueryparametersmap111000builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters41](#faketestqueryparamtersputqueryparameters41) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters57](#faketestqueryparamtersputqueryparameters57) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters65](#faketestqueryparamtersputqueryparameters65) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters71](#faketestqueryparamtersputqueryparameters71) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMap111011Builder -public class FaketestqueryparamtersPutQueryParametersMap111011Builder
+## FaketestqueryparamtersPutQueryParameters74 +public class FaketestqueryparamtersPutQueryParameters74
builder for `Map` A class that builds the Map input type @@ -1185,19 +1185,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap111011Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters74(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap011011Builder](#faketestqueryparamtersputqueryparametersmap011011builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101011Builder](#faketestqueryparamtersputqueryparametersmap101011builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110011Builder](#faketestqueryparamtersputqueryparametersmap110011builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap111001Builder](#faketestqueryparamtersputqueryparametersmap111001builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap111010Builder](#faketestqueryparamtersputqueryparametersmap111010builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters42](#faketestqueryparamtersputqueryparameters42) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters58](#faketestqueryparamtersputqueryparameters58) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters66](#faketestqueryparamtersputqueryparameters66) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters72](#faketestqueryparamtersputqueryparameters72) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters73](#faketestqueryparamtersputqueryparameters73) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap111100Builder -public class FaketestqueryparamtersPutQueryParametersMap111100Builder
+## FaketestqueryparamtersPutQueryParameters75 +public class FaketestqueryparamtersPutQueryParameters75
builder for `Map` A class that builds the Map input type @@ -1205,18 +1205,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap111100Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters75(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap011100Builder](#faketestqueryparamtersputqueryparametersmap011100builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101100Builder](#faketestqueryparamtersputqueryparametersmap101100builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110100Builder](#faketestqueryparamtersputqueryparametersmap110100builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap111000Builder](#faketestqueryparamtersputqueryparametersmap111000builder) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters43](#faketestqueryparamtersputqueryparameters43) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters59](#faketestqueryparamtersputqueryparameters59) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters67](#faketestqueryparamtersputqueryparameters67) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters71](#faketestqueryparamtersputqueryparameters71) | pipe(List value) | -## FaketestqueryparamtersPutQueryParametersMap111101Builder -public class FaketestqueryparamtersPutQueryParametersMap111101Builder
+## FaketestqueryparamtersPutQueryParameters76 +public class FaketestqueryparamtersPutQueryParameters76
builder for `Map` A class that builds the Map input type @@ -1224,19 +1224,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap111101Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters76(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap011101Builder](#faketestqueryparamtersputqueryparametersmap011101builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101101Builder](#faketestqueryparamtersputqueryparametersmap101101builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110101Builder](#faketestqueryparamtersputqueryparametersmap110101builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap111001Builder](#faketestqueryparamtersputqueryparametersmap111001builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap111100Builder](#faketestqueryparamtersputqueryparametersmap111100builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters44](#faketestqueryparamtersputqueryparameters44) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters60](#faketestqueryparamtersputqueryparameters60) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters68](#faketestqueryparamtersputqueryparameters68) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters72](#faketestqueryparamtersputqueryparameters72) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters75](#faketestqueryparamtersputqueryparameters75) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap111110Builder -public class FaketestqueryparamtersPutQueryParametersMap111110Builder
+## FaketestqueryparamtersPutQueryParameters77 +public class FaketestqueryparamtersPutQueryParameters77
builder for `Map` A class that builds the Map input type @@ -1244,19 +1244,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMap111110Builder(Map instance)
Creates a builder that contains the passed instance | +| FaketestqueryparamtersPutQueryParameters77(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap011110Builder](#faketestqueryparamtersputqueryparametersmap011110builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101110Builder](#faketestqueryparamtersputqueryparametersmap101110builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110110Builder](#faketestqueryparamtersputqueryparametersmap110110builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap111010Builder](#faketestqueryparamtersputqueryparametersmap111010builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap111100Builder](#faketestqueryparamtersputqueryparametersmap111100builder) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters45](#faketestqueryparamtersputqueryparameters45) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters61](#faketestqueryparamtersputqueryparameters61) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters69](#faketestqueryparamtersputqueryparameters69) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters73](#faketestqueryparamtersputqueryparameters73) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters75](#faketestqueryparamtersputqueryparameters75) | refParam(String value) | -## FaketestqueryparamtersPutQueryParametersMapBuilder -public class FaketestqueryparamtersPutQueryParametersMapBuilder
+## FaketestqueryparamtersPutQueryParameters13 +public class FaketestqueryparamtersPutQueryParameters13
builder for `Map` A class that builds the Map input type @@ -1264,20 +1264,20 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| FaketestqueryparamtersPutQueryParameters13()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParametersMap011111Builder](#faketestqueryparamtersputqueryparametersmap011111builder) | context(List value) | -| [FaketestqueryparamtersPutQueryParametersMap101111Builder](#faketestqueryparamtersputqueryparametersmap101111builder) | http(List value) | -| [FaketestqueryparamtersPutQueryParametersMap110111Builder](#faketestqueryparamtersputqueryparametersmap110111builder) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParametersMap111011Builder](#faketestqueryparamtersputqueryparametersmap111011builder) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParametersMap111101Builder](#faketestqueryparamtersputqueryparametersmap111101builder) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParametersMap111110Builder](#faketestqueryparamtersputqueryparametersmap111110builder) | url(List value) | +| [FaketestqueryparamtersPutQueryParameters46](#faketestqueryparamtersputqueryparameters46) | context(List value) | +| [FaketestqueryparamtersPutQueryParameters62](#faketestqueryparamtersputqueryparameters62) | http(List value) | +| [FaketestqueryparamtersPutQueryParameters70](#faketestqueryparamtersputqueryparameters70) | ioutil(List value) | +| [FaketestqueryparamtersPutQueryParameters74](#faketestqueryparamtersputqueryparameters74) | pipe(List value) | +| [FaketestqueryparamtersPutQueryParameters76](#faketestqueryparamtersputqueryparameters76) | refParam(String value) | +| [FaketestqueryparamtersPutQueryParameters77](#faketestqueryparamtersputqueryparameters77) | url(List value) | -## FaketestqueryparamtersPutQueryParametersMap -public static class FaketestqueryparamtersPutQueryParametersMap
+## FaketestqueryparamtersPutQueryParameters14 +public static class FaketestqueryparamtersPutQueryParameters14
extends FrozenMap A class to store validated Map payloads @@ -1285,7 +1285,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FaketestqueryparamtersPutQueryParametersMap](#faketestqueryparamtersputqueryparametersmap) | of([Map](#faketestqueryparamtersputqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [FaketestqueryparamtersPutQueryParameters14](#faketestqueryparamtersputqueryparameters14) | of([Map](#faketestqueryparamtersputqueryparameters13) arg, SchemaConfiguration configuration) | | [Schema4.SchemaList4](../../../paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md#schemalist4) | context()
| | [Schema2.SchemaList2](../../../paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md#schemalist2) | http()
| | [Schema1.SchemaList1](../../../paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md#schemalist1) | ioutil()
| @@ -1293,28 +1293,28 @@ A class to store validated Map payloads | String | refParam()
| | [Schema3.SchemaList3](../../../paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md#schemalist3) | url()
| -## FaketestqueryparamtersPutadditionalPropertiesBoxed -public sealed interface FaketestqueryparamtersPutadditionalPropertiesBoxed
+## FaketestqueryparamtersPutQueryParameters9Boxed +public sealed interface FaketestqueryparamtersPutQueryParameters9Boxed
permits
-[FaketestqueryparamtersPutadditionalPropertiesBoxedVoid](#faketestqueryparamtersputadditionalpropertiesboxedvoid), -[FaketestqueryparamtersPutadditionalPropertiesBoxedBoolean](#faketestqueryparamtersputadditionalpropertiesboxedboolean), -[FaketestqueryparamtersPutadditionalPropertiesBoxedNumber](#faketestqueryparamtersputadditionalpropertiesboxednumber), -[FaketestqueryparamtersPutadditionalPropertiesBoxedString](#faketestqueryparamtersputadditionalpropertiesboxedstring), -[FaketestqueryparamtersPutadditionalPropertiesBoxedList](#faketestqueryparamtersputadditionalpropertiesboxedlist), -[FaketestqueryparamtersPutadditionalPropertiesBoxedMap](#faketestqueryparamtersputadditionalpropertiesboxedmap) +[FaketestqueryparamtersPutQueryParameters9BoxedVoid](#faketestqueryparamtersputqueryparameters9boxedvoid), +[FaketestqueryparamtersPutQueryParameters9BoxedBoolean](#faketestqueryparamtersputqueryparameters9boxedboolean), +[FaketestqueryparamtersPutQueryParameters9BoxedNumber](#faketestqueryparamtersputqueryparameters9boxednumber), +[FaketestqueryparamtersPutQueryParameters9BoxedString](#faketestqueryparamtersputqueryparameters9boxedstring), +[FaketestqueryparamtersPutQueryParameters9BoxedList](#faketestqueryparamtersputqueryparameters9boxedlist), +[FaketestqueryparamtersPutQueryParameters9BoxedMap](#faketestqueryparamtersputqueryparameters9boxedmap) sealed interface that stores validated payloads using boxed classes -## FaketestqueryparamtersPutadditionalPropertiesBoxedVoid -public record FaketestqueryparamtersPutadditionalPropertiesBoxedVoid
-implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) +## FaketestqueryparamtersPutQueryParameters9BoxedVoid +public record FaketestqueryparamtersPutQueryParameters9BoxedVoid
+implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| FaketestqueryparamtersPutQueryParameters9BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1322,16 +1322,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutadditionalPropertiesBoxedBoolean -public record FaketestqueryparamtersPutadditionalPropertiesBoxedBoolean
-implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) +## FaketestqueryparamtersPutQueryParameters9BoxedBoolean +public record FaketestqueryparamtersPutQueryParameters9BoxedBoolean
+implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| FaketestqueryparamtersPutQueryParameters9BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1339,16 +1339,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutadditionalPropertiesBoxedNumber -public record FaketestqueryparamtersPutadditionalPropertiesBoxedNumber
-implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) +## FaketestqueryparamtersPutQueryParameters9BoxedNumber +public record FaketestqueryparamtersPutQueryParameters9BoxedNumber
+implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| FaketestqueryparamtersPutQueryParameters9BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1356,16 +1356,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutadditionalPropertiesBoxedString -public record FaketestqueryparamtersPutadditionalPropertiesBoxedString
-implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) +## FaketestqueryparamtersPutQueryParameters9BoxedString +public record FaketestqueryparamtersPutQueryParameters9BoxedString
+implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| FaketestqueryparamtersPutQueryParameters9BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1373,16 +1373,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutadditionalPropertiesBoxedList -public record FaketestqueryparamtersPutadditionalPropertiesBoxedList
-implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) +## FaketestqueryparamtersPutQueryParameters9BoxedList +public record FaketestqueryparamtersPutQueryParameters9BoxedList
+implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| FaketestqueryparamtersPutQueryParameters9BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1390,16 +1390,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutadditionalPropertiesBoxedMap -public record FaketestqueryparamtersPutadditionalPropertiesBoxedMap
-implements [FaketestqueryparamtersPutadditionalPropertiesBoxed](#faketestqueryparamtersputadditionalpropertiesboxed) +## FaketestqueryparamtersPutQueryParameters9BoxedMap +public record FaketestqueryparamtersPutQueryParameters9BoxedMap
+implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| FaketestqueryparamtersPutQueryParameters9BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1407,8 +1407,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutadditionalProperties -public static class FaketestqueryparamtersPutadditionalProperties
+## FaketestqueryparamtersPutQueryParameters9 +public static class FaketestqueryparamtersPutQueryParameters9
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md index 2ad29d4c2f3..f3dc2dd5eec 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -88,9 +88,9 @@ PetfindbystatusGet.Get apiClient = new PetfindbystatusGet.Get(apiConfiguration, // Map validation -PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters = +PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters = PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( - new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMapBuilder() + new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters8() .status( Arrays.asList( "available" @@ -155,7 +155,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparametersmap) | queryParameters | +| [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparameters9) | queryParameters | | [PetfindbystatusServerInfo.@Nullable ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -168,7 +168,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetfindbystatusGetQueryParameters.@Nullable PetfindbystatusGetQueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparametersmap) | queryParameters | +| [PetfindbystatusGetQueryParameters.@Nullable PetfindbystatusGetQueryParameters9](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparameters9) | queryParameters | | [PetfindbystatusServerInfo.@Nullable ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) | serverIndex | | [PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -204,6 +204,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbystatusGetQueryParametersPetfindbystatusGetQueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparametersmap) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbystatusGetQueryParametersPetfindbystatusGetQueryParameters9](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparameters9) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md index 1162afec791..b9a9eb4f05e 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed)
sealed interface for validated payloads | | record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1](#petfindbystatusgetqueryparameters1)
schema class | -| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMapBuilder](#petfindbystatusgetqueryparametersmapbuilder)
builder for Map payloads | -| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap](#petfindbystatusgetqueryparametersmap)
output class for Map payloads | -| sealed interface | [PetfindbystatusGetQueryParameters.PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetadditionalPropertiesBoxedVoid](#petfindbystatusgetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetadditionalPropertiesBoxedBoolean](#petfindbystatusgetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetadditionalPropertiesBoxedNumber](#petfindbystatusgetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetadditionalPropertiesBoxedString](#petfindbystatusgetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetadditionalPropertiesBoxedList](#petfindbystatusgetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetadditionalPropertiesBoxedMap](#petfindbystatusgetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetadditionalProperties](#petfindbystatusgetadditionalproperties)
schema class | +| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters8](#petfindbystatusgetqueryparameters8)
builder for Map payloads | +| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9](#petfindbystatusgetqueryparameters9)
output class for Map payloads | +| sealed interface | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed)
sealed interface for validated payloads | +| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedVoid](#petfindbystatusgetqueryparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedBoolean](#petfindbystatusgetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedNumber](#petfindbystatusgetqueryparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedString](#petfindbystatusgetqueryparameters4boxedstring)
boxed class to store validated String payloads | +| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedList](#petfindbystatusgetqueryparameters4boxedlist)
boxed class to store validated List payloads | +| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedMap](#petfindbystatusgetqueryparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4](#petfindbystatusgetqueryparameters4)
schema class | ## PetfindbystatusGetQueryParameters1Boxed public sealed interface PetfindbystatusGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParameters1BoxedMap([PetfindbystatusGetQueryParametersMap](#petfindbystatusgetqueryparametersmap) data)
Creates an instance, private visibility | +| PetfindbystatusGetQueryParameters1BoxedMap([PetfindbystatusGetQueryParameters9](#petfindbystatusgetqueryparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusGetQueryParametersMap](#petfindbystatusgetqueryparametersmap) | data()
validated payload | +| [PetfindbystatusGetQueryParameters9](#petfindbystatusgetqueryparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetfindbystatusGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap validatedPayload = +PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 validatedPayload = PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( - new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMapBuilder() + new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters8() .status( Arrays.asList( "available" @@ -91,18 +91,18 @@ PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap validated | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("status", [Schema0.Schema01.class](../../../paths/petfindbystatus/get/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "status"
)
| -| Class | additionalProperties = [PetfindbystatusGetadditionalProperties.class](#petfindbystatusgetadditionalproperties) | +| Class | additionalProperties = [PetfindbystatusGetQueryParameters4.class](#petfindbystatusgetqueryparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusGetQueryParametersMap](#petfindbystatusgetqueryparametersmap) | validate([Map<?, ?>](#petfindbystatusgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#petfindbystatusgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbystatusGetQueryParameters9](#petfindbystatusgetqueryparameters9) | validate([Map<?, ?>](#petfindbystatusgetqueryparameters8) arg, SchemaConfiguration configuration) | +| [PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#petfindbystatusgetqueryparameters8) arg, SchemaConfiguration configuration) | | [PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetfindbystatusGetQueryParametersMap0Builder -public class PetfindbystatusGetQueryParametersMap0Builder
+## PetfindbystatusGetQueryParameters10 +public class PetfindbystatusGetQueryParameters10
builder for `Map>` A class that builds the Map input type @@ -110,15 +110,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParametersMap0Builder(Map> instance)
Creates a builder that contains the passed instance | +| PetfindbystatusGetQueryParameters10(Map> instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map> | build()
Returns map input that should be used with Schema.validate | -## PetfindbystatusGetQueryParametersMapBuilder -public class PetfindbystatusGetQueryParametersMapBuilder
+## PetfindbystatusGetQueryParameters8 +public class PetfindbystatusGetQueryParameters8
builder for `Map>` A class that builds the Map input type @@ -126,15 +126,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| PetfindbystatusGetQueryParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusGetQueryParametersMap0Builder](#petfindbystatusgetqueryparametersmap0builder) | status(List value) | +| [PetfindbystatusGetQueryParameters10](#petfindbystatusgetqueryparameters10) | status(List value) | -## PetfindbystatusGetQueryParametersMap -public static class PetfindbystatusGetQueryParametersMap
+## PetfindbystatusGetQueryParameters9 +public static class PetfindbystatusGetQueryParameters9
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetfindbystatusGetQueryParametersMap](#petfindbystatusgetqueryparametersmap) | of([Map>](#petfindbystatusgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [PetfindbystatusGetQueryParameters9](#petfindbystatusgetqueryparameters9) | of([Map>](#petfindbystatusgetqueryparameters8) arg, SchemaConfiguration configuration) | | [Schema0.SchemaList0](../../../paths/petfindbystatus/get/parameters/parameter0/Schema0.md#schemalist0) | status()
| -## PetfindbystatusGetadditionalPropertiesBoxed -public sealed interface PetfindbystatusGetadditionalPropertiesBoxed
+## PetfindbystatusGetQueryParameters4Boxed +public sealed interface PetfindbystatusGetQueryParameters4Boxed
permits
-[PetfindbystatusGetadditionalPropertiesBoxedVoid](#petfindbystatusgetadditionalpropertiesboxedvoid), -[PetfindbystatusGetadditionalPropertiesBoxedBoolean](#petfindbystatusgetadditionalpropertiesboxedboolean), -[PetfindbystatusGetadditionalPropertiesBoxedNumber](#petfindbystatusgetadditionalpropertiesboxednumber), -[PetfindbystatusGetadditionalPropertiesBoxedString](#petfindbystatusgetadditionalpropertiesboxedstring), -[PetfindbystatusGetadditionalPropertiesBoxedList](#petfindbystatusgetadditionalpropertiesboxedlist), -[PetfindbystatusGetadditionalPropertiesBoxedMap](#petfindbystatusgetadditionalpropertiesboxedmap) +[PetfindbystatusGetQueryParameters4BoxedVoid](#petfindbystatusgetqueryparameters4boxedvoid), +[PetfindbystatusGetQueryParameters4BoxedBoolean](#petfindbystatusgetqueryparameters4boxedboolean), +[PetfindbystatusGetQueryParameters4BoxedNumber](#petfindbystatusgetqueryparameters4boxednumber), +[PetfindbystatusGetQueryParameters4BoxedString](#petfindbystatusgetqueryparameters4boxedstring), +[PetfindbystatusGetQueryParameters4BoxedList](#petfindbystatusgetqueryparameters4boxedlist), +[PetfindbystatusGetQueryParameters4BoxedMap](#petfindbystatusgetqueryparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## PetfindbystatusGetadditionalPropertiesBoxedVoid -public record PetfindbystatusGetadditionalPropertiesBoxedVoid
-implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) +## PetfindbystatusGetQueryParameters4BoxedVoid +public record PetfindbystatusGetQueryParameters4BoxedVoid
+implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| PetfindbystatusGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetadditionalPropertiesBoxedBoolean -public record PetfindbystatusGetadditionalPropertiesBoxedBoolean
-implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) +## PetfindbystatusGetQueryParameters4BoxedBoolean +public record PetfindbystatusGetQueryParameters4BoxedBoolean
+implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| PetfindbystatusGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetadditionalPropertiesBoxedNumber -public record PetfindbystatusGetadditionalPropertiesBoxedNumber
-implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) +## PetfindbystatusGetQueryParameters4BoxedNumber +public record PetfindbystatusGetQueryParameters4BoxedNumber
+implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| PetfindbystatusGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetadditionalPropertiesBoxedString -public record PetfindbystatusGetadditionalPropertiesBoxedString
-implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) +## PetfindbystatusGetQueryParameters4BoxedString +public record PetfindbystatusGetQueryParameters4BoxedString
+implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| PetfindbystatusGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetadditionalPropertiesBoxedList -public record PetfindbystatusGetadditionalPropertiesBoxedList
-implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) +## PetfindbystatusGetQueryParameters4BoxedList +public record PetfindbystatusGetQueryParameters4BoxedList
+implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| PetfindbystatusGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetadditionalPropertiesBoxedMap -public record PetfindbystatusGetadditionalPropertiesBoxedMap
-implements [PetfindbystatusGetadditionalPropertiesBoxed](#petfindbystatusgetadditionalpropertiesboxed) +## PetfindbystatusGetQueryParameters4BoxedMap +public record PetfindbystatusGetQueryParameters4BoxedMap
+implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| PetfindbystatusGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetadditionalProperties -public static class PetfindbystatusGetadditionalProperties
+## PetfindbystatusGetQueryParameters4 +public static class PetfindbystatusGetQueryParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index 918084ba11b..132b5f7039b 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -85,9 +85,9 @@ PetfindbytagsGet.Get apiClient = new PetfindbytagsGet.Get(apiConfiguration, sche // Map validation -PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters = +PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters = PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( - new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMapBuilder() + new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters8() .tags( Arrays.asList( "a" @@ -152,7 +152,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparametersmap) | queryParameters | +| [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparameters9) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -165,7 +165,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetfindbytagsGetQueryParameters.@Nullable PetfindbytagsGetQueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparametersmap) | queryParameters | +| [PetfindbytagsGetQueryParameters.@Nullable PetfindbytagsGetQueryParameters9](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparameters9) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -201,6 +201,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbytagsGetQueryParametersPetfindbytagsGetQueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparametersmap) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbytagsGetQueryParametersPetfindbytagsGetQueryParameters9](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparameters9) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md index efe1cd154c0..09eaa381df9 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed)
sealed interface for validated payloads | | record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1](#petfindbytagsgetqueryparameters1)
schema class | -| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMapBuilder](#petfindbytagsgetqueryparametersmapbuilder)
builder for Map payloads | -| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap](#petfindbytagsgetqueryparametersmap)
output class for Map payloads | -| sealed interface | [PetfindbytagsGetQueryParameters.PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetadditionalPropertiesBoxedVoid](#petfindbytagsgetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetadditionalPropertiesBoxedBoolean](#petfindbytagsgetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetadditionalPropertiesBoxedNumber](#petfindbytagsgetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetadditionalPropertiesBoxedString](#petfindbytagsgetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetadditionalPropertiesBoxedList](#petfindbytagsgetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetadditionalPropertiesBoxedMap](#petfindbytagsgetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetadditionalProperties](#petfindbytagsgetadditionalproperties)
schema class | +| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters8](#petfindbytagsgetqueryparameters8)
builder for Map payloads | +| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9](#petfindbytagsgetqueryparameters9)
output class for Map payloads | +| sealed interface | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed)
sealed interface for validated payloads | +| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedVoid](#petfindbytagsgetqueryparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedBoolean](#petfindbytagsgetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedNumber](#petfindbytagsgetqueryparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedString](#petfindbytagsgetqueryparameters4boxedstring)
boxed class to store validated String payloads | +| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedList](#petfindbytagsgetqueryparameters4boxedlist)
boxed class to store validated List payloads | +| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedMap](#petfindbytagsgetqueryparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4](#petfindbytagsgetqueryparameters4)
schema class | ## PetfindbytagsGetQueryParameters1Boxed public sealed interface PetfindbytagsGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParameters1BoxedMap([PetfindbytagsGetQueryParametersMap](#petfindbytagsgetqueryparametersmap) data)
Creates an instance, private visibility | +| PetfindbytagsGetQueryParameters1BoxedMap([PetfindbytagsGetQueryParameters9](#petfindbytagsgetqueryparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbytagsGetQueryParametersMap](#petfindbytagsgetqueryparametersmap) | data()
validated payload | +| [PetfindbytagsGetQueryParameters9](#petfindbytagsgetqueryparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetfindbytagsGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap validatedPayload = +PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 validatedPayload = PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( - new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMapBuilder() + new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters8() .tags( Arrays.asList( "a" @@ -91,18 +91,18 @@ PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap validatedPayl | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("tags", [Schema0.Schema01.class](../../../paths/petfindbytags/get/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "tags"
)
| -| Class | additionalProperties = [PetfindbytagsGetadditionalProperties.class](#petfindbytagsgetadditionalproperties) | +| Class | additionalProperties = [PetfindbytagsGetQueryParameters4.class](#petfindbytagsgetqueryparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbytagsGetQueryParametersMap](#petfindbytagsgetqueryparametersmap) | validate([Map<?, ?>](#petfindbytagsgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#petfindbytagsgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbytagsGetQueryParameters9](#petfindbytagsgetqueryparameters9) | validate([Map<?, ?>](#petfindbytagsgetqueryparameters8) arg, SchemaConfiguration configuration) | +| [PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#petfindbytagsgetqueryparameters8) arg, SchemaConfiguration configuration) | | [PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetfindbytagsGetQueryParametersMap0Builder -public class PetfindbytagsGetQueryParametersMap0Builder
+## PetfindbytagsGetQueryParameters10 +public class PetfindbytagsGetQueryParameters10
builder for `Map>` A class that builds the Map input type @@ -110,15 +110,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParametersMap0Builder(Map> instance)
Creates a builder that contains the passed instance | +| PetfindbytagsGetQueryParameters10(Map> instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map> | build()
Returns map input that should be used with Schema.validate | -## PetfindbytagsGetQueryParametersMapBuilder -public class PetfindbytagsGetQueryParametersMapBuilder
+## PetfindbytagsGetQueryParameters8 +public class PetfindbytagsGetQueryParameters8
builder for `Map>` A class that builds the Map input type @@ -126,15 +126,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| PetfindbytagsGetQueryParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbytagsGetQueryParametersMap0Builder](#petfindbytagsgetqueryparametersmap0builder) | tags(List value) | +| [PetfindbytagsGetQueryParameters10](#petfindbytagsgetqueryparameters10) | tags(List value) | -## PetfindbytagsGetQueryParametersMap -public static class PetfindbytagsGetQueryParametersMap
+## PetfindbytagsGetQueryParameters9 +public static class PetfindbytagsGetQueryParameters9
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetfindbytagsGetQueryParametersMap](#petfindbytagsgetqueryparametersmap) | of([Map>](#petfindbytagsgetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [PetfindbytagsGetQueryParameters9](#petfindbytagsgetqueryparameters9) | of([Map>](#petfindbytagsgetqueryparameters8) arg, SchemaConfiguration configuration) | | [Schema0.SchemaList0](../../../paths/petfindbytags/get/parameters/parameter0/Schema0.md#schemalist0) | tags()
| -## PetfindbytagsGetadditionalPropertiesBoxed -public sealed interface PetfindbytagsGetadditionalPropertiesBoxed
+## PetfindbytagsGetQueryParameters4Boxed +public sealed interface PetfindbytagsGetQueryParameters4Boxed
permits
-[PetfindbytagsGetadditionalPropertiesBoxedVoid](#petfindbytagsgetadditionalpropertiesboxedvoid), -[PetfindbytagsGetadditionalPropertiesBoxedBoolean](#petfindbytagsgetadditionalpropertiesboxedboolean), -[PetfindbytagsGetadditionalPropertiesBoxedNumber](#petfindbytagsgetadditionalpropertiesboxednumber), -[PetfindbytagsGetadditionalPropertiesBoxedString](#petfindbytagsgetadditionalpropertiesboxedstring), -[PetfindbytagsGetadditionalPropertiesBoxedList](#petfindbytagsgetadditionalpropertiesboxedlist), -[PetfindbytagsGetadditionalPropertiesBoxedMap](#petfindbytagsgetadditionalpropertiesboxedmap) +[PetfindbytagsGetQueryParameters4BoxedVoid](#petfindbytagsgetqueryparameters4boxedvoid), +[PetfindbytagsGetQueryParameters4BoxedBoolean](#petfindbytagsgetqueryparameters4boxedboolean), +[PetfindbytagsGetQueryParameters4BoxedNumber](#petfindbytagsgetqueryparameters4boxednumber), +[PetfindbytagsGetQueryParameters4BoxedString](#petfindbytagsgetqueryparameters4boxedstring), +[PetfindbytagsGetQueryParameters4BoxedList](#petfindbytagsgetqueryparameters4boxedlist), +[PetfindbytagsGetQueryParameters4BoxedMap](#petfindbytagsgetqueryparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## PetfindbytagsGetadditionalPropertiesBoxedVoid -public record PetfindbytagsGetadditionalPropertiesBoxedVoid
-implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) +## PetfindbytagsGetQueryParameters4BoxedVoid +public record PetfindbytagsGetQueryParameters4BoxedVoid
+implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| PetfindbytagsGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetadditionalPropertiesBoxedBoolean -public record PetfindbytagsGetadditionalPropertiesBoxedBoolean
-implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) +## PetfindbytagsGetQueryParameters4BoxedBoolean +public record PetfindbytagsGetQueryParameters4BoxedBoolean
+implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| PetfindbytagsGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetadditionalPropertiesBoxedNumber -public record PetfindbytagsGetadditionalPropertiesBoxedNumber
-implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) +## PetfindbytagsGetQueryParameters4BoxedNumber +public record PetfindbytagsGetQueryParameters4BoxedNumber
+implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| PetfindbytagsGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetadditionalPropertiesBoxedString -public record PetfindbytagsGetadditionalPropertiesBoxedString
-implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) +## PetfindbytagsGetQueryParameters4BoxedString +public record PetfindbytagsGetQueryParameters4BoxedString
+implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| PetfindbytagsGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetadditionalPropertiesBoxedList -public record PetfindbytagsGetadditionalPropertiesBoxedList
-implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) +## PetfindbytagsGetQueryParameters4BoxedList +public record PetfindbytagsGetQueryParameters4BoxedList
+implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| PetfindbytagsGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetadditionalPropertiesBoxedMap -public record PetfindbytagsGetadditionalPropertiesBoxedMap
-implements [PetfindbytagsGetadditionalPropertiesBoxed](#petfindbytagsgetadditionalpropertiesboxed) +## PetfindbytagsGetQueryParameters4BoxedMap +public record PetfindbytagsGetQueryParameters4BoxedMap
+implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| PetfindbytagsGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetadditionalProperties -public static class PetfindbytagsGetadditionalProperties
+## PetfindbytagsGetQueryParameters4 +public static class PetfindbytagsGetQueryParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index 13179767d25..b33d8a4f10d 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -88,9 +88,9 @@ PetpetidDelete.Delete apiClient = new PetpetidDelete.Delete(apiConfiguration, sc // Map validation -PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters = +PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters = PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( - new PetpetidDeletePathParameters.PetpetidDeletePathParametersMapBuilder() + new PetpetidDeletePathParameters.PetpetidDeletePathParameters8() .petId(1L) .build(), @@ -150,8 +150,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidDeletePathParameters.PetpetidDeletePathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparametersmap) | pathParameters | -| [PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparametersmap) | headerParameters
optional | +| [PetpetidDeletePathParameters.PetpetidDeletePathParameters9](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparameters9) | pathParameters | +| [PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParameters9](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparameters9) | headerParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -164,8 +164,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidDeletePathParameters.@Nullable PetpetidDeletePathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparametersmap) | pathParameters | -| [PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparametersmap) | headerParameters | +| [PetpetidDeletePathParameters.@Nullable PetpetidDeletePathParameters9](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparameters9) | pathParameters | +| [PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParameters9](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparameters9) | headerParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -184,7 +184,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([PetpetidDeleteHeaderParametersPetpetidDeleteHeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparametersmap) headerParameters)
sets the optional property | +| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([PetpetidDeleteHeaderParametersPetpetidDeleteHeaderParameters9](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparameters9) headerParameters)
sets the optional property | | [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | securityIndex([PetpetidDeleteSecurityInfo.SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -202,6 +202,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PetpetidDeletePathParametersPetpetidDeletePathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparametersmap) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PetpetidDeletePathParametersPetpetidDeletePathParameters9](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md index 2776b7cc1c5..4c1b6646cca 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -88,9 +88,9 @@ PetpetidGet.Get apiClient = new PetpetidGet.Get(apiConfiguration, schemaConfigur // Map validation -PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters = +PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters = PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( - new PetpetidGetPathParameters.PetpetidGetPathParametersMapBuilder() + new PetpetidGetPathParameters.PetpetidGetPathParameters8() .petId(1L) .build(), @@ -157,7 +157,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidGetPathParameters.PetpetidGetPathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparametersmap) | pathParameters | +| [PetpetidGetPathParameters.PetpetidGetPathParameters9](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -170,7 +170,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidGetPathParameters.@Nullable PetpetidGetPathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparametersmap) | pathParameters | +| [PetpetidGetPathParameters.@Nullable PetpetidGetPathParameters9](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -206,6 +206,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PetpetidGetPathParametersPetpetidGetPathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparametersmap) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PetpetidGetPathParametersPetpetidGetPathParameters9](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index 3ca2ac17a45..ff142173a3b 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -88,9 +88,9 @@ PetpetidPost.Post apiClient = new PetpetidPost.Post(apiConfiguration, schemaConf // Map validation -PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters = +PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters = PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( - new PetpetidPostPathParameters.PetpetidPostPathParametersMapBuilder() + new PetpetidPostPathParameters.PetpetidPostPathParameters8() .petId(1L) .build(), @@ -150,7 +150,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidPostPathParameters.PetpetidPostPathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparametersmap) | pathParameters | +| [PetpetidPostPathParameters.PetpetidPostPathParameters9](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparameters9) | pathParameters | | [PetpetidPostRequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) | requestBody
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | @@ -164,7 +164,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidPostPathParameters.@Nullable PetpetidPostPathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparametersmap) | pathParameters | +| [PetpetidPostPathParameters.@Nullable PetpetidPostPathParameters9](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparameters9) | pathParameters | | [PetpetidPostRequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) | requestBody | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex | @@ -202,6 +202,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetidPostPathParametersPetpetidPostPathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparametersmap) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetidPostPathParametersPetpetidPostPathParameters9](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md index c0851ac1cee..02ee6e172be 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed)
sealed interface for validated payloads | | record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1](#petpetiddeleteheaderparameters1)
schema class | -| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParametersMapBuilder](#petpetiddeleteheaderparametersmapbuilder)
builder for Map payloads | -| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParametersMap](#petpetiddeleteheaderparametersmap)
output class for Map payloads | -| sealed interface | [PetpetidDeleteHeaderParameters.PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteadditionalPropertiesBoxedVoid](#petpetiddeleteadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteadditionalPropertiesBoxedBoolean](#petpetiddeleteadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteadditionalPropertiesBoxedNumber](#petpetiddeleteadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteadditionalPropertiesBoxedString](#petpetiddeleteadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteadditionalPropertiesBoxedList](#petpetiddeleteadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteadditionalPropertiesBoxedMap](#petpetiddeleteadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteadditionalProperties](#petpetiddeleteadditionalproperties)
schema class | +| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters8](#petpetiddeleteheaderparameters8)
builder for Map payloads | +| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters9](#petpetiddeleteheaderparameters9)
output class for Map payloads | +| sealed interface | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed)
sealed interface for validated payloads | +| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedVoid](#petpetiddeleteheaderparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedBoolean](#petpetiddeleteheaderparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedNumber](#petpetiddeleteheaderparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedString](#petpetiddeleteheaderparameters4boxedstring)
boxed class to store validated String payloads | +| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedList](#petpetiddeleteheaderparameters4boxedlist)
boxed class to store validated List payloads | +| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedMap](#petpetiddeleteheaderparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4](#petpetiddeleteheaderparameters4)
schema class | ## PetpetidDeleteHeaderParameters1Boxed public sealed interface PetpetidDeleteHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteHeaderParameters1BoxedMap([PetpetidDeleteHeaderParametersMap](#petpetiddeleteheaderparametersmap) data)
Creates an instance, private visibility | +| PetpetidDeleteHeaderParameters1BoxedMap([PetpetidDeleteHeaderParameters9](#petpetiddeleteheaderparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeleteHeaderParametersMap](#petpetiddeleteheaderparametersmap) | data()
validated payload | +| [PetpetidDeleteHeaderParameters9](#petpetiddeleteheaderparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetpetidDeleteHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParametersMap validatedPayload = +PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters9 validatedPayload = PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1.validate( - new PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParametersMapBuilder() + new PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters8() .api_key("a") .build(), @@ -87,18 +87,18 @@ PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParametersMap validatedPayloa | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("api_key", [Schema0.Schema01.class](../../../paths/petpetid/delete/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [PetpetidDeleteadditionalProperties.class](#petpetiddeleteadditionalproperties) | +| Class | additionalProperties = [PetpetidDeleteHeaderParameters4.class](#petpetiddeleteheaderparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeleteHeaderParametersMap](#petpetiddeleteheaderparametersmap) | validate([Map<?, ?>](#petpetiddeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiddeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeleteHeaderParameters9](#petpetiddeleteheaderparameters9) | validate([Map<?, ?>](#petpetiddeleteheaderparameters8) arg, SchemaConfiguration configuration) | +| [PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiddeleteheaderparameters8) arg, SchemaConfiguration configuration) | | [PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetpetidDeleteHeaderParametersMapBuilder -public class PetpetidDeleteHeaderParametersMapBuilder
+## PetpetidDeleteHeaderParameters8 +public class PetpetidDeleteHeaderParameters8
builder for `Map` A class that builds the Map input type @@ -106,16 +106,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteHeaderParametersMapBuilder()
Creates a builder that contains an empty map | +| PetpetidDeleteHeaderParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [PetpetidDeleteHeaderParametersMapBuilder](#petpetiddeleteheaderparametersmapbuilder) | api_key(String value) | +| [PetpetidDeleteHeaderParameters8](#petpetiddeleteheaderparameters8) | api_key(String value) | -## PetpetidDeleteHeaderParametersMap -public static class PetpetidDeleteHeaderParametersMap
+## PetpetidDeleteHeaderParameters9 +public static class PetpetidDeleteHeaderParameters9
extends FrozenMap A class to store validated Map payloads @@ -123,31 +123,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetpetidDeleteHeaderParametersMap](#petpetiddeleteheaderparametersmap) | of([Map](#petpetiddeleteheaderparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [PetpetidDeleteHeaderParameters9](#petpetiddeleteheaderparameters9) | of([Map](#petpetiddeleteheaderparameters8) arg, SchemaConfiguration configuration) | | String | api_key()
[optional] | -## PetpetidDeleteadditionalPropertiesBoxed -public sealed interface PetpetidDeleteadditionalPropertiesBoxed
+## PetpetidDeleteHeaderParameters4Boxed +public sealed interface PetpetidDeleteHeaderParameters4Boxed
permits
-[PetpetidDeleteadditionalPropertiesBoxedVoid](#petpetiddeleteadditionalpropertiesboxedvoid), -[PetpetidDeleteadditionalPropertiesBoxedBoolean](#petpetiddeleteadditionalpropertiesboxedboolean), -[PetpetidDeleteadditionalPropertiesBoxedNumber](#petpetiddeleteadditionalpropertiesboxednumber), -[PetpetidDeleteadditionalPropertiesBoxedString](#petpetiddeleteadditionalpropertiesboxedstring), -[PetpetidDeleteadditionalPropertiesBoxedList](#petpetiddeleteadditionalpropertiesboxedlist), -[PetpetidDeleteadditionalPropertiesBoxedMap](#petpetiddeleteadditionalpropertiesboxedmap) +[PetpetidDeleteHeaderParameters4BoxedVoid](#petpetiddeleteheaderparameters4boxedvoid), +[PetpetidDeleteHeaderParameters4BoxedBoolean](#petpetiddeleteheaderparameters4boxedboolean), +[PetpetidDeleteHeaderParameters4BoxedNumber](#petpetiddeleteheaderparameters4boxednumber), +[PetpetidDeleteHeaderParameters4BoxedString](#petpetiddeleteheaderparameters4boxedstring), +[PetpetidDeleteHeaderParameters4BoxedList](#petpetiddeleteheaderparameters4boxedlist), +[PetpetidDeleteHeaderParameters4BoxedMap](#petpetiddeleteheaderparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## PetpetidDeleteadditionalPropertiesBoxedVoid -public record PetpetidDeleteadditionalPropertiesBoxedVoid
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeleteHeaderParameters4BoxedVoid +public record PetpetidDeleteHeaderParameters4BoxedVoid
+implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| PetpetidDeleteHeaderParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -155,16 +155,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalPropertiesBoxedBoolean -public record PetpetidDeleteadditionalPropertiesBoxedBoolean
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeleteHeaderParameters4BoxedBoolean +public record PetpetidDeleteHeaderParameters4BoxedBoolean
+implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| PetpetidDeleteHeaderParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalPropertiesBoxedNumber -public record PetpetidDeleteadditionalPropertiesBoxedNumber
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeleteHeaderParameters4BoxedNumber +public record PetpetidDeleteHeaderParameters4BoxedNumber
+implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| PetpetidDeleteHeaderParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalPropertiesBoxedString -public record PetpetidDeleteadditionalPropertiesBoxedString
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeleteHeaderParameters4BoxedString +public record PetpetidDeleteHeaderParameters4BoxedString
+implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| PetpetidDeleteHeaderParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalPropertiesBoxedList -public record PetpetidDeleteadditionalPropertiesBoxedList
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeleteHeaderParameters4BoxedList +public record PetpetidDeleteHeaderParameters4BoxedList
+implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| PetpetidDeleteHeaderParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalPropertiesBoxedMap -public record PetpetidDeleteadditionalPropertiesBoxedMap
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeleteHeaderParameters4BoxedMap +public record PetpetidDeleteHeaderParameters4BoxedMap
+implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| PetpetidDeleteHeaderParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,8 +240,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalProperties -public static class PetpetidDeleteadditionalProperties
+## PetpetidDeleteHeaderParameters4 +public static class PetpetidDeleteHeaderParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md index 27a84ab6be8..aabac742c05 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed)
sealed interface for validated payloads | | record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1](#petpetiddeletepathparameters1)
schema class | -| static class | [PetpetidDeletePathParameters.PetpetidDeletePathParametersMapBuilder](#petpetiddeletepathparametersmapbuilder)
builder for Map payloads | -| static class | [PetpetidDeletePathParameters.PetpetidDeletePathParametersMap](#petpetiddeletepathparametersmap)
output class for Map payloads | -| sealed interface | [PetpetidDeletePathParameters.PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeleteadditionalPropertiesBoxedVoid](#petpetiddeleteadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeleteadditionalPropertiesBoxedBoolean](#petpetiddeleteadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeleteadditionalPropertiesBoxedNumber](#petpetiddeleteadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeleteadditionalPropertiesBoxedString](#petpetiddeleteadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeleteadditionalPropertiesBoxedList](#petpetiddeleteadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeleteadditionalPropertiesBoxedMap](#petpetiddeleteadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidDeletePathParameters.PetpetidDeleteadditionalProperties](#petpetiddeleteadditionalproperties)
schema class | +| static class | [PetpetidDeletePathParameters.PetpetidDeletePathParameters8](#petpetiddeletepathparameters8)
builder for Map payloads | +| static class | [PetpetidDeletePathParameters.PetpetidDeletePathParameters9](#petpetiddeletepathparameters9)
output class for Map payloads | +| sealed interface | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed)
sealed interface for validated payloads | +| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedVoid](#petpetiddeletepathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedBoolean](#petpetiddeletepathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedNumber](#petpetiddeletepathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedString](#petpetiddeletepathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedList](#petpetiddeletepathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedMap](#petpetiddeletepathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4](#petpetiddeletepathparameters4)
schema class | ## PetpetidDeletePathParameters1Boxed public sealed interface PetpetidDeletePathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParameters1BoxedMap([PetpetidDeletePathParametersMap](#petpetiddeletepathparametersmap) data)
Creates an instance, private visibility | +| PetpetidDeletePathParameters1BoxedMap([PetpetidDeletePathParameters9](#petpetiddeletepathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeletePathParametersMap](#petpetiddeletepathparametersmap) | data()
validated payload | +| [PetpetidDeletePathParameters9](#petpetiddeletepathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetpetidDeletePathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetpetidDeletePathParameters.PetpetidDeletePathParametersMap validatedPayload = +PetpetidDeletePathParameters.PetpetidDeletePathParameters9 validatedPayload = PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( - new PetpetidDeletePathParameters.PetpetidDeletePathParametersMapBuilder() + new PetpetidDeletePathParameters.PetpetidDeletePathParameters8() .petId(1L) .build(), @@ -88,18 +88,18 @@ PetpetidDeletePathParameters.PetpetidDeletePathParametersMap validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema1.Schema11.class](../../../paths/petpetid/delete/parameters/parameter1/Schema1.md#schema11))
)
| | Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [PetpetidDeleteadditionalProperties.class](#petpetiddeleteadditionalproperties) | +| Class | additionalProperties = [PetpetidDeletePathParameters4.class](#petpetiddeletepathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeletePathParametersMap](#petpetiddeletepathparametersmap) | validate([Map<?, ?>](#petpetiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeletePathParameters9](#petpetiddeletepathparameters9) | validate([Map<?, ?>](#petpetiddeletepathparameters8) arg, SchemaConfiguration configuration) | +| [PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiddeletepathparameters8) arg, SchemaConfiguration configuration) | | [PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetpetidDeletePathParametersMap0Builder -public class PetpetidDeletePathParametersMap0Builder
+## PetpetidDeletePathParameters10 +public class PetpetidDeletePathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| PetpetidDeletePathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## PetpetidDeletePathParametersMapBuilder -public class PetpetidDeletePathParametersMapBuilder
+## PetpetidDeletePathParameters8 +public class PetpetidDeletePathParameters8
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParametersMapBuilder()
Creates a builder that contains an empty map | +| PetpetidDeletePathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeletePathParametersMap0Builder](#petpetiddeletepathparametersmap0builder) | petId(int value) | -| [PetpetidDeletePathParametersMap0Builder](#petpetiddeletepathparametersmap0builder) | petId(float value) | -| [PetpetidDeletePathParametersMap0Builder](#petpetiddeletepathparametersmap0builder) | petId(long value) | -| [PetpetidDeletePathParametersMap0Builder](#petpetiddeletepathparametersmap0builder) | petId(double value) | +| [PetpetidDeletePathParameters10](#petpetiddeletepathparameters10) | petId(int value) | +| [PetpetidDeletePathParameters10](#petpetiddeletepathparameters10) | petId(float value) | +| [PetpetidDeletePathParameters10](#petpetiddeletepathparameters10) | petId(long value) | +| [PetpetidDeletePathParameters10](#petpetiddeletepathparameters10) | petId(double value) | -## PetpetidDeletePathParametersMap -public static class PetpetidDeletePathParametersMap
+## PetpetidDeletePathParameters9 +public static class PetpetidDeletePathParameters9
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetpetidDeletePathParametersMap](#petpetiddeletepathparametersmap) | of([Map](#petpetiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [PetpetidDeletePathParameters9](#petpetiddeletepathparameters9) | of([Map](#petpetiddeletepathparameters8) arg, SchemaConfiguration configuration) | | Number | petId()
| -## PetpetidDeleteadditionalPropertiesBoxed -public sealed interface PetpetidDeleteadditionalPropertiesBoxed
+## PetpetidDeletePathParameters4Boxed +public sealed interface PetpetidDeletePathParameters4Boxed
permits
-[PetpetidDeleteadditionalPropertiesBoxedVoid](#petpetiddeleteadditionalpropertiesboxedvoid), -[PetpetidDeleteadditionalPropertiesBoxedBoolean](#petpetiddeleteadditionalpropertiesboxedboolean), -[PetpetidDeleteadditionalPropertiesBoxedNumber](#petpetiddeleteadditionalpropertiesboxednumber), -[PetpetidDeleteadditionalPropertiesBoxedString](#petpetiddeleteadditionalpropertiesboxedstring), -[PetpetidDeleteadditionalPropertiesBoxedList](#petpetiddeleteadditionalpropertiesboxedlist), -[PetpetidDeleteadditionalPropertiesBoxedMap](#petpetiddeleteadditionalpropertiesboxedmap) +[PetpetidDeletePathParameters4BoxedVoid](#petpetiddeletepathparameters4boxedvoid), +[PetpetidDeletePathParameters4BoxedBoolean](#petpetiddeletepathparameters4boxedboolean), +[PetpetidDeletePathParameters4BoxedNumber](#petpetiddeletepathparameters4boxednumber), +[PetpetidDeletePathParameters4BoxedString](#petpetiddeletepathparameters4boxedstring), +[PetpetidDeletePathParameters4BoxedList](#petpetiddeletepathparameters4boxedlist), +[PetpetidDeletePathParameters4BoxedMap](#petpetiddeletepathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## PetpetidDeleteadditionalPropertiesBoxedVoid -public record PetpetidDeleteadditionalPropertiesBoxedVoid
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeletePathParameters4BoxedVoid +public record PetpetidDeletePathParameters4BoxedVoid
+implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| PetpetidDeletePathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalPropertiesBoxedBoolean -public record PetpetidDeleteadditionalPropertiesBoxedBoolean
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeletePathParameters4BoxedBoolean +public record PetpetidDeletePathParameters4BoxedBoolean
+implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| PetpetidDeletePathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalPropertiesBoxedNumber -public record PetpetidDeleteadditionalPropertiesBoxedNumber
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeletePathParameters4BoxedNumber +public record PetpetidDeletePathParameters4BoxedNumber
+implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| PetpetidDeletePathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalPropertiesBoxedString -public record PetpetidDeleteadditionalPropertiesBoxedString
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeletePathParameters4BoxedString +public record PetpetidDeletePathParameters4BoxedString
+implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| PetpetidDeletePathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalPropertiesBoxedList -public record PetpetidDeleteadditionalPropertiesBoxedList
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeletePathParameters4BoxedList +public record PetpetidDeletePathParameters4BoxedList
+implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| PetpetidDeletePathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalPropertiesBoxedMap -public record PetpetidDeleteadditionalPropertiesBoxedMap
-implements [PetpetidDeleteadditionalPropertiesBoxed](#petpetiddeleteadditionalpropertiesboxed) +## PetpetidDeletePathParameters4BoxedMap +public record PetpetidDeletePathParameters4BoxedMap
+implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| PetpetidDeletePathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteadditionalProperties -public static class PetpetidDeleteadditionalProperties
+## PetpetidDeletePathParameters4 +public static class PetpetidDeletePathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md index 2ebb0a90120..7b4e92886fe 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetpetidGetPathParameters.PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed)
sealed interface for validated payloads | | record | [PetpetidGetPathParameters.PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetpetidGetPathParameters.PetpetidGetPathParameters1](#petpetidgetpathparameters1)
schema class | -| static class | [PetpetidGetPathParameters.PetpetidGetPathParametersMapBuilder](#petpetidgetpathparametersmapbuilder)
builder for Map payloads | -| static class | [PetpetidGetPathParameters.PetpetidGetPathParametersMap](#petpetidgetpathparametersmap)
output class for Map payloads | -| sealed interface | [PetpetidGetPathParameters.PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetpetidGetPathParameters.PetpetidGetadditionalPropertiesBoxedVoid](#petpetidgetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidGetPathParameters.PetpetidGetadditionalPropertiesBoxedBoolean](#petpetidgetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidGetPathParameters.PetpetidGetadditionalPropertiesBoxedNumber](#petpetidgetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidGetPathParameters.PetpetidGetadditionalPropertiesBoxedString](#petpetidgetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetpetidGetPathParameters.PetpetidGetadditionalPropertiesBoxedList](#petpetidgetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetpetidGetPathParameters.PetpetidGetadditionalPropertiesBoxedMap](#petpetidgetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidGetPathParameters.PetpetidGetadditionalProperties](#petpetidgetadditionalproperties)
schema class | +| static class | [PetpetidGetPathParameters.PetpetidGetPathParameters8](#petpetidgetpathparameters8)
builder for Map payloads | +| static class | [PetpetidGetPathParameters.PetpetidGetPathParameters9](#petpetidgetpathparameters9)
output class for Map payloads | +| sealed interface | [PetpetidGetPathParameters.PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed)
sealed interface for validated payloads | +| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedVoid](#petpetidgetpathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedBoolean](#petpetidgetpathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedNumber](#petpetidgetpathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedString](#petpetidgetpathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedList](#petpetidgetpathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedMap](#petpetidgetpathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidGetPathParameters.PetpetidGetPathParameters4](#petpetidgetpathparameters4)
schema class | ## PetpetidGetPathParameters1Boxed public sealed interface PetpetidGetPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParameters1BoxedMap([PetpetidGetPathParametersMap](#petpetidgetpathparametersmap) data)
Creates an instance, private visibility | +| PetpetidGetPathParameters1BoxedMap([PetpetidGetPathParameters9](#petpetidgetpathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidGetPathParametersMap](#petpetidgetpathparametersmap) | data()
validated payload | +| [PetpetidGetPathParameters9](#petpetidgetpathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetpetidGetPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetpetidGetPathParameters.PetpetidGetPathParametersMap validatedPayload = +PetpetidGetPathParameters.PetpetidGetPathParameters9 validatedPayload = PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( - new PetpetidGetPathParameters.PetpetidGetPathParametersMapBuilder() + new PetpetidGetPathParameters.PetpetidGetPathParameters8() .petId(1L) .build(), @@ -88,18 +88,18 @@ PetpetidGetPathParameters.PetpetidGetPathParametersMap validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetid/get/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [PetpetidGetadditionalProperties.class](#petpetidgetadditionalproperties) | +| Class | additionalProperties = [PetpetidGetPathParameters4.class](#petpetidgetpathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidGetPathParametersMap](#petpetidgetpathparametersmap) | validate([Map<?, ?>](#petpetidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidGetPathParameters9](#petpetidgetpathparameters9) | validate([Map<?, ?>](#petpetidgetpathparameters8) arg, SchemaConfiguration configuration) | +| [PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetidgetpathparameters8) arg, SchemaConfiguration configuration) | | [PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetpetidGetPathParametersMap0Builder -public class PetpetidGetPathParametersMap0Builder
+## PetpetidGetPathParameters10 +public class PetpetidGetPathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| PetpetidGetPathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## PetpetidGetPathParametersMapBuilder -public class PetpetidGetPathParametersMapBuilder
+## PetpetidGetPathParameters8 +public class PetpetidGetPathParameters8
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParametersMapBuilder()
Creates a builder that contains an empty map | +| PetpetidGetPathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidGetPathParametersMap0Builder](#petpetidgetpathparametersmap0builder) | petId(int value) | -| [PetpetidGetPathParametersMap0Builder](#petpetidgetpathparametersmap0builder) | petId(float value) | -| [PetpetidGetPathParametersMap0Builder](#petpetidgetpathparametersmap0builder) | petId(long value) | -| [PetpetidGetPathParametersMap0Builder](#petpetidgetpathparametersmap0builder) | petId(double value) | +| [PetpetidGetPathParameters10](#petpetidgetpathparameters10) | petId(int value) | +| [PetpetidGetPathParameters10](#petpetidgetpathparameters10) | petId(float value) | +| [PetpetidGetPathParameters10](#petpetidgetpathparameters10) | petId(long value) | +| [PetpetidGetPathParameters10](#petpetidgetpathparameters10) | petId(double value) | -## PetpetidGetPathParametersMap -public static class PetpetidGetPathParametersMap
+## PetpetidGetPathParameters9 +public static class PetpetidGetPathParameters9
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetpetidGetPathParametersMap](#petpetidgetpathparametersmap) | of([Map](#petpetidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [PetpetidGetPathParameters9](#petpetidgetpathparameters9) | of([Map](#petpetidgetpathparameters8) arg, SchemaConfiguration configuration) | | Number | petId()
| -## PetpetidGetadditionalPropertiesBoxed -public sealed interface PetpetidGetadditionalPropertiesBoxed
+## PetpetidGetPathParameters4Boxed +public sealed interface PetpetidGetPathParameters4Boxed
permits
-[PetpetidGetadditionalPropertiesBoxedVoid](#petpetidgetadditionalpropertiesboxedvoid), -[PetpetidGetadditionalPropertiesBoxedBoolean](#petpetidgetadditionalpropertiesboxedboolean), -[PetpetidGetadditionalPropertiesBoxedNumber](#petpetidgetadditionalpropertiesboxednumber), -[PetpetidGetadditionalPropertiesBoxedString](#petpetidgetadditionalpropertiesboxedstring), -[PetpetidGetadditionalPropertiesBoxedList](#petpetidgetadditionalpropertiesboxedlist), -[PetpetidGetadditionalPropertiesBoxedMap](#petpetidgetadditionalpropertiesboxedmap) +[PetpetidGetPathParameters4BoxedVoid](#petpetidgetpathparameters4boxedvoid), +[PetpetidGetPathParameters4BoxedBoolean](#petpetidgetpathparameters4boxedboolean), +[PetpetidGetPathParameters4BoxedNumber](#petpetidgetpathparameters4boxednumber), +[PetpetidGetPathParameters4BoxedString](#petpetidgetpathparameters4boxedstring), +[PetpetidGetPathParameters4BoxedList](#petpetidgetpathparameters4boxedlist), +[PetpetidGetPathParameters4BoxedMap](#petpetidgetpathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## PetpetidGetadditionalPropertiesBoxedVoid -public record PetpetidGetadditionalPropertiesBoxedVoid
-implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) +## PetpetidGetPathParameters4BoxedVoid +public record PetpetidGetPathParameters4BoxedVoid
+implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| PetpetidGetPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetadditionalPropertiesBoxedBoolean -public record PetpetidGetadditionalPropertiesBoxedBoolean
-implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) +## PetpetidGetPathParameters4BoxedBoolean +public record PetpetidGetPathParameters4BoxedBoolean
+implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| PetpetidGetPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetadditionalPropertiesBoxedNumber -public record PetpetidGetadditionalPropertiesBoxedNumber
-implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) +## PetpetidGetPathParameters4BoxedNumber +public record PetpetidGetPathParameters4BoxedNumber
+implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| PetpetidGetPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetadditionalPropertiesBoxedString -public record PetpetidGetadditionalPropertiesBoxedString
-implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) +## PetpetidGetPathParameters4BoxedString +public record PetpetidGetPathParameters4BoxedString
+implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| PetpetidGetPathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetadditionalPropertiesBoxedList -public record PetpetidGetadditionalPropertiesBoxedList
-implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) +## PetpetidGetPathParameters4BoxedList +public record PetpetidGetPathParameters4BoxedList
+implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| PetpetidGetPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetadditionalPropertiesBoxedMap -public record PetpetidGetadditionalPropertiesBoxedMap
-implements [PetpetidGetadditionalPropertiesBoxed](#petpetidgetadditionalpropertiesboxed) +## PetpetidGetPathParameters4BoxedMap +public record PetpetidGetPathParameters4BoxedMap
+implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| PetpetidGetPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetadditionalProperties -public static class PetpetidGetadditionalProperties
+## PetpetidGetPathParameters4 +public static class PetpetidGetPathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md index 91e891fb65d..9850d83fa54 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetpetidPostPathParameters.PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed)
sealed interface for validated payloads | | record | [PetpetidPostPathParameters.PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetpetidPostPathParameters.PetpetidPostPathParameters1](#petpetidpostpathparameters1)
schema class | -| static class | [PetpetidPostPathParameters.PetpetidPostPathParametersMapBuilder](#petpetidpostpathparametersmapbuilder)
builder for Map payloads | -| static class | [PetpetidPostPathParameters.PetpetidPostPathParametersMap](#petpetidpostpathparametersmap)
output class for Map payloads | -| sealed interface | [PetpetidPostPathParameters.PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetpetidPostPathParameters.PetpetidPostadditionalPropertiesBoxedVoid](#petpetidpostadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidPostPathParameters.PetpetidPostadditionalPropertiesBoxedBoolean](#petpetidpostadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidPostPathParameters.PetpetidPostadditionalPropertiesBoxedNumber](#petpetidpostadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidPostPathParameters.PetpetidPostadditionalPropertiesBoxedString](#petpetidpostadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetpetidPostPathParameters.PetpetidPostadditionalPropertiesBoxedList](#petpetidpostadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetpetidPostPathParameters.PetpetidPostadditionalPropertiesBoxedMap](#petpetidpostadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidPostPathParameters.PetpetidPostadditionalProperties](#petpetidpostadditionalproperties)
schema class | +| static class | [PetpetidPostPathParameters.PetpetidPostPathParameters8](#petpetidpostpathparameters8)
builder for Map payloads | +| static class | [PetpetidPostPathParameters.PetpetidPostPathParameters9](#petpetidpostpathparameters9)
output class for Map payloads | +| sealed interface | [PetpetidPostPathParameters.PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed)
sealed interface for validated payloads | +| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedVoid](#petpetidpostpathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedBoolean](#petpetidpostpathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedNumber](#petpetidpostpathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedString](#petpetidpostpathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedList](#petpetidpostpathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedMap](#petpetidpostpathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidPostPathParameters.PetpetidPostPathParameters4](#petpetidpostpathparameters4)
schema class | ## PetpetidPostPathParameters1Boxed public sealed interface PetpetidPostPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParameters1BoxedMap([PetpetidPostPathParametersMap](#petpetidpostpathparametersmap) data)
Creates an instance, private visibility | +| PetpetidPostPathParameters1BoxedMap([PetpetidPostPathParameters9](#petpetidpostpathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidPostPathParametersMap](#petpetidpostpathparametersmap) | data()
validated payload | +| [PetpetidPostPathParameters9](#petpetidpostpathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetpetidPostPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetpetidPostPathParameters.PetpetidPostPathParametersMap validatedPayload = +PetpetidPostPathParameters.PetpetidPostPathParameters9 validatedPayload = PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( - new PetpetidPostPathParameters.PetpetidPostPathParametersMapBuilder() + new PetpetidPostPathParameters.PetpetidPostPathParameters8() .petId(1L) .build(), @@ -88,18 +88,18 @@ PetpetidPostPathParameters.PetpetidPostPathParametersMap validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetid/post/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [PetpetidPostadditionalProperties.class](#petpetidpostadditionalproperties) | +| Class | additionalProperties = [PetpetidPostPathParameters4.class](#petpetidpostpathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidPostPathParametersMap](#petpetidpostpathparametersmap) | validate([Map<?, ?>](#petpetidpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetidpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidPostPathParameters9](#petpetidpostpathparameters9) | validate([Map<?, ?>](#petpetidpostpathparameters8) arg, SchemaConfiguration configuration) | +| [PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetidpostpathparameters8) arg, SchemaConfiguration configuration) | | [PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetpetidPostPathParametersMap0Builder -public class PetpetidPostPathParametersMap0Builder
+## PetpetidPostPathParameters10 +public class PetpetidPostPathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| PetpetidPostPathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## PetpetidPostPathParametersMapBuilder -public class PetpetidPostPathParametersMapBuilder
+## PetpetidPostPathParameters8 +public class PetpetidPostPathParameters8
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParametersMapBuilder()
Creates a builder that contains an empty map | +| PetpetidPostPathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidPostPathParametersMap0Builder](#petpetidpostpathparametersmap0builder) | petId(int value) | -| [PetpetidPostPathParametersMap0Builder](#petpetidpostpathparametersmap0builder) | petId(float value) | -| [PetpetidPostPathParametersMap0Builder](#petpetidpostpathparametersmap0builder) | petId(long value) | -| [PetpetidPostPathParametersMap0Builder](#petpetidpostpathparametersmap0builder) | petId(double value) | +| [PetpetidPostPathParameters10](#petpetidpostpathparameters10) | petId(int value) | +| [PetpetidPostPathParameters10](#petpetidpostpathparameters10) | petId(float value) | +| [PetpetidPostPathParameters10](#petpetidpostpathparameters10) | petId(long value) | +| [PetpetidPostPathParameters10](#petpetidpostpathparameters10) | petId(double value) | -## PetpetidPostPathParametersMap -public static class PetpetidPostPathParametersMap
+## PetpetidPostPathParameters9 +public static class PetpetidPostPathParameters9
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetpetidPostPathParametersMap](#petpetidpostpathparametersmap) | of([Map](#petpetidpostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [PetpetidPostPathParameters9](#petpetidpostpathparameters9) | of([Map](#petpetidpostpathparameters8) arg, SchemaConfiguration configuration) | | Number | petId()
| -## PetpetidPostadditionalPropertiesBoxed -public sealed interface PetpetidPostadditionalPropertiesBoxed
+## PetpetidPostPathParameters4Boxed +public sealed interface PetpetidPostPathParameters4Boxed
permits
-[PetpetidPostadditionalPropertiesBoxedVoid](#petpetidpostadditionalpropertiesboxedvoid), -[PetpetidPostadditionalPropertiesBoxedBoolean](#petpetidpostadditionalpropertiesboxedboolean), -[PetpetidPostadditionalPropertiesBoxedNumber](#petpetidpostadditionalpropertiesboxednumber), -[PetpetidPostadditionalPropertiesBoxedString](#petpetidpostadditionalpropertiesboxedstring), -[PetpetidPostadditionalPropertiesBoxedList](#petpetidpostadditionalpropertiesboxedlist), -[PetpetidPostadditionalPropertiesBoxedMap](#petpetidpostadditionalpropertiesboxedmap) +[PetpetidPostPathParameters4BoxedVoid](#petpetidpostpathparameters4boxedvoid), +[PetpetidPostPathParameters4BoxedBoolean](#petpetidpostpathparameters4boxedboolean), +[PetpetidPostPathParameters4BoxedNumber](#petpetidpostpathparameters4boxednumber), +[PetpetidPostPathParameters4BoxedString](#petpetidpostpathparameters4boxedstring), +[PetpetidPostPathParameters4BoxedList](#petpetidpostpathparameters4boxedlist), +[PetpetidPostPathParameters4BoxedMap](#petpetidpostpathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## PetpetidPostadditionalPropertiesBoxedVoid -public record PetpetidPostadditionalPropertiesBoxedVoid
-implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) +## PetpetidPostPathParameters4BoxedVoid +public record PetpetidPostPathParameters4BoxedVoid
+implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| PetpetidPostPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostadditionalPropertiesBoxedBoolean -public record PetpetidPostadditionalPropertiesBoxedBoolean
-implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) +## PetpetidPostPathParameters4BoxedBoolean +public record PetpetidPostPathParameters4BoxedBoolean
+implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| PetpetidPostPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostadditionalPropertiesBoxedNumber -public record PetpetidPostadditionalPropertiesBoxedNumber
-implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) +## PetpetidPostPathParameters4BoxedNumber +public record PetpetidPostPathParameters4BoxedNumber
+implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| PetpetidPostPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostadditionalPropertiesBoxedString -public record PetpetidPostadditionalPropertiesBoxedString
-implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) +## PetpetidPostPathParameters4BoxedString +public record PetpetidPostPathParameters4BoxedString
+implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| PetpetidPostPathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostadditionalPropertiesBoxedList -public record PetpetidPostadditionalPropertiesBoxedList
-implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) +## PetpetidPostPathParameters4BoxedList +public record PetpetidPostPathParameters4BoxedList
+implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| PetpetidPostPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostadditionalPropertiesBoxedMap -public record PetpetidPostadditionalPropertiesBoxedMap
-implements [PetpetidPostadditionalPropertiesBoxed](#petpetidpostadditionalpropertiesboxed) +## PetpetidPostPathParameters4BoxedMap +public record PetpetidPostPathParameters4BoxedMap
+implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| PetpetidPostPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostadditionalProperties -public static class PetpetidPostadditionalProperties
+## PetpetidPostPathParameters4 +public static class PetpetidPostPathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index ba3e2cb304a..30937e649cc 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -85,9 +85,9 @@ PetpetiduploadimagePost.Post apiClient = new PetpetiduploadimagePost.Post(apiCon // Map validation -PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters = +PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters = PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( - new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMapBuilder() + new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters8() .petId(1L) .build(), @@ -146,7 +146,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparametersmap) | pathParameters | +| [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparameters9) | pathParameters | | [PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) | requestBody
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | @@ -160,7 +160,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetiduploadimagePostPathParameters.@Nullable PetpetiduploadimagePostPathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparametersmap) | pathParameters | +| [PetpetiduploadimagePostPathParameters.@Nullable PetpetiduploadimagePostPathParameters9](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparameters9) | pathParameters | | [PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) | requestBody | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex | @@ -198,6 +198,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetiduploadimagePostPathParametersPetpetiduploadimagePostPathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparametersmap) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetiduploadimagePostPathParametersPetpetiduploadimagePostPathParameters9](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md index 6c11cddf887..e9ffec2c6aa 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed)
sealed interface for validated payloads | | record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1](#petpetiduploadimagepostpathparameters1)
schema class | -| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMapBuilder](#petpetiduploadimagepostpathparametersmapbuilder)
builder for Map payloads | -| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap](#petpetiduploadimagepostpathparametersmap)
output class for Map payloads | -| sealed interface | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostadditionalPropertiesBoxedVoid](#petpetiduploadimagepostadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostadditionalPropertiesBoxedBoolean](#petpetiduploadimagepostadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostadditionalPropertiesBoxedNumber](#petpetiduploadimagepostadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostadditionalPropertiesBoxedString](#petpetiduploadimagepostadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostadditionalPropertiesBoxedList](#petpetiduploadimagepostadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostadditionalPropertiesBoxedMap](#petpetiduploadimagepostadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostadditionalProperties](#petpetiduploadimagepostadditionalproperties)
schema class | +| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters8](#petpetiduploadimagepostpathparameters8)
builder for Map payloads | +| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9](#petpetiduploadimagepostpathparameters9)
output class for Map payloads | +| sealed interface | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed)
sealed interface for validated payloads | +| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedVoid](#petpetiduploadimagepostpathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedBoolean](#petpetiduploadimagepostpathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedNumber](#petpetiduploadimagepostpathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedString](#petpetiduploadimagepostpathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedList](#petpetiduploadimagepostpathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedMap](#petpetiduploadimagepostpathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4](#petpetiduploadimagepostpathparameters4)
schema class | ## PetpetiduploadimagePostPathParameters1Boxed public sealed interface PetpetiduploadimagePostPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParameters1BoxedMap([PetpetiduploadimagePostPathParametersMap](#petpetiduploadimagepostpathparametersmap) data)
Creates an instance, private visibility | +| PetpetiduploadimagePostPathParameters1BoxedMap([PetpetiduploadimagePostPathParameters9](#petpetiduploadimagepostpathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetiduploadimagePostPathParametersMap](#petpetiduploadimagepostpathparametersmap) | data()
validated payload | +| [PetpetiduploadimagePostPathParameters9](#petpetiduploadimagepostpathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetpetiduploadimagePostPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap validatedPayload = +PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 validatedPayload = PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( - new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMapBuilder() + new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters8() .petId(1L) .build(), @@ -88,18 +88,18 @@ PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap v | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [PetpetiduploadimagePostadditionalProperties.class](#petpetiduploadimagepostadditionalproperties) | +| Class | additionalProperties = [PetpetiduploadimagePostPathParameters4.class](#petpetiduploadimagepostpathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetiduploadimagePostPathParametersMap](#petpetiduploadimagepostpathparametersmap) | validate([Map<?, ?>](#petpetiduploadimagepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiduploadimagepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetiduploadimagePostPathParameters9](#petpetiduploadimagepostpathparameters9) | validate([Map<?, ?>](#petpetiduploadimagepostpathparameters8) arg, SchemaConfiguration configuration) | +| [PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiduploadimagepostpathparameters8) arg, SchemaConfiguration configuration) | | [PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetpetiduploadimagePostPathParametersMap0Builder -public class PetpetiduploadimagePostPathParametersMap0Builder
+## PetpetiduploadimagePostPathParameters10 +public class PetpetiduploadimagePostPathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| PetpetiduploadimagePostPathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## PetpetiduploadimagePostPathParametersMapBuilder -public class PetpetiduploadimagePostPathParametersMapBuilder
+## PetpetiduploadimagePostPathParameters8 +public class PetpetiduploadimagePostPathParameters8
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParametersMapBuilder()
Creates a builder that contains an empty map | +| PetpetiduploadimagePostPathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetiduploadimagePostPathParametersMap0Builder](#petpetiduploadimagepostpathparametersmap0builder) | petId(int value) | -| [PetpetiduploadimagePostPathParametersMap0Builder](#petpetiduploadimagepostpathparametersmap0builder) | petId(float value) | -| [PetpetiduploadimagePostPathParametersMap0Builder](#petpetiduploadimagepostpathparametersmap0builder) | petId(long value) | -| [PetpetiduploadimagePostPathParametersMap0Builder](#petpetiduploadimagepostpathparametersmap0builder) | petId(double value) | +| [PetpetiduploadimagePostPathParameters10](#petpetiduploadimagepostpathparameters10) | petId(int value) | +| [PetpetiduploadimagePostPathParameters10](#petpetiduploadimagepostpathparameters10) | petId(float value) | +| [PetpetiduploadimagePostPathParameters10](#petpetiduploadimagepostpathparameters10) | petId(long value) | +| [PetpetiduploadimagePostPathParameters10](#petpetiduploadimagepostpathparameters10) | petId(double value) | -## PetpetiduploadimagePostPathParametersMap -public static class PetpetiduploadimagePostPathParametersMap
+## PetpetiduploadimagePostPathParameters9 +public static class PetpetiduploadimagePostPathParameters9
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetpetiduploadimagePostPathParametersMap](#petpetiduploadimagepostpathparametersmap) | of([Map](#petpetiduploadimagepostpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [PetpetiduploadimagePostPathParameters9](#petpetiduploadimagepostpathparameters9) | of([Map](#petpetiduploadimagepostpathparameters8) arg, SchemaConfiguration configuration) | | Number | petId()
| -## PetpetiduploadimagePostadditionalPropertiesBoxed -public sealed interface PetpetiduploadimagePostadditionalPropertiesBoxed
+## PetpetiduploadimagePostPathParameters4Boxed +public sealed interface PetpetiduploadimagePostPathParameters4Boxed
permits
-[PetpetiduploadimagePostadditionalPropertiesBoxedVoid](#petpetiduploadimagepostadditionalpropertiesboxedvoid), -[PetpetiduploadimagePostadditionalPropertiesBoxedBoolean](#petpetiduploadimagepostadditionalpropertiesboxedboolean), -[PetpetiduploadimagePostadditionalPropertiesBoxedNumber](#petpetiduploadimagepostadditionalpropertiesboxednumber), -[PetpetiduploadimagePostadditionalPropertiesBoxedString](#petpetiduploadimagepostadditionalpropertiesboxedstring), -[PetpetiduploadimagePostadditionalPropertiesBoxedList](#petpetiduploadimagepostadditionalpropertiesboxedlist), -[PetpetiduploadimagePostadditionalPropertiesBoxedMap](#petpetiduploadimagepostadditionalpropertiesboxedmap) +[PetpetiduploadimagePostPathParameters4BoxedVoid](#petpetiduploadimagepostpathparameters4boxedvoid), +[PetpetiduploadimagePostPathParameters4BoxedBoolean](#petpetiduploadimagepostpathparameters4boxedboolean), +[PetpetiduploadimagePostPathParameters4BoxedNumber](#petpetiduploadimagepostpathparameters4boxednumber), +[PetpetiduploadimagePostPathParameters4BoxedString](#petpetiduploadimagepostpathparameters4boxedstring), +[PetpetiduploadimagePostPathParameters4BoxedList](#petpetiduploadimagepostpathparameters4boxedlist), +[PetpetiduploadimagePostPathParameters4BoxedMap](#petpetiduploadimagepostpathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## PetpetiduploadimagePostadditionalPropertiesBoxedVoid -public record PetpetiduploadimagePostadditionalPropertiesBoxedVoid
-implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) +## PetpetiduploadimagePostPathParameters4BoxedVoid +public record PetpetiduploadimagePostPathParameters4BoxedVoid
+implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| PetpetiduploadimagePostPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostadditionalPropertiesBoxedBoolean -public record PetpetiduploadimagePostadditionalPropertiesBoxedBoolean
-implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) +## PetpetiduploadimagePostPathParameters4BoxedBoolean +public record PetpetiduploadimagePostPathParameters4BoxedBoolean
+implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| PetpetiduploadimagePostPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostadditionalPropertiesBoxedNumber -public record PetpetiduploadimagePostadditionalPropertiesBoxedNumber
-implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) +## PetpetiduploadimagePostPathParameters4BoxedNumber +public record PetpetiduploadimagePostPathParameters4BoxedNumber
+implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| PetpetiduploadimagePostPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostadditionalPropertiesBoxedString -public record PetpetiduploadimagePostadditionalPropertiesBoxedString
-implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) +## PetpetiduploadimagePostPathParameters4BoxedString +public record PetpetiduploadimagePostPathParameters4BoxedString
+implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| PetpetiduploadimagePostPathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostadditionalPropertiesBoxedList -public record PetpetiduploadimagePostadditionalPropertiesBoxedList
-implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) +## PetpetiduploadimagePostPathParameters4BoxedList +public record PetpetiduploadimagePostPathParameters4BoxedList
+implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| PetpetiduploadimagePostPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostadditionalPropertiesBoxedMap -public record PetpetiduploadimagePostadditionalPropertiesBoxedMap
-implements [PetpetiduploadimagePostadditionalPropertiesBoxed](#petpetiduploadimagepostadditionalpropertiesboxed) +## PetpetiduploadimagePostPathParameters4BoxedMap +public record PetpetiduploadimagePostPathParameters4BoxedMap
+implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| PetpetiduploadimagePostPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostadditionalProperties -public static class PetpetiduploadimagePostadditionalProperties
+## PetpetiduploadimagePostPathParameters4 +public static class PetpetiduploadimagePostPathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index 6bf30424e9f..c291f0ff27e 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -75,9 +75,9 @@ StoreorderorderidDelete.Delete apiClient = new StoreorderorderidDelete.Delete(ap // Map validation -StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters = +StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters = StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( - new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMapBuilder() + new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters8() .order_id("a") .build(), @@ -137,7 +137,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparametersmap) | pathParameters | +| [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -149,7 +149,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [StoreorderorderidDeletePathParameters.@Nullable StoreorderorderidDeletePathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparametersmap) | pathParameters | +| [StoreorderorderidDeletePathParameters.@Nullable StoreorderorderidDeletePathParameters9](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -183,6 +183,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([StoreorderorderidDeletePathParametersStoreorderorderidDeletePathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparametersmap) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([StoreorderorderidDeletePathParametersStoreorderorderidDeletePathParameters9](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md index 0b4861b3f9f..8ca51d906e7 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -76,9 +76,9 @@ StoreorderorderidGet.Get apiClient = new StoreorderorderidGet.Get(apiConfigurati // Map validation -StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters = +StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters = StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( - new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMapBuilder() + new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters8() .order_id(1L) .build(), @@ -145,7 +145,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparametersmap) | pathParameters | +| [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -157,7 +157,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [StoreorderorderidGetPathParameters.@Nullable StoreorderorderidGetPathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparametersmap) | pathParameters | +| [StoreorderorderidGetPathParameters.@Nullable StoreorderorderidGetPathParameters9](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -191,6 +191,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([StoreorderorderidGetPathParametersStoreorderorderidGetPathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparametersmap) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([StoreorderorderidGetPathParametersStoreorderorderidGetPathParameters9](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md index b7a84fd1a77..8e74e069a09 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed)
sealed interface for validated payloads | | record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1](#storeorderorderiddeletepathparameters1)
schema class | -| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMapBuilder](#storeorderorderiddeletepathparametersmapbuilder)
builder for Map payloads | -| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap](#storeorderorderiddeletepathparametersmap)
output class for Map payloads | -| sealed interface | [StoreorderorderidDeletePathParameters.StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeleteadditionalPropertiesBoxedVoid](#storeorderorderiddeleteadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeleteadditionalPropertiesBoxedBoolean](#storeorderorderiddeleteadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeleteadditionalPropertiesBoxedNumber](#storeorderorderiddeleteadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeleteadditionalPropertiesBoxedString](#storeorderorderiddeleteadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeleteadditionalPropertiesBoxedList](#storeorderorderiddeleteadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeleteadditionalPropertiesBoxedMap](#storeorderorderiddeleteadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeleteadditionalProperties](#storeorderorderiddeleteadditionalproperties)
schema class | +| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters8](#storeorderorderiddeletepathparameters8)
builder for Map payloads | +| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9](#storeorderorderiddeletepathparameters9)
output class for Map payloads | +| sealed interface | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed)
sealed interface for validated payloads | +| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedVoid](#storeorderorderiddeletepathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedBoolean](#storeorderorderiddeletepathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedNumber](#storeorderorderiddeletepathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedString](#storeorderorderiddeletepathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedList](#storeorderorderiddeletepathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedMap](#storeorderorderiddeletepathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4](#storeorderorderiddeletepathparameters4)
schema class | ## StoreorderorderidDeletePathParameters1Boxed public sealed interface StoreorderorderidDeletePathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParameters1BoxedMap([StoreorderorderidDeletePathParametersMap](#storeorderorderiddeletepathparametersmap) data)
Creates an instance, private visibility | +| StoreorderorderidDeletePathParameters1BoxedMap([StoreorderorderidDeletePathParameters9](#storeorderorderiddeletepathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidDeletePathParametersMap](#storeorderorderiddeletepathparametersmap) | data()
validated payload | +| [StoreorderorderidDeletePathParameters9](#storeorderorderiddeletepathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## StoreorderorderidDeletePathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap validatedPayload = +StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 validatedPayload = StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( - new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMapBuilder() + new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters8() .order_id("a") .build(), @@ -88,18 +88,18 @@ StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap v | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("order_id", [Schema0.Schema01.class](../../../paths/storeorderorderid/delete/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "order_id"
)
| -| Class | additionalProperties = [StoreorderorderidDeleteadditionalProperties.class](#storeorderorderiddeleteadditionalproperties) | +| Class | additionalProperties = [StoreorderorderidDeletePathParameters4.class](#storeorderorderiddeletepathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidDeletePathParametersMap](#storeorderorderiddeletepathparametersmap) | validate([Map<?, ?>](#storeorderorderiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#storeorderorderiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidDeletePathParameters9](#storeorderorderiddeletepathparameters9) | validate([Map<?, ?>](#storeorderorderiddeletepathparameters8) arg, SchemaConfiguration configuration) | +| [StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#storeorderorderiddeletepathparameters8) arg, SchemaConfiguration configuration) | | [StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StoreorderorderidDeletePathParametersMap0Builder -public class StoreorderorderidDeletePathParametersMap0Builder
+## StoreorderorderidDeletePathParameters10 +public class StoreorderorderidDeletePathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| StoreorderorderidDeletePathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## StoreorderorderidDeletePathParametersMapBuilder -public class StoreorderorderidDeletePathParametersMapBuilder
+## StoreorderorderidDeletePathParameters8 +public class StoreorderorderidDeletePathParameters8
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParametersMapBuilder()
Creates a builder that contains an empty map | +| StoreorderorderidDeletePathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidDeletePathParametersMap0Builder](#storeorderorderiddeletepathparametersmap0builder) | order_id(String value) | +| [StoreorderorderidDeletePathParameters10](#storeorderorderiddeletepathparameters10) | order_id(String value) | -## StoreorderorderidDeletePathParametersMap -public static class StoreorderorderidDeletePathParametersMap
+## StoreorderorderidDeletePathParameters9 +public static class StoreorderorderidDeletePathParameters9
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [StoreorderorderidDeletePathParametersMap](#storeorderorderiddeletepathparametersmap) | of([Map](#storeorderorderiddeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [StoreorderorderidDeletePathParameters9](#storeorderorderiddeletepathparameters9) | of([Map](#storeorderorderiddeletepathparameters8) arg, SchemaConfiguration configuration) | | String | order_id()
| -## StoreorderorderidDeleteadditionalPropertiesBoxed -public sealed interface StoreorderorderidDeleteadditionalPropertiesBoxed
+## StoreorderorderidDeletePathParameters4Boxed +public sealed interface StoreorderorderidDeletePathParameters4Boxed
permits
-[StoreorderorderidDeleteadditionalPropertiesBoxedVoid](#storeorderorderiddeleteadditionalpropertiesboxedvoid), -[StoreorderorderidDeleteadditionalPropertiesBoxedBoolean](#storeorderorderiddeleteadditionalpropertiesboxedboolean), -[StoreorderorderidDeleteadditionalPropertiesBoxedNumber](#storeorderorderiddeleteadditionalpropertiesboxednumber), -[StoreorderorderidDeleteadditionalPropertiesBoxedString](#storeorderorderiddeleteadditionalpropertiesboxedstring), -[StoreorderorderidDeleteadditionalPropertiesBoxedList](#storeorderorderiddeleteadditionalpropertiesboxedlist), -[StoreorderorderidDeleteadditionalPropertiesBoxedMap](#storeorderorderiddeleteadditionalpropertiesboxedmap) +[StoreorderorderidDeletePathParameters4BoxedVoid](#storeorderorderiddeletepathparameters4boxedvoid), +[StoreorderorderidDeletePathParameters4BoxedBoolean](#storeorderorderiddeletepathparameters4boxedboolean), +[StoreorderorderidDeletePathParameters4BoxedNumber](#storeorderorderiddeletepathparameters4boxednumber), +[StoreorderorderidDeletePathParameters4BoxedString](#storeorderorderiddeletepathparameters4boxedstring), +[StoreorderorderidDeletePathParameters4BoxedList](#storeorderorderiddeletepathparameters4boxedlist), +[StoreorderorderidDeletePathParameters4BoxedMap](#storeorderorderiddeletepathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## StoreorderorderidDeleteadditionalPropertiesBoxedVoid -public record StoreorderorderidDeleteadditionalPropertiesBoxedVoid
-implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) +## StoreorderorderidDeletePathParameters4BoxedVoid +public record StoreorderorderidDeletePathParameters4BoxedVoid
+implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| StoreorderorderidDeletePathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeleteadditionalPropertiesBoxedBoolean -public record StoreorderorderidDeleteadditionalPropertiesBoxedBoolean
-implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) +## StoreorderorderidDeletePathParameters4BoxedBoolean +public record StoreorderorderidDeletePathParameters4BoxedBoolean
+implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| StoreorderorderidDeletePathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeleteadditionalPropertiesBoxedNumber -public record StoreorderorderidDeleteadditionalPropertiesBoxedNumber
-implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) +## StoreorderorderidDeletePathParameters4BoxedNumber +public record StoreorderorderidDeletePathParameters4BoxedNumber
+implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| StoreorderorderidDeletePathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeleteadditionalPropertiesBoxedString -public record StoreorderorderidDeleteadditionalPropertiesBoxedString
-implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) +## StoreorderorderidDeletePathParameters4BoxedString +public record StoreorderorderidDeletePathParameters4BoxedString
+implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| StoreorderorderidDeletePathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeleteadditionalPropertiesBoxedList -public record StoreorderorderidDeleteadditionalPropertiesBoxedList
-implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) +## StoreorderorderidDeletePathParameters4BoxedList +public record StoreorderorderidDeletePathParameters4BoxedList
+implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeleteadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| StoreorderorderidDeletePathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeleteadditionalPropertiesBoxedMap -public record StoreorderorderidDeleteadditionalPropertiesBoxedMap
-implements [StoreorderorderidDeleteadditionalPropertiesBoxed](#storeorderorderiddeleteadditionalpropertiesboxed) +## StoreorderorderidDeletePathParameters4BoxedMap +public record StoreorderorderidDeletePathParameters4BoxedMap
+implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeleteadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| StoreorderorderidDeletePathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeleteadditionalProperties -public static class StoreorderorderidDeleteadditionalProperties
+## StoreorderorderidDeletePathParameters4 +public static class StoreorderorderidDeletePathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md index eb32ebb7478..fa4491b7801 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed)
sealed interface for validated payloads | | record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1](#storeorderorderidgetpathparameters1)
schema class | -| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMapBuilder](#storeorderorderidgetpathparametersmapbuilder)
builder for Map payloads | -| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap](#storeorderorderidgetpathparametersmap)
output class for Map payloads | -| sealed interface | [StoreorderorderidGetPathParameters.StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetadditionalPropertiesBoxedVoid](#storeorderorderidgetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetadditionalPropertiesBoxedBoolean](#storeorderorderidgetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetadditionalPropertiesBoxedNumber](#storeorderorderidgetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetadditionalPropertiesBoxedString](#storeorderorderidgetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetadditionalPropertiesBoxedList](#storeorderorderidgetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetadditionalPropertiesBoxedMap](#storeorderorderidgetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetadditionalProperties](#storeorderorderidgetadditionalproperties)
schema class | +| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters8](#storeorderorderidgetpathparameters8)
builder for Map payloads | +| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9](#storeorderorderidgetpathparameters9)
output class for Map payloads | +| sealed interface | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed)
sealed interface for validated payloads | +| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedVoid](#storeorderorderidgetpathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedBoolean](#storeorderorderidgetpathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedNumber](#storeorderorderidgetpathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedString](#storeorderorderidgetpathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedList](#storeorderorderidgetpathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedMap](#storeorderorderidgetpathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4](#storeorderorderidgetpathparameters4)
schema class | ## StoreorderorderidGetPathParameters1Boxed public sealed interface StoreorderorderidGetPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParameters1BoxedMap([StoreorderorderidGetPathParametersMap](#storeorderorderidgetpathparametersmap) data)
Creates an instance, private visibility | +| StoreorderorderidGetPathParameters1BoxedMap([StoreorderorderidGetPathParameters9](#storeorderorderidgetpathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidGetPathParametersMap](#storeorderorderidgetpathparametersmap) | data()
validated payload | +| [StoreorderorderidGetPathParameters9](#storeorderorderidgetpathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## StoreorderorderidGetPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap validatedPayload = +StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 validatedPayload = StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( - new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMapBuilder() + new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters8() .order_id(1L) .build(), @@ -88,18 +88,18 @@ StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap validat | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("order_id", [Schema0.Schema01.class](../../../paths/storeorderorderid/get/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "order_id"
)
| -| Class | additionalProperties = [StoreorderorderidGetadditionalProperties.class](#storeorderorderidgetadditionalproperties) | +| Class | additionalProperties = [StoreorderorderidGetPathParameters4.class](#storeorderorderidgetpathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidGetPathParametersMap](#storeorderorderidgetpathparametersmap) | validate([Map<?, ?>](#storeorderorderidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#storeorderorderidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidGetPathParameters9](#storeorderorderidgetpathparameters9) | validate([Map<?, ?>](#storeorderorderidgetpathparameters8) arg, SchemaConfiguration configuration) | +| [StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#storeorderorderidgetpathparameters8) arg, SchemaConfiguration configuration) | | [StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StoreorderorderidGetPathParametersMap0Builder -public class StoreorderorderidGetPathParametersMap0Builder
+## StoreorderorderidGetPathParameters10 +public class StoreorderorderidGetPathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| StoreorderorderidGetPathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## StoreorderorderidGetPathParametersMapBuilder -public class StoreorderorderidGetPathParametersMapBuilder
+## StoreorderorderidGetPathParameters8 +public class StoreorderorderidGetPathParameters8
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParametersMapBuilder()
Creates a builder that contains an empty map | +| StoreorderorderidGetPathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidGetPathParametersMap0Builder](#storeorderorderidgetpathparametersmap0builder) | order_id(int value) | -| [StoreorderorderidGetPathParametersMap0Builder](#storeorderorderidgetpathparametersmap0builder) | order_id(float value) | -| [StoreorderorderidGetPathParametersMap0Builder](#storeorderorderidgetpathparametersmap0builder) | order_id(long value) | -| [StoreorderorderidGetPathParametersMap0Builder](#storeorderorderidgetpathparametersmap0builder) | order_id(double value) | +| [StoreorderorderidGetPathParameters10](#storeorderorderidgetpathparameters10) | order_id(int value) | +| [StoreorderorderidGetPathParameters10](#storeorderorderidgetpathparameters10) | order_id(float value) | +| [StoreorderorderidGetPathParameters10](#storeorderorderidgetpathparameters10) | order_id(long value) | +| [StoreorderorderidGetPathParameters10](#storeorderorderidgetpathparameters10) | order_id(double value) | -## StoreorderorderidGetPathParametersMap -public static class StoreorderorderidGetPathParametersMap
+## StoreorderorderidGetPathParameters9 +public static class StoreorderorderidGetPathParameters9
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [StoreorderorderidGetPathParametersMap](#storeorderorderidgetpathparametersmap) | of([Map](#storeorderorderidgetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [StoreorderorderidGetPathParameters9](#storeorderorderidgetpathparameters9) | of([Map](#storeorderorderidgetpathparameters8) arg, SchemaConfiguration configuration) | | Number | order_id()
| -## StoreorderorderidGetadditionalPropertiesBoxed -public sealed interface StoreorderorderidGetadditionalPropertiesBoxed
+## StoreorderorderidGetPathParameters4Boxed +public sealed interface StoreorderorderidGetPathParameters4Boxed
permits
-[StoreorderorderidGetadditionalPropertiesBoxedVoid](#storeorderorderidgetadditionalpropertiesboxedvoid), -[StoreorderorderidGetadditionalPropertiesBoxedBoolean](#storeorderorderidgetadditionalpropertiesboxedboolean), -[StoreorderorderidGetadditionalPropertiesBoxedNumber](#storeorderorderidgetadditionalpropertiesboxednumber), -[StoreorderorderidGetadditionalPropertiesBoxedString](#storeorderorderidgetadditionalpropertiesboxedstring), -[StoreorderorderidGetadditionalPropertiesBoxedList](#storeorderorderidgetadditionalpropertiesboxedlist), -[StoreorderorderidGetadditionalPropertiesBoxedMap](#storeorderorderidgetadditionalpropertiesboxedmap) +[StoreorderorderidGetPathParameters4BoxedVoid](#storeorderorderidgetpathparameters4boxedvoid), +[StoreorderorderidGetPathParameters4BoxedBoolean](#storeorderorderidgetpathparameters4boxedboolean), +[StoreorderorderidGetPathParameters4BoxedNumber](#storeorderorderidgetpathparameters4boxednumber), +[StoreorderorderidGetPathParameters4BoxedString](#storeorderorderidgetpathparameters4boxedstring), +[StoreorderorderidGetPathParameters4BoxedList](#storeorderorderidgetpathparameters4boxedlist), +[StoreorderorderidGetPathParameters4BoxedMap](#storeorderorderidgetpathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## StoreorderorderidGetadditionalPropertiesBoxedVoid -public record StoreorderorderidGetadditionalPropertiesBoxedVoid
-implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) +## StoreorderorderidGetPathParameters4BoxedVoid +public record StoreorderorderidGetPathParameters4BoxedVoid
+implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| StoreorderorderidGetPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetadditionalPropertiesBoxedBoolean -public record StoreorderorderidGetadditionalPropertiesBoxedBoolean
-implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) +## StoreorderorderidGetPathParameters4BoxedBoolean +public record StoreorderorderidGetPathParameters4BoxedBoolean
+implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| StoreorderorderidGetPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetadditionalPropertiesBoxedNumber -public record StoreorderorderidGetadditionalPropertiesBoxedNumber
-implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) +## StoreorderorderidGetPathParameters4BoxedNumber +public record StoreorderorderidGetPathParameters4BoxedNumber
+implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| StoreorderorderidGetPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetadditionalPropertiesBoxedString -public record StoreorderorderidGetadditionalPropertiesBoxedString
-implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) +## StoreorderorderidGetPathParameters4BoxedString +public record StoreorderorderidGetPathParameters4BoxedString
+implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| StoreorderorderidGetPathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetadditionalPropertiesBoxedList -public record StoreorderorderidGetadditionalPropertiesBoxedList
-implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) +## StoreorderorderidGetPathParameters4BoxedList +public record StoreorderorderidGetPathParameters4BoxedList
+implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| StoreorderorderidGetPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetadditionalPropertiesBoxedMap -public record StoreorderorderidGetadditionalPropertiesBoxedMap
-implements [StoreorderorderidGetadditionalPropertiesBoxed](#storeorderorderidgetadditionalpropertiesboxed) +## StoreorderorderidGetPathParameters4BoxedMap +public record StoreorderorderidGetPathParameters4BoxedMap
+implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| StoreorderorderidGetPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetadditionalProperties -public static class StoreorderorderidGetadditionalProperties
+## StoreorderorderidGetPathParameters4 +public static class StoreorderorderidGetPathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md index 25efd5b2019..f1747d8e9a0 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -76,9 +76,9 @@ UserloginGet.Get apiClient = new UserloginGet.Get(apiConfiguration, schemaConfig // Map validation -UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters = +UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters = UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( - new UserloginGetQueryParameters.UserloginGetQueryParametersMapBuilder() + new UserloginGetQueryParameters.UserloginGetQueryParameters9() .password("a") .username("a") @@ -147,7 +147,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserloginGetQueryParameters.UserloginGetQueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparametersmap) | queryParameters | +| [UserloginGetQueryParameters.UserloginGetQueryParameters10](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparameters10) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -159,7 +159,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserloginGetQueryParameters.@Nullable UserloginGetQueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparametersmap) | queryParameters | +| [UserloginGetQueryParameters.@Nullable UserloginGetQueryParameters10](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparameters10) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -193,6 +193,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([UserloginGetQueryParametersUserloginGetQueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparametersmap) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([UserloginGetQueryParametersUserloginGetQueryParameters10](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparameters10) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md index 5d116801e21..e670cbf06ae 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [UserloginGetQueryParameters.UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed)
sealed interface for validated payloads | | record | [UserloginGetQueryParameters.UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [UserloginGetQueryParameters.UserloginGetQueryParameters1](#userlogingetqueryparameters1)
schema class | -| static class | [UserloginGetQueryParameters.UserloginGetQueryParametersMapBuilder](#userlogingetqueryparametersmapbuilder)
builder for Map payloads | -| static class | [UserloginGetQueryParameters.UserloginGetQueryParametersMap](#userlogingetqueryparametersmap)
output class for Map payloads | -| sealed interface | [UserloginGetQueryParameters.UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [UserloginGetQueryParameters.UserloginGetadditionalPropertiesBoxedVoid](#userlogingetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [UserloginGetQueryParameters.UserloginGetadditionalPropertiesBoxedBoolean](#userlogingetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [UserloginGetQueryParameters.UserloginGetadditionalPropertiesBoxedNumber](#userlogingetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [UserloginGetQueryParameters.UserloginGetadditionalPropertiesBoxedString](#userlogingetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [UserloginGetQueryParameters.UserloginGetadditionalPropertiesBoxedList](#userlogingetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [UserloginGetQueryParameters.UserloginGetadditionalPropertiesBoxedMap](#userlogingetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [UserloginGetQueryParameters.UserloginGetadditionalProperties](#userlogingetadditionalproperties)
schema class | +| static class | [UserloginGetQueryParameters.UserloginGetQueryParameters9](#userlogingetqueryparameters9)
builder for Map payloads | +| static class | [UserloginGetQueryParameters.UserloginGetQueryParameters10](#userlogingetqueryparameters10)
output class for Map payloads | +| sealed interface | [UserloginGetQueryParameters.UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed)
sealed interface for validated payloads | +| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedVoid](#userlogingetqueryparameters5boxedvoid)
boxed class to store validated null payloads | +| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedBoolean](#userlogingetqueryparameters5boxedboolean)
boxed class to store validated boolean payloads | +| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedNumber](#userlogingetqueryparameters5boxednumber)
boxed class to store validated Number payloads | +| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedString](#userlogingetqueryparameters5boxedstring)
boxed class to store validated String payloads | +| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedList](#userlogingetqueryparameters5boxedlist)
boxed class to store validated List payloads | +| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedMap](#userlogingetqueryparameters5boxedmap)
boxed class to store validated Map payloads | +| static class | [UserloginGetQueryParameters.UserloginGetQueryParameters5](#userlogingetqueryparameters5)
schema class | ## UserloginGetQueryParameters1Boxed public sealed interface UserloginGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters1BoxedMap([UserloginGetQueryParametersMap](#userlogingetqueryparametersmap) data)
Creates an instance, private visibility | +| UserloginGetQueryParameters1BoxedMap([UserloginGetQueryParameters10](#userlogingetqueryparameters10) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetQueryParametersMap](#userlogingetqueryparametersmap) | data()
validated payload | +| [UserloginGetQueryParameters10](#userlogingetqueryparameters10) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## UserloginGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -UserloginGetQueryParameters.UserloginGetQueryParametersMap validatedPayload = +UserloginGetQueryParameters.UserloginGetQueryParameters10 validatedPayload = UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( - new UserloginGetQueryParameters.UserloginGetQueryParametersMapBuilder() + new UserloginGetQueryParameters.UserloginGetQueryParameters9() .password("a") .username("a") @@ -90,18 +90,18 @@ UserloginGetQueryParameters.UserloginGetQueryParametersMap validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("password", [Schema1.Schema11.class](../../../paths/userlogin/get/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("username", [Schema0.Schema01.class](../../../paths/userlogin/get/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "password",
    "username"
)
| -| Class | additionalProperties = [UserloginGetadditionalProperties.class](#userlogingetadditionalproperties) | +| Class | additionalProperties = [UserloginGetQueryParameters5.class](#userlogingetqueryparameters5) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetQueryParametersMap](#userlogingetqueryparametersmap) | validate([Map<?, ?>](#userlogingetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#userlogingetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserloginGetQueryParameters10](#userlogingetqueryparameters10) | validate([Map<?, ?>](#userlogingetqueryparameters9) arg, SchemaConfiguration configuration) | +| [UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#userlogingetqueryparameters9) arg, SchemaConfiguration configuration) | | [UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## UserloginGetQueryParametersMap00Builder -public class UserloginGetQueryParametersMap00Builder
+## UserloginGetQueryParameters11 +public class UserloginGetQueryParameters11
builder for `Map` A class that builds the Map input type @@ -109,15 +109,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParametersMap00Builder(Map instance)
Creates a builder that contains the passed instance | +| UserloginGetQueryParameters11(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## UserloginGetQueryParametersMap01Builder -public class UserloginGetQueryParametersMap01Builder
+## UserloginGetQueryParameters12 +public class UserloginGetQueryParameters12
builder for `Map` A class that builds the Map input type @@ -125,15 +125,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParametersMap01Builder(Map instance)
Creates a builder that contains the passed instance | +| UserloginGetQueryParameters12(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetQueryParametersMap00Builder](#userlogingetqueryparametersmap00builder) | username(String value) | +| [UserloginGetQueryParameters11](#userlogingetqueryparameters11) | username(String value) | -## UserloginGetQueryParametersMap10Builder -public class UserloginGetQueryParametersMap10Builder
+## UserloginGetQueryParameters13 +public class UserloginGetQueryParameters13
builder for `Map` A class that builds the Map input type @@ -141,15 +141,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParametersMap10Builder(Map instance)
Creates a builder that contains the passed instance | +| UserloginGetQueryParameters13(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetQueryParametersMap00Builder](#userlogingetqueryparametersmap00builder) | password(String value) | +| [UserloginGetQueryParameters11](#userlogingetqueryparameters11) | password(String value) | -## UserloginGetQueryParametersMapBuilder -public class UserloginGetQueryParametersMapBuilder
+## UserloginGetQueryParameters9 +public class UserloginGetQueryParameters9
builder for `Map` A class that builds the Map input type @@ -157,16 +157,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParametersMapBuilder()
Creates a builder that contains an empty map | +| UserloginGetQueryParameters9()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetQueryParametersMap01Builder](#userlogingetqueryparametersmap01builder) | password(String value) | -| [UserloginGetQueryParametersMap10Builder](#userlogingetqueryparametersmap10builder) | username(String value) | +| [UserloginGetQueryParameters12](#userlogingetqueryparameters12) | password(String value) | +| [UserloginGetQueryParameters13](#userlogingetqueryparameters13) | username(String value) | -## UserloginGetQueryParametersMap -public static class UserloginGetQueryParametersMap
+## UserloginGetQueryParameters10 +public static class UserloginGetQueryParameters10
extends FrozenMap A class to store validated Map payloads @@ -174,32 +174,32 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [UserloginGetQueryParametersMap](#userlogingetqueryparametersmap) | of([Map](#userlogingetqueryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [UserloginGetQueryParameters10](#userlogingetqueryparameters10) | of([Map](#userlogingetqueryparameters9) arg, SchemaConfiguration configuration) | | String | password()
| | String | username()
| -## UserloginGetadditionalPropertiesBoxed -public sealed interface UserloginGetadditionalPropertiesBoxed
+## UserloginGetQueryParameters5Boxed +public sealed interface UserloginGetQueryParameters5Boxed
permits
-[UserloginGetadditionalPropertiesBoxedVoid](#userlogingetadditionalpropertiesboxedvoid), -[UserloginGetadditionalPropertiesBoxedBoolean](#userlogingetadditionalpropertiesboxedboolean), -[UserloginGetadditionalPropertiesBoxedNumber](#userlogingetadditionalpropertiesboxednumber), -[UserloginGetadditionalPropertiesBoxedString](#userlogingetadditionalpropertiesboxedstring), -[UserloginGetadditionalPropertiesBoxedList](#userlogingetadditionalpropertiesboxedlist), -[UserloginGetadditionalPropertiesBoxedMap](#userlogingetadditionalpropertiesboxedmap) +[UserloginGetQueryParameters5BoxedVoid](#userlogingetqueryparameters5boxedvoid), +[UserloginGetQueryParameters5BoxedBoolean](#userlogingetqueryparameters5boxedboolean), +[UserloginGetQueryParameters5BoxedNumber](#userlogingetqueryparameters5boxednumber), +[UserloginGetQueryParameters5BoxedString](#userlogingetqueryparameters5boxedstring), +[UserloginGetQueryParameters5BoxedList](#userlogingetqueryparameters5boxedlist), +[UserloginGetQueryParameters5BoxedMap](#userlogingetqueryparameters5boxedmap) sealed interface that stores validated payloads using boxed classes -## UserloginGetadditionalPropertiesBoxedVoid -public record UserloginGetadditionalPropertiesBoxedVoid
-implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) +## UserloginGetQueryParameters5BoxedVoid +public record UserloginGetQueryParameters5BoxedVoid
+implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| UserloginGetQueryParameters5BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -207,16 +207,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetadditionalPropertiesBoxedBoolean -public record UserloginGetadditionalPropertiesBoxedBoolean
-implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) +## UserloginGetQueryParameters5BoxedBoolean +public record UserloginGetQueryParameters5BoxedBoolean
+implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| UserloginGetQueryParameters5BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -224,16 +224,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetadditionalPropertiesBoxedNumber -public record UserloginGetadditionalPropertiesBoxedNumber
-implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) +## UserloginGetQueryParameters5BoxedNumber +public record UserloginGetQueryParameters5BoxedNumber
+implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| UserloginGetQueryParameters5BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -241,16 +241,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetadditionalPropertiesBoxedString -public record UserloginGetadditionalPropertiesBoxedString
-implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) +## UserloginGetQueryParameters5BoxedString +public record UserloginGetQueryParameters5BoxedString
+implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| UserloginGetQueryParameters5BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetadditionalPropertiesBoxedList -public record UserloginGetadditionalPropertiesBoxedList
-implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) +## UserloginGetQueryParameters5BoxedList +public record UserloginGetQueryParameters5BoxedList
+implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| UserloginGetQueryParameters5BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetadditionalPropertiesBoxedMap -public record UserloginGetadditionalPropertiesBoxedMap
-implements [UserloginGetadditionalPropertiesBoxed](#userlogingetadditionalpropertiesboxed) +## UserloginGetQueryParameters5BoxedMap +public record UserloginGetQueryParameters5BoxedMap
+implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| UserloginGetQueryParameters5BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,8 +292,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetadditionalProperties -public static class UserloginGetadditionalProperties
+## UserloginGetQueryParameters5 +public static class UserloginGetQueryParameters5
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md index 3605aea42d2..98d7d665c3a 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -75,9 +75,9 @@ UserusernameDelete.Delete apiClient = new UserusernameDelete.Delete(apiConfigura // Map validation -UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters = +UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters = UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( - new UserusernameDeletePathParameters.UserusernameDeletePathParametersMapBuilder() + new UserusernameDeletePathParameters.UserusernameDeletePathParameters8() .username("a") .build(), @@ -138,7 +138,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserusernameDeletePathParameters.UserusernameDeletePathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparametersmap) | pathParameters | +| [UserusernameDeletePathParameters.UserusernameDeletePathParameters9](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -150,7 +150,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserusernameDeletePathParameters.@Nullable UserusernameDeletePathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparametersmap) | pathParameters | +| [UserusernameDeletePathParameters.@Nullable UserusernameDeletePathParameters9](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([UserusernameDeletePathParametersUserusernameDeletePathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparametersmap) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([UserusernameDeletePathParametersUserusernameDeletePathParameters9](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md index fbded70ef91..ab497604e76 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -76,9 +76,9 @@ UserusernameGet.Get apiClient = new UserusernameGet.Get(apiConfiguration, schema // Map validation -UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters = +UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters = UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( - new UserusernameGetPathParameters.UserusernameGetPathParametersMapBuilder() + new UserusernameGetPathParameters.UserusernameGetPathParameters8() .username("a") .build(), @@ -145,7 +145,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserusernameGetPathParameters.UserusernameGetPathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparametersmap) | pathParameters | +| [UserusernameGetPathParameters.UserusernameGetPathParameters9](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -157,7 +157,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserusernameGetPathParameters.@Nullable UserusernameGetPathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparametersmap) | pathParameters | +| [UserusernameGetPathParameters.@Nullable UserusernameGetPathParameters9](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -191,6 +191,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([UserusernameGetPathParametersUserusernameGetPathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparametersmap) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([UserusernameGetPathParametersUserusernameGetPathParameters9](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index a875c8baa8c..5e2f4e73812 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -105,9 +105,9 @@ User1BoxedMap requestBodyPayload = UserusernamePut.SealedRequestBody requestBody = new UserusernamePut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters = +UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters = UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( - new UserusernamePutPathParameters.UserusernamePutPathParametersMapBuilder() + new UserusernamePutPathParameters.UserusernamePutPathParameters8() .username("a") .build(), @@ -169,7 +169,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | -| [UserusernamePutPathParameters.UserusernamePutPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparametersmap) | pathParameters | +| [UserusernamePutPathParameters.UserusernamePutPathParameters9](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -182,7 +182,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserusernamePutRequestBody.@Nullable SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | -| [UserusernamePutPathParameters.@Nullable UserusernamePutPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparametersmap) | pathParameters | +| [UserusernamePutPathParameters.@Nullable UserusernamePutPathParameters9](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparameters9) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -216,7 +216,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | pathParameters([UserusernamePutPathParametersUserusernamePutPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparametersmap) pathParameters)
sets the property | +| [Put00RequestBuilder](#put00requestbuilder) | pathParameters([UserusernamePutPathParametersUserusernamePutPathParameters9](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparameters9) pathParameters)
sets the property | ## Put10RequestBuilder public static class Put10RequestBuilder
@@ -247,6 +247,6 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Put01RequestBuilder](#put01requestbuilder) | requestBody([UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) requestBody)
sets the property | -| [Put10RequestBuilder](#put10requestbuilder) | pathParameters([UserusernamePutPathParametersUserusernamePutPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparametersmap) pathParameters)
sets the property | +| [Put10RequestBuilder](#put10requestbuilder) | pathParameters([UserusernamePutPathParametersUserusernamePutPathParameters9](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparameters9) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md index 07fdc670fb1..bc68c30e722 100644 --- a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md +++ b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed)
sealed interface for validated payloads | | record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1](#userusernamedeletepathparameters1)
schema class | -| static class | [UserusernameDeletePathParameters.UserusernameDeletePathParametersMapBuilder](#userusernamedeletepathparametersmapbuilder)
builder for Map payloads | -| static class | [UserusernameDeletePathParameters.UserusernameDeletePathParametersMap](#userusernamedeletepathparametersmap)
output class for Map payloads | -| sealed interface | [UserusernameDeletePathParameters.UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeleteadditionalPropertiesBoxedVoid](#userusernamedeleteadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeleteadditionalPropertiesBoxedBoolean](#userusernamedeleteadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeleteadditionalPropertiesBoxedNumber](#userusernamedeleteadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeleteadditionalPropertiesBoxedString](#userusernamedeleteadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeleteadditionalPropertiesBoxedList](#userusernamedeleteadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeleteadditionalPropertiesBoxedMap](#userusernamedeleteadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernameDeletePathParameters.UserusernameDeleteadditionalProperties](#userusernamedeleteadditionalproperties)
schema class | +| static class | [UserusernameDeletePathParameters.UserusernameDeletePathParameters8](#userusernamedeletepathparameters8)
builder for Map payloads | +| static class | [UserusernameDeletePathParameters.UserusernameDeletePathParameters9](#userusernamedeletepathparameters9)
output class for Map payloads | +| sealed interface | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed)
sealed interface for validated payloads | +| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedVoid](#userusernamedeletepathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedBoolean](#userusernamedeletepathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedNumber](#userusernamedeletepathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedString](#userusernamedeletepathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedList](#userusernamedeletepathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedMap](#userusernamedeletepathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4](#userusernamedeletepathparameters4)
schema class | ## UserusernameDeletePathParameters1Boxed public sealed interface UserusernameDeletePathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParameters1BoxedMap([UserusernameDeletePathParametersMap](#userusernamedeletepathparametersmap) data)
Creates an instance, private visibility | +| UserusernameDeletePathParameters1BoxedMap([UserusernameDeletePathParameters9](#userusernamedeletepathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameDeletePathParametersMap](#userusernamedeletepathparametersmap) | data()
validated payload | +| [UserusernameDeletePathParameters9](#userusernamedeletepathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## UserusernameDeletePathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -UserusernameDeletePathParameters.UserusernameDeletePathParametersMap validatedPayload = +UserusernameDeletePathParameters.UserusernameDeletePathParameters9 validatedPayload = UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( - new UserusernameDeletePathParameters.UserusernameDeletePathParametersMapBuilder() + new UserusernameDeletePathParameters.UserusernameDeletePathParameters8() .username("a") .build(), @@ -88,18 +88,18 @@ UserusernameDeletePathParameters.UserusernameDeletePathParametersMap validatedPa | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| | Set | required = Set.of(
    "username"
)
| -| Class | additionalProperties = [UserusernameDeleteadditionalProperties.class](#userusernamedeleteadditionalproperties) | +| Class | additionalProperties = [UserusernameDeletePathParameters4.class](#userusernamedeletepathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameDeletePathParametersMap](#userusernamedeletepathparametersmap) | validate([Map<?, ?>](#userusernamedeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernamedeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameDeletePathParameters9](#userusernamedeletepathparameters9) | validate([Map<?, ?>](#userusernamedeletepathparameters8) arg, SchemaConfiguration configuration) | +| [UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernamedeletepathparameters8) arg, SchemaConfiguration configuration) | | [UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## UserusernameDeletePathParametersMap0Builder -public class UserusernameDeletePathParametersMap0Builder
+## UserusernameDeletePathParameters10 +public class UserusernameDeletePathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| UserusernameDeletePathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## UserusernameDeletePathParametersMapBuilder -public class UserusernameDeletePathParametersMapBuilder
+## UserusernameDeletePathParameters8 +public class UserusernameDeletePathParameters8
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParametersMapBuilder()
Creates a builder that contains an empty map | +| UserusernameDeletePathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameDeletePathParametersMap0Builder](#userusernamedeletepathparametersmap0builder) | username(String value) | +| [UserusernameDeletePathParameters10](#userusernamedeletepathparameters10) | username(String value) | -## UserusernameDeletePathParametersMap -public static class UserusernameDeletePathParametersMap
+## UserusernameDeletePathParameters9 +public static class UserusernameDeletePathParameters9
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [UserusernameDeletePathParametersMap](#userusernamedeletepathparametersmap) | of([Map](#userusernamedeletepathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [UserusernameDeletePathParameters9](#userusernamedeletepathparameters9) | of([Map](#userusernamedeletepathparameters8) arg, SchemaConfiguration configuration) | | String | username()
| -## UserusernameDeleteadditionalPropertiesBoxed -public sealed interface UserusernameDeleteadditionalPropertiesBoxed
+## UserusernameDeletePathParameters4Boxed +public sealed interface UserusernameDeletePathParameters4Boxed
permits
-[UserusernameDeleteadditionalPropertiesBoxedVoid](#userusernamedeleteadditionalpropertiesboxedvoid), -[UserusernameDeleteadditionalPropertiesBoxedBoolean](#userusernamedeleteadditionalpropertiesboxedboolean), -[UserusernameDeleteadditionalPropertiesBoxedNumber](#userusernamedeleteadditionalpropertiesboxednumber), -[UserusernameDeleteadditionalPropertiesBoxedString](#userusernamedeleteadditionalpropertiesboxedstring), -[UserusernameDeleteadditionalPropertiesBoxedList](#userusernamedeleteadditionalpropertiesboxedlist), -[UserusernameDeleteadditionalPropertiesBoxedMap](#userusernamedeleteadditionalpropertiesboxedmap) +[UserusernameDeletePathParameters4BoxedVoid](#userusernamedeletepathparameters4boxedvoid), +[UserusernameDeletePathParameters4BoxedBoolean](#userusernamedeletepathparameters4boxedboolean), +[UserusernameDeletePathParameters4BoxedNumber](#userusernamedeletepathparameters4boxednumber), +[UserusernameDeletePathParameters4BoxedString](#userusernamedeletepathparameters4boxedstring), +[UserusernameDeletePathParameters4BoxedList](#userusernamedeletepathparameters4boxedlist), +[UserusernameDeletePathParameters4BoxedMap](#userusernamedeletepathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## UserusernameDeleteadditionalPropertiesBoxedVoid -public record UserusernameDeleteadditionalPropertiesBoxedVoid
-implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) +## UserusernameDeletePathParameters4BoxedVoid +public record UserusernameDeletePathParameters4BoxedVoid
+implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeleteadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| UserusernameDeletePathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeleteadditionalPropertiesBoxedBoolean -public record UserusernameDeleteadditionalPropertiesBoxedBoolean
-implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) +## UserusernameDeletePathParameters4BoxedBoolean +public record UserusernameDeletePathParameters4BoxedBoolean
+implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeleteadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| UserusernameDeletePathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeleteadditionalPropertiesBoxedNumber -public record UserusernameDeleteadditionalPropertiesBoxedNumber
-implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) +## UserusernameDeletePathParameters4BoxedNumber +public record UserusernameDeletePathParameters4BoxedNumber
+implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeleteadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| UserusernameDeletePathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeleteadditionalPropertiesBoxedString -public record UserusernameDeleteadditionalPropertiesBoxedString
-implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) +## UserusernameDeletePathParameters4BoxedString +public record UserusernameDeletePathParameters4BoxedString
+implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeleteadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| UserusernameDeletePathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeleteadditionalPropertiesBoxedList -public record UserusernameDeleteadditionalPropertiesBoxedList
-implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) +## UserusernameDeletePathParameters4BoxedList +public record UserusernameDeletePathParameters4BoxedList
+implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeleteadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| UserusernameDeletePathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeleteadditionalPropertiesBoxedMap -public record UserusernameDeleteadditionalPropertiesBoxedMap
-implements [UserusernameDeleteadditionalPropertiesBoxed](#userusernamedeleteadditionalpropertiesboxed) +## UserusernameDeletePathParameters4BoxedMap +public record UserusernameDeletePathParameters4BoxedMap
+implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeleteadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| UserusernameDeletePathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeleteadditionalProperties -public static class UserusernameDeleteadditionalProperties
+## UserusernameDeletePathParameters4 +public static class UserusernameDeletePathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md index 4927b37131a..c5512409f2a 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [UserusernameGetPathParameters.UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed)
sealed interface for validated payloads | | record | [UserusernameGetPathParameters.UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [UserusernameGetPathParameters.UserusernameGetPathParameters1](#userusernamegetpathparameters1)
schema class | -| static class | [UserusernameGetPathParameters.UserusernameGetPathParametersMapBuilder](#userusernamegetpathparametersmapbuilder)
builder for Map payloads | -| static class | [UserusernameGetPathParameters.UserusernameGetPathParametersMap](#userusernamegetpathparametersmap)
output class for Map payloads | -| sealed interface | [UserusernameGetPathParameters.UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [UserusernameGetPathParameters.UserusernameGetadditionalPropertiesBoxedVoid](#userusernamegetadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [UserusernameGetPathParameters.UserusernameGetadditionalPropertiesBoxedBoolean](#userusernamegetadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [UserusernameGetPathParameters.UserusernameGetadditionalPropertiesBoxedNumber](#userusernamegetadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [UserusernameGetPathParameters.UserusernameGetadditionalPropertiesBoxedString](#userusernamegetadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [UserusernameGetPathParameters.UserusernameGetadditionalPropertiesBoxedList](#userusernamegetadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [UserusernameGetPathParameters.UserusernameGetadditionalPropertiesBoxedMap](#userusernamegetadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernameGetPathParameters.UserusernameGetadditionalProperties](#userusernamegetadditionalproperties)
schema class | +| static class | [UserusernameGetPathParameters.UserusernameGetPathParameters8](#userusernamegetpathparameters8)
builder for Map payloads | +| static class | [UserusernameGetPathParameters.UserusernameGetPathParameters9](#userusernamegetpathparameters9)
output class for Map payloads | +| sealed interface | [UserusernameGetPathParameters.UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed)
sealed interface for validated payloads | +| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedVoid](#userusernamegetpathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedBoolean](#userusernamegetpathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedNumber](#userusernamegetpathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedString](#userusernamegetpathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedList](#userusernamegetpathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedMap](#userusernamegetpathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernameGetPathParameters.UserusernameGetPathParameters4](#userusernamegetpathparameters4)
schema class | ## UserusernameGetPathParameters1Boxed public sealed interface UserusernameGetPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParameters1BoxedMap([UserusernameGetPathParametersMap](#userusernamegetpathparametersmap) data)
Creates an instance, private visibility | +| UserusernameGetPathParameters1BoxedMap([UserusernameGetPathParameters9](#userusernamegetpathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameGetPathParametersMap](#userusernamegetpathparametersmap) | data()
validated payload | +| [UserusernameGetPathParameters9](#userusernamegetpathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## UserusernameGetPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -UserusernameGetPathParameters.UserusernameGetPathParametersMap validatedPayload = +UserusernameGetPathParameters.UserusernameGetPathParameters9 validatedPayload = UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( - new UserusernameGetPathParameters.UserusernameGetPathParametersMapBuilder() + new UserusernameGetPathParameters.UserusernameGetPathParameters8() .username("a") .build(), @@ -88,18 +88,18 @@ UserusernameGetPathParameters.UserusernameGetPathParametersMap validatedPayload | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| | Set | required = Set.of(
    "username"
)
| -| Class | additionalProperties = [UserusernameGetadditionalProperties.class](#userusernamegetadditionalproperties) | +| Class | additionalProperties = [UserusernameGetPathParameters4.class](#userusernamegetpathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameGetPathParametersMap](#userusernamegetpathparametersmap) | validate([Map<?, ?>](#userusernamegetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernamegetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameGetPathParameters9](#userusernamegetpathparameters9) | validate([Map<?, ?>](#userusernamegetpathparameters8) arg, SchemaConfiguration configuration) | +| [UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernamegetpathparameters8) arg, SchemaConfiguration configuration) | | [UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## UserusernameGetPathParametersMap0Builder -public class UserusernameGetPathParametersMap0Builder
+## UserusernameGetPathParameters10 +public class UserusernameGetPathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| UserusernameGetPathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## UserusernameGetPathParametersMapBuilder -public class UserusernameGetPathParametersMapBuilder
+## UserusernameGetPathParameters8 +public class UserusernameGetPathParameters8
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParametersMapBuilder()
Creates a builder that contains an empty map | +| UserusernameGetPathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameGetPathParametersMap0Builder](#userusernamegetpathparametersmap0builder) | username(String value) | +| [UserusernameGetPathParameters10](#userusernamegetpathparameters10) | username(String value) | -## UserusernameGetPathParametersMap -public static class UserusernameGetPathParametersMap
+## UserusernameGetPathParameters9 +public static class UserusernameGetPathParameters9
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [UserusernameGetPathParametersMap](#userusernamegetpathparametersmap) | of([Map](#userusernamegetpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [UserusernameGetPathParameters9](#userusernamegetpathparameters9) | of([Map](#userusernamegetpathparameters8) arg, SchemaConfiguration configuration) | | String | username()
| -## UserusernameGetadditionalPropertiesBoxed -public sealed interface UserusernameGetadditionalPropertiesBoxed
+## UserusernameGetPathParameters4Boxed +public sealed interface UserusernameGetPathParameters4Boxed
permits
-[UserusernameGetadditionalPropertiesBoxedVoid](#userusernamegetadditionalpropertiesboxedvoid), -[UserusernameGetadditionalPropertiesBoxedBoolean](#userusernamegetadditionalpropertiesboxedboolean), -[UserusernameGetadditionalPropertiesBoxedNumber](#userusernamegetadditionalpropertiesboxednumber), -[UserusernameGetadditionalPropertiesBoxedString](#userusernamegetadditionalpropertiesboxedstring), -[UserusernameGetadditionalPropertiesBoxedList](#userusernamegetadditionalpropertiesboxedlist), -[UserusernameGetadditionalPropertiesBoxedMap](#userusernamegetadditionalpropertiesboxedmap) +[UserusernameGetPathParameters4BoxedVoid](#userusernamegetpathparameters4boxedvoid), +[UserusernameGetPathParameters4BoxedBoolean](#userusernamegetpathparameters4boxedboolean), +[UserusernameGetPathParameters4BoxedNumber](#userusernamegetpathparameters4boxednumber), +[UserusernameGetPathParameters4BoxedString](#userusernamegetpathparameters4boxedstring), +[UserusernameGetPathParameters4BoxedList](#userusernamegetpathparameters4boxedlist), +[UserusernameGetPathParameters4BoxedMap](#userusernamegetpathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## UserusernameGetadditionalPropertiesBoxedVoid -public record UserusernameGetadditionalPropertiesBoxedVoid
-implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) +## UserusernameGetPathParameters4BoxedVoid +public record UserusernameGetPathParameters4BoxedVoid
+implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| UserusernameGetPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetadditionalPropertiesBoxedBoolean -public record UserusernameGetadditionalPropertiesBoxedBoolean
-implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) +## UserusernameGetPathParameters4BoxedBoolean +public record UserusernameGetPathParameters4BoxedBoolean
+implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| UserusernameGetPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetadditionalPropertiesBoxedNumber -public record UserusernameGetadditionalPropertiesBoxedNumber
-implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) +## UserusernameGetPathParameters4BoxedNumber +public record UserusernameGetPathParameters4BoxedNumber
+implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| UserusernameGetPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetadditionalPropertiesBoxedString -public record UserusernameGetadditionalPropertiesBoxedString
-implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) +## UserusernameGetPathParameters4BoxedString +public record UserusernameGetPathParameters4BoxedString
+implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| UserusernameGetPathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetadditionalPropertiesBoxedList -public record UserusernameGetadditionalPropertiesBoxedList
-implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) +## UserusernameGetPathParameters4BoxedList +public record UserusernameGetPathParameters4BoxedList
+implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| UserusernameGetPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetadditionalPropertiesBoxedMap -public record UserusernameGetadditionalPropertiesBoxedMap
-implements [UserusernameGetadditionalPropertiesBoxed](#userusernamegetadditionalpropertiesboxed) +## UserusernameGetPathParameters4BoxedMap +public record UserusernameGetPathParameters4BoxedMap
+implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| UserusernameGetPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetadditionalProperties -public static class UserusernameGetadditionalProperties
+## UserusernameGetPathParameters4 +public static class UserusernameGetPathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md index e9f0fb4260e..364d275a861 100644 --- a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md +++ b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [UserusernamePutPathParameters.UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed)
sealed interface for validated payloads | | record | [UserusernamePutPathParameters.UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [UserusernamePutPathParameters.UserusernamePutPathParameters1](#userusernameputpathparameters1)
schema class | -| static class | [UserusernamePutPathParameters.UserusernamePutPathParametersMapBuilder](#userusernameputpathparametersmapbuilder)
builder for Map payloads | -| static class | [UserusernamePutPathParameters.UserusernamePutPathParametersMap](#userusernameputpathparametersmap)
output class for Map payloads | -| sealed interface | [UserusernamePutPathParameters.UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [UserusernamePutPathParameters.UserusernamePutadditionalPropertiesBoxedVoid](#userusernameputadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [UserusernamePutPathParameters.UserusernamePutadditionalPropertiesBoxedBoolean](#userusernameputadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [UserusernamePutPathParameters.UserusernamePutadditionalPropertiesBoxedNumber](#userusernameputadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [UserusernamePutPathParameters.UserusernamePutadditionalPropertiesBoxedString](#userusernameputadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [UserusernamePutPathParameters.UserusernamePutadditionalPropertiesBoxedList](#userusernameputadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [UserusernamePutPathParameters.UserusernamePutadditionalPropertiesBoxedMap](#userusernameputadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernamePutPathParameters.UserusernamePutadditionalProperties](#userusernameputadditionalproperties)
schema class | +| static class | [UserusernamePutPathParameters.UserusernamePutPathParameters8](#userusernameputpathparameters8)
builder for Map payloads | +| static class | [UserusernamePutPathParameters.UserusernamePutPathParameters9](#userusernameputpathparameters9)
output class for Map payloads | +| sealed interface | [UserusernamePutPathParameters.UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed)
sealed interface for validated payloads | +| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedVoid](#userusernameputpathparameters4boxedvoid)
boxed class to store validated null payloads | +| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedBoolean](#userusernameputpathparameters4boxedboolean)
boxed class to store validated boolean payloads | +| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedNumber](#userusernameputpathparameters4boxednumber)
boxed class to store validated Number payloads | +| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedString](#userusernameputpathparameters4boxedstring)
boxed class to store validated String payloads | +| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedList](#userusernameputpathparameters4boxedlist)
boxed class to store validated List payloads | +| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedMap](#userusernameputpathparameters4boxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernamePutPathParameters.UserusernamePutPathParameters4](#userusernameputpathparameters4)
schema class | ## UserusernamePutPathParameters1Boxed public sealed interface UserusernamePutPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParameters1BoxedMap([UserusernamePutPathParametersMap](#userusernameputpathparametersmap) data)
Creates an instance, private visibility | +| UserusernamePutPathParameters1BoxedMap([UserusernamePutPathParameters9](#userusernameputpathparameters9) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernamePutPathParametersMap](#userusernameputpathparametersmap) | data()
validated payload | +| [UserusernamePutPathParameters9](#userusernameputpathparameters9) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## UserusernamePutPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -UserusernamePutPathParameters.UserusernamePutPathParametersMap validatedPayload = +UserusernamePutPathParameters.UserusernamePutPathParameters9 validatedPayload = UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( - new UserusernamePutPathParameters.UserusernamePutPathParametersMapBuilder() + new UserusernamePutPathParameters.UserusernamePutPathParameters8() .username("a") .build(), @@ -88,18 +88,18 @@ UserusernamePutPathParameters.UserusernamePutPathParametersMap validatedPayload | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| | Set | required = Set.of(
    "username"
)
| -| Class | additionalProperties = [UserusernamePutadditionalProperties.class](#userusernameputadditionalproperties) | +| Class | additionalProperties = [UserusernamePutPathParameters4.class](#userusernameputpathparameters4) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernamePutPathParametersMap](#userusernameputpathparametersmap) | validate([Map<?, ?>](#userusernameputpathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernameputpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernamePutPathParameters9](#userusernameputpathparameters9) | validate([Map<?, ?>](#userusernameputpathparameters8) arg, SchemaConfiguration configuration) | +| [UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernameputpathparameters8) arg, SchemaConfiguration configuration) | | [UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## UserusernamePutPathParametersMap0Builder -public class UserusernamePutPathParametersMap0Builder
+## UserusernamePutPathParameters10 +public class UserusernamePutPathParameters10
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | +| UserusernamePutPathParameters10(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## UserusernamePutPathParametersMapBuilder -public class UserusernamePutPathParametersMapBuilder
+## UserusernamePutPathParameters8 +public class UserusernamePutPathParameters8
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParametersMapBuilder()
Creates a builder that contains an empty map | +| UserusernamePutPathParameters8()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernamePutPathParametersMap0Builder](#userusernameputpathparametersmap0builder) | username(String value) | +| [UserusernamePutPathParameters10](#userusernameputpathparameters10) | username(String value) | -## UserusernamePutPathParametersMap -public static class UserusernamePutPathParametersMap
+## UserusernamePutPathParameters9 +public static class UserusernamePutPathParameters9
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [UserusernamePutPathParametersMap](#userusernameputpathparametersmap) | of([Map](#userusernameputpathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| static [UserusernamePutPathParameters9](#userusernameputpathparameters9) | of([Map](#userusernameputpathparameters8) arg, SchemaConfiguration configuration) | | String | username()
| -## UserusernamePutadditionalPropertiesBoxed -public sealed interface UserusernamePutadditionalPropertiesBoxed
+## UserusernamePutPathParameters4Boxed +public sealed interface UserusernamePutPathParameters4Boxed
permits
-[UserusernamePutadditionalPropertiesBoxedVoid](#userusernameputadditionalpropertiesboxedvoid), -[UserusernamePutadditionalPropertiesBoxedBoolean](#userusernameputadditionalpropertiesboxedboolean), -[UserusernamePutadditionalPropertiesBoxedNumber](#userusernameputadditionalpropertiesboxednumber), -[UserusernamePutadditionalPropertiesBoxedString](#userusernameputadditionalpropertiesboxedstring), -[UserusernamePutadditionalPropertiesBoxedList](#userusernameputadditionalpropertiesboxedlist), -[UserusernamePutadditionalPropertiesBoxedMap](#userusernameputadditionalpropertiesboxedmap) +[UserusernamePutPathParameters4BoxedVoid](#userusernameputpathparameters4boxedvoid), +[UserusernamePutPathParameters4BoxedBoolean](#userusernameputpathparameters4boxedboolean), +[UserusernamePutPathParameters4BoxedNumber](#userusernameputpathparameters4boxednumber), +[UserusernamePutPathParameters4BoxedString](#userusernameputpathparameters4boxedstring), +[UserusernamePutPathParameters4BoxedList](#userusernameputpathparameters4boxedlist), +[UserusernamePutPathParameters4BoxedMap](#userusernameputpathparameters4boxedmap) sealed interface that stores validated payloads using boxed classes -## UserusernamePutadditionalPropertiesBoxedVoid -public record UserusernamePutadditionalPropertiesBoxedVoid
-implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) +## UserusernamePutPathParameters4BoxedVoid +public record UserusernamePutPathParameters4BoxedVoid
+implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutadditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | +| UserusernamePutPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutadditionalPropertiesBoxedBoolean -public record UserusernamePutadditionalPropertiesBoxedBoolean
-implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) +## UserusernamePutPathParameters4BoxedBoolean +public record UserusernamePutPathParameters4BoxedBoolean
+implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutadditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | +| UserusernamePutPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutadditionalPropertiesBoxedNumber -public record UserusernamePutadditionalPropertiesBoxedNumber
-implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) +## UserusernamePutPathParameters4BoxedNumber +public record UserusernamePutPathParameters4BoxedNumber
+implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutadditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | +| UserusernamePutPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutadditionalPropertiesBoxedString -public record UserusernamePutadditionalPropertiesBoxedString
-implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) +## UserusernamePutPathParameters4BoxedString +public record UserusernamePutPathParameters4BoxedString
+implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutadditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | +| UserusernamePutPathParameters4BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutadditionalPropertiesBoxedList -public record UserusernamePutadditionalPropertiesBoxedList
-implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) +## UserusernamePutPathParameters4BoxedList +public record UserusernamePutPathParameters4BoxedList
+implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutadditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| UserusernamePutPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutadditionalPropertiesBoxedMap -public record UserusernamePutadditionalPropertiesBoxedMap
-implements [UserusernamePutadditionalPropertiesBoxed](#userusernameputadditionalpropertiesboxed) +## UserusernamePutPathParameters4BoxedMap +public record UserusernamePutPathParameters4BoxedMap
+implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutadditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| UserusernamePutPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutadditionalProperties -public static class UserusernamePutadditionalProperties
+## UserusernamePutPathParameters4 +public static class UserusernamePutPathParameters4
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/servers/Server0.md b/samples/client/petstore/java/docs/servers/Server0.md index a677b924452..a5728360a61 100644 --- a/samples/client/petstore/java/docs/servers/Server0.md +++ b/samples/client/petstore/java/docs/servers/Server0.md @@ -11,12 +11,12 @@ petstore server | Constructor and Description | | --------------------------- | | Server0()
Creates a server using default values for variables | -| Server0([Server0Variables.Server0Variables20](../servers/server0/Server0Variables3.md#server0variables20) variables)
Creates a server using input values for variables | +| Server0([Server0Variables.Server0Variables14](../servers/server0/Server0Variables.md#server0variables14) variables)
Creates a server using input values for variables | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | | String | url = "http://{server}.swagger.io:{port}/v2" | -| [Server0Variables.Server0Variables20](../servers/server0/Server0Variables3.md#server0variables20) | variables | +| [Server0Variables.Server0Variables14](../servers/server0/Server0Variables.md#server0variables14) | variables | [[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/Server1.md b/samples/client/petstore/java/docs/servers/Server1.md index 5c5ca16abaf..72a7c497ebe 100644 --- a/samples/client/petstore/java/docs/servers/Server1.md +++ b/samples/client/petstore/java/docs/servers/Server1.md @@ -11,12 +11,12 @@ The local server | Constructor and Description | | --------------------------- | | Server1()
Creates a server using default values for variables | -| Server1([Server1Variables.Server1Variables16](../servers/server1/Server1Variables3.md#server1variables16) variables)
Creates a server using input values for variables | +| Server1([Server1Variables.Server1Variables11](../servers/server1/Server1Variables.md#server1variables11) variables)
Creates a server using input values for variables | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | | String | url = "https://localhost:8080/{version}" | -| [Server1Variables.Server1Variables16](../servers/server1/Server1Variables3.md#server1variables16) | variables | +| [Server1Variables.Server1Variables11](../servers/server1/Server1Variables.md#server1variables11) | variables | [[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/server0/Server0Variables25.md b/samples/client/petstore/java/docs/servers/server0/Server0Variables.md similarity index 64% rename from samples/client/petstore/java/docs/servers/server0/Server0Variables25.md rename to samples/client/petstore/java/docs/servers/server0/Server0Variables.md index 3cffab6237a..5a366058383 100644 --- a/samples/client/petstore/java/docs/servers/server0/Server0Variables25.md +++ b/samples/client/petstore/java/docs/servers/server0/Server0Variables.md @@ -15,24 +15,24 @@ A class that contains necessary nested | sealed interface | [Server0Variables.Server0Variables1Boxed](#server0variables1boxed)
sealed interface for validated payloads | | record | [Server0Variables.Server0Variables1BoxedMap](#server0variables1boxedmap)
boxed class to store validated Map payloads | | static class | [Server0Variables.Server0Variables1](#server0variables1)
schema class | -| static class | [Server0Variables.Server0Variables19](#server0variables19)
builder for Map payloads | -| static class | [Server0Variables.Server0Variables20](#server0variables20)
output class for Map payloads | -| sealed interface | [Server0Variables.Server0Variables8Boxed](#server0variables8boxed)
sealed interface for validated payloads | -| record | [Server0Variables.Server0Variables8BoxedString](#server0variables8boxedstring)
boxed class to store validated String payloads | -| static class | [Server0Variables.Server0Variables8](#server0variables8)
schema class | -| enum | [Server0Variables.StringServer0Variables10](#stringserver0variables10)
String enum | -| sealed interface | [Server0Variables.Server0Variables4Boxed](#server0variables4boxed)
sealed interface for validated payloads | -| record | [Server0Variables.Server0Variables4BoxedString](#server0variables4boxedstring)
boxed class to store validated String payloads | -| static class | [Server0Variables.Server0Variables4](#server0variables4)
schema class | +| static class | [Server0Variables.Server0Variables13](#server0variables13)
builder for Map payloads | +| static class | [Server0Variables.Server0Variables14](#server0variables14)
output class for Map payloads | +| sealed interface | [Server0Variables.Server0Variables5Boxed](#server0variables5boxed)
sealed interface for validated payloads | +| record | [Server0Variables.Server0Variables5BoxedString](#server0variables5boxedstring)
boxed class to store validated String payloads | +| static class | [Server0Variables.Server0Variables5](#server0variables5)
schema class | | enum | [Server0Variables.StringServer0Variables6](#stringserver0variables6)
String enum | -| sealed interface | [Server0Variables.Server0Variables13Boxed](#server0variables13boxed)
sealed interface for validated payloads | -| record | [Server0Variables.Server0Variables13BoxedVoid](#server0variables13boxedvoid)
boxed class to store validated null payloads | -| record | [Server0Variables.Server0Variables13BoxedBoolean](#server0variables13boxedboolean)
boxed class to store validated boolean payloads | -| record | [Server0Variables.Server0Variables13BoxedNumber](#server0variables13boxednumber)
boxed class to store validated Number payloads | -| record | [Server0Variables.Server0Variables13BoxedString](#server0variables13boxedstring)
boxed class to store validated String payloads | -| record | [Server0Variables.Server0Variables13BoxedList](#server0variables13boxedlist)
boxed class to store validated List payloads | -| record | [Server0Variables.Server0Variables13BoxedMap](#server0variables13boxedmap)
boxed class to store validated Map payloads | -| static class | [Server0Variables.Server0Variables13](#server0variables13)
schema class | +| sealed interface | [Server0Variables.Server0Variables2Boxed](#server0variables2boxed)
sealed interface for validated payloads | +| record | [Server0Variables.Server0Variables2BoxedString](#server0variables2boxedstring)
boxed class to store validated String payloads | +| static class | [Server0Variables.Server0Variables2](#server0variables2)
schema class | +| enum | [Server0Variables.StringServer0Variables3](#stringserver0variables3)
String enum | +| sealed interface | [Server0Variables.Server0Variables9Boxed](#server0variables9boxed)
sealed interface for validated payloads | +| record | [Server0Variables.Server0Variables9BoxedVoid](#server0variables9boxedvoid)
boxed class to store validated null payloads | +| record | [Server0Variables.Server0Variables9BoxedBoolean](#server0variables9boxedboolean)
boxed class to store validated boolean payloads | +| record | [Server0Variables.Server0Variables9BoxedNumber](#server0variables9boxednumber)
boxed class to store validated Number payloads | +| record | [Server0Variables.Server0Variables9BoxedString](#server0variables9boxedstring)
boxed class to store validated String payloads | +| record | [Server0Variables.Server0Variables9BoxedList](#server0variables9boxedlist)
boxed class to store validated List payloads | +| record | [Server0Variables.Server0Variables9BoxedMap](#server0variables9boxedmap)
boxed class to store validated Map payloads | +| static class | [Server0Variables.Server0Variables9](#server0variables9)
schema class | ## Server0Variables1Boxed public sealed interface Server0Variables1Boxed
@@ -50,12 +50,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables1BoxedMap([Server0Variables20](#server0variables20) data)
Creates an instance, private visibility | +| Server0Variables1BoxedMap([Server0Variables14](#server0variables14) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server0Variables20](#server0variables20) | data()
validated payload | +| [Server0Variables14](#server0variables14) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Server0Variables1 @@ -81,9 +81,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Server0Variables.Server0Variables20 validatedPayload = +Server0Variables.Server0Variables14 validatedPayload = Server0Variables.Server0Variables1.validate( - new Server0Variables.Server0Variables19() + new Server0Variables.Server0Variables13() .port("80") .server("petstore") @@ -97,20 +97,20 @@ Server0Variables.Server0Variables20 validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("server", [Server0Variables4.class](#server0variables4))),
    new PropertyEntry("port", [Server0Variables8.class](#server0variables8)))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("server", [Server0Variables2.class](#server0variables2))),
    new PropertyEntry("port", [Server0Variables5.class](#server0variables5)))
)
| | Set | required = Set.of(
    "port",
    "server"
)
| -| Class | additionalProperties = [Server0Variables13.class](#server0variables13) | +| Class | additionalProperties = [Server0Variables9.class](#server0variables9) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server0Variables20](#server0variables20) | validate([Map<?, ?>](#server0variables19) arg, SchemaConfiguration configuration) | -| [Server0Variables1BoxedMap](#server0variables1boxedmap) | validateAndBox([Map<?, ?>](#server0variables19) arg, SchemaConfiguration configuration) | +| [Server0Variables14](#server0variables14) | validate([Map<?, ?>](#server0variables13) arg, SchemaConfiguration configuration) | +| [Server0Variables1BoxedMap](#server0variables1boxedmap) | validateAndBox([Map<?, ?>](#server0variables13) arg, SchemaConfiguration configuration) | | [Server0Variables1Boxed](#server0variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Server0Variables21 -public class Server0Variables21
+## Server0Variables15 +public class Server0Variables15
builder for `Map` A class that builds the Map input type @@ -118,15 +118,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables21(Map instance)
Creates a builder that contains the passed instance | +| Server0Variables15(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## Server0Variables22 -public class Server0Variables22
+## Server0Variables16 +public class Server0Variables16
builder for `Map` A class that builds the Map input type @@ -134,16 +134,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables22(Map instance)
Creates a builder that contains the passed instance | +| Server0Variables16(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server0Variables21](#server0variables21) | server(String value) | -| [Server0Variables21](#server0variables21) | server([StringServer0Variables6](#stringserver0variables6) value) | +| [Server0Variables15](#server0variables15) | server(String value) | +| [Server0Variables15](#server0variables15) | server([StringServer0Variables3](#stringserver0variables3) value) | -## Server0Variables23 -public class Server0Variables23
+## Server0Variables17 +public class Server0Variables17
builder for `Map` A class that builds the Map input type @@ -151,16 +151,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables23(Map instance)
Creates a builder that contains the passed instance | +| Server0Variables17(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server0Variables21](#server0variables21) | port(String value) | -| [Server0Variables21](#server0variables21) | port([StringServer0Variables10](#stringserver0variables10) value) | +| [Server0Variables15](#server0variables15) | port(String value) | +| [Server0Variables15](#server0variables15) | port([StringServer0Variables6](#stringserver0variables6) value) | -## Server0Variables19 -public class Server0Variables19
+## Server0Variables13 +public class Server0Variables13
builder for `Map` A class that builds the Map input type @@ -168,18 +168,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables19()
Creates a builder that contains an empty map | +| Server0Variables13()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server0Variables22](#server0variables22) | port(String value) | -| [Server0Variables22](#server0variables22) | port([StringServer0Variables10](#stringserver0variables10) value) | -| [Server0Variables23](#server0variables23) | server(String value) | -| [Server0Variables23](#server0variables23) | server([StringServer0Variables6](#stringserver0variables6) value) | +| [Server0Variables16](#server0variables16) | port(String value) | +| [Server0Variables16](#server0variables16) | port([StringServer0Variables6](#stringserver0variables6) value) | +| [Server0Variables17](#server0variables17) | server(String value) | +| [Server0Variables17](#server0variables17) | server([StringServer0Variables3](#stringserver0variables3) value) | -## Server0Variables20 -public static class Server0Variables20
+## Server0Variables14 +public static class Server0Variables14
extends FrozenMap A class to store validated Map payloads @@ -187,27 +187,27 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Server0Variables20](#server0variables20) | of([Map](#server0variables19) arg, SchemaConfiguration configuration) | +| static [Server0Variables14](#server0variables14) | of([Map](#server0variables13) arg, SchemaConfiguration configuration) | | String | port()
must be one of ["80", "8080"] if omitted the server will use the default value of 80 | | String | server()
must be one of ["petstore", "qa-petstore", "dev-petstore"] if omitted the server will use the default value of petstore | -## Server0Variables8Boxed -public sealed interface Server0Variables8Boxed
+## Server0Variables5Boxed +public sealed interface Server0Variables5Boxed
permits
-[Server0Variables8BoxedString](#server0variables8boxedstring) +[Server0Variables5BoxedString](#server0variables5boxedstring) sealed interface that stores validated payloads using boxed classes -## Server0Variables8BoxedString -public record Server0Variables8BoxedString
-implements [Server0Variables8Boxed](#server0variables8boxed) +## Server0Variables5BoxedString +public record Server0Variables5BoxedString
+implements [Server0Variables5Boxed](#server0variables5boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables8BoxedString(String data)
Creates an instance, private visibility | +| Server0Variables5BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -215,8 +215,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables8 -public static class Server0Variables8
+## Server0Variables5 +public static class Server0Variables5
extends JsonSchema A schema class that validates payloads @@ -241,7 +241,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Server0Variables.Server0Variables8.validate( +String validatedPayload = Server0Variables.Server0Variables5.validate( "80", configuration ); @@ -258,14 +258,14 @@ String validatedPayload = Server0Variables.Server0Variables8.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringServer0Variables10](#stringserver0variables10) arg, SchemaConfiguration configuration) | -| [Server0Variables8BoxedString](#server0variables8boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Server0Variables8Boxed](#server0variables8boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringServer0Variables6](#stringserver0variables6) arg, SchemaConfiguration configuration) | +| [Server0Variables5BoxedString](#server0variables5boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Server0Variables5Boxed](#server0variables5boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringServer0Variables10 -public enum StringServer0Variables10
-extends `Enum` +## StringServer0Variables6 +public enum StringServer0Variables6
+extends `Enum` A class that stores String enum values @@ -275,23 +275,23 @@ A class that stores String enum values | POSITIVE_80 | value = "80" | | POSITIVE_8080 | value = "8080" | -## Server0Variables4Boxed -public sealed interface Server0Variables4Boxed
+## Server0Variables2Boxed +public sealed interface Server0Variables2Boxed
permits
-[Server0Variables4BoxedString](#server0variables4boxedstring) +[Server0Variables2BoxedString](#server0variables2boxedstring) sealed interface that stores validated payloads using boxed classes -## Server0Variables4BoxedString -public record Server0Variables4BoxedString
-implements [Server0Variables4Boxed](#server0variables4boxed) +## Server0Variables2BoxedString +public record Server0Variables2BoxedString
+implements [Server0Variables2Boxed](#server0variables2boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables4BoxedString(String data)
Creates an instance, private visibility | +| Server0Variables2BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -299,8 +299,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables4 -public static class Server0Variables4
+## Server0Variables2 +public static class Server0Variables2
extends JsonSchema A schema class that validates payloads @@ -325,7 +325,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Server0Variables.Server0Variables4.validate( +String validatedPayload = Server0Variables.Server0Variables2.validate( "petstore", configuration ); @@ -342,14 +342,14 @@ String validatedPayload = Server0Variables.Server0Variables4.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringServer0Variables6](#stringserver0variables6) arg, SchemaConfiguration configuration) | -| [Server0Variables4BoxedString](#server0variables4boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Server0Variables4Boxed](#server0variables4boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringServer0Variables3](#stringserver0variables3) arg, SchemaConfiguration configuration) | +| [Server0Variables2BoxedString](#server0variables2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Server0Variables2Boxed](#server0variables2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringServer0Variables6 -public enum StringServer0Variables6
-extends `Enum` +## StringServer0Variables3 +public enum StringServer0Variables3
+extends `Enum` A class that stores String enum values @@ -360,28 +360,28 @@ A class that stores String enum values | QA_HYPHEN_MINUS_PETSTORE | value = "qa-petstore" | | DEV_HYPHEN_MINUS_PETSTORE | value = "dev-petstore" | -## Server0Variables13Boxed -public sealed interface Server0Variables13Boxed
+## Server0Variables9Boxed +public sealed interface Server0Variables9Boxed
permits
-[Server0Variables13BoxedVoid](#server0variables13boxedvoid), -[Server0Variables13BoxedBoolean](#server0variables13boxedboolean), -[Server0Variables13BoxedNumber](#server0variables13boxednumber), -[Server0Variables13BoxedString](#server0variables13boxedstring), -[Server0Variables13BoxedList](#server0variables13boxedlist), -[Server0Variables13BoxedMap](#server0variables13boxedmap) +[Server0Variables9BoxedVoid](#server0variables9boxedvoid), +[Server0Variables9BoxedBoolean](#server0variables9boxedboolean), +[Server0Variables9BoxedNumber](#server0variables9boxednumber), +[Server0Variables9BoxedString](#server0variables9boxedstring), +[Server0Variables9BoxedList](#server0variables9boxedlist), +[Server0Variables9BoxedMap](#server0variables9boxedmap) sealed interface that stores validated payloads using boxed classes -## Server0Variables13BoxedVoid -public record Server0Variables13BoxedVoid
-implements [Server0Variables13Boxed](#server0variables13boxed) +## Server0Variables9BoxedVoid +public record Server0Variables9BoxedVoid
+implements [Server0Variables9Boxed](#server0variables9boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables13BoxedVoid(Void data)
Creates an instance, private visibility | +| Server0Variables9BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -389,16 +389,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables13BoxedBoolean -public record Server0Variables13BoxedBoolean
-implements [Server0Variables13Boxed](#server0variables13boxed) +## Server0Variables9BoxedBoolean +public record Server0Variables9BoxedBoolean
+implements [Server0Variables9Boxed](#server0variables9boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables13BoxedBoolean(boolean data)
Creates an instance, private visibility | +| Server0Variables9BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -406,16 +406,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables13BoxedNumber -public record Server0Variables13BoxedNumber
-implements [Server0Variables13Boxed](#server0variables13boxed) +## Server0Variables9BoxedNumber +public record Server0Variables9BoxedNumber
+implements [Server0Variables9Boxed](#server0variables9boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables13BoxedNumber(Number data)
Creates an instance, private visibility | +| Server0Variables9BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -423,16 +423,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables13BoxedString -public record Server0Variables13BoxedString
-implements [Server0Variables13Boxed](#server0variables13boxed) +## Server0Variables9BoxedString +public record Server0Variables9BoxedString
+implements [Server0Variables9Boxed](#server0variables9boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables13BoxedString(String data)
Creates an instance, private visibility | +| Server0Variables9BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -440,16 +440,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables13BoxedList -public record Server0Variables13BoxedList
-implements [Server0Variables13Boxed](#server0variables13boxed) +## Server0Variables9BoxedList +public record Server0Variables9BoxedList
+implements [Server0Variables9Boxed](#server0variables9boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables13BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| Server0Variables9BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -457,16 +457,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables13BoxedMap -public record Server0Variables13BoxedMap
-implements [Server0Variables13Boxed](#server0variables13boxed) +## Server0Variables9BoxedMap +public record Server0Variables9BoxedMap
+implements [Server0Variables9Boxed](#server0variables9boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables13BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| Server0Variables9BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -474,8 +474,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables13 -public static class Server0Variables13
+## Server0Variables9 +public static class Server0Variables9
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/servers/server1/Server1Variables19.md b/samples/client/petstore/java/docs/servers/server1/Server1Variables.md similarity index 64% rename from samples/client/petstore/java/docs/servers/server1/Server1Variables19.md rename to samples/client/petstore/java/docs/servers/server1/Server1Variables.md index b38864258d9..3a1c12f39b5 100644 --- a/samples/client/petstore/java/docs/servers/server1/Server1Variables19.md +++ b/samples/client/petstore/java/docs/servers/server1/Server1Variables.md @@ -15,20 +15,20 @@ A class that contains necessary nested | sealed interface | [Server1Variables.Server1Variables1Boxed](#server1variables1boxed)
sealed interface for validated payloads | | record | [Server1Variables.Server1Variables1BoxedMap](#server1variables1boxedmap)
boxed class to store validated Map payloads | | static class | [Server1Variables.Server1Variables1](#server1variables1)
schema class | -| static class | [Server1Variables.Server1Variables15](#server1variables15)
builder for Map payloads | -| static class | [Server1Variables.Server1Variables16](#server1variables16)
output class for Map payloads | -| sealed interface | [Server1Variables.Server1Variables4Boxed](#server1variables4boxed)
sealed interface for validated payloads | -| record | [Server1Variables.Server1Variables4BoxedString](#server1variables4boxedstring)
boxed class to store validated String payloads | -| static class | [Server1Variables.Server1Variables4](#server1variables4)
schema class | -| enum | [Server1Variables.StringServer1Variables6](#stringserver1variables6)
String enum | -| sealed interface | [Server1Variables.Server1Variables9Boxed](#server1variables9boxed)
sealed interface for validated payloads | -| record | [Server1Variables.Server1Variables9BoxedVoid](#server1variables9boxedvoid)
boxed class to store validated null payloads | -| record | [Server1Variables.Server1Variables9BoxedBoolean](#server1variables9boxedboolean)
boxed class to store validated boolean payloads | -| record | [Server1Variables.Server1Variables9BoxedNumber](#server1variables9boxednumber)
boxed class to store validated Number payloads | -| record | [Server1Variables.Server1Variables9BoxedString](#server1variables9boxedstring)
boxed class to store validated String payloads | -| record | [Server1Variables.Server1Variables9BoxedList](#server1variables9boxedlist)
boxed class to store validated List payloads | -| record | [Server1Variables.Server1Variables9BoxedMap](#server1variables9boxedmap)
boxed class to store validated Map payloads | -| static class | [Server1Variables.Server1Variables9](#server1variables9)
schema class | +| static class | [Server1Variables.Server1Variables10](#server1variables10)
builder for Map payloads | +| static class | [Server1Variables.Server1Variables11](#server1variables11)
output class for Map payloads | +| sealed interface | [Server1Variables.Server1Variables2Boxed](#server1variables2boxed)
sealed interface for validated payloads | +| record | [Server1Variables.Server1Variables2BoxedString](#server1variables2boxedstring)
boxed class to store validated String payloads | +| static class | [Server1Variables.Server1Variables2](#server1variables2)
schema class | +| enum | [Server1Variables.StringServer1Variables3](#stringserver1variables3)
String enum | +| sealed interface | [Server1Variables.Server1Variables6Boxed](#server1variables6boxed)
sealed interface for validated payloads | +| record | [Server1Variables.Server1Variables6BoxedVoid](#server1variables6boxedvoid)
boxed class to store validated null payloads | +| record | [Server1Variables.Server1Variables6BoxedBoolean](#server1variables6boxedboolean)
boxed class to store validated boolean payloads | +| record | [Server1Variables.Server1Variables6BoxedNumber](#server1variables6boxednumber)
boxed class to store validated Number payloads | +| record | [Server1Variables.Server1Variables6BoxedString](#server1variables6boxedstring)
boxed class to store validated String payloads | +| record | [Server1Variables.Server1Variables6BoxedList](#server1variables6boxedlist)
boxed class to store validated List payloads | +| record | [Server1Variables.Server1Variables6BoxedMap](#server1variables6boxedmap)
boxed class to store validated Map payloads | +| static class | [Server1Variables.Server1Variables6](#server1variables6)
schema class | ## Server1Variables1Boxed public sealed interface Server1Variables1Boxed
@@ -46,12 +46,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables1BoxedMap([Server1Variables16](#server1variables16) data)
Creates an instance, private visibility | +| Server1Variables1BoxedMap([Server1Variables11](#server1variables11) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server1Variables16](#server1variables16) | data()
validated payload | +| [Server1Variables11](#server1variables11) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Server1Variables1 @@ -77,9 +77,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Server1Variables.Server1Variables16 validatedPayload = +Server1Variables.Server1Variables11 validatedPayload = Server1Variables.Server1Variables1.validate( - new Server1Variables.Server1Variables15() + new Server1Variables.Server1Variables10() .version("v1") .build(), @@ -91,20 +91,20 @@ Server1Variables.Server1Variables16 validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Server1Variables4.class](#server1variables4)))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Server1Variables2.class](#server1variables2)))
)
| | Set | required = Set.of(
    "version"
)
| -| Class | additionalProperties = [Server1Variables9.class](#server1variables9) | +| Class | additionalProperties = [Server1Variables6.class](#server1variables6) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server1Variables16](#server1variables16) | validate([Map<?, ?>](#server1variables15) arg, SchemaConfiguration configuration) | -| [Server1Variables1BoxedMap](#server1variables1boxedmap) | validateAndBox([Map<?, ?>](#server1variables15) arg, SchemaConfiguration configuration) | +| [Server1Variables11](#server1variables11) | validate([Map<?, ?>](#server1variables10) arg, SchemaConfiguration configuration) | +| [Server1Variables1BoxedMap](#server1variables1boxedmap) | validateAndBox([Map<?, ?>](#server1variables10) arg, SchemaConfiguration configuration) | | [Server1Variables1Boxed](#server1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Server1Variables17 -public class Server1Variables17
+## Server1Variables12 +public class Server1Variables12
builder for `Map` A class that builds the Map input type @@ -112,15 +112,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables17(Map instance)
Creates a builder that contains the passed instance | +| Server1Variables12(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## Server1Variables15 -public class Server1Variables15
+## Server1Variables10 +public class Server1Variables10
builder for `Map` A class that builds the Map input type @@ -128,16 +128,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables15()
Creates a builder that contains an empty map | +| Server1Variables10()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server1Variables17](#server1variables17) | version(String value) | -| [Server1Variables17](#server1variables17) | version([StringServer1Variables6](#stringserver1variables6) value) | +| [Server1Variables12](#server1variables12) | version(String value) | +| [Server1Variables12](#server1variables12) | version([StringServer1Variables3](#stringserver1variables3) value) | -## Server1Variables16 -public static class Server1Variables16
+## Server1Variables11 +public static class Server1Variables11
extends FrozenMap A class to store validated Map payloads @@ -145,26 +145,26 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Server1Variables16](#server1variables16) | of([Map](#server1variables15) arg, SchemaConfiguration configuration) | +| static [Server1Variables11](#server1variables11) | of([Map](#server1variables10) arg, SchemaConfiguration configuration) | | String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v2 | -## Server1Variables4Boxed -public sealed interface Server1Variables4Boxed
+## Server1Variables2Boxed +public sealed interface Server1Variables2Boxed
permits
-[Server1Variables4BoxedString](#server1variables4boxedstring) +[Server1Variables2BoxedString](#server1variables2boxedstring) sealed interface that stores validated payloads using boxed classes -## Server1Variables4BoxedString -public record Server1Variables4BoxedString
-implements [Server1Variables4Boxed](#server1variables4boxed) +## Server1Variables2BoxedString +public record Server1Variables2BoxedString
+implements [Server1Variables2Boxed](#server1variables2boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables4BoxedString(String data)
Creates an instance, private visibility | +| Server1Variables2BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,8 +172,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables4 -public static class Server1Variables4
+## Server1Variables2 +public static class Server1Variables2
extends JsonSchema A schema class that validates payloads @@ -195,7 +195,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Server1Variables.Server1Variables4.validate( +String validatedPayload = Server1Variables.Server1Variables2.validate( "v1", configuration ); @@ -212,14 +212,14 @@ String validatedPayload = Server1Variables.Server1Variables4.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringServer1Variables6](#stringserver1variables6) arg, SchemaConfiguration configuration) | -| [Server1Variables4BoxedString](#server1variables4boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Server1Variables4Boxed](#server1variables4boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringServer1Variables3](#stringserver1variables3) arg, SchemaConfiguration configuration) | +| [Server1Variables2BoxedString](#server1variables2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Server1Variables2Boxed](#server1variables2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringServer1Variables6 -public enum StringServer1Variables6
-extends `Enum` +## StringServer1Variables3 +public enum StringServer1Variables3
+extends `Enum` A class that stores String enum values @@ -229,28 +229,28 @@ A class that stores String enum values | V1 | value = "v1" | | V2 | value = "v2" | -## Server1Variables9Boxed -public sealed interface Server1Variables9Boxed
+## Server1Variables6Boxed +public sealed interface Server1Variables6Boxed
permits
-[Server1Variables9BoxedVoid](#server1variables9boxedvoid), -[Server1Variables9BoxedBoolean](#server1variables9boxedboolean), -[Server1Variables9BoxedNumber](#server1variables9boxednumber), -[Server1Variables9BoxedString](#server1variables9boxedstring), -[Server1Variables9BoxedList](#server1variables9boxedlist), -[Server1Variables9BoxedMap](#server1variables9boxedmap) +[Server1Variables6BoxedVoid](#server1variables6boxedvoid), +[Server1Variables6BoxedBoolean](#server1variables6boxedboolean), +[Server1Variables6BoxedNumber](#server1variables6boxednumber), +[Server1Variables6BoxedString](#server1variables6boxedstring), +[Server1Variables6BoxedList](#server1variables6boxedlist), +[Server1Variables6BoxedMap](#server1variables6boxedmap) sealed interface that stores validated payloads using boxed classes -## Server1Variables9BoxedVoid -public record Server1Variables9BoxedVoid
-implements [Server1Variables9Boxed](#server1variables9boxed) +## Server1Variables6BoxedVoid +public record Server1Variables6BoxedVoid
+implements [Server1Variables6Boxed](#server1variables6boxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables9BoxedVoid(Void data)
Creates an instance, private visibility | +| Server1Variables6BoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables9BoxedBoolean -public record Server1Variables9BoxedBoolean
-implements [Server1Variables9Boxed](#server1variables9boxed) +## Server1Variables6BoxedBoolean +public record Server1Variables6BoxedBoolean
+implements [Server1Variables6Boxed](#server1variables6boxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables9BoxedBoolean(boolean data)
Creates an instance, private visibility | +| Server1Variables6BoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables9BoxedNumber -public record Server1Variables9BoxedNumber
-implements [Server1Variables9Boxed](#server1variables9boxed) +## Server1Variables6BoxedNumber +public record Server1Variables6BoxedNumber
+implements [Server1Variables6Boxed](#server1variables6boxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables9BoxedNumber(Number data)
Creates an instance, private visibility | +| Server1Variables6BoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,16 +292,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables9BoxedString -public record Server1Variables9BoxedString
-implements [Server1Variables9Boxed](#server1variables9boxed) +## Server1Variables6BoxedString +public record Server1Variables6BoxedString
+implements [Server1Variables6Boxed](#server1variables6boxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables9BoxedString(String data)
Creates an instance, private visibility | +| Server1Variables6BoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -309,16 +309,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables9BoxedList -public record Server1Variables9BoxedList
-implements [Server1Variables9Boxed](#server1variables9boxed) +## Server1Variables6BoxedList +public record Server1Variables6BoxedList
+implements [Server1Variables6Boxed](#server1variables6boxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables9BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| Server1Variables6BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -326,16 +326,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables9BoxedMap -public record Server1Variables9BoxedMap
-implements [Server1Variables9Boxed](#server1variables9boxed) +## Server1Variables6BoxedMap +public record Server1Variables6BoxedMap
+implements [Server1Variables6Boxed](#server1variables6boxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables9BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| Server1Variables6BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -343,8 +343,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables9 -public static class Server1Variables9
+## Server1Variables6 +public static class Server1Variables6
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java index 3ae866cb0b8..2112d55ae56 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java @@ -86,14 +86,14 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters; - public CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap headerParameters; + public CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters; + public CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParameters9 headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters, - CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap headerParameters, + CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters, + CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParameters9 headerParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -105,8 +105,8 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public CommonparamsubdirDeletePathParameters.@Nullable CommonparamsubdirDeletePathParametersMap pathParameters; - public CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParametersMap headerParameters; + public CommonparamsubdirDeletePathParameters.@Nullable CommonparamsubdirDeletePathParameters9 pathParameters; + public CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParameters9 headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -114,7 +114,7 @@ public static class DeleteNullableRequest { public interface SetterForHeaderParameters { DeleteNullableRequest getInstance(); T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); - default T headerParameters(CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParametersMap headerParameters) { + default T headerParameters(CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters9 headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -144,7 +144,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParametersMap pathParameters) { + default T pathParameters(CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java index 136e4df74bf..55b05ab984b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java @@ -87,14 +87,14 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters; - public CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap queryParameters; + public CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters; + public CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParameters9 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters, - CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap queryParameters, + CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters, + CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParameters9 queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -106,8 +106,8 @@ public GetRequest( } public static class GetNullableRequest { - public CommonparamsubdirGetPathParameters.@Nullable CommonparamsubdirGetPathParametersMap pathParameters; - public CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParametersMap queryParameters; + public CommonparamsubdirGetPathParameters.@Nullable CommonparamsubdirGetPathParameters9 pathParameters; + public CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParameters9 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -115,7 +115,7 @@ public static class GetNullableRequest { public interface SetterForQueryParameters { GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParametersMap queryParameters) { + default T queryParameters(CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters9 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); @@ -145,7 +145,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParametersMap pathParameters) { + default T pathParameters(CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java index eed682768d7..303ccb65ef0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java @@ -86,14 +86,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters; - public CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap headerParameters; + public CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters; + public CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParameters9 headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters, - CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap headerParameters, + CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters, + CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParameters9 headerParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -105,8 +105,8 @@ public PostRequest( } public static class PostNullableRequest { - public CommonparamsubdirPostPathParameters.@Nullable CommonparamsubdirPostPathParametersMap pathParameters; - public CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParametersMap headerParameters; + public CommonparamsubdirPostPathParameters.@Nullable CommonparamsubdirPostPathParameters9 pathParameters; + public CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParameters9 headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -114,7 +114,7 @@ public static class PostNullableRequest { public interface SetterForHeaderParameters { PostNullableRequest getInstance(); T getBuilderAfterHeaderParameters(PostNullableRequest instance); - default T headerParameters(CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParametersMap headerParameters) { + default T headerParameters(CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters9 headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -144,7 +144,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParametersMap pathParameters) { + default T pathParameters(CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java index 2d2a4ce8dbd..a59df5da7f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirDeleteHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirDeleteHeaderParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirDeleteadditionalProperties instance = null; - public static CommonparamsubdirDeleteadditionalProperties getInstance() { + private static @Nullable CommonparamsubdirDeleteHeaderParameters4 instance = null; + public static CommonparamsubdirDeleteHeaderParameters4 getInstance() { if (instance == null) { - instance = new CommonparamsubdirDeleteadditionalProperties(); + instance = new CommonparamsubdirDeleteHeaderParameters4(); } return instance; } } - public static class CommonparamsubdirDeleteHeaderParametersMap extends FrozenMap { - protected CommonparamsubdirDeleteHeaderParametersMap(FrozenMap m) { + public static class CommonparamsubdirDeleteHeaderParameters9 extends FrozenMap { + protected CommonparamsubdirDeleteHeaderParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "someHeader" ); - public static CommonparamsubdirDeleteHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static CommonparamsubdirDeleteHeaderParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirDeleteHeaderParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public String someHeader() throws UnsetPropertyException { } } - public interface SetterForCommonparamsubdirDeletesomeHeader { + public interface SetterForCommonparamsubdirDeleteHeaderParameters2 { Map getInstance(); - T getBuilderAfterCommonparamsubdirDeletesomeHeader(Map instance); + T getBuilderAfterCommonparamsubdirDeleteHeaderParameters2(Map instance); default T someHeader(String value) { var instance = getInstance(); instance.put("someHeader", value); - return getBuilderAfterCommonparamsubdirDeletesomeHeader(instance); + return getBuilderAfterCommonparamsubdirDeleteHeaderParameters2(instance); } } - public static class CommonparamsubdirDeleteHeaderParametersMapBuilder implements GenericBuilder>, SetterForCommonparamsubdirDeletesomeHeader { + public static class CommonparamsubdirDeleteHeaderParameters8 implements GenericBuilder>, SetterForCommonparamsubdirDeleteHeaderParameters2 { private final Map instance; private static final Set knownKeys = Set.of( "someHeader" @@ -77,7 +77,7 @@ public static class CommonparamsubdirDeleteHeaderParametersMapBuilder implements public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirDeleteHeaderParametersMapBuilder() { + public CommonparamsubdirDeleteHeaderParameters8() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,7 +86,7 @@ public Map build() { public Map getInstance() { return instance; } - public CommonparamsubdirDeleteHeaderParametersMapBuilder getBuilderAfterCommonparamsubdirDeletesomeHeader(Map instance) { + public CommonparamsubdirDeleteHeaderParameters8 getBuilderAfterCommonparamsubdirDeleteHeaderParameters2(Map instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface CommonparamsubdirDeleteHeaderParameters1Boxed permits Co @Nullable Object getData(); } - public record CommonparamsubdirDeleteHeaderParameters1BoxedMap(CommonparamsubdirDeleteHeaderParametersMap data) implements CommonparamsubdirDeleteHeaderParameters1Boxed { + public record CommonparamsubdirDeleteHeaderParameters1BoxedMap(CommonparamsubdirDeleteHeaderParameters9 data) implements CommonparamsubdirDeleteHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record CommonparamsubdirDeleteHeaderParameters1BoxedMap(Commonparamsubdir } - public static class CommonparamsubdirDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirDeleteHeaderParameters1 instance = null; protected CommonparamsubdirDeleteHeaderParameters1() { @@ -113,7 +113,7 @@ protected CommonparamsubdirDeleteHeaderParameters1() { .properties(Map.ofEntries( new PropertyEntry("someHeader", Schema0.Schema01.class) )) - .additionalProperties(CommonparamsubdirDeleteadditionalProperties.class) + .additionalProperties(CommonparamsubdirDeleteHeaderParameters4.class) ); } @@ -124,7 +124,7 @@ public static CommonparamsubdirDeleteHeaderParameters1 getInstance() { return instance; } - public CommonparamsubdirDeleteHeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirDeleteHeaderParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public CommonparamsubdirDeleteHeaderParametersMap getNewInstance(Map arg, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirDeleteHeaderParametersMap(castProperties); + return new CommonparamsubdirDeleteHeaderParameters9(castProperties); } - public CommonparamsubdirDeleteHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirDeleteHeaderParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java index 69980626b94..8ae86708b55 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirDeletePathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirDeleteadditionalProperties instance = null; - public static CommonparamsubdirDeleteadditionalProperties getInstance() { + private static @Nullable CommonparamsubdirDeletePathParameters4 instance = null; + public static CommonparamsubdirDeletePathParameters4 getInstance() { if (instance == null) { - instance = new CommonparamsubdirDeleteadditionalProperties(); + instance = new CommonparamsubdirDeletePathParameters4(); } return instance; } } - public static class CommonparamsubdirDeletePathParametersMap extends FrozenMap { - protected CommonparamsubdirDeletePathParametersMap(FrozenMap m) { + public static class CommonparamsubdirDeletePathParameters9 extends FrozenMap { + protected CommonparamsubdirDeletePathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "subDir" ); public static final Set optionalKeys = Set.of(); - public static CommonparamsubdirDeletePathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static CommonparamsubdirDeletePathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirDeletePathParameters1.getInstance().validate(arg, configuration); } @@ -62,24 +62,24 @@ public String subDir() { } } - public interface SetterForCommonparamsubdirDeletesubDir { + public interface SetterForCommonparamsubdirDeletePathParameters2 { Map getInstance(); - T getBuilderAfterCommonparamsubdirDeletesubDir(Map instance); + T getBuilderAfterCommonparamsubdirDeletePathParameters2(Map instance); default T subDir(String value) { var instance = getInstance(); instance.put("subDir", value); - return getBuilderAfterCommonparamsubdirDeletesubDir(instance); + return getBuilderAfterCommonparamsubdirDeletePathParameters2(instance); } default T subDir(Schema1.StringSchemaEnums1 value) { var instance = getInstance(); instance.put("subDir", value.value()); - return getBuilderAfterCommonparamsubdirDeletesubDir(instance); + return getBuilderAfterCommonparamsubdirDeletePathParameters2(instance); } } - public static class CommonparamsubdirDeletePathParametersMap0Builder implements GenericBuilder> { + public static class CommonparamsubdirDeletePathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "subDir" @@ -87,7 +87,7 @@ public static class CommonparamsubdirDeletePathParametersMap0Builder implements public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirDeletePathParametersMap0Builder(Map instance) { + public CommonparamsubdirDeletePathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -95,16 +95,16 @@ public Map build() { } } - public static class CommonparamsubdirDeletePathParametersMapBuilder implements SetterForCommonparamsubdirDeletesubDir { + public static class CommonparamsubdirDeletePathParameters8 implements SetterForCommonparamsubdirDeletePathParameters2 { private final Map instance; - public CommonparamsubdirDeletePathParametersMapBuilder() { + public CommonparamsubdirDeletePathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public CommonparamsubdirDeletePathParametersMap0Builder getBuilderAfterCommonparamsubdirDeletesubDir(Map instance) { - return new CommonparamsubdirDeletePathParametersMap0Builder(instance); + public CommonparamsubdirDeletePathParameters10 getBuilderAfterCommonparamsubdirDeletePathParameters2(Map instance) { + return new CommonparamsubdirDeletePathParameters10(instance); } } @@ -113,7 +113,7 @@ public sealed interface CommonparamsubdirDeletePathParameters1Boxed permits Comm @Nullable Object getData(); } - public record CommonparamsubdirDeletePathParameters1BoxedMap(CommonparamsubdirDeletePathParametersMap data) implements CommonparamsubdirDeletePathParameters1Boxed { + public record CommonparamsubdirDeletePathParameters1BoxedMap(CommonparamsubdirDeletePathParameters9 data) implements CommonparamsubdirDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -121,7 +121,7 @@ public record CommonparamsubdirDeletePathParameters1BoxedMap(CommonparamsubdirDe } - public static class CommonparamsubdirDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirDeletePathParameters1 instance = null; protected CommonparamsubdirDeletePathParameters1() { @@ -133,7 +133,7 @@ protected CommonparamsubdirDeletePathParameters1() { .required(Set.of( "subDir" )) - .additionalProperties(CommonparamsubdirDeleteadditionalProperties.class) + .additionalProperties(CommonparamsubdirDeletePathParameters4.class) ); } @@ -144,7 +144,7 @@ public static CommonparamsubdirDeletePathParameters1 getInstance() { return instance; } - public CommonparamsubdirDeletePathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirDeletePathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -167,10 +167,10 @@ public CommonparamsubdirDeletePathParametersMap getNewInstance(Map arg, Li properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirDeletePathParametersMap(castProperties); + return new CommonparamsubdirDeletePathParameters9(castProperties); } - public CommonparamsubdirDeletePathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirDeletePathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java index cffa50b94f4..97ddfefa77f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirGetPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirGetadditionalProperties instance = null; - public static CommonparamsubdirGetadditionalProperties getInstance() { + private static @Nullable CommonparamsubdirGetPathParameters4 instance = null; + public static CommonparamsubdirGetPathParameters4 getInstance() { if (instance == null) { - instance = new CommonparamsubdirGetadditionalProperties(); + instance = new CommonparamsubdirGetPathParameters4(); } return instance; } } - public static class CommonparamsubdirGetPathParametersMap extends FrozenMap { - protected CommonparamsubdirGetPathParametersMap(FrozenMap m) { + public static class CommonparamsubdirGetPathParameters9 extends FrozenMap { + protected CommonparamsubdirGetPathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "subDir" ); public static final Set optionalKeys = Set.of(); - public static CommonparamsubdirGetPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static CommonparamsubdirGetPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirGetPathParameters1.getInstance().validate(arg, configuration); } @@ -62,24 +62,24 @@ public String subDir() { } } - public interface SetterForCommonparamsubdirGetsubDir { + public interface SetterForCommonparamsubdirGetPathParameters2 { Map getInstance(); - T getBuilderAfterCommonparamsubdirGetsubDir(Map instance); + T getBuilderAfterCommonparamsubdirGetPathParameters2(Map instance); default T subDir(String value) { var instance = getInstance(); instance.put("subDir", value); - return getBuilderAfterCommonparamsubdirGetsubDir(instance); + return getBuilderAfterCommonparamsubdirGetPathParameters2(instance); } default T subDir(RouteParamSchema0.StringRouteParamSchemaEnums0 value) { var instance = getInstance(); instance.put("subDir", value.value()); - return getBuilderAfterCommonparamsubdirGetsubDir(instance); + return getBuilderAfterCommonparamsubdirGetPathParameters2(instance); } } - public static class CommonparamsubdirGetPathParametersMap0Builder implements GenericBuilder> { + public static class CommonparamsubdirGetPathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "subDir" @@ -87,7 +87,7 @@ public static class CommonparamsubdirGetPathParametersMap0Builder implements Gen public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirGetPathParametersMap0Builder(Map instance) { + public CommonparamsubdirGetPathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -95,16 +95,16 @@ public Map build() { } } - public static class CommonparamsubdirGetPathParametersMapBuilder implements SetterForCommonparamsubdirGetsubDir { + public static class CommonparamsubdirGetPathParameters8 implements SetterForCommonparamsubdirGetPathParameters2 { private final Map instance; - public CommonparamsubdirGetPathParametersMapBuilder() { + public CommonparamsubdirGetPathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public CommonparamsubdirGetPathParametersMap0Builder getBuilderAfterCommonparamsubdirGetsubDir(Map instance) { - return new CommonparamsubdirGetPathParametersMap0Builder(instance); + public CommonparamsubdirGetPathParameters10 getBuilderAfterCommonparamsubdirGetPathParameters2(Map instance) { + return new CommonparamsubdirGetPathParameters10(instance); } } @@ -113,7 +113,7 @@ public sealed interface CommonparamsubdirGetPathParameters1Boxed permits Commonp @Nullable Object getData(); } - public record CommonparamsubdirGetPathParameters1BoxedMap(CommonparamsubdirGetPathParametersMap data) implements CommonparamsubdirGetPathParameters1Boxed { + public record CommonparamsubdirGetPathParameters1BoxedMap(CommonparamsubdirGetPathParameters9 data) implements CommonparamsubdirGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -121,7 +121,7 @@ public record CommonparamsubdirGetPathParameters1BoxedMap(CommonparamsubdirGetPa } - public static class CommonparamsubdirGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirGetPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirGetPathParameters1 instance = null; protected CommonparamsubdirGetPathParameters1() { @@ -133,7 +133,7 @@ protected CommonparamsubdirGetPathParameters1() { .required(Set.of( "subDir" )) - .additionalProperties(CommonparamsubdirGetadditionalProperties.class) + .additionalProperties(CommonparamsubdirGetPathParameters4.class) ); } @@ -144,7 +144,7 @@ public static CommonparamsubdirGetPathParameters1 getInstance() { return instance; } - public CommonparamsubdirGetPathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirGetPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -167,10 +167,10 @@ public CommonparamsubdirGetPathParametersMap getNewInstance(Map arg, List< properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirGetPathParametersMap(castProperties); + return new CommonparamsubdirGetPathParameters9(castProperties); } - public CommonparamsubdirGetPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirGetPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java index 0bcf340194d..2d2e77f2195 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirGetadditionalProperties instance = null; - public static CommonparamsubdirGetadditionalProperties getInstance() { + private static @Nullable CommonparamsubdirGetQueryParameters4 instance = null; + public static CommonparamsubdirGetQueryParameters4 getInstance() { if (instance == null) { - instance = new CommonparamsubdirGetadditionalProperties(); + instance = new CommonparamsubdirGetQueryParameters4(); } return instance; } } - public static class CommonparamsubdirGetQueryParametersMap extends FrozenMap { - protected CommonparamsubdirGetQueryParametersMap(FrozenMap m) { + public static class CommonparamsubdirGetQueryParameters9 extends FrozenMap { + protected CommonparamsubdirGetQueryParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "searchStr" ); - public static CommonparamsubdirGetQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static CommonparamsubdirGetQueryParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public String searchStr() throws UnsetPropertyException { } } - public interface SetterForCommonparamsubdirGetsearchStr { + public interface SetterForCommonparamsubdirGetQueryParameters2 { Map getInstance(); - T getBuilderAfterCommonparamsubdirGetsearchStr(Map instance); + T getBuilderAfterCommonparamsubdirGetQueryParameters2(Map instance); default T searchStr(String value) { var instance = getInstance(); instance.put("searchStr", value); - return getBuilderAfterCommonparamsubdirGetsearchStr(instance); + return getBuilderAfterCommonparamsubdirGetQueryParameters2(instance); } } - public static class CommonparamsubdirGetQueryParametersMapBuilder implements GenericBuilder>, SetterForCommonparamsubdirGetsearchStr { + public static class CommonparamsubdirGetQueryParameters8 implements GenericBuilder>, SetterForCommonparamsubdirGetQueryParameters2 { private final Map instance; private static final Set knownKeys = Set.of( "searchStr" @@ -77,7 +77,7 @@ public static class CommonparamsubdirGetQueryParametersMapBuilder implements Gen public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirGetQueryParametersMapBuilder() { + public CommonparamsubdirGetQueryParameters8() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,7 +86,7 @@ public Map build() { public Map getInstance() { return instance; } - public CommonparamsubdirGetQueryParametersMapBuilder getBuilderAfterCommonparamsubdirGetsearchStr(Map instance) { + public CommonparamsubdirGetQueryParameters8 getBuilderAfterCommonparamsubdirGetQueryParameters2(Map instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface CommonparamsubdirGetQueryParameters1Boxed permits Common @Nullable Object getData(); } - public record CommonparamsubdirGetQueryParameters1BoxedMap(CommonparamsubdirGetQueryParametersMap data) implements CommonparamsubdirGetQueryParameters1Boxed { + public record CommonparamsubdirGetQueryParameters1BoxedMap(CommonparamsubdirGetQueryParameters9 data) implements CommonparamsubdirGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record CommonparamsubdirGetQueryParameters1BoxedMap(CommonparamsubdirGetQ } - public static class CommonparamsubdirGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirGetQueryParameters1 instance = null; protected CommonparamsubdirGetQueryParameters1() { @@ -113,7 +113,7 @@ protected CommonparamsubdirGetQueryParameters1() { .properties(Map.ofEntries( new PropertyEntry("searchStr", Schema0.Schema01.class) )) - .additionalProperties(CommonparamsubdirGetadditionalProperties.class) + .additionalProperties(CommonparamsubdirGetQueryParameters4.class) ); } @@ -124,7 +124,7 @@ public static CommonparamsubdirGetQueryParameters1 getInstance() { return instance; } - public CommonparamsubdirGetQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public CommonparamsubdirGetQueryParametersMap getNewInstance(Map arg, List properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirGetQueryParametersMap(castProperties); + return new CommonparamsubdirGetQueryParameters9(castProperties); } - public CommonparamsubdirGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java index 96b42d5dccc..373514519b6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirPostHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirPostHeaderParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirPostadditionalProperties instance = null; - public static CommonparamsubdirPostadditionalProperties getInstance() { + private static @Nullable CommonparamsubdirPostHeaderParameters4 instance = null; + public static CommonparamsubdirPostHeaderParameters4 getInstance() { if (instance == null) { - instance = new CommonparamsubdirPostadditionalProperties(); + instance = new CommonparamsubdirPostHeaderParameters4(); } return instance; } } - public static class CommonparamsubdirPostHeaderParametersMap extends FrozenMap { - protected CommonparamsubdirPostHeaderParametersMap(FrozenMap m) { + public static class CommonparamsubdirPostHeaderParameters9 extends FrozenMap { + protected CommonparamsubdirPostHeaderParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "someHeader" ); - public static CommonparamsubdirPostHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static CommonparamsubdirPostHeaderParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirPostHeaderParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public String someHeader() throws UnsetPropertyException { } } - public interface SetterForCommonparamsubdirPostsomeHeader { + public interface SetterForCommonparamsubdirPostHeaderParameters2 { Map getInstance(); - T getBuilderAfterCommonparamsubdirPostsomeHeader(Map instance); + T getBuilderAfterCommonparamsubdirPostHeaderParameters2(Map instance); default T someHeader(String value) { var instance = getInstance(); instance.put("someHeader", value); - return getBuilderAfterCommonparamsubdirPostsomeHeader(instance); + return getBuilderAfterCommonparamsubdirPostHeaderParameters2(instance); } } - public static class CommonparamsubdirPostHeaderParametersMapBuilder implements GenericBuilder>, SetterForCommonparamsubdirPostsomeHeader { + public static class CommonparamsubdirPostHeaderParameters8 implements GenericBuilder>, SetterForCommonparamsubdirPostHeaderParameters2 { private final Map instance; private static final Set knownKeys = Set.of( "someHeader" @@ -77,7 +77,7 @@ public static class CommonparamsubdirPostHeaderParametersMapBuilder implements G public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirPostHeaderParametersMapBuilder() { + public CommonparamsubdirPostHeaderParameters8() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,7 +86,7 @@ public Map build() { public Map getInstance() { return instance; } - public CommonparamsubdirPostHeaderParametersMapBuilder getBuilderAfterCommonparamsubdirPostsomeHeader(Map instance) { + public CommonparamsubdirPostHeaderParameters8 getBuilderAfterCommonparamsubdirPostHeaderParameters2(Map instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface CommonparamsubdirPostHeaderParameters1Boxed permits Comm @Nullable Object getData(); } - public record CommonparamsubdirPostHeaderParameters1BoxedMap(CommonparamsubdirPostHeaderParametersMap data) implements CommonparamsubdirPostHeaderParameters1Boxed { + public record CommonparamsubdirPostHeaderParameters1BoxedMap(CommonparamsubdirPostHeaderParameters9 data) implements CommonparamsubdirPostHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record CommonparamsubdirPostHeaderParameters1BoxedMap(CommonparamsubdirPo } - public static class CommonparamsubdirPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirPostHeaderParameters1 instance = null; protected CommonparamsubdirPostHeaderParameters1() { @@ -113,7 +113,7 @@ protected CommonparamsubdirPostHeaderParameters1() { .properties(Map.ofEntries( new PropertyEntry("someHeader", Schema0.Schema01.class) )) - .additionalProperties(CommonparamsubdirPostadditionalProperties.class) + .additionalProperties(CommonparamsubdirPostHeaderParameters4.class) ); } @@ -124,7 +124,7 @@ public static CommonparamsubdirPostHeaderParameters1 getInstance() { return instance; } - public CommonparamsubdirPostHeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirPostHeaderParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public CommonparamsubdirPostHeaderParametersMap getNewInstance(Map arg, Li properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirPostHeaderParametersMap(castProperties); + return new CommonparamsubdirPostHeaderParameters9(castProperties); } - public CommonparamsubdirPostHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirPostHeaderParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java index d3f0a6c1d9f..29f45bc819c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirPostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class CommonparamsubdirPostPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirPostadditionalProperties instance = null; - public static CommonparamsubdirPostadditionalProperties getInstance() { + private static @Nullable CommonparamsubdirPostPathParameters4 instance = null; + public static CommonparamsubdirPostPathParameters4 getInstance() { if (instance == null) { - instance = new CommonparamsubdirPostadditionalProperties(); + instance = new CommonparamsubdirPostPathParameters4(); } return instance; } } - public static class CommonparamsubdirPostPathParametersMap extends FrozenMap { - protected CommonparamsubdirPostPathParametersMap(FrozenMap m) { + public static class CommonparamsubdirPostPathParameters9 extends FrozenMap { + protected CommonparamsubdirPostPathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "subDir" ); public static final Set optionalKeys = Set.of(); - public static CommonparamsubdirPostPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static CommonparamsubdirPostPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirPostPathParameters1.getInstance().validate(arg, configuration); } @@ -62,24 +62,24 @@ public String subDir() { } } - public interface SetterForCommonparamsubdirPostsubDir { + public interface SetterForCommonparamsubdirPostPathParameters2 { Map getInstance(); - T getBuilderAfterCommonparamsubdirPostsubDir(Map instance); + T getBuilderAfterCommonparamsubdirPostPathParameters2(Map instance); default T subDir(String value) { var instance = getInstance(); instance.put("subDir", value); - return getBuilderAfterCommonparamsubdirPostsubDir(instance); + return getBuilderAfterCommonparamsubdirPostPathParameters2(instance); } default T subDir(RouteParamSchema0.StringRouteParamSchemaEnums0 value) { var instance = getInstance(); instance.put("subDir", value.value()); - return getBuilderAfterCommonparamsubdirPostsubDir(instance); + return getBuilderAfterCommonparamsubdirPostPathParameters2(instance); } } - public static class CommonparamsubdirPostPathParametersMap0Builder implements GenericBuilder> { + public static class CommonparamsubdirPostPathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "subDir" @@ -87,7 +87,7 @@ public static class CommonparamsubdirPostPathParametersMap0Builder implements Ge public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirPostPathParametersMap0Builder(Map instance) { + public CommonparamsubdirPostPathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -95,16 +95,16 @@ public Map build() { } } - public static class CommonparamsubdirPostPathParametersMapBuilder implements SetterForCommonparamsubdirPostsubDir { + public static class CommonparamsubdirPostPathParameters8 implements SetterForCommonparamsubdirPostPathParameters2 { private final Map instance; - public CommonparamsubdirPostPathParametersMapBuilder() { + public CommonparamsubdirPostPathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public CommonparamsubdirPostPathParametersMap0Builder getBuilderAfterCommonparamsubdirPostsubDir(Map instance) { - return new CommonparamsubdirPostPathParametersMap0Builder(instance); + public CommonparamsubdirPostPathParameters10 getBuilderAfterCommonparamsubdirPostPathParameters2(Map instance) { + return new CommonparamsubdirPostPathParameters10(instance); } } @@ -113,7 +113,7 @@ public sealed interface CommonparamsubdirPostPathParameters1Boxed permits Common @Nullable Object getData(); } - public record CommonparamsubdirPostPathParameters1BoxedMap(CommonparamsubdirPostPathParametersMap data) implements CommonparamsubdirPostPathParameters1Boxed { + public record CommonparamsubdirPostPathParameters1BoxedMap(CommonparamsubdirPostPathParameters9 data) implements CommonparamsubdirPostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -121,7 +121,7 @@ public record CommonparamsubdirPostPathParameters1BoxedMap(CommonparamsubdirPost } - public static class CommonparamsubdirPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirPostPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirPostPathParameters1 instance = null; protected CommonparamsubdirPostPathParameters1() { @@ -133,7 +133,7 @@ protected CommonparamsubdirPostPathParameters1() { .required(Set.of( "subDir" )) - .additionalProperties(CommonparamsubdirPostadditionalProperties.class) + .additionalProperties(CommonparamsubdirPostPathParameters4.class) ); } @@ -144,7 +144,7 @@ public static CommonparamsubdirPostPathParameters1 getInstance() { return instance; } - public CommonparamsubdirPostPathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CommonparamsubdirPostPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -167,10 +167,10 @@ public CommonparamsubdirPostPathParametersMap getNewInstance(Map arg, List properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirPostPathParametersMap(castProperties); + return new CommonparamsubdirPostPathParameters9(castProperties); } - public CommonparamsubdirPostPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CommonparamsubdirPostPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java index f4f4e131b07..57b71af45b1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java @@ -98,15 +98,15 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters; - public FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters; + public FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters; + public FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public DeleteRequest( - FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters, - FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters, + FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters, + FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -120,8 +120,8 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public FakeDeleteHeaderParameters.@Nullable FakeDeleteHeaderParametersMap headerParameters; - public FakeDeleteQueryParameters.@Nullable FakeDeleteQueryParametersMap queryParameters; + public FakeDeleteHeaderParameters.@Nullable FakeDeleteHeaderParameters12 headerParameters; + public FakeDeleteQueryParameters.@Nullable FakeDeleteQueryParameters14 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; @@ -160,7 +160,7 @@ default T timeout(Duration timeout) { public interface SetterForHeaderParameters { DeleteNullableRequest getInstance(); T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); - default T headerParameters(FakeDeleteHeaderParameters.FakeDeleteHeaderParametersMap headerParameters) { + default T headerParameters(FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -170,7 +170,7 @@ default T headerParameters(FakeDeleteHeaderParameters.FakeDeleteHeaderParameters public interface SetterForQueryParameters { DeleteNullableRequest getInstance(); T getBuilderAfterQueryParameters(DeleteNullableRequest instance); - default T queryParameters(FakeDeleteQueryParameters.FakeDeleteQueryParametersMap queryParameters) { + default T queryParameters(FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java index 91af6004236..2458cd305e5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java @@ -104,8 +104,8 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public FakeGetRequestBody.@Nullable SealedRequestBody requestBody; - public FakeGetHeaderParameters.@Nullable FakeGetHeaderParametersMap headerParameters; - public FakeGetQueryParameters.@Nullable FakeGetQueryParametersMap queryParameters; + public FakeGetHeaderParameters.@Nullable FakeGetHeaderParameters10 headerParameters; + public FakeGetQueryParameters.@Nullable FakeGetQueryParameters12 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ default T requestBody(FakeGetRequestBody.SealedRequestBody requestBody) { public interface SetterForHeaderParameters { GetRequest getInstance(); T getBuilderAfterHeaderParameters(GetRequest instance); - default T headerParameters(FakeGetHeaderParameters.FakeGetHeaderParametersMap headerParameters) { + default T headerParameters(FakeGetHeaderParameters.FakeGetHeaderParameters10 headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -133,7 +133,7 @@ default T headerParameters(FakeGetHeaderParameters.FakeGetHeaderParametersMap he public interface SetterForQueryParameters { GetRequest getInstance(); T getBuilderAfterQueryParameters(GetRequest instance); - default T queryParameters(FakeGetQueryParameters.FakeGetQueryParametersMap queryParameters) { + default T queryParameters(FakeGetQueryParameters.FakeGetQueryParameters12 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java index 64314223dd9..f834967067b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java @@ -30,20 +30,20 @@ public class FakeDeleteHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeDeleteHeaderParameters5 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeDeleteadditionalProperties instance = null; - public static FakeDeleteadditionalProperties getInstance() { + private static @Nullable FakeDeleteHeaderParameters5 instance = null; + public static FakeDeleteHeaderParameters5 getInstance() { if (instance == null) { - instance = new FakeDeleteadditionalProperties(); + instance = new FakeDeleteHeaderParameters5(); } return instance; } } - public static class FakeDeleteHeaderParametersMap extends FrozenMap<@Nullable Object> { - protected FakeDeleteHeaderParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakeDeleteHeaderParameters12 extends FrozenMap<@Nullable Object> { + protected FakeDeleteHeaderParameters12(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -52,7 +52,7 @@ protected FakeDeleteHeaderParametersMap(FrozenMap<@Nullable Object> m) { public static final Set optionalKeys = Set.of( "boolean_group" ); - public static FakeDeleteHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FakeDeleteHeaderParameters12 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakeDeleteHeaderParameters1.getInstance().validate(arg, configuration); } @@ -75,41 +75,41 @@ public String boolean_group() throws UnsetPropertyException { } } - public interface SetterForFakeDeleterequiredBooleanGroup { + public interface SetterForFakeDeleteHeaderParameters2 { Map getInstance(); - T getBuilderAfterFakeDeleterequiredBooleanGroup(Map instance); + T getBuilderAfterFakeDeleteHeaderParameters2(Map instance); default T required_boolean_group(String value) { var instance = getInstance(); instance.put("required_boolean_group", value); - return getBuilderAfterFakeDeleterequiredBooleanGroup(instance); + return getBuilderAfterFakeDeleteHeaderParameters2(instance); } default T required_boolean_group(Schema1.StringSchemaEnums1 value) { var instance = getInstance(); instance.put("required_boolean_group", value.value()); - return getBuilderAfterFakeDeleterequiredBooleanGroup(instance); + return getBuilderAfterFakeDeleteHeaderParameters2(instance); } } - public interface SetterForFakeDeletebooleanGroup { + public interface SetterForFakeDeleteHeaderParameters3 { Map getInstance(); - T getBuilderAfterFakeDeletebooleanGroup(Map instance); + T getBuilderAfterFakeDeleteHeaderParameters3(Map instance); default T boolean_group(String value) { var instance = getInstance(); instance.put("boolean_group", value); - return getBuilderAfterFakeDeletebooleanGroup(instance); + return getBuilderAfterFakeDeleteHeaderParameters3(instance); } default T boolean_group(Schema4.StringSchemaEnums4 value) { var instance = getInstance(); instance.put("boolean_group", value.value()); - return getBuilderAfterFakeDeletebooleanGroup(instance); + return getBuilderAfterFakeDeleteHeaderParameters3(instance); } } - public static class FakeDeleteHeaderParametersMap0Builder implements GenericBuilder>, SetterForFakeDeletebooleanGroup { + public static class FakeDeleteHeaderParameters13 implements GenericBuilder>, SetterForFakeDeleteHeaderParameters3 { private final Map instance; private static final Set knownKeys = Set.of( "required_boolean_group", @@ -118,7 +118,7 @@ public static class FakeDeleteHeaderParametersMap0Builder implements GenericBuil public Set getKnownKeys() { return knownKeys; } - public FakeDeleteHeaderParametersMap0Builder(Map instance) { + public FakeDeleteHeaderParameters13(Map instance) { this.instance = instance; } public Map build() { @@ -127,21 +127,21 @@ public FakeDeleteHeaderParametersMap0Builder(Map insta public Map getInstance() { return instance; } - public FakeDeleteHeaderParametersMap0Builder getBuilderAfterFakeDeletebooleanGroup(Map instance) { + public FakeDeleteHeaderParameters13 getBuilderAfterFakeDeleteHeaderParameters3(Map instance) { return this; } } - public static class FakeDeleteHeaderParametersMapBuilder implements SetterForFakeDeleterequiredBooleanGroup { + public static class FakeDeleteHeaderParameters11 implements SetterForFakeDeleteHeaderParameters2 { private final Map instance; - public FakeDeleteHeaderParametersMapBuilder() { + public FakeDeleteHeaderParameters11() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakeDeleteHeaderParametersMap0Builder getBuilderAfterFakeDeleterequiredBooleanGroup(Map instance) { - return new FakeDeleteHeaderParametersMap0Builder(instance); + public FakeDeleteHeaderParameters13 getBuilderAfterFakeDeleteHeaderParameters2(Map instance) { + return new FakeDeleteHeaderParameters13(instance); } } @@ -150,7 +150,7 @@ public sealed interface FakeDeleteHeaderParameters1Boxed permits FakeDeleteHeade @Nullable Object getData(); } - public record FakeDeleteHeaderParameters1BoxedMap(FakeDeleteHeaderParametersMap data) implements FakeDeleteHeaderParameters1Boxed { + public record FakeDeleteHeaderParameters1BoxedMap(FakeDeleteHeaderParameters12 data) implements FakeDeleteHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -158,7 +158,7 @@ public record FakeDeleteHeaderParameters1BoxedMap(FakeDeleteHeaderParametersMap } - public static class FakeDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeDeleteHeaderParameters1 instance = null; protected FakeDeleteHeaderParameters1() { @@ -171,7 +171,7 @@ protected FakeDeleteHeaderParameters1() { .required(Set.of( "required_boolean_group" )) - .additionalProperties(FakeDeleteadditionalProperties.class) + .additionalProperties(FakeDeleteHeaderParameters5.class) ); } @@ -182,7 +182,7 @@ public static FakeDeleteHeaderParameters1 getInstance() { return instance; } - public FakeDeleteHeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeDeleteHeaderParameters12 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -202,10 +202,10 @@ public FakeDeleteHeaderParametersMap getNewInstance(Map arg, List properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakeDeleteHeaderParametersMap(castProperties); + return new FakeDeleteHeaderParameters12(castProperties); } - public FakeDeleteHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeDeleteHeaderParameters12 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java index 23fd96460a5..e9a525aab8e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java @@ -32,20 +32,20 @@ public class FakeDeleteQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeDeleteQueryParameters7 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeDeleteadditionalProperties instance = null; - public static FakeDeleteadditionalProperties getInstance() { + private static @Nullable FakeDeleteQueryParameters7 instance = null; + public static FakeDeleteQueryParameters7 getInstance() { if (instance == null) { - instance = new FakeDeleteadditionalProperties(); + instance = new FakeDeleteQueryParameters7(); } return instance; } } - public static class FakeDeleteQueryParametersMap extends FrozenMap<@Nullable Object> { - protected FakeDeleteQueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakeDeleteQueryParameters14 extends FrozenMap<@Nullable Object> { + protected FakeDeleteQueryParameters14(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -56,7 +56,7 @@ protected FakeDeleteQueryParametersMap(FrozenMap<@Nullable Object> m) { "int64_group", "string_group" ); - public static FakeDeleteQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FakeDeleteQueryParameters14 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakeDeleteQueryParameters1.getInstance().validate(arg, configuration); } @@ -97,87 +97,87 @@ public String string_group() throws UnsetPropertyException { } } - public interface SetterForFakeDeleterequiredInt64Group { + public interface SetterForFakeDeleteQueryParameters5 { Map getInstance(); - T getBuilderAfterFakeDeleterequiredInt64Group(Map instance); + T getBuilderAfterFakeDeleteQueryParameters5(Map instance); default T required_int64_group(int value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterFakeDeleterequiredInt64Group(instance); + return getBuilderAfterFakeDeleteQueryParameters5(instance); } default T required_int64_group(float value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterFakeDeleterequiredInt64Group(instance); + return getBuilderAfterFakeDeleteQueryParameters5(instance); } default T required_int64_group(long value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterFakeDeleterequiredInt64Group(instance); + return getBuilderAfterFakeDeleteQueryParameters5(instance); } default T required_int64_group(double value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterFakeDeleterequiredInt64Group(instance); + return getBuilderAfterFakeDeleteQueryParameters5(instance); } } - public interface SetterForFakeDeleterequiredStringGroup { + public interface SetterForFakeDeleteQueryParameters2 { Map getInstance(); - T getBuilderAfterFakeDeleterequiredStringGroup(Map instance); + T getBuilderAfterFakeDeleteQueryParameters2(Map instance); default T required_string_group(String value) { var instance = getInstance(); instance.put("required_string_group", value); - return getBuilderAfterFakeDeleterequiredStringGroup(instance); + return getBuilderAfterFakeDeleteQueryParameters2(instance); } } - public interface SetterForFakeDeleteint64Group { + public interface SetterForFakeDeleteQueryParameters3 { Map getInstance(); - T getBuilderAfterFakeDeleteint64Group(Map instance); + T getBuilderAfterFakeDeleteQueryParameters3(Map instance); default T int64_group(int value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterFakeDeleteint64Group(instance); + return getBuilderAfterFakeDeleteQueryParameters3(instance); } default T int64_group(float value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterFakeDeleteint64Group(instance); + return getBuilderAfterFakeDeleteQueryParameters3(instance); } default T int64_group(long value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterFakeDeleteint64Group(instance); + return getBuilderAfterFakeDeleteQueryParameters3(instance); } default T int64_group(double value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterFakeDeleteint64Group(instance); + return getBuilderAfterFakeDeleteQueryParameters3(instance); } } - public interface SetterForFakeDeletestringGroup { + public interface SetterForFakeDeleteQueryParameters4 { Map getInstance(); - T getBuilderAfterFakeDeletestringGroup(Map instance); + T getBuilderAfterFakeDeleteQueryParameters4(Map instance); default T string_group(String value) { var instance = getInstance(); instance.put("string_group", value); - return getBuilderAfterFakeDeletestringGroup(instance); + return getBuilderAfterFakeDeleteQueryParameters4(instance); } } - public static class FakeDeleteQueryParametersMap00Builder implements GenericBuilder>, SetterForFakeDeleteint64Group, SetterForFakeDeletestringGroup { + public static class FakeDeleteQueryParameters15 implements GenericBuilder>, SetterForFakeDeleteQueryParameters3, SetterForFakeDeleteQueryParameters4 { private final Map instance; private static final Set knownKeys = Set.of( "required_int64_group", @@ -188,7 +188,7 @@ public static class FakeDeleteQueryParametersMap00Builder implements GenericBuil public Set getKnownKeys() { return knownKeys; } - public FakeDeleteQueryParametersMap00Builder(Map instance) { + public FakeDeleteQueryParameters15(Map instance) { this.instance = instance; } public Map build() { @@ -197,53 +197,53 @@ public FakeDeleteQueryParametersMap00Builder(Map insta public Map getInstance() { return instance; } - public FakeDeleteQueryParametersMap00Builder getBuilderAfterFakeDeleteint64Group(Map instance) { + public FakeDeleteQueryParameters15 getBuilderAfterFakeDeleteQueryParameters3(Map instance) { return this; } - public FakeDeleteQueryParametersMap00Builder getBuilderAfterFakeDeletestringGroup(Map instance) { + public FakeDeleteQueryParameters15 getBuilderAfterFakeDeleteQueryParameters4(Map instance) { return this; } } - public static class FakeDeleteQueryParametersMap01Builder implements SetterForFakeDeleterequiredStringGroup { + public static class FakeDeleteQueryParameters16 implements SetterForFakeDeleteQueryParameters2 { private final Map instance; - public FakeDeleteQueryParametersMap01Builder(Map instance) { + public FakeDeleteQueryParameters16(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakeDeleteQueryParametersMap00Builder getBuilderAfterFakeDeleterequiredStringGroup(Map instance) { - return new FakeDeleteQueryParametersMap00Builder(instance); + public FakeDeleteQueryParameters15 getBuilderAfterFakeDeleteQueryParameters2(Map instance) { + return new FakeDeleteQueryParameters15(instance); } } - public static class FakeDeleteQueryParametersMap10Builder implements SetterForFakeDeleterequiredInt64Group { + public static class FakeDeleteQueryParameters17 implements SetterForFakeDeleteQueryParameters5 { private final Map instance; - public FakeDeleteQueryParametersMap10Builder(Map instance) { + public FakeDeleteQueryParameters17(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakeDeleteQueryParametersMap00Builder getBuilderAfterFakeDeleterequiredInt64Group(Map instance) { - return new FakeDeleteQueryParametersMap00Builder(instance); + public FakeDeleteQueryParameters15 getBuilderAfterFakeDeleteQueryParameters5(Map instance) { + return new FakeDeleteQueryParameters15(instance); } } - public static class FakeDeleteQueryParametersMapBuilder implements SetterForFakeDeleterequiredInt64Group, SetterForFakeDeleterequiredStringGroup { + public static class FakeDeleteQueryParameters13 implements SetterForFakeDeleteQueryParameters5, SetterForFakeDeleteQueryParameters2 { private final Map instance; - public FakeDeleteQueryParametersMapBuilder() { + public FakeDeleteQueryParameters13() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakeDeleteQueryParametersMap01Builder getBuilderAfterFakeDeleterequiredInt64Group(Map instance) { - return new FakeDeleteQueryParametersMap01Builder(instance); + public FakeDeleteQueryParameters16 getBuilderAfterFakeDeleteQueryParameters5(Map instance) { + return new FakeDeleteQueryParameters16(instance); } - public FakeDeleteQueryParametersMap10Builder getBuilderAfterFakeDeleterequiredStringGroup(Map instance) { - return new FakeDeleteQueryParametersMap10Builder(instance); + public FakeDeleteQueryParameters17 getBuilderAfterFakeDeleteQueryParameters2(Map instance) { + return new FakeDeleteQueryParameters17(instance); } } @@ -252,7 +252,7 @@ public sealed interface FakeDeleteQueryParameters1Boxed permits FakeDeleteQueryP @Nullable Object getData(); } - public record FakeDeleteQueryParameters1BoxedMap(FakeDeleteQueryParametersMap data) implements FakeDeleteQueryParameters1Boxed { + public record FakeDeleteQueryParameters1BoxedMap(FakeDeleteQueryParameters14 data) implements FakeDeleteQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -260,7 +260,7 @@ public record FakeDeleteQueryParameters1BoxedMap(FakeDeleteQueryParametersMap da } - public static class FakeDeleteQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeDeleteQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeDeleteQueryParameters1 instance = null; protected FakeDeleteQueryParameters1() { @@ -276,7 +276,7 @@ protected FakeDeleteQueryParameters1() { "required_int64_group", "required_string_group" )) - .additionalProperties(FakeDeleteadditionalProperties.class) + .additionalProperties(FakeDeleteQueryParameters7.class) ); } @@ -287,7 +287,7 @@ public static FakeDeleteQueryParameters1 getInstance() { return instance; } - public FakeDeleteQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeDeleteQueryParameters14 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -307,10 +307,10 @@ public FakeDeleteQueryParametersMap getNewInstance(Map arg, List p properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakeDeleteQueryParametersMap(castProperties); + return new FakeDeleteQueryParameters14(castProperties); } - public FakeDeleteQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeDeleteQueryParameters14 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java index d68aaf404ce..b485f020421 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java @@ -30,20 +30,20 @@ public class FakeGetHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeGetHeaderParameters5 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeGetadditionalProperties instance = null; - public static FakeGetadditionalProperties getInstance() { + private static @Nullable FakeGetHeaderParameters5 instance = null; + public static FakeGetHeaderParameters5 getInstance() { if (instance == null) { - instance = new FakeGetadditionalProperties(); + instance = new FakeGetHeaderParameters5(); } return instance; } } - public static class FakeGetHeaderParametersMap extends FrozenMap<@Nullable Object> { - protected FakeGetHeaderParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakeGetHeaderParameters10 extends FrozenMap<@Nullable Object> { + protected FakeGetHeaderParameters10(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -51,7 +51,7 @@ protected FakeGetHeaderParametersMap(FrozenMap<@Nullable Object> m) { "enum_header_string", "enum_header_string_array" ); - public static FakeGetHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FakeGetHeaderParameters10 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakeGetHeaderParameters1.getInstance().validate(arg, configuration); } @@ -76,35 +76,35 @@ public Schema0.SchemaList0 enum_header_string_array() throws UnsetPropertyExcept } } - public interface SetterForFakeGetenumHeaderString { + public interface SetterForFakeGetHeaderParameters2 { Map getInstance(); - T getBuilderAfterFakeGetenumHeaderString(Map instance); + T getBuilderAfterFakeGetHeaderParameters2(Map instance); default T enum_header_string(String value) { var instance = getInstance(); instance.put("enum_header_string", value); - return getBuilderAfterFakeGetenumHeaderString(instance); + return getBuilderAfterFakeGetHeaderParameters2(instance); } default T enum_header_string(Schema1.StringSchemaEnums1 value) { var instance = getInstance(); instance.put("enum_header_string", value.value()); - return getBuilderAfterFakeGetenumHeaderString(instance); + return getBuilderAfterFakeGetHeaderParameters2(instance); } } - public interface SetterForFakeGetenumHeaderStringArray { + public interface SetterForFakeGetHeaderParameters3 { Map getInstance(); - T getBuilderAfterFakeGetenumHeaderStringArray(Map instance); + T getBuilderAfterFakeGetHeaderParameters3(Map instance); default T enum_header_string_array(List value) { var instance = getInstance(); instance.put("enum_header_string_array", value); - return getBuilderAfterFakeGetenumHeaderStringArray(instance); + return getBuilderAfterFakeGetHeaderParameters3(instance); } } - public static class FakeGetHeaderParametersMapBuilder implements GenericBuilder>, SetterForFakeGetenumHeaderString, SetterForFakeGetenumHeaderStringArray { + public static class FakeGetHeaderParameters9 implements GenericBuilder>, SetterForFakeGetHeaderParameters2, SetterForFakeGetHeaderParameters3 { private final Map instance; private static final Set knownKeys = Set.of( "enum_header_string", @@ -113,7 +113,7 @@ public static class FakeGetHeaderParametersMapBuilder implements GenericBuilder< public Set getKnownKeys() { return knownKeys; } - public FakeGetHeaderParametersMapBuilder() { + public FakeGetHeaderParameters9() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -122,10 +122,10 @@ public FakeGetHeaderParametersMapBuilder() { public Map getInstance() { return instance; } - public FakeGetHeaderParametersMapBuilder getBuilderAfterFakeGetenumHeaderString(Map instance) { + public FakeGetHeaderParameters9 getBuilderAfterFakeGetHeaderParameters2(Map instance) { return this; } - public FakeGetHeaderParametersMapBuilder getBuilderAfterFakeGetenumHeaderStringArray(Map instance) { + public FakeGetHeaderParameters9 getBuilderAfterFakeGetHeaderParameters3(Map instance) { return this; } } @@ -135,7 +135,7 @@ public sealed interface FakeGetHeaderParameters1Boxed permits FakeGetHeaderParam @Nullable Object getData(); } - public record FakeGetHeaderParameters1BoxedMap(FakeGetHeaderParametersMap data) implements FakeGetHeaderParameters1Boxed { + public record FakeGetHeaderParameters1BoxedMap(FakeGetHeaderParameters10 data) implements FakeGetHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -143,7 +143,7 @@ public record FakeGetHeaderParameters1BoxedMap(FakeGetHeaderParametersMap data) } - public static class FakeGetHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeGetHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeGetHeaderParameters1 instance = null; protected FakeGetHeaderParameters1() { @@ -153,7 +153,7 @@ protected FakeGetHeaderParameters1() { new PropertyEntry("enum_header_string", Schema1.Schema11.class), new PropertyEntry("enum_header_string_array", Schema0.Schema01.class) )) - .additionalProperties(FakeGetadditionalProperties.class) + .additionalProperties(FakeGetHeaderParameters5.class) ); } @@ -164,7 +164,7 @@ public static FakeGetHeaderParameters1 getInstance() { return instance; } - public FakeGetHeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeGetHeaderParameters10 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -184,10 +184,10 @@ public FakeGetHeaderParametersMap getNewInstance(Map arg, List pat properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakeGetHeaderParametersMap(castProperties); + return new FakeGetHeaderParameters10(castProperties); } - public FakeGetHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeGetHeaderParameters10 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java index 99fba6a721f..188a0cbbf04 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java @@ -32,20 +32,20 @@ public class FakeGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeGetQueryParameters7 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeGetadditionalProperties instance = null; - public static FakeGetadditionalProperties getInstance() { + private static @Nullable FakeGetQueryParameters7 instance = null; + public static FakeGetQueryParameters7 getInstance() { if (instance == null) { - instance = new FakeGetadditionalProperties(); + instance = new FakeGetQueryParameters7(); } return instance; } } - public static class FakeGetQueryParametersMap extends FrozenMap<@Nullable Object> { - protected FakeGetQueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakeGetQueryParameters12 extends FrozenMap<@Nullable Object> { + protected FakeGetQueryParameters12(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -55,7 +55,7 @@ protected FakeGetQueryParametersMap(FrozenMap<@Nullable Object> m) { "enum_query_integer", "enum_query_string_array" ); - public static FakeGetQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FakeGetQueryParameters12 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakeGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -100,117 +100,117 @@ public Schema2.SchemaList2 enum_query_string_array() throws UnsetPropertyExcepti } } - public interface SetterForFakeGetenumQueryDouble { + public interface SetterForFakeGetQueryParameters2 { Map getInstance(); - T getBuilderAfterFakeGetenumQueryDouble(Map instance); + T getBuilderAfterFakeGetQueryParameters2(Map instance); default T enum_query_double(int value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterFakeGetenumQueryDouble(instance); + return getBuilderAfterFakeGetQueryParameters2(instance); } default T enum_query_double(float value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterFakeGetenumQueryDouble(instance); + return getBuilderAfterFakeGetQueryParameters2(instance); } default T enum_query_double(long value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterFakeGetenumQueryDouble(instance); + return getBuilderAfterFakeGetQueryParameters2(instance); } default T enum_query_double(double value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterFakeGetenumQueryDouble(instance); + return getBuilderAfterFakeGetQueryParameters2(instance); } default T enum_query_double(Schema5.DoubleSchemaEnums5 value) { var instance = getInstance(); instance.put("enum_query_double", value.value()); - return getBuilderAfterFakeGetenumQueryDouble(instance); + return getBuilderAfterFakeGetQueryParameters2(instance); } default T enum_query_double(Schema5.FloatSchemaEnums5 value) { var instance = getInstance(); instance.put("enum_query_double", value.value()); - return getBuilderAfterFakeGetenumQueryDouble(instance); + return getBuilderAfterFakeGetQueryParameters2(instance); } } - public interface SetterForFakeGetenumQueryString { + public interface SetterForFakeGetQueryParameters3 { Map getInstance(); - T getBuilderAfterFakeGetenumQueryString(Map instance); + T getBuilderAfterFakeGetQueryParameters3(Map instance); default T enum_query_string(String value) { var instance = getInstance(); instance.put("enum_query_string", value); - return getBuilderAfterFakeGetenumQueryString(instance); + return getBuilderAfterFakeGetQueryParameters3(instance); } default T enum_query_string(Schema3.StringSchemaEnums3 value) { var instance = getInstance(); instance.put("enum_query_string", value.value()); - return getBuilderAfterFakeGetenumQueryString(instance); + return getBuilderAfterFakeGetQueryParameters3(instance); } } - public interface SetterForFakeGetenumQueryInteger { + public interface SetterForFakeGetQueryParameters4 { Map getInstance(); - T getBuilderAfterFakeGetenumQueryInteger(Map instance); + T getBuilderAfterFakeGetQueryParameters4(Map instance); default T enum_query_integer(int value) { var instance = getInstance(); instance.put("enum_query_integer", value); - return getBuilderAfterFakeGetenumQueryInteger(instance); + return getBuilderAfterFakeGetQueryParameters4(instance); } default T enum_query_integer(float value) { var instance = getInstance(); instance.put("enum_query_integer", value); - return getBuilderAfterFakeGetenumQueryInteger(instance); + return getBuilderAfterFakeGetQueryParameters4(instance); } default T enum_query_integer(Schema4.IntegerSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterFakeGetenumQueryInteger(instance); + return getBuilderAfterFakeGetQueryParameters4(instance); } default T enum_query_integer(Schema4.LongSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterFakeGetenumQueryInteger(instance); + return getBuilderAfterFakeGetQueryParameters4(instance); } default T enum_query_integer(Schema4.FloatSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterFakeGetenumQueryInteger(instance); + return getBuilderAfterFakeGetQueryParameters4(instance); } default T enum_query_integer(Schema4.DoubleSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterFakeGetenumQueryInteger(instance); + return getBuilderAfterFakeGetQueryParameters4(instance); } } - public interface SetterForFakeGetenumQueryStringArray { + public interface SetterForFakeGetQueryParameters5 { Map getInstance(); - T getBuilderAfterFakeGetenumQueryStringArray(Map instance); + T getBuilderAfterFakeGetQueryParameters5(Map instance); default T enum_query_string_array(List value) { var instance = getInstance(); instance.put("enum_query_string_array", value); - return getBuilderAfterFakeGetenumQueryStringArray(instance); + return getBuilderAfterFakeGetQueryParameters5(instance); } } - public static class FakeGetQueryParametersMapBuilder implements GenericBuilder>, SetterForFakeGetenumQueryDouble, SetterForFakeGetenumQueryString, SetterForFakeGetenumQueryInteger, SetterForFakeGetenumQueryStringArray { + public static class FakeGetQueryParameters11 implements GenericBuilder>, SetterForFakeGetQueryParameters2, SetterForFakeGetQueryParameters3, SetterForFakeGetQueryParameters4, SetterForFakeGetQueryParameters5 { private final Map instance; private static final Set knownKeys = Set.of( "enum_query_double", @@ -221,7 +221,7 @@ public static class FakeGetQueryParametersMapBuilder implements GenericBuilder getKnownKeys() { return knownKeys; } - public FakeGetQueryParametersMapBuilder() { + public FakeGetQueryParameters11() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -230,16 +230,16 @@ public FakeGetQueryParametersMapBuilder() { public Map getInstance() { return instance; } - public FakeGetQueryParametersMapBuilder getBuilderAfterFakeGetenumQueryDouble(Map instance) { + public FakeGetQueryParameters11 getBuilderAfterFakeGetQueryParameters2(Map instance) { return this; } - public FakeGetQueryParametersMapBuilder getBuilderAfterFakeGetenumQueryString(Map instance) { + public FakeGetQueryParameters11 getBuilderAfterFakeGetQueryParameters3(Map instance) { return this; } - public FakeGetQueryParametersMapBuilder getBuilderAfterFakeGetenumQueryInteger(Map instance) { + public FakeGetQueryParameters11 getBuilderAfterFakeGetQueryParameters4(Map instance) { return this; } - public FakeGetQueryParametersMapBuilder getBuilderAfterFakeGetenumQueryStringArray(Map instance) { + public FakeGetQueryParameters11 getBuilderAfterFakeGetQueryParameters5(Map instance) { return this; } } @@ -249,7 +249,7 @@ public sealed interface FakeGetQueryParameters1Boxed permits FakeGetQueryParamet @Nullable Object getData(); } - public record FakeGetQueryParameters1BoxedMap(FakeGetQueryParametersMap data) implements FakeGetQueryParameters1Boxed { + public record FakeGetQueryParameters1BoxedMap(FakeGetQueryParameters12 data) implements FakeGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -257,7 +257,7 @@ public record FakeGetQueryParameters1BoxedMap(FakeGetQueryParametersMap data) im } - public static class FakeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeGetQueryParameters1 instance = null; protected FakeGetQueryParameters1() { @@ -269,7 +269,7 @@ protected FakeGetQueryParameters1() { new PropertyEntry("enum_query_integer", Schema4.Schema41.class), new PropertyEntry("enum_query_string_array", Schema2.Schema21.class) )) - .additionalProperties(FakeGetadditionalProperties.class) + .additionalProperties(FakeGetQueryParameters7.class) ); } @@ -280,7 +280,7 @@ public static FakeGetQueryParameters1 getInstance() { return instance; } - public FakeGetQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeGetQueryParameters12 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -300,10 +300,10 @@ public FakeGetQueryParametersMap getNewInstance(Map arg, List path properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakeGetQueryParametersMap(castProperties); + return new FakeGetQueryParameters12(castProperties); } - public FakeGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeGetQueryParameters12 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java index b334aecedf9..ba25f289cf6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java @@ -90,13 +90,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody; - public FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters; + public FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody, - FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters, + FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -109,7 +109,7 @@ public PutRequest( public static class PutNullableRequest { public FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody requestBody; - public FakebodywithqueryparamsPutQueryParameters.@Nullable FakebodywithqueryparamsPutQueryParametersMap queryParameters; + public FakebodywithqueryparamsPutQueryParameters.@Nullable FakebodywithqueryparamsPutQueryParameters9 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -147,7 +147,7 @@ default T requestBody(FakebodywithqueryparamsPutRequestBody.SealedRequestBody re public interface SetterForQueryParameters { PutNullableRequest getInstance(); T getBuilderAfterQueryParameters(PutNullableRequest instance); - default T queryParameters(FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParametersMap queryParameters) { + default T queryParameters(FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java index 3b8284fac87..c8fc838f223 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java @@ -29,27 +29,27 @@ public class FakebodywithqueryparamsPutQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakebodywithqueryparamsPutadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakebodywithqueryparamsPutQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakebodywithqueryparamsPutadditionalProperties instance = null; - public static FakebodywithqueryparamsPutadditionalProperties getInstance() { + private static @Nullable FakebodywithqueryparamsPutQueryParameters4 instance = null; + public static FakebodywithqueryparamsPutQueryParameters4 getInstance() { if (instance == null) { - instance = new FakebodywithqueryparamsPutadditionalProperties(); + instance = new FakebodywithqueryparamsPutQueryParameters4(); } return instance; } } - public static class FakebodywithqueryparamsPutQueryParametersMap extends FrozenMap { - protected FakebodywithqueryparamsPutQueryParametersMap(FrozenMap m) { + public static class FakebodywithqueryparamsPutQueryParameters9 extends FrozenMap { + protected FakebodywithqueryparamsPutQueryParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "query" ); public static final Set optionalKeys = Set.of(); - public static FakebodywithqueryparamsPutQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FakebodywithqueryparamsPutQueryParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakebodywithqueryparamsPutQueryParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String query() { } } - public interface SetterForFakebodywithqueryparamsPutquery { + public interface SetterForFakebodywithqueryparamsPutQueryParameters2 { Map getInstance(); - T getBuilderAfterFakebodywithqueryparamsPutquery(Map instance); + T getBuilderAfterFakebodywithqueryparamsPutQueryParameters2(Map instance); default T query(String value) { var instance = getInstance(); instance.put("query", value); - return getBuilderAfterFakebodywithqueryparamsPutquery(instance); + return getBuilderAfterFakebodywithqueryparamsPutQueryParameters2(instance); } } - public static class FakebodywithqueryparamsPutQueryParametersMap0Builder implements GenericBuilder> { + public static class FakebodywithqueryparamsPutQueryParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "query" @@ -81,7 +81,7 @@ public static class FakebodywithqueryparamsPutQueryParametersMap0Builder impleme public Set getKnownKeys() { return knownKeys; } - public FakebodywithqueryparamsPutQueryParametersMap0Builder(Map instance) { + public FakebodywithqueryparamsPutQueryParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class FakebodywithqueryparamsPutQueryParametersMapBuilder implements SetterForFakebodywithqueryparamsPutquery { + public static class FakebodywithqueryparamsPutQueryParameters8 implements SetterForFakebodywithqueryparamsPutQueryParameters2 { private final Map instance; - public FakebodywithqueryparamsPutQueryParametersMapBuilder() { + public FakebodywithqueryparamsPutQueryParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakebodywithqueryparamsPutQueryParametersMap0Builder getBuilderAfterFakebodywithqueryparamsPutquery(Map instance) { - return new FakebodywithqueryparamsPutQueryParametersMap0Builder(instance); + public FakebodywithqueryparamsPutQueryParameters10 getBuilderAfterFakebodywithqueryparamsPutQueryParameters2(Map instance) { + return new FakebodywithqueryparamsPutQueryParameters10(instance); } } @@ -107,7 +107,7 @@ public sealed interface FakebodywithqueryparamsPutQueryParameters1Boxed permits @Nullable Object getData(); } - public record FakebodywithqueryparamsPutQueryParameters1BoxedMap(FakebodywithqueryparamsPutQueryParametersMap data) implements FakebodywithqueryparamsPutQueryParameters1Boxed { + public record FakebodywithqueryparamsPutQueryParameters1BoxedMap(FakebodywithqueryparamsPutQueryParameters9 data) implements FakebodywithqueryparamsPutQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record FakebodywithqueryparamsPutQueryParameters1BoxedMap(Fakebodywithque } - public static class FakebodywithqueryparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakebodywithqueryparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakebodywithqueryparamsPutQueryParameters1 instance = null; protected FakebodywithqueryparamsPutQueryParameters1() { @@ -127,7 +127,7 @@ protected FakebodywithqueryparamsPutQueryParameters1() { .required(Set.of( "query" )) - .additionalProperties(FakebodywithqueryparamsPutadditionalProperties.class) + .additionalProperties(FakebodywithqueryparamsPutQueryParameters4.class) ); } @@ -138,7 +138,7 @@ public static FakebodywithqueryparamsPutQueryParameters1 getInstance() { return instance; } - public FakebodywithqueryparamsPutQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakebodywithqueryparamsPutQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public FakebodywithqueryparamsPutQueryParametersMap getNewInstance(Map arg properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new FakebodywithqueryparamsPutQueryParametersMap(castProperties); + return new FakebodywithqueryparamsPutQueryParameters9(castProperties); } - public FakebodywithqueryparamsPutQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakebodywithqueryparamsPutQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java index 67555286080..d6f4b0a02d8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java @@ -80,12 +80,12 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class PutRequest { - public FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters; + public FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( - FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters, + FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public PutRequest( } public static class PutNullableRequest { - public FakecasesensitiveparamsPutQueryParameters.@Nullable FakecasesensitiveparamsPutQueryParametersMap queryParameters; + public FakecasesensitiveparamsPutQueryParameters.@Nullable FakecasesensitiveparamsPutQueryParameters11 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { PutNullableRequest getInstance(); T getBuilderAfterQueryParameters(PutNullableRequest instance); - default T queryParameters(FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParametersMap queryParameters) { + default T queryParameters(FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java index 156ae88ab40..8505515d5fb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java @@ -31,20 +31,20 @@ public class FakecasesensitiveparamsPutQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakecasesensitiveparamsPutadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakecasesensitiveparamsPutQueryParameters6 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakecasesensitiveparamsPutadditionalProperties instance = null; - public static FakecasesensitiveparamsPutadditionalProperties getInstance() { + private static @Nullable FakecasesensitiveparamsPutQueryParameters6 instance = null; + public static FakecasesensitiveparamsPutQueryParameters6 getInstance() { if (instance == null) { - instance = new FakecasesensitiveparamsPutadditionalProperties(); + instance = new FakecasesensitiveparamsPutQueryParameters6(); } return instance; } } - public static class FakecasesensitiveparamsPutQueryParametersMap extends FrozenMap<@Nullable Object> { - protected FakecasesensitiveparamsPutQueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakecasesensitiveparamsPutQueryParameters11 extends FrozenMap<@Nullable Object> { + protected FakecasesensitiveparamsPutQueryParameters11(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -53,7 +53,7 @@ protected FakecasesensitiveparamsPutQueryParametersMap(FrozenMap<@Nullable Objec "some_var" ); public static final Set optionalKeys = Set.of(); - public static FakecasesensitiveparamsPutQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FakecasesensitiveparamsPutQueryParameters11 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakecasesensitiveparamsPutQueryParameters1.getInstance().validate(arg, configuration); } @@ -82,40 +82,40 @@ public String some_var() { } } - public interface SetterForFakecasesensitiveparamsPutSomeVar { + public interface SetterForFakecasesensitiveparamsPutQueryParameters4 { Map getInstance(); - T getBuilderAfterFakecasesensitiveparamsPutSomeVar(Map instance); + T getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(Map instance); default T SomeVar(String value) { var instance = getInstance(); instance.put("SomeVar", value); - return getBuilderAfterFakecasesensitiveparamsPutSomeVar(instance); + return getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(instance); } } - public interface SetterForFakecasesensitiveparamsPutsomeVar { + public interface SetterForFakecasesensitiveparamsPutQueryParameters2 { Map getInstance(); - T getBuilderAfterFakecasesensitiveparamsPutsomeVar(Map instance); + T getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(Map instance); default T someVar(String value) { var instance = getInstance(); instance.put("someVar", value); - return getBuilderAfterFakecasesensitiveparamsPutsomeVar(instance); + return getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(instance); } } - public interface SetterForFakecasesensitiveparamsPutsomeVar1 { + public interface SetterForFakecasesensitiveparamsPutQueryParameters3 { Map getInstance(); - T getBuilderAfterFakecasesensitiveparamsPutsomeVar1(Map instance); + T getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(Map instance); default T some_var(String value) { var instance = getInstance(); instance.put("some_var", value); - return getBuilderAfterFakecasesensitiveparamsPutsomeVar1(instance); + return getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(instance); } } - public static class FakecasesensitiveparamsPutQueryParametersMap000Builder implements GenericBuilder> { + public static class FakecasesensitiveparamsPutQueryParameters12 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "SomeVar", @@ -125,7 +125,7 @@ public static class FakecasesensitiveparamsPutQueryParametersMap000Builder imple public Set getKnownKeys() { return knownKeys; } - public FakecasesensitiveparamsPutQueryParametersMap000Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParameters12(Map instance) { this.instance = instance; } public Map build() { @@ -133,109 +133,109 @@ public FakecasesensitiveparamsPutQueryParametersMap000Builder(Map { + public static class FakecasesensitiveparamsPutQueryParameters13 implements SetterForFakecasesensitiveparamsPutQueryParameters3 { private final Map instance; - public FakecasesensitiveparamsPutQueryParametersMap001Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParameters13(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParametersMap000Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar1(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap000Builder(instance); + public FakecasesensitiveparamsPutQueryParameters12 getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters12(instance); } } - public static class FakecasesensitiveparamsPutQueryParametersMap010Builder implements SetterForFakecasesensitiveparamsPutsomeVar { + public static class FakecasesensitiveparamsPutQueryParameters14 implements SetterForFakecasesensitiveparamsPutQueryParameters2 { private final Map instance; - public FakecasesensitiveparamsPutQueryParametersMap010Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParameters14(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParametersMap000Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap000Builder(instance); + public FakecasesensitiveparamsPutQueryParameters12 getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters12(instance); } } - public static class FakecasesensitiveparamsPutQueryParametersMap011Builder implements SetterForFakecasesensitiveparamsPutsomeVar, SetterForFakecasesensitiveparamsPutsomeVar1 { + public static class FakecasesensitiveparamsPutQueryParameters15 implements SetterForFakecasesensitiveparamsPutQueryParameters2, SetterForFakecasesensitiveparamsPutQueryParameters3 { private final Map instance; - public FakecasesensitiveparamsPutQueryParametersMap011Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParameters15(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParametersMap001Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap001Builder(instance); + public FakecasesensitiveparamsPutQueryParameters13 getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters13(instance); } - public FakecasesensitiveparamsPutQueryParametersMap010Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar1(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap010Builder(instance); + public FakecasesensitiveparamsPutQueryParameters14 getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters14(instance); } } - public static class FakecasesensitiveparamsPutQueryParametersMap100Builder implements SetterForFakecasesensitiveparamsPutSomeVar { + public static class FakecasesensitiveparamsPutQueryParameters16 implements SetterForFakecasesensitiveparamsPutQueryParameters4 { private final Map instance; - public FakecasesensitiveparamsPutQueryParametersMap100Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParameters16(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParametersMap000Builder getBuilderAfterFakecasesensitiveparamsPutSomeVar(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap000Builder(instance); + public FakecasesensitiveparamsPutQueryParameters12 getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters12(instance); } } - public static class FakecasesensitiveparamsPutQueryParametersMap101Builder implements SetterForFakecasesensitiveparamsPutSomeVar, SetterForFakecasesensitiveparamsPutsomeVar1 { + public static class FakecasesensitiveparamsPutQueryParameters17 implements SetterForFakecasesensitiveparamsPutQueryParameters4, SetterForFakecasesensitiveparamsPutQueryParameters3 { private final Map instance; - public FakecasesensitiveparamsPutQueryParametersMap101Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParameters17(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParametersMap001Builder getBuilderAfterFakecasesensitiveparamsPutSomeVar(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap001Builder(instance); + public FakecasesensitiveparamsPutQueryParameters13 getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters13(instance); } - public FakecasesensitiveparamsPutQueryParametersMap100Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar1(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap100Builder(instance); + public FakecasesensitiveparamsPutQueryParameters16 getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters16(instance); } } - public static class FakecasesensitiveparamsPutQueryParametersMap110Builder implements SetterForFakecasesensitiveparamsPutSomeVar, SetterForFakecasesensitiveparamsPutsomeVar { + public static class FakecasesensitiveparamsPutQueryParameters18 implements SetterForFakecasesensitiveparamsPutQueryParameters4, SetterForFakecasesensitiveparamsPutQueryParameters2 { private final Map instance; - public FakecasesensitiveparamsPutQueryParametersMap110Builder(Map instance) { + public FakecasesensitiveparamsPutQueryParameters18(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParametersMap010Builder getBuilderAfterFakecasesensitiveparamsPutSomeVar(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap010Builder(instance); + public FakecasesensitiveparamsPutQueryParameters14 getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters14(instance); } - public FakecasesensitiveparamsPutQueryParametersMap100Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap100Builder(instance); + public FakecasesensitiveparamsPutQueryParameters16 getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters16(instance); } } - public static class FakecasesensitiveparamsPutQueryParametersMapBuilder implements SetterForFakecasesensitiveparamsPutSomeVar, SetterForFakecasesensitiveparamsPutsomeVar, SetterForFakecasesensitiveparamsPutsomeVar1 { + public static class FakecasesensitiveparamsPutQueryParameters10 implements SetterForFakecasesensitiveparamsPutQueryParameters4, SetterForFakecasesensitiveparamsPutQueryParameters2, SetterForFakecasesensitiveparamsPutQueryParameters3 { private final Map instance; - public FakecasesensitiveparamsPutQueryParametersMapBuilder() { + public FakecasesensitiveparamsPutQueryParameters10() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParametersMap011Builder getBuilderAfterFakecasesensitiveparamsPutSomeVar(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap011Builder(instance); + public FakecasesensitiveparamsPutQueryParameters15 getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters15(instance); } - public FakecasesensitiveparamsPutQueryParametersMap101Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap101Builder(instance); + public FakecasesensitiveparamsPutQueryParameters17 getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters17(instance); } - public FakecasesensitiveparamsPutQueryParametersMap110Builder getBuilderAfterFakecasesensitiveparamsPutsomeVar1(Map instance) { - return new FakecasesensitiveparamsPutQueryParametersMap110Builder(instance); + public FakecasesensitiveparamsPutQueryParameters18 getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(Map instance) { + return new FakecasesensitiveparamsPutQueryParameters18(instance); } } @@ -244,7 +244,7 @@ public sealed interface FakecasesensitiveparamsPutQueryParameters1Boxed permits @Nullable Object getData(); } - public record FakecasesensitiveparamsPutQueryParameters1BoxedMap(FakecasesensitiveparamsPutQueryParametersMap data) implements FakecasesensitiveparamsPutQueryParameters1Boxed { + public record FakecasesensitiveparamsPutQueryParameters1BoxedMap(FakecasesensitiveparamsPutQueryParameters11 data) implements FakecasesensitiveparamsPutQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -252,7 +252,7 @@ public record FakecasesensitiveparamsPutQueryParameters1BoxedMap(Fakecasesensiti } - public static class FakecasesensitiveparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakecasesensitiveparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakecasesensitiveparamsPutQueryParameters1 instance = null; protected FakecasesensitiveparamsPutQueryParameters1() { @@ -268,7 +268,7 @@ protected FakecasesensitiveparamsPutQueryParameters1() { "someVar", "some_var" )) - .additionalProperties(FakecasesensitiveparamsPutadditionalProperties.class) + .additionalProperties(FakecasesensitiveparamsPutQueryParameters6.class) ); } @@ -279,7 +279,7 @@ public static FakecasesensitiveparamsPutQueryParameters1 getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakecasesensitiveparamsPutQueryParameters11 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -299,10 +299,10 @@ public FakecasesensitiveparamsPutQueryParametersMap getNewInstance(Map arg properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakecasesensitiveparamsPutQueryParametersMap(castProperties); + return new FakecasesensitiveparamsPutQueryParameters11(castProperties); } - public FakecasesensitiveparamsPutQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakecasesensitiveparamsPutQueryParameters11 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java index 4ac48d79d33..adfe3c6eef7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java @@ -79,12 +79,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters; + public FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters, + FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public FakedeletecoffeeidDeletePathParameters.@Nullable FakedeletecoffeeidDeletePathParametersMap pathParameters; + public FakedeletecoffeeidDeletePathParameters.@Nullable FakedeletecoffeeidDeletePathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParametersMap pathParameters) { + default T pathParameters(FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java index 870bd0bc79f..088955d7d11 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java @@ -29,27 +29,27 @@ public class FakedeletecoffeeidDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class FakedeletecoffeeidDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakedeletecoffeeidDeletePathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakedeletecoffeeidDeleteadditionalProperties instance = null; - public static FakedeletecoffeeidDeleteadditionalProperties getInstance() { + private static @Nullable FakedeletecoffeeidDeletePathParameters4 instance = null; + public static FakedeletecoffeeidDeletePathParameters4 getInstance() { if (instance == null) { - instance = new FakedeletecoffeeidDeleteadditionalProperties(); + instance = new FakedeletecoffeeidDeletePathParameters4(); } return instance; } } - public static class FakedeletecoffeeidDeletePathParametersMap extends FrozenMap { - protected FakedeletecoffeeidDeletePathParametersMap(FrozenMap m) { + public static class FakedeletecoffeeidDeletePathParameters9 extends FrozenMap { + protected FakedeletecoffeeidDeletePathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "id" ); public static final Set optionalKeys = Set.of(); - public static FakedeletecoffeeidDeletePathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FakedeletecoffeeidDeletePathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakedeletecoffeeidDeletePathParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String id() { } } - public interface SetterForFakedeletecoffeeidDeleteid { + public interface SetterForFakedeletecoffeeidDeletePathParameters2 { Map getInstance(); - T getBuilderAfterFakedeletecoffeeidDeleteid(Map instance); + T getBuilderAfterFakedeletecoffeeidDeletePathParameters2(Map instance); default T id(String value) { var instance = getInstance(); instance.put("id", value); - return getBuilderAfterFakedeletecoffeeidDeleteid(instance); + return getBuilderAfterFakedeletecoffeeidDeletePathParameters2(instance); } } - public static class FakedeletecoffeeidDeletePathParametersMap0Builder implements GenericBuilder> { + public static class FakedeletecoffeeidDeletePathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "id" @@ -81,7 +81,7 @@ public static class FakedeletecoffeeidDeletePathParametersMap0Builder implements public Set getKnownKeys() { return knownKeys; } - public FakedeletecoffeeidDeletePathParametersMap0Builder(Map instance) { + public FakedeletecoffeeidDeletePathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class FakedeletecoffeeidDeletePathParametersMapBuilder implements SetterForFakedeletecoffeeidDeleteid { + public static class FakedeletecoffeeidDeletePathParameters8 implements SetterForFakedeletecoffeeidDeletePathParameters2 { private final Map instance; - public FakedeletecoffeeidDeletePathParametersMapBuilder() { + public FakedeletecoffeeidDeletePathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakedeletecoffeeidDeletePathParametersMap0Builder getBuilderAfterFakedeletecoffeeidDeleteid(Map instance) { - return new FakedeletecoffeeidDeletePathParametersMap0Builder(instance); + public FakedeletecoffeeidDeletePathParameters10 getBuilderAfterFakedeletecoffeeidDeletePathParameters2(Map instance) { + return new FakedeletecoffeeidDeletePathParameters10(instance); } } @@ -107,7 +107,7 @@ public sealed interface FakedeletecoffeeidDeletePathParameters1Boxed permits Fak @Nullable Object getData(); } - public record FakedeletecoffeeidDeletePathParameters1BoxedMap(FakedeletecoffeeidDeletePathParametersMap data) implements FakedeletecoffeeidDeletePathParameters1Boxed { + public record FakedeletecoffeeidDeletePathParameters1BoxedMap(FakedeletecoffeeidDeletePathParameters9 data) implements FakedeletecoffeeidDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record FakedeletecoffeeidDeletePathParameters1BoxedMap(Fakedeletecoffeeid } - public static class FakedeletecoffeeidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakedeletecoffeeidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakedeletecoffeeidDeletePathParameters1 instance = null; protected FakedeletecoffeeidDeletePathParameters1() { @@ -127,7 +127,7 @@ protected FakedeletecoffeeidDeletePathParameters1() { .required(Set.of( "id" )) - .additionalProperties(FakedeletecoffeeidDeleteadditionalProperties.class) + .additionalProperties(FakedeletecoffeeidDeletePathParameters4.class) ); } @@ -138,7 +138,7 @@ public static FakedeletecoffeeidDeletePathParameters1 getInstance() { return instance; } - public FakedeletecoffeeidDeletePathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakedeletecoffeeidDeletePathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public FakedeletecoffeeidDeletePathParametersMap getNewInstance(Map arg, L properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new FakedeletecoffeeidDeletePathParametersMap(castProperties); + return new FakedeletecoffeeidDeletePathParameters9(castProperties); } - public FakedeletecoffeeidDeletePathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakedeletecoffeeidDeletePathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java index 7ad5df0ef62..528a6a4ce3b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java @@ -97,7 +97,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody requestBody; - public FakeinlinecompositionPostQueryParameters.@Nullable FakeinlinecompositionPostQueryParametersMap queryParameters; + public FakeinlinecompositionPostQueryParameters.@Nullable FakeinlinecompositionPostQueryParameters10 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -115,7 +115,7 @@ default T requestBody(FakeinlinecompositionPostRequestBody.SealedRequestBody req public interface SetterForQueryParameters { PostRequest getInstance(); T getBuilderAfterQueryParameters(PostRequest instance); - default T queryParameters(FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParametersMap queryParameters) { + default T queryParameters(FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters10 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java index 445cd00fb69..3ddf1e81943 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java @@ -30,20 +30,20 @@ public class FakeinlinecompositionPostQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeinlinecompositionPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeinlinecompositionPostQueryParameters5 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeinlinecompositionPostadditionalProperties instance = null; - public static FakeinlinecompositionPostadditionalProperties getInstance() { + private static @Nullable FakeinlinecompositionPostQueryParameters5 instance = null; + public static FakeinlinecompositionPostQueryParameters5 getInstance() { if (instance == null) { - instance = new FakeinlinecompositionPostadditionalProperties(); + instance = new FakeinlinecompositionPostQueryParameters5(); } return instance; } } - public static class FakeinlinecompositionPostQueryParametersMap extends FrozenMap<@Nullable Object> { - protected FakeinlinecompositionPostQueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakeinlinecompositionPostQueryParameters10 extends FrozenMap<@Nullable Object> { + protected FakeinlinecompositionPostQueryParameters10(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -51,7 +51,7 @@ protected FakeinlinecompositionPostQueryParametersMap(FrozenMap<@Nullable Object "compositionAtRoot", "compositionInProperty" ); - public static FakeinlinecompositionPostQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FakeinlinecompositionPostQueryParameters10 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakeinlinecompositionPostQueryParameters1.getInstance().validate(arg, configuration); } @@ -76,77 +76,77 @@ public Schema1.SchemaMap1 compositionInProperty() throws UnsetPropertyException } } - public interface SetterForFakeinlinecompositionPostcompositionAtRoot { + public interface SetterForFakeinlinecompositionPostQueryParameters2 { Map getInstance(); - T getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(Map instance); + T getBuilderAfterFakeinlinecompositionPostQueryParameters2(Map instance); default T compositionAtRoot(Void value) { var instance = getInstance(); instance.put("compositionAtRoot", null); - return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); } default T compositionAtRoot(boolean value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); } default T compositionAtRoot(String value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); } default T compositionAtRoot(int value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); } default T compositionAtRoot(float value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); } default T compositionAtRoot(long value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); } default T compositionAtRoot(double value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); } default T compositionAtRoot(List value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); } default T compositionAtRoot(Map value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(instance); + return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); } } - public interface SetterForFakeinlinecompositionPostcompositionInProperty { + public interface SetterForFakeinlinecompositionPostQueryParameters3 { Map getInstance(); - T getBuilderAfterFakeinlinecompositionPostcompositionInProperty(Map instance); + T getBuilderAfterFakeinlinecompositionPostQueryParameters3(Map instance); default T compositionInProperty(Map value) { var instance = getInstance(); instance.put("compositionInProperty", value); - return getBuilderAfterFakeinlinecompositionPostcompositionInProperty(instance); + return getBuilderAfterFakeinlinecompositionPostQueryParameters3(instance); } } - public static class FakeinlinecompositionPostQueryParametersMapBuilder implements GenericBuilder>, SetterForFakeinlinecompositionPostcompositionAtRoot, SetterForFakeinlinecompositionPostcompositionInProperty { + public static class FakeinlinecompositionPostQueryParameters9 implements GenericBuilder>, SetterForFakeinlinecompositionPostQueryParameters2, SetterForFakeinlinecompositionPostQueryParameters3 { private final Map instance; private static final Set knownKeys = Set.of( "compositionAtRoot", @@ -155,7 +155,7 @@ public static class FakeinlinecompositionPostQueryParametersMapBuilder implement public Set getKnownKeys() { return knownKeys; } - public FakeinlinecompositionPostQueryParametersMapBuilder() { + public FakeinlinecompositionPostQueryParameters9() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -164,10 +164,10 @@ public FakeinlinecompositionPostQueryParametersMapBuilder() { public Map getInstance() { return instance; } - public FakeinlinecompositionPostQueryParametersMapBuilder getBuilderAfterFakeinlinecompositionPostcompositionAtRoot(Map instance) { + public FakeinlinecompositionPostQueryParameters9 getBuilderAfterFakeinlinecompositionPostQueryParameters2(Map instance) { return this; } - public FakeinlinecompositionPostQueryParametersMapBuilder getBuilderAfterFakeinlinecompositionPostcompositionInProperty(Map instance) { + public FakeinlinecompositionPostQueryParameters9 getBuilderAfterFakeinlinecompositionPostQueryParameters3(Map instance) { return this; } } @@ -177,7 +177,7 @@ public sealed interface FakeinlinecompositionPostQueryParameters1Boxed permits F @Nullable Object getData(); } - public record FakeinlinecompositionPostQueryParameters1BoxedMap(FakeinlinecompositionPostQueryParametersMap data) implements FakeinlinecompositionPostQueryParameters1Boxed { + public record FakeinlinecompositionPostQueryParameters1BoxedMap(FakeinlinecompositionPostQueryParameters10 data) implements FakeinlinecompositionPostQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -185,7 +185,7 @@ public record FakeinlinecompositionPostQueryParameters1BoxedMap(Fakeinlinecompos } - public static class FakeinlinecompositionPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeinlinecompositionPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeinlinecompositionPostQueryParameters1 instance = null; protected FakeinlinecompositionPostQueryParameters1() { @@ -195,7 +195,7 @@ protected FakeinlinecompositionPostQueryParameters1() { new PropertyEntry("compositionAtRoot", Schema0.Schema01.class), new PropertyEntry("compositionInProperty", Schema1.Schema11.class) )) - .additionalProperties(FakeinlinecompositionPostadditionalProperties.class) + .additionalProperties(FakeinlinecompositionPostQueryParameters5.class) ); } @@ -206,7 +206,7 @@ public static FakeinlinecompositionPostQueryParameters1 getInstance() { return instance; } - public FakeinlinecompositionPostQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeinlinecompositionPostQueryParameters10 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -226,10 +226,10 @@ public FakeinlinecompositionPostQueryParametersMap getNewInstance(Map arg, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakeinlinecompositionPostQueryParametersMap(castProperties); + return new FakeinlinecompositionPostQueryParameters10(castProperties); } - public FakeinlinecompositionPostQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeinlinecompositionPostQueryParameters10 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java index 30b64417e43..dab57c384fb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java @@ -83,7 +83,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public FakeobjinqueryGetQueryParameters.@Nullable FakeobjinqueryGetQueryParametersMap queryParameters; + public FakeobjinqueryGetQueryParameters.@Nullable FakeobjinqueryGetQueryParameters9 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -91,7 +91,7 @@ public static class GetRequest { public interface SetterForQueryParameters { GetRequest getInstance(); T getBuilderAfterQueryParameters(GetRequest instance); - default T queryParameters(FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParametersMap queryParameters) { + default T queryParameters(FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters9 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java index 65d46dd8fe8..219949d993a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java @@ -29,27 +29,27 @@ public class FakeobjinqueryGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeobjinqueryGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakeobjinqueryGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeobjinqueryGetadditionalProperties instance = null; - public static FakeobjinqueryGetadditionalProperties getInstance() { + private static @Nullable FakeobjinqueryGetQueryParameters4 instance = null; + public static FakeobjinqueryGetQueryParameters4 getInstance() { if (instance == null) { - instance = new FakeobjinqueryGetadditionalProperties(); + instance = new FakeobjinqueryGetQueryParameters4(); } return instance; } } - public static class FakeobjinqueryGetQueryParametersMap extends FrozenMap { - protected FakeobjinqueryGetQueryParametersMap(FrozenMap m) { + public static class FakeobjinqueryGetQueryParameters9 extends FrozenMap { + protected FakeobjinqueryGetQueryParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "mapBean" ); - public static FakeobjinqueryGetQueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + public static FakeobjinqueryGetQueryParameters9 of(Map> arg, SchemaConfiguration configuration) throws ValidationException { return FakeobjinqueryGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public Schema0.SchemaMap0 mapBean() throws UnsetPropertyException { } } - public interface SetterForFakeobjinqueryGetmapBean { + public interface SetterForFakeobjinqueryGetQueryParameters2 { Map> getInstance(); - T getBuilderAfterFakeobjinqueryGetmapBean(Map> instance); + T getBuilderAfterFakeobjinqueryGetQueryParameters2(Map> instance); default T mapBean(Map value) { var instance = getInstance(); instance.put("mapBean", value); - return getBuilderAfterFakeobjinqueryGetmapBean(instance); + return getBuilderAfterFakeobjinqueryGetQueryParameters2(instance); } } - public static class FakeobjinqueryGetQueryParametersMapBuilder implements GenericBuilder>>, SetterForFakeobjinqueryGetmapBean { + public static class FakeobjinqueryGetQueryParameters8 implements GenericBuilder>>, SetterForFakeobjinqueryGetQueryParameters2 { private final Map> instance; private static final Set knownKeys = Set.of( "mapBean" @@ -77,7 +77,7 @@ public static class FakeobjinqueryGetQueryParametersMapBuilder implements Generi public Set getKnownKeys() { return knownKeys; } - public FakeobjinqueryGetQueryParametersMapBuilder() { + public FakeobjinqueryGetQueryParameters8() { this.instance = new LinkedHashMap<>(); } public Map> build() { @@ -86,7 +86,7 @@ public FakeobjinqueryGetQueryParametersMapBuilder() { public Map> getInstance() { return instance; } - public FakeobjinqueryGetQueryParametersMapBuilder getBuilderAfterFakeobjinqueryGetmapBean(Map> instance) { + public FakeobjinqueryGetQueryParameters8 getBuilderAfterFakeobjinqueryGetQueryParameters2(Map> instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface FakeobjinqueryGetQueryParameters1Boxed permits Fakeobjin @Nullable Object getData(); } - public record FakeobjinqueryGetQueryParameters1BoxedMap(FakeobjinqueryGetQueryParametersMap data) implements FakeobjinqueryGetQueryParameters1Boxed { + public record FakeobjinqueryGetQueryParameters1BoxedMap(FakeobjinqueryGetQueryParameters9 data) implements FakeobjinqueryGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record FakeobjinqueryGetQueryParameters1BoxedMap(FakeobjinqueryGetQueryPa } - public static class FakeobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeobjinqueryGetQueryParameters1 instance = null; protected FakeobjinqueryGetQueryParameters1() { @@ -113,7 +113,7 @@ protected FakeobjinqueryGetQueryParameters1() { .properties(Map.ofEntries( new PropertyEntry("mapBean", Schema0.Schema01.class) )) - .additionalProperties(FakeobjinqueryGetadditionalProperties.class) + .additionalProperties(FakeobjinqueryGetQueryParameters4.class) ); } @@ -124,7 +124,7 @@ public static FakeobjinqueryGetQueryParameters1 getInstance() { return instance; } - public FakeobjinqueryGetQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakeobjinqueryGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public FakeobjinqueryGetQueryParametersMap getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new FakeobjinqueryGetQueryParametersMap(castProperties); + return new FakeobjinqueryGetQueryParameters9(castProperties); } - public FakeobjinqueryGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakeobjinqueryGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java index bd7756b0eba..28375de3966 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java @@ -115,20 +115,20 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters; + public Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters; public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; - public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters; - public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters; - public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap cookieParameters; + public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParameters12 headerParameters; + public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParameters13 queryParameters; + public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParameters13 cookieParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters, + Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters, Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody, - Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters, - Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters, - Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap cookieParameters, + Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParameters12 headerParameters, + Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParameters13 queryParameters, + Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParameters13 cookieParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -143,11 +143,11 @@ public PostRequest( } public static class PostNullableRequest { - public Fakeparametercollisions1ababselfabPostPathParameters.@Nullable Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters; + public Fakeparametercollisions1ababselfabPostPathParameters.@Nullable Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters; public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; - public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters; - public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters; - public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParametersMap cookieParameters; + public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParameters12 headerParameters; + public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParameters13 queryParameters; + public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParameters13 cookieParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -165,7 +165,7 @@ default T requestBody(Fakeparametercollisions1ababselfabPostRequestBody.SealedRe public interface SetterForHeaderParameters { PostNullableRequest getInstance(); T getBuilderAfterHeaderParameters(PostNullableRequest instance); - default T headerParameters(Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParametersMap headerParameters) { + default T headerParameters(Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters12 headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -175,7 +175,7 @@ default T headerParameters(Fakeparametercollisions1ababselfabPostHeaderParameter public interface SetterForQueryParameters { PostNullableRequest getInstance(); T getBuilderAfterQueryParameters(PostNullableRequest instance); - default T queryParameters(Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParametersMap queryParameters) { + default T queryParameters(Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters13 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); @@ -185,7 +185,7 @@ default T queryParameters(Fakeparametercollisions1ababselfabPostQueryParameters. public interface SetterForCookieParameters { PostNullableRequest getInstance(); T getBuilderAfterCookieParameters(PostNullableRequest instance); - default T cookieParameters(Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParametersMap cookieParameters) { + default T cookieParameters(Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters13 cookieParameters) { var instance = getInstance(); instance.cookieParameters = cookieParameters; return getBuilderAfterCookieParameters(instance); @@ -215,7 +215,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParametersMap pathParameters) { + default T pathParameters(Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java index 23e6be4ba01..ca779a77c3e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java @@ -33,20 +33,20 @@ public class Fakeparametercollisions1ababselfabPostCookieParameters { // nest classes so all schemas and input/output classes can be public - public static class Fakeparametercollisions1ababselfabPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Fakeparametercollisions1ababselfabPostCookieParameters8 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Fakeparametercollisions1ababselfabPostadditionalProperties instance = null; - public static Fakeparametercollisions1ababselfabPostadditionalProperties getInstance() { + private static @Nullable Fakeparametercollisions1ababselfabPostCookieParameters8 instance = null; + public static Fakeparametercollisions1ababselfabPostCookieParameters8 getInstance() { if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostadditionalProperties(); + instance = new Fakeparametercollisions1ababselfabPostCookieParameters8(); } return instance; } } - public static class Fakeparametercollisions1ababselfabPostCookieParametersMap extends FrozenMap<@Nullable Object> { - protected Fakeparametercollisions1ababselfabPostCookieParametersMap(FrozenMap<@Nullable Object> m) { + public static class Fakeparametercollisions1ababselfabPostCookieParameters13 extends FrozenMap<@Nullable Object> { + protected Fakeparametercollisions1ababselfabPostCookieParameters13(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -57,7 +57,7 @@ protected Fakeparametercollisions1ababselfabPostCookieParametersMap(FrozenMap<@N "A-B", "self" ); - public static Fakeparametercollisions1ababselfabPostCookieParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static Fakeparametercollisions1ababselfabPostCookieParameters13 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Fakeparametercollisions1ababselfabPostCookieParameters1.getInstance().validate(arg, configuration); } @@ -92,62 +92,62 @@ public String self() throws UnsetPropertyException { } } - public interface SetterForFakeparametercollisions1ababselfabPost1 { + public interface SetterForFakeparametercollisions1ababselfabPostCookieParameters2 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters2(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterFakeparametercollisions1ababselfabPost1(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters2(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostaB { + public interface SetterForFakeparametercollisions1ababselfabPostCookieParameters3 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters3(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostaB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters3(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostAb { + public interface SetterForFakeparametercollisions1ababselfabPostCookieParameters4 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters4(Map instance); default T Ab(String value) { var instance = getInstance(); instance.put("Ab", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostAb(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters4(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostAB { + public interface SetterForFakeparametercollisions1ababselfabPostCookieParameters5 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters5(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostAB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters5(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostself { + public interface SetterForFakeparametercollisions1ababselfabPostCookieParameters6 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters6(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostself(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters6(instance); } } - public static class Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostCookieParameters12 implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPostCookieParameters2, SetterForFakeparametercollisions1ababselfabPostCookieParameters3, SetterForFakeparametercollisions1ababselfabPostCookieParameters4, SetterForFakeparametercollisions1ababselfabPostCookieParameters5, SetterForFakeparametercollisions1ababselfabPostCookieParameters6 { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -159,7 +159,7 @@ public static class Fakeparametercollisions1ababselfabPostCookieParametersMapBui public Set getKnownKeys() { return knownKeys; } - public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder() { + public Fakeparametercollisions1ababselfabPostCookieParameters12() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -168,19 +168,19 @@ public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder() { public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + public Fakeparametercollisions1ababselfabPostCookieParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters2(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + public Fakeparametercollisions1ababselfabPostCookieParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters3(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + public Fakeparametercollisions1ababselfabPostCookieParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters4(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + public Fakeparametercollisions1ababselfabPostCookieParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters5(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostCookieParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + public Fakeparametercollisions1ababselfabPostCookieParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters6(Map instance) { return this; } } @@ -190,7 +190,7 @@ public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters1B @Nullable Object getData(); } - public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(Fakeparametercollisions1ababselfabPostCookieParametersMap data) implements Fakeparametercollisions1ababselfabPostCookieParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(Fakeparametercollisions1ababselfabPostCookieParameters13 data) implements Fakeparametercollisions1ababselfabPostCookieParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -198,7 +198,7 @@ public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(Fa } - public static class Fakeparametercollisions1ababselfabPostCookieParameters1 extends JsonSchema implements MapSchemaValidator { + public static class Fakeparametercollisions1ababselfabPostCookieParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Fakeparametercollisions1ababselfabPostCookieParameters1 instance = null; protected Fakeparametercollisions1ababselfabPostCookieParameters1() { @@ -211,7 +211,7 @@ protected Fakeparametercollisions1ababselfabPostCookieParameters1() { new PropertyEntry("A-B", Schema18.Schema181.class), new PropertyEntry("self", Schema17.Schema171.class) )) - .additionalProperties(Fakeparametercollisions1ababselfabPostadditionalProperties.class) + .additionalProperties(Fakeparametercollisions1ababselfabPostCookieParameters8.class) ); } @@ -222,7 +222,7 @@ public static Fakeparametercollisions1ababselfabPostCookieParameters1 getInstanc return instance; } - public Fakeparametercollisions1ababselfabPostCookieParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Fakeparametercollisions1ababselfabPostCookieParameters13 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -242,10 +242,10 @@ public Fakeparametercollisions1ababselfabPostCookieParametersMap getNewInstance( properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new Fakeparametercollisions1ababselfabPostCookieParametersMap(castProperties); + return new Fakeparametercollisions1ababselfabPostCookieParameters13(castProperties); } - public Fakeparametercollisions1ababselfabPostCookieParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Fakeparametercollisions1ababselfabPostCookieParameters13 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java index 2effb73792e..ad0b319a1dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java @@ -32,20 +32,20 @@ public class Fakeparametercollisions1ababselfabPostHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class Fakeparametercollisions1ababselfabPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Fakeparametercollisions1ababselfabPostHeaderParameters7 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Fakeparametercollisions1ababselfabPostadditionalProperties instance = null; - public static Fakeparametercollisions1ababselfabPostadditionalProperties getInstance() { + private static @Nullable Fakeparametercollisions1ababselfabPostHeaderParameters7 instance = null; + public static Fakeparametercollisions1ababselfabPostHeaderParameters7 getInstance() { if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostadditionalProperties(); + instance = new Fakeparametercollisions1ababselfabPostHeaderParameters7(); } return instance; } } - public static class Fakeparametercollisions1ababselfabPostHeaderParametersMap extends FrozenMap<@Nullable Object> { - protected Fakeparametercollisions1ababselfabPostHeaderParametersMap(FrozenMap<@Nullable Object> m) { + public static class Fakeparametercollisions1ababselfabPostHeaderParameters12 extends FrozenMap<@Nullable Object> { + protected Fakeparametercollisions1ababselfabPostHeaderParameters12(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -55,7 +55,7 @@ protected Fakeparametercollisions1ababselfabPostHeaderParametersMap(FrozenMap<@N "A-B", "self" ); - public static Fakeparametercollisions1ababselfabPostHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static Fakeparametercollisions1ababselfabPostHeaderParameters12 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Fakeparametercollisions1ababselfabPostHeaderParameters1.getInstance().validate(arg, configuration); } @@ -80,51 +80,51 @@ public String self() throws UnsetPropertyException { } } - public interface SetterForFakeparametercollisions1ababselfabPost1 { + public interface SetterForFakeparametercollisions1ababselfabPostHeaderParameters2 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters2(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterFakeparametercollisions1ababselfabPost1(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters2(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostaB { + public interface SetterForFakeparametercollisions1ababselfabPostHeaderParameters3 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters3(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostaB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters3(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostAB { + public interface SetterForFakeparametercollisions1ababselfabPostHeaderParameters4 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters4(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostAB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters4(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostself { + public interface SetterForFakeparametercollisions1ababselfabPostHeaderParameters5 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters5(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostself(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters5(instance); } } - public static class Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostHeaderParameters11 implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPostHeaderParameters2, SetterForFakeparametercollisions1ababselfabPostHeaderParameters3, SetterForFakeparametercollisions1ababselfabPostHeaderParameters4, SetterForFakeparametercollisions1ababselfabPostHeaderParameters5 { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -135,7 +135,7 @@ public static class Fakeparametercollisions1ababselfabPostHeaderParametersMapBui public Set getKnownKeys() { return knownKeys; } - public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder() { + public Fakeparametercollisions1ababselfabPostHeaderParameters11() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -144,16 +144,16 @@ public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder() { public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + public Fakeparametercollisions1ababselfabPostHeaderParameters11 getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters2(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + public Fakeparametercollisions1ababselfabPostHeaderParameters11 getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters3(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + public Fakeparametercollisions1ababselfabPostHeaderParameters11 getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters4(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostHeaderParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + public Fakeparametercollisions1ababselfabPostHeaderParameters11 getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters5(Map instance) { return this; } } @@ -163,7 +163,7 @@ public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters1B @Nullable Object getData(); } - public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(Fakeparametercollisions1ababselfabPostHeaderParametersMap data) implements Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(Fakeparametercollisions1ababselfabPostHeaderParameters12 data) implements Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -171,7 +171,7 @@ public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(Fa } - public static class Fakeparametercollisions1ababselfabPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class Fakeparametercollisions1ababselfabPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Fakeparametercollisions1ababselfabPostHeaderParameters1 instance = null; protected Fakeparametercollisions1ababselfabPostHeaderParameters1() { @@ -183,7 +183,7 @@ protected Fakeparametercollisions1ababselfabPostHeaderParameters1() { new PropertyEntry("A-B", Schema8.Schema81.class), new PropertyEntry("self", Schema7.Schema71.class) )) - .additionalProperties(Fakeparametercollisions1ababselfabPostadditionalProperties.class) + .additionalProperties(Fakeparametercollisions1ababselfabPostHeaderParameters7.class) ); } @@ -194,7 +194,7 @@ public static Fakeparametercollisions1ababselfabPostHeaderParameters1 getInstanc return instance; } - public Fakeparametercollisions1ababselfabPostHeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Fakeparametercollisions1ababselfabPostHeaderParameters12 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -214,10 +214,10 @@ public Fakeparametercollisions1ababselfabPostHeaderParametersMap getNewInstance( properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new Fakeparametercollisions1ababselfabPostHeaderParametersMap(castProperties); + return new Fakeparametercollisions1ababselfabPostHeaderParameters12(castProperties); } - public Fakeparametercollisions1ababselfabPostHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Fakeparametercollisions1ababselfabPostHeaderParameters12 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java index 83039b2ef64..a2d39b44b2e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java @@ -33,20 +33,20 @@ public class Fakeparametercollisions1ababselfabPostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class Fakeparametercollisions1ababselfabPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Fakeparametercollisions1ababselfabPostPathParameters8 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Fakeparametercollisions1ababselfabPostadditionalProperties instance = null; - public static Fakeparametercollisions1ababselfabPostadditionalProperties getInstance() { + private static @Nullable Fakeparametercollisions1ababselfabPostPathParameters8 instance = null; + public static Fakeparametercollisions1ababselfabPostPathParameters8 getInstance() { if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostadditionalProperties(); + instance = new Fakeparametercollisions1ababselfabPostPathParameters8(); } return instance; } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap extends FrozenMap<@Nullable Object> { - protected Fakeparametercollisions1ababselfabPostPathParametersMap(FrozenMap<@Nullable Object> m) { + public static class Fakeparametercollisions1ababselfabPostPathParameters13 extends FrozenMap<@Nullable Object> { + protected Fakeparametercollisions1ababselfabPostPathParameters13(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -57,7 +57,7 @@ protected Fakeparametercollisions1ababselfabPostPathParametersMap(FrozenMap<@Nul "self" ); public static final Set optionalKeys = Set.of(); - public static Fakeparametercollisions1ababselfabPostPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static Fakeparametercollisions1ababselfabPostPathParameters13 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Fakeparametercollisions1ababselfabPostPathParameters1.getInstance().validate(arg, configuration); } @@ -86,62 +86,62 @@ public String self() { } } - public interface SetterForFakeparametercollisions1ababselfabPost1 { + public interface SetterForFakeparametercollisions1ababselfabPostPathParameters2 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterFakeparametercollisions1ababselfabPost1(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostAB { + public interface SetterForFakeparametercollisions1ababselfabPostPathParameters5 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostAB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostAb { + public interface SetterForFakeparametercollisions1ababselfabPostPathParameters4 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance); default T Ab(String value) { var instance = getInstance(); instance.put("Ab", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostAb(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostaB { + public interface SetterForFakeparametercollisions1ababselfabPostPathParameters3 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostaB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostself { + public interface SetterForFakeparametercollisions1ababselfabPostPathParameters6 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostself(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder implements GenericBuilder> { + public static class Fakeparametercollisions1ababselfabPostPathParameters14 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -153,7 +153,7 @@ public static class Fakeparametercollisions1ababselfabPostPathParametersMap00000 public Set getKnownKeys() { return knownKeys; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters14(Map instance) { this.instance = instance; } public Map build() { @@ -161,553 +161,553 @@ public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(Map { + public static class Fakeparametercollisions1ababselfabPostPathParameters15 implements SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters15(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters14 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters14(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder implements SetterForFakeparametercollisions1ababselfabPostaB { + public static class Fakeparametercollisions1ababselfabPostPathParameters16 implements SetterForFakeparametercollisions1ababselfabPostPathParameters3 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters16(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters14 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters14(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder implements SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters17 implements SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters17(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters15 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters15(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters16 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters16(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder implements SetterForFakeparametercollisions1ababselfabPostAb { + public static class Fakeparametercollisions1ababselfabPostPathParameters18 implements SetterForFakeparametercollisions1ababselfabPostPathParameters4 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters18(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters14 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters14(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder implements SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters19 implements SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters19(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters15 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters15(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters18 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters18(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder implements SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB { + public static class Fakeparametercollisions1ababselfabPostPathParameters20 implements SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters20(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters16 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters16(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters18 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters18(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder implements SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters21 implements SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters21(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters17 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters17(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters19 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters19(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters20 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters20(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder implements SetterForFakeparametercollisions1ababselfabPostAB { + public static class Fakeparametercollisions1ababselfabPostPathParameters22 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters22(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters14 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters14(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters23 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters23(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters15 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters15(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters22 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters22(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostaB { + public static class Fakeparametercollisions1ababselfabPostPathParameters24 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters24(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters16 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters16(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters22 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters22(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters25 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters25(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters17 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters17(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters23 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters23(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters24 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters24(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb { + public static class Fakeparametercollisions1ababselfabPostPathParameters26 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters26(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters18 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters18(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters22 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters22(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters27 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters27(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters19 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters19(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters23 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters23(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters26 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters26(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB { + public static class Fakeparametercollisions1ababselfabPostPathParameters28 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters28(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters20 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters20(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters24 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters24(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters26 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters26(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder implements SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters29 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters29(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters21 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters21(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters25 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters25(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters27 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters27(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters28 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters28(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder implements SetterForFakeparametercollisions1ababselfabPost1 { + public static class Fakeparametercollisions1ababselfabPostPathParameters30 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters30(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters14 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters14(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters31 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters31(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters15 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters15(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters30 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters30(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostaB { + public static class Fakeparametercollisions1ababselfabPostPathParameters32 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters32(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters16 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters16(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters30 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters30(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters33 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters33(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00011Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters17 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters17(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters31 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters31(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters32 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters32(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAb { + public static class Fakeparametercollisions1ababselfabPostPathParameters34 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters4 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters34(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters18 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters18(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters30 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters30(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters35 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters35(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00101Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters19 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters19(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters31 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters31(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters34 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters34(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB { + public static class Fakeparametercollisions1ababselfabPostPathParameters36 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters36(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00110Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters20 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters20(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters32 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters32(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters34 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters34(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters37 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters37(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap00111Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters21 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters21(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters33 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters33(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters35 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters35(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters36 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters36(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB { + public static class Fakeparametercollisions1ababselfabPostPathParameters38 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters38(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters22 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters22(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters30 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters30(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters39 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters39(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters23 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters23(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters31 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters31(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters38 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters38(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostaB { + public static class Fakeparametercollisions1ababselfabPostPathParameters40 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters40(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters24 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters24(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters32 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters32(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters38 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters38(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters41 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters41(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01011Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters25 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters25(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10011Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters33 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters33(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters39 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters39(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters40 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters40(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb { + public static class Fakeparametercollisions1ababselfabPostPathParameters42 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters42(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters26 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters26(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters34 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters34(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11000Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters38 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters38(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters43 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters43(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01101Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters27 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters27(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10101Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters35 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters35(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11001Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters39 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters39(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters42 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters42(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB { + public static class Fakeparametercollisions1ababselfabPostPathParameters44 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder(Map instance) { + public Fakeparametercollisions1ababselfabPostPathParameters44(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01110Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters28 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters28(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10110Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters36 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters36(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11010Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters40 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters40(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11100Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters42 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters42(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParametersMapBuilder implements SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostPathParameters12 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParametersMapBuilder() { + public Fakeparametercollisions1ababselfabPostPathParameters12() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap01111Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters29 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters29(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap10111Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters37 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters37(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11011Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters41 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters41(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11101Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters43 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters43(instance); } - public Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParametersMap11110Builder(instance); + public Fakeparametercollisions1ababselfabPostPathParameters44 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { + return new Fakeparametercollisions1ababselfabPostPathParameters44(instance); } } @@ -716,7 +716,7 @@ public sealed interface Fakeparametercollisions1ababselfabPostPathParameters1Box @Nullable Object getData(); } - public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(Fakeparametercollisions1ababselfabPostPathParametersMap data) implements Fakeparametercollisions1ababselfabPostPathParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(Fakeparametercollisions1ababselfabPostPathParameters13 data) implements Fakeparametercollisions1ababselfabPostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -724,7 +724,7 @@ public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(Fake } - public static class Fakeparametercollisions1ababselfabPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class Fakeparametercollisions1ababselfabPostPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Fakeparametercollisions1ababselfabPostPathParameters1 instance = null; protected Fakeparametercollisions1ababselfabPostPathParameters1() { @@ -744,7 +744,7 @@ protected Fakeparametercollisions1ababselfabPostPathParameters1() { "aB", "self" )) - .additionalProperties(Fakeparametercollisions1ababselfabPostadditionalProperties.class) + .additionalProperties(Fakeparametercollisions1ababselfabPostPathParameters8.class) ); } @@ -755,7 +755,7 @@ public static Fakeparametercollisions1ababselfabPostPathParameters1 getInstance( return instance; } - public Fakeparametercollisions1ababselfabPostPathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Fakeparametercollisions1ababselfabPostPathParameters13 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -775,10 +775,10 @@ public Fakeparametercollisions1ababselfabPostPathParametersMap getNewInstance(Ma properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new Fakeparametercollisions1ababselfabPostPathParametersMap(castProperties); + return new Fakeparametercollisions1ababselfabPostPathParameters13(castProperties); } - public Fakeparametercollisions1ababselfabPostPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Fakeparametercollisions1ababselfabPostPathParameters13 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java index eb8ec9f9eff..ec86bc0ac2f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java @@ -33,20 +33,20 @@ public class Fakeparametercollisions1ababselfabPostQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class Fakeparametercollisions1ababselfabPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Fakeparametercollisions1ababselfabPostQueryParameters8 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Fakeparametercollisions1ababselfabPostadditionalProperties instance = null; - public static Fakeparametercollisions1ababselfabPostadditionalProperties getInstance() { + private static @Nullable Fakeparametercollisions1ababselfabPostQueryParameters8 instance = null; + public static Fakeparametercollisions1ababselfabPostQueryParameters8 getInstance() { if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostadditionalProperties(); + instance = new Fakeparametercollisions1ababselfabPostQueryParameters8(); } return instance; } } - public static class Fakeparametercollisions1ababselfabPostQueryParametersMap extends FrozenMap<@Nullable Object> { - protected Fakeparametercollisions1ababselfabPostQueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class Fakeparametercollisions1ababselfabPostQueryParameters13 extends FrozenMap<@Nullable Object> { + protected Fakeparametercollisions1ababselfabPostQueryParameters13(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -57,7 +57,7 @@ protected Fakeparametercollisions1ababselfabPostQueryParametersMap(FrozenMap<@Nu "A-B", "self" ); - public static Fakeparametercollisions1ababselfabPostQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static Fakeparametercollisions1ababselfabPostQueryParameters13 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Fakeparametercollisions1ababselfabPostQueryParameters1.getInstance().validate(arg, configuration); } @@ -92,62 +92,62 @@ public String self() throws UnsetPropertyException { } } - public interface SetterForFakeparametercollisions1ababselfabPost1 { + public interface SetterForFakeparametercollisions1ababselfabPostQueryParameters2 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters2(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterFakeparametercollisions1ababselfabPost1(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters2(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostaB { + public interface SetterForFakeparametercollisions1ababselfabPostQueryParameters3 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters3(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostaB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters3(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostAb { + public interface SetterForFakeparametercollisions1ababselfabPostQueryParameters4 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters4(Map instance); default T Ab(String value) { var instance = getInstance(); instance.put("Ab", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostAb(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters4(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostAB { + public interface SetterForFakeparametercollisions1ababselfabPostQueryParameters5 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters5(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostAB(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters5(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostself { + public interface SetterForFakeparametercollisions1ababselfabPostQueryParameters6 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance); + T getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters6(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostself(instance); + return getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters6(instance); } } - public static class Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPost1, SetterForFakeparametercollisions1ababselfabPostaB, SetterForFakeparametercollisions1ababselfabPostAb, SetterForFakeparametercollisions1ababselfabPostAB, SetterForFakeparametercollisions1ababselfabPostself { + public static class Fakeparametercollisions1ababselfabPostQueryParameters12 implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPostQueryParameters2, SetterForFakeparametercollisions1ababselfabPostQueryParameters3, SetterForFakeparametercollisions1ababselfabPostQueryParameters4, SetterForFakeparametercollisions1ababselfabPostQueryParameters5, SetterForFakeparametercollisions1ababselfabPostQueryParameters6 { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -159,7 +159,7 @@ public static class Fakeparametercollisions1ababselfabPostQueryParametersMapBuil public Set getKnownKeys() { return knownKeys; } - public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder() { + public Fakeparametercollisions1ababselfabPostQueryParameters12() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -168,19 +168,19 @@ public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder() { public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPost1(Map instance) { + public Fakeparametercollisions1ababselfabPostQueryParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters2(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostaB(Map instance) { + public Fakeparametercollisions1ababselfabPostQueryParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters3(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostAb(Map instance) { + public Fakeparametercollisions1ababselfabPostQueryParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters4(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostAB(Map instance) { + public Fakeparametercollisions1ababselfabPostQueryParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters5(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostQueryParametersMapBuilder getBuilderAfterFakeparametercollisions1ababselfabPostself(Map instance) { + public Fakeparametercollisions1ababselfabPostQueryParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters6(Map instance) { return this; } } @@ -190,7 +190,7 @@ public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters1Bo @Nullable Object getData(); } - public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(Fakeparametercollisions1ababselfabPostQueryParametersMap data) implements Fakeparametercollisions1ababselfabPostQueryParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(Fakeparametercollisions1ababselfabPostQueryParameters13 data) implements Fakeparametercollisions1ababselfabPostQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -198,7 +198,7 @@ public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(Fak } - public static class Fakeparametercollisions1ababselfabPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class Fakeparametercollisions1ababselfabPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Fakeparametercollisions1ababselfabPostQueryParameters1 instance = null; protected Fakeparametercollisions1ababselfabPostQueryParameters1() { @@ -211,7 +211,7 @@ protected Fakeparametercollisions1ababselfabPostQueryParameters1() { new PropertyEntry("A-B", Schema4.Schema41.class), new PropertyEntry("self", Schema3.Schema31.class) )) - .additionalProperties(Fakeparametercollisions1ababselfabPostadditionalProperties.class) + .additionalProperties(Fakeparametercollisions1ababselfabPostQueryParameters8.class) ); } @@ -222,7 +222,7 @@ public static Fakeparametercollisions1ababselfabPostQueryParameters1 getInstance return instance; } - public Fakeparametercollisions1ababselfabPostQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Fakeparametercollisions1ababselfabPostQueryParameters13 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -242,10 +242,10 @@ public Fakeparametercollisions1ababselfabPostQueryParametersMap getNewInstance(M properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new Fakeparametercollisions1ababselfabPostQueryParametersMap(castProperties); + return new Fakeparametercollisions1ababselfabPostQueryParameters13(castProperties); } - public Fakeparametercollisions1ababselfabPostQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Fakeparametercollisions1ababselfabPostQueryParameters13 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java index 7f03f5a4796..5867949c800 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java @@ -105,14 +105,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters; + public FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters; public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( - FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters, + FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters, FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody, ServerInfo.@Nullable ServerIndex serverIndex, FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -127,7 +127,7 @@ public PostRequest( } public static class PostNullableRequest { - public FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters; + public FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters; public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -177,7 +177,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParametersMap pathParameters) { + default T pathParameters(FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java index f34f4be8277..daf4fbf7ecf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java @@ -29,27 +29,27 @@ public class FakepetiduploadimagewithrequiredfilePostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class FakepetiduploadimagewithrequiredfilePostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakepetiduploadimagewithrequiredfilePostPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakepetiduploadimagewithrequiredfilePostadditionalProperties instance = null; - public static FakepetiduploadimagewithrequiredfilePostadditionalProperties getInstance() { + private static @Nullable FakepetiduploadimagewithrequiredfilePostPathParameters4 instance = null; + public static FakepetiduploadimagewithrequiredfilePostPathParameters4 getInstance() { if (instance == null) { - instance = new FakepetiduploadimagewithrequiredfilePostadditionalProperties(); + instance = new FakepetiduploadimagewithrequiredfilePostPathParameters4(); } return instance; } } - public static class FakepetiduploadimagewithrequiredfilePostPathParametersMap extends FrozenMap { - protected FakepetiduploadimagewithrequiredfilePostPathParametersMap(FrozenMap m) { + public static class FakepetiduploadimagewithrequiredfilePostPathParameters9 extends FrozenMap { + protected FakepetiduploadimagewithrequiredfilePostPathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static FakepetiduploadimagewithrequiredfilePostPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FakepetiduploadimagewithrequiredfilePostPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakepetiduploadimagewithrequiredfilePostPathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForFakepetiduploadimagewithrequiredfilePostpetId { + public interface SetterForFakepetiduploadimagewithrequiredfilePostPathParameters2 { Map getInstance(); - T getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(Map instance); + T getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(instance); + return getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(instance); + return getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(instance); + return getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(instance); + return getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(instance); } } - public static class FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder implements GenericBuilder> { + public static class FakepetiduploadimagewithrequiredfilePostPathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class FakepetiduploadimagewithrequiredfilePostPathParametersMap0Bu public Set getKnownKeys() { return knownKeys; } - public FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder(Map instance) { + public FakepetiduploadimagewithrequiredfilePostPathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder implements SetterForFakepetiduploadimagewithrequiredfilePostpetId { + public static class FakepetiduploadimagewithrequiredfilePostPathParameters8 implements SetterForFakepetiduploadimagewithrequiredfilePostPathParameters2 { private final Map instance; - public FakepetiduploadimagewithrequiredfilePostPathParametersMapBuilder() { + public FakepetiduploadimagewithrequiredfilePostPathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder getBuilderAfterFakepetiduploadimagewithrequiredfilePostpetId(Map instance) { - return new FakepetiduploadimagewithrequiredfilePostPathParametersMap0Builder(instance); + public FakepetiduploadimagewithrequiredfilePostPathParameters10 getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(Map instance) { + return new FakepetiduploadimagewithrequiredfilePostPathParameters10(instance); } } @@ -125,7 +125,7 @@ public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters1B @Nullable Object getData(); } - public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(FakepetiduploadimagewithrequiredfilePostPathParametersMap data) implements FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed { + public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(FakepetiduploadimagewithrequiredfilePostPathParameters9 data) implements FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(Fa } - public static class FakepetiduploadimagewithrequiredfilePostPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakepetiduploadimagewithrequiredfilePostPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakepetiduploadimagewithrequiredfilePostPathParameters1 instance = null; protected FakepetiduploadimagewithrequiredfilePostPathParameters1() { @@ -145,7 +145,7 @@ protected FakepetiduploadimagewithrequiredfilePostPathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(FakepetiduploadimagewithrequiredfilePostadditionalProperties.class) + .additionalProperties(FakepetiduploadimagewithrequiredfilePostPathParameters4.class) ); } @@ -156,7 +156,7 @@ public static FakepetiduploadimagewithrequiredfilePostPathParameters1 getInstanc return instance; } - public FakepetiduploadimagewithrequiredfilePostPathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakepetiduploadimagewithrequiredfilePostPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public FakepetiduploadimagewithrequiredfilePostPathParametersMap getNewInstance( properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new FakepetiduploadimagewithrequiredfilePostPathParametersMap(castProperties); + return new FakepetiduploadimagewithrequiredfilePostPathParameters9(castProperties); } - public FakepetiduploadimagewithrequiredfilePostPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakepetiduploadimagewithrequiredfilePostPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java index 27ee224e5e5..a30275e8737 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java @@ -80,12 +80,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters; + public FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters, + FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public GetRequest( } public static class GetNullableRequest { - public FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters; + public FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParametersMap queryParameters) { + default T queryParameters(FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java index 9594438f817..5d3e868be18 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java @@ -29,27 +29,27 @@ public class FakequeryparamwithjsoncontenttypeGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakequeryparamwithjsoncontenttypeGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakequeryparamwithjsoncontenttypeGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakequeryparamwithjsoncontenttypeGetadditionalProperties instance = null; - public static FakequeryparamwithjsoncontenttypeGetadditionalProperties getInstance() { + private static @Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters4 instance = null; + public static FakequeryparamwithjsoncontenttypeGetQueryParameters4 getInstance() { if (instance == null) { - instance = new FakequeryparamwithjsoncontenttypeGetadditionalProperties(); + instance = new FakequeryparamwithjsoncontenttypeGetQueryParameters4(); } return instance; } } - public static class FakequeryparamwithjsoncontenttypeGetQueryParametersMap extends FrozenMap<@Nullable Object> { - protected FakequeryparamwithjsoncontenttypeGetQueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FakequeryparamwithjsoncontenttypeGetQueryParameters9 extends FrozenMap<@Nullable Object> { + protected FakequeryparamwithjsoncontenttypeGetQueryParameters9(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( "someParam" ); public static final Set optionalKeys = Set.of(); - public static FakequeryparamwithjsoncontenttypeGetQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FakequeryparamwithjsoncontenttypeGetQueryParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakequeryparamwithjsoncontenttypeGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -62,66 +62,66 @@ public static FakequeryparamwithjsoncontenttypeGetQueryParametersMap of(Map { + public interface SetterForFakequeryparamwithjsoncontenttypeGetQueryParameters2 { Map getInstance(); - T getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(Map instance); + T getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(Map instance); default T someParam(Void value) { var instance = getInstance(); instance.put("someParam", null); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); } default T someParam(boolean value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); } default T someParam(String value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); } default T someParam(int value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); } default T someParam(float value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); } default T someParam(long value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); } default T someParam(double value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); } default T someParam(List value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); } default T someParam(Map value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(instance); + return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); } } - public static class FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder implements GenericBuilder> { + public static class FakequeryparamwithjsoncontenttypeGetQueryParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "someParam" @@ -129,7 +129,7 @@ public static class FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Build public Set getKnownKeys() { return knownKeys; } - public FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder(Map instance) { + public FakequeryparamwithjsoncontenttypeGetQueryParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -137,16 +137,16 @@ public FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder(Map { + public static class FakequeryparamwithjsoncontenttypeGetQueryParameters8 implements SetterForFakequeryparamwithjsoncontenttypeGetQueryParameters2 { private final Map instance; - public FakequeryparamwithjsoncontenttypeGetQueryParametersMapBuilder() { + public FakequeryparamwithjsoncontenttypeGetQueryParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder getBuilderAfterFakequeryparamwithjsoncontenttypeGetsomeParam(Map instance) { - return new FakequeryparamwithjsoncontenttypeGetQueryParametersMap0Builder(instance); + public FakequeryparamwithjsoncontenttypeGetQueryParameters10 getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(Map instance) { + return new FakequeryparamwithjsoncontenttypeGetQueryParameters10(instance); } } @@ -155,7 +155,7 @@ public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxe @Nullable Object getData(); } - public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(FakequeryparamwithjsoncontenttypeGetQueryParametersMap data) implements FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed { + public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(FakequeryparamwithjsoncontenttypeGetQueryParameters9 data) implements FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -163,7 +163,7 @@ public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(Fakeq } - public static class FakequeryparamwithjsoncontenttypeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakequeryparamwithjsoncontenttypeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters1 instance = null; protected FakequeryparamwithjsoncontenttypeGetQueryParameters1() { @@ -175,7 +175,7 @@ protected FakequeryparamwithjsoncontenttypeGetQueryParameters1() { .required(Set.of( "someParam" )) - .additionalProperties(FakequeryparamwithjsoncontenttypeGetadditionalProperties.class) + .additionalProperties(FakequeryparamwithjsoncontenttypeGetQueryParameters4.class) ); } @@ -186,7 +186,7 @@ public static FakequeryparamwithjsoncontenttypeGetQueryParameters1 getInstance() return instance; } - public FakequeryparamwithjsoncontenttypeGetQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakequeryparamwithjsoncontenttypeGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -209,10 +209,10 @@ public FakequeryparamwithjsoncontenttypeGetQueryParametersMap getNewInstance(Map properties.put(propertyName, (@Nullable Object) propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakequeryparamwithjsoncontenttypeGetQueryParametersMap(castProperties); + return new FakequeryparamwithjsoncontenttypeGetQueryParameters9(castProperties); } - public FakequeryparamwithjsoncontenttypeGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakequeryparamwithjsoncontenttypeGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java index 649af2d7483..3c4270e9cd3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java @@ -83,7 +83,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public FakerefobjinqueryGetQueryParameters.@Nullable FakerefobjinqueryGetQueryParametersMap queryParameters; + public FakerefobjinqueryGetQueryParameters.@Nullable FakerefobjinqueryGetQueryParameters9 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -91,7 +91,7 @@ public static class GetRequest { public interface SetterForQueryParameters { GetRequest getInstance(); T getBuilderAfterQueryParameters(GetRequest instance); - default T queryParameters(FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParametersMap queryParameters) { + default T queryParameters(FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters9 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java index f85cdfc3437..3077f7bc561 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java @@ -29,27 +29,27 @@ public class FakerefobjinqueryGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakerefobjinqueryGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FakerefobjinqueryGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakerefobjinqueryGetadditionalProperties instance = null; - public static FakerefobjinqueryGetadditionalProperties getInstance() { + private static @Nullable FakerefobjinqueryGetQueryParameters4 instance = null; + public static FakerefobjinqueryGetQueryParameters4 getInstance() { if (instance == null) { - instance = new FakerefobjinqueryGetadditionalProperties(); + instance = new FakerefobjinqueryGetQueryParameters4(); } return instance; } } - public static class FakerefobjinqueryGetQueryParametersMap extends FrozenMap { - protected FakerefobjinqueryGetQueryParametersMap(FrozenMap m) { + public static class FakerefobjinqueryGetQueryParameters9 extends FrozenMap { + protected FakerefobjinqueryGetQueryParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "mapBean" ); - public static FakerefobjinqueryGetQueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + public static FakerefobjinqueryGetQueryParameters9 of(Map> arg, SchemaConfiguration configuration) throws ValidationException { return FakerefobjinqueryGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public Foo.FooMap mapBean() throws UnsetPropertyException { } } - public interface SetterForFakerefobjinqueryGetmapBean { + public interface SetterForFakerefobjinqueryGetQueryParameters2 { Map> getInstance(); - T getBuilderAfterFakerefobjinqueryGetmapBean(Map> instance); + T getBuilderAfterFakerefobjinqueryGetQueryParameters2(Map> instance); default T mapBean(Map value) { var instance = getInstance(); instance.put("mapBean", value); - return getBuilderAfterFakerefobjinqueryGetmapBean(instance); + return getBuilderAfterFakerefobjinqueryGetQueryParameters2(instance); } } - public static class FakerefobjinqueryGetQueryParametersMapBuilder implements GenericBuilder>>, SetterForFakerefobjinqueryGetmapBean { + public static class FakerefobjinqueryGetQueryParameters8 implements GenericBuilder>>, SetterForFakerefobjinqueryGetQueryParameters2 { private final Map> instance; private static final Set knownKeys = Set.of( "mapBean" @@ -77,7 +77,7 @@ public static class FakerefobjinqueryGetQueryParametersMapBuilder implements Gen public Set getKnownKeys() { return knownKeys; } - public FakerefobjinqueryGetQueryParametersMapBuilder() { + public FakerefobjinqueryGetQueryParameters8() { this.instance = new LinkedHashMap<>(); } public Map> build() { @@ -86,7 +86,7 @@ public FakerefobjinqueryGetQueryParametersMapBuilder() { public Map> getInstance() { return instance; } - public FakerefobjinqueryGetQueryParametersMapBuilder getBuilderAfterFakerefobjinqueryGetmapBean(Map> instance) { + public FakerefobjinqueryGetQueryParameters8 getBuilderAfterFakerefobjinqueryGetQueryParameters2(Map> instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface FakerefobjinqueryGetQueryParameters1Boxed permits Fakere @Nullable Object getData(); } - public record FakerefobjinqueryGetQueryParameters1BoxedMap(FakerefobjinqueryGetQueryParametersMap data) implements FakerefobjinqueryGetQueryParameters1Boxed { + public record FakerefobjinqueryGetQueryParameters1BoxedMap(FakerefobjinqueryGetQueryParameters9 data) implements FakerefobjinqueryGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record FakerefobjinqueryGetQueryParameters1BoxedMap(FakerefobjinqueryGetQ } - public static class FakerefobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakerefobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakerefobjinqueryGetQueryParameters1 instance = null; protected FakerefobjinqueryGetQueryParameters1() { @@ -113,7 +113,7 @@ protected FakerefobjinqueryGetQueryParameters1() { .properties(Map.ofEntries( new PropertyEntry("mapBean", Foo.Foo1.class) )) - .additionalProperties(FakerefobjinqueryGetadditionalProperties.class) + .additionalProperties(FakerefobjinqueryGetQueryParameters4.class) ); } @@ -124,7 +124,7 @@ public static FakerefobjinqueryGetQueryParameters1 getInstance() { return instance; } - public FakerefobjinqueryGetQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FakerefobjinqueryGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public FakerefobjinqueryGetQueryParametersMap getNewInstance(Map arg, List properties.put(propertyName, (Foo.FooMap) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new FakerefobjinqueryGetQueryParametersMap(castProperties); + return new FakerefobjinqueryGetQueryParameters9(castProperties); } - public FakerefobjinqueryGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FakerefobjinqueryGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java index 759b200dfc0..db1c7e3473c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java @@ -80,12 +80,12 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class PutRequest { - public FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters; + public FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( - FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters, + FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public PutRequest( } public static class PutNullableRequest { - public FaketestqueryparamtersPutQueryParameters.@Nullable FaketestqueryparamtersPutQueryParametersMap queryParameters; + public FaketestqueryparamtersPutQueryParameters.@Nullable FaketestqueryparamtersPutQueryParameters14 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { PutNullableRequest getInstance(); T getBuilderAfterQueryParameters(PutNullableRequest instance); - default T queryParameters(FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParametersMap queryParameters) { + default T queryParameters(FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java index 65ffaf0bd6d..2073d38490d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java @@ -34,20 +34,20 @@ public class FaketestqueryparamtersPutQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FaketestqueryparamtersPutadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class FaketestqueryparamtersPutQueryParameters9 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FaketestqueryparamtersPutadditionalProperties instance = null; - public static FaketestqueryparamtersPutadditionalProperties getInstance() { + private static @Nullable FaketestqueryparamtersPutQueryParameters9 instance = null; + public static FaketestqueryparamtersPutQueryParameters9 getInstance() { if (instance == null) { - instance = new FaketestqueryparamtersPutadditionalProperties(); + instance = new FaketestqueryparamtersPutQueryParameters9(); } return instance; } } - public static class FaketestqueryparamtersPutQueryParametersMap extends FrozenMap<@Nullable Object> { - protected FaketestqueryparamtersPutQueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class FaketestqueryparamtersPutQueryParameters14 extends FrozenMap<@Nullable Object> { + protected FaketestqueryparamtersPutQueryParameters14(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -59,7 +59,7 @@ protected FaketestqueryparamtersPutQueryParametersMap(FrozenMap<@Nullable Object "url" ); public static final Set optionalKeys = Set.of(); - public static FaketestqueryparamtersPutQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static FaketestqueryparamtersPutQueryParameters14 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FaketestqueryparamtersPutQueryParameters1.getInstance().validate(arg, configuration); } @@ -112,73 +112,73 @@ public Schema3.SchemaList3 url() { } } - public interface SetterForFaketestqueryparamtersPutcontext { + public interface SetterForFaketestqueryparamtersPutQueryParameters4 { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPutcontext(Map instance); + T getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance); default T context(List value) { var instance = getInstance(); instance.put("context", value); - return getBuilderAfterFaketestqueryparamtersPutcontext(instance); + return getBuilderAfterFaketestqueryparamtersPutQueryParameters4(instance); } } - public interface SetterForFaketestqueryparamtersPuthttp { + public interface SetterForFaketestqueryparamtersPutQueryParameters5 { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPuthttp(Map instance); + T getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance); default T http(List value) { var instance = getInstance(); instance.put("http", value); - return getBuilderAfterFaketestqueryparamtersPuthttp(instance); + return getBuilderAfterFaketestqueryparamtersPutQueryParameters5(instance); } } - public interface SetterForFaketestqueryparamtersPutioutil { + public interface SetterForFaketestqueryparamtersPutQueryParameters3 { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPutioutil(Map instance); + T getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance); default T ioutil(List value) { var instance = getInstance(); instance.put("ioutil", value); - return getBuilderAfterFaketestqueryparamtersPutioutil(instance); + return getBuilderAfterFaketestqueryparamtersPutQueryParameters3(instance); } } - public interface SetterForFaketestqueryparamtersPutpipe { + public interface SetterForFaketestqueryparamtersPutQueryParameters6 { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPutpipe(Map instance); + T getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance); default T pipe(List value) { var instance = getInstance(); instance.put("pipe", value); - return getBuilderAfterFaketestqueryparamtersPutpipe(instance); + return getBuilderAfterFaketestqueryparamtersPutQueryParameters6(instance); } } - public interface SetterForFaketestqueryparamtersPutrefParam { + public interface SetterForFaketestqueryparamtersPutQueryParameters2 { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance); + T getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance); default T refParam(String value) { var instance = getInstance(); instance.put("refParam", value); - return getBuilderAfterFaketestqueryparamtersPutrefParam(instance); + return getBuilderAfterFaketestqueryparamtersPutQueryParameters2(instance); } } - public interface SetterForFaketestqueryparamtersPuturl { + public interface SetterForFaketestqueryparamtersPutQueryParameters7 { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPuturl(Map instance); + T getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance); default T url(List value) { var instance = getInstance(); instance.put("url", value); - return getBuilderAfterFaketestqueryparamtersPuturl(instance); + return getBuilderAfterFaketestqueryparamtersPutQueryParameters7(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap000000Builder implements GenericBuilder> { + public static class FaketestqueryparamtersPutQueryParameters15 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "context", @@ -191,7 +191,7 @@ public static class FaketestqueryparamtersPutQueryParametersMap000000Builder imp public Set getKnownKeys() { return knownKeys; } - public FaketestqueryparamtersPutQueryParametersMap000000Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters15(Map instance) { this.instance = instance; } public Map build() { @@ -199,1209 +199,1209 @@ public FaketestqueryparamtersPutQueryParametersMap000000Builder(Map { + public static class FaketestqueryparamtersPutQueryParameters16 implements SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap000001Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters16(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters15(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap000010Builder implements SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters17 implements SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap000010Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters17(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters15(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap000011Builder implements SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters18 implements SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap000011Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters18(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000001Builder(instance); + public FaketestqueryparamtersPutQueryParameters16 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters16(instance); } - public FaketestqueryparamtersPutQueryParametersMap000010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000010Builder(instance); + public FaketestqueryparamtersPutQueryParameters17 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters17(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap000100Builder implements SetterForFaketestqueryparamtersPutpipe { + public static class FaketestqueryparamtersPutQueryParameters19 implements SetterForFaketestqueryparamtersPutQueryParameters6 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap000100Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters19(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters15(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap000101Builder implements SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters20 implements SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap000101Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters20(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000001Builder(instance); + public FaketestqueryparamtersPutQueryParameters16 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters16(instance); } - public FaketestqueryparamtersPutQueryParametersMap000100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000100Builder(instance); + public FaketestqueryparamtersPutQueryParameters19 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters19(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap000110Builder implements SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters21 implements SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap000110Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters21(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000010Builder(instance); + public FaketestqueryparamtersPutQueryParameters17 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters17(instance); } - public FaketestqueryparamtersPutQueryParametersMap000100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000100Builder(instance); + public FaketestqueryparamtersPutQueryParameters19 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters19(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap000111Builder implements SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters22 implements SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap000111Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters22(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000011Builder(instance); + public FaketestqueryparamtersPutQueryParameters18 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters18(instance); } - public FaketestqueryparamtersPutQueryParametersMap000101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000101Builder(instance); + public FaketestqueryparamtersPutQueryParameters20 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters20(instance); } - public FaketestqueryparamtersPutQueryParametersMap000110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000110Builder(instance); + public FaketestqueryparamtersPutQueryParameters21 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters21(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap001000Builder implements SetterForFaketestqueryparamtersPutioutil { + public static class FaketestqueryparamtersPutQueryParameters23 implements SetterForFaketestqueryparamtersPutQueryParameters3 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap001000Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters23(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters15(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap001001Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters24 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap001001Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters24(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000001Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000001Builder(instance); + public FaketestqueryparamtersPutQueryParameters16 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters16(instance); } - public FaketestqueryparamtersPutQueryParametersMap001000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001000Builder(instance); + public FaketestqueryparamtersPutQueryParameters23 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters23(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap001010Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters25 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap001010Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters25(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000010Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000010Builder(instance); + public FaketestqueryparamtersPutQueryParameters17 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters17(instance); } - public FaketestqueryparamtersPutQueryParametersMap001000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001000Builder(instance); + public FaketestqueryparamtersPutQueryParameters23 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters23(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap001011Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters26 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap001011Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters26(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000011Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000011Builder(instance); + public FaketestqueryparamtersPutQueryParameters18 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters18(instance); } - public FaketestqueryparamtersPutQueryParametersMap001001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001001Builder(instance); + public FaketestqueryparamtersPutQueryParameters24 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters24(instance); } - public FaketestqueryparamtersPutQueryParametersMap001010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001010Builder(instance); + public FaketestqueryparamtersPutQueryParameters25 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters25(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap001100Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe { + public static class FaketestqueryparamtersPutQueryParameters27 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap001100Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters27(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000100Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000100Builder(instance); + public FaketestqueryparamtersPutQueryParameters19 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters19(instance); } - public FaketestqueryparamtersPutQueryParametersMap001000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001000Builder(instance); + public FaketestqueryparamtersPutQueryParameters23 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters23(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap001101Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters28 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap001101Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters28(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000101Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000101Builder(instance); + public FaketestqueryparamtersPutQueryParameters20 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters20(instance); } - public FaketestqueryparamtersPutQueryParametersMap001001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001001Builder(instance); + public FaketestqueryparamtersPutQueryParameters24 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters24(instance); } - public FaketestqueryparamtersPutQueryParametersMap001100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001100Builder(instance); + public FaketestqueryparamtersPutQueryParameters27 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters27(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap001110Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters29 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap001110Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters29(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000110Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000110Builder(instance); + public FaketestqueryparamtersPutQueryParameters21 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters21(instance); } - public FaketestqueryparamtersPutQueryParametersMap001010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001010Builder(instance); + public FaketestqueryparamtersPutQueryParameters25 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters25(instance); } - public FaketestqueryparamtersPutQueryParametersMap001100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001100Builder(instance); + public FaketestqueryparamtersPutQueryParameters27 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters27(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap001111Builder implements SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters30 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap001111Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters30(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000111Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000111Builder(instance); + public FaketestqueryparamtersPutQueryParameters22 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters22(instance); } - public FaketestqueryparamtersPutQueryParametersMap001011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001011Builder(instance); + public FaketestqueryparamtersPutQueryParameters26 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters26(instance); } - public FaketestqueryparamtersPutQueryParametersMap001101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001101Builder(instance); + public FaketestqueryparamtersPutQueryParameters28 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters28(instance); } - public FaketestqueryparamtersPutQueryParametersMap001110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001110Builder(instance); + public FaketestqueryparamtersPutQueryParameters29 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters29(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap010000Builder implements SetterForFaketestqueryparamtersPuthttp { + public static class FaketestqueryparamtersPutQueryParameters31 implements SetterForFaketestqueryparamtersPutQueryParameters5 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap010000Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters31(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters15(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap010001Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters32 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap010001Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters32(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000001Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000001Builder(instance); + public FaketestqueryparamtersPutQueryParameters16 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters16(instance); } - public FaketestqueryparamtersPutQueryParametersMap010000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010000Builder(instance); + public FaketestqueryparamtersPutQueryParameters31 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters31(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap010010Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters33 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap010010Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters33(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000010Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000010Builder(instance); + public FaketestqueryparamtersPutQueryParameters17 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters17(instance); } - public FaketestqueryparamtersPutQueryParametersMap010000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010000Builder(instance); + public FaketestqueryparamtersPutQueryParameters31 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters31(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap010011Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters34 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap010011Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters34(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000011Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000011Builder(instance); + public FaketestqueryparamtersPutQueryParameters18 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters18(instance); } - public FaketestqueryparamtersPutQueryParametersMap010001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010001Builder(instance); + public FaketestqueryparamtersPutQueryParameters32 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters32(instance); } - public FaketestqueryparamtersPutQueryParametersMap010010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010010Builder(instance); + public FaketestqueryparamtersPutQueryParameters33 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters33(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap010100Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe { + public static class FaketestqueryparamtersPutQueryParameters35 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap010100Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters35(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000100Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000100Builder(instance); + public FaketestqueryparamtersPutQueryParameters19 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters19(instance); } - public FaketestqueryparamtersPutQueryParametersMap010000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010000Builder(instance); + public FaketestqueryparamtersPutQueryParameters31 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters31(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap010101Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters36 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap010101Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters36(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000101Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000101Builder(instance); + public FaketestqueryparamtersPutQueryParameters20 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters20(instance); } - public FaketestqueryparamtersPutQueryParametersMap010001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010001Builder(instance); + public FaketestqueryparamtersPutQueryParameters32 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters32(instance); } - public FaketestqueryparamtersPutQueryParametersMap010100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010100Builder(instance); + public FaketestqueryparamtersPutQueryParameters35 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters35(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap010110Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters37 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap010110Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters37(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000110Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000110Builder(instance); + public FaketestqueryparamtersPutQueryParameters21 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters21(instance); } - public FaketestqueryparamtersPutQueryParametersMap010010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010010Builder(instance); + public FaketestqueryparamtersPutQueryParameters33 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters33(instance); } - public FaketestqueryparamtersPutQueryParametersMap010100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010100Builder(instance); + public FaketestqueryparamtersPutQueryParameters35 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters35(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap010111Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters38 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap010111Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters38(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000111Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000111Builder(instance); + public FaketestqueryparamtersPutQueryParameters22 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters22(instance); } - public FaketestqueryparamtersPutQueryParametersMap010011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010011Builder(instance); + public FaketestqueryparamtersPutQueryParameters34 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters34(instance); } - public FaketestqueryparamtersPutQueryParametersMap010101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010101Builder(instance); + public FaketestqueryparamtersPutQueryParameters36 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters36(instance); } - public FaketestqueryparamtersPutQueryParametersMap010110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010110Builder(instance); + public FaketestqueryparamtersPutQueryParameters37 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters37(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap011000Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil { + public static class FaketestqueryparamtersPutQueryParameters39 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap011000Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters39(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001000Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001000Builder(instance); + public FaketestqueryparamtersPutQueryParameters23 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters23(instance); } - public FaketestqueryparamtersPutQueryParametersMap010000Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010000Builder(instance); + public FaketestqueryparamtersPutQueryParameters31 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters31(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap011001Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters40 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap011001Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters40(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001001Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001001Builder(instance); + public FaketestqueryparamtersPutQueryParameters24 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters24(instance); } - public FaketestqueryparamtersPutQueryParametersMap010001Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010001Builder(instance); + public FaketestqueryparamtersPutQueryParameters32 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters32(instance); } - public FaketestqueryparamtersPutQueryParametersMap011000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011000Builder(instance); + public FaketestqueryparamtersPutQueryParameters39 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters39(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap011010Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters41 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap011010Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters41(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001010Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001010Builder(instance); + public FaketestqueryparamtersPutQueryParameters25 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters25(instance); } - public FaketestqueryparamtersPutQueryParametersMap010010Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010010Builder(instance); + public FaketestqueryparamtersPutQueryParameters33 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters33(instance); } - public FaketestqueryparamtersPutQueryParametersMap011000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011000Builder(instance); + public FaketestqueryparamtersPutQueryParameters39 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters39(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap011011Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters42 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap011011Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters42(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001011Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001011Builder(instance); + public FaketestqueryparamtersPutQueryParameters26 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters26(instance); } - public FaketestqueryparamtersPutQueryParametersMap010011Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010011Builder(instance); + public FaketestqueryparamtersPutQueryParameters34 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters34(instance); } - public FaketestqueryparamtersPutQueryParametersMap011001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011001Builder(instance); + public FaketestqueryparamtersPutQueryParameters40 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters40(instance); } - public FaketestqueryparamtersPutQueryParametersMap011010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011010Builder(instance); + public FaketestqueryparamtersPutQueryParameters41 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters41(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap011100Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe { + public static class FaketestqueryparamtersPutQueryParameters43 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap011100Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters43(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001100Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001100Builder(instance); + public FaketestqueryparamtersPutQueryParameters27 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters27(instance); } - public FaketestqueryparamtersPutQueryParametersMap010100Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010100Builder(instance); + public FaketestqueryparamtersPutQueryParameters35 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters35(instance); } - public FaketestqueryparamtersPutQueryParametersMap011000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011000Builder(instance); + public FaketestqueryparamtersPutQueryParameters39 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters39(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap011101Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters44 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap011101Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters44(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001101Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001101Builder(instance); + public FaketestqueryparamtersPutQueryParameters28 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters28(instance); } - public FaketestqueryparamtersPutQueryParametersMap010101Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010101Builder(instance); + public FaketestqueryparamtersPutQueryParameters36 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters36(instance); } - public FaketestqueryparamtersPutQueryParametersMap011001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011001Builder(instance); + public FaketestqueryparamtersPutQueryParameters40 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters40(instance); } - public FaketestqueryparamtersPutQueryParametersMap011100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011100Builder(instance); + public FaketestqueryparamtersPutQueryParameters43 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters43(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap011110Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters45 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap011110Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters45(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001110Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001110Builder(instance); + public FaketestqueryparamtersPutQueryParameters29 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters29(instance); } - public FaketestqueryparamtersPutQueryParametersMap010110Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010110Builder(instance); + public FaketestqueryparamtersPutQueryParameters37 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters37(instance); } - public FaketestqueryparamtersPutQueryParametersMap011010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011010Builder(instance); + public FaketestqueryparamtersPutQueryParameters41 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters41(instance); } - public FaketestqueryparamtersPutQueryParametersMap011100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011100Builder(instance); + public FaketestqueryparamtersPutQueryParameters43 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters43(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap011111Builder implements SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters46 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap011111Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters46(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001111Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001111Builder(instance); + public FaketestqueryparamtersPutQueryParameters30 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters30(instance); } - public FaketestqueryparamtersPutQueryParametersMap010111Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010111Builder(instance); + public FaketestqueryparamtersPutQueryParameters38 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters38(instance); } - public FaketestqueryparamtersPutQueryParametersMap011011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011011Builder(instance); + public FaketestqueryparamtersPutQueryParameters42 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters42(instance); } - public FaketestqueryparamtersPutQueryParametersMap011101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011101Builder(instance); + public FaketestqueryparamtersPutQueryParameters44 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters44(instance); } - public FaketestqueryparamtersPutQueryParametersMap011110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011110Builder(instance); + public FaketestqueryparamtersPutQueryParameters45 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters45(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap100000Builder implements SetterForFaketestqueryparamtersPutcontext { + public static class FaketestqueryparamtersPutQueryParameters47 implements SetterForFaketestqueryparamtersPutQueryParameters4 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap100000Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters47(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000000Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000000Builder(instance); + public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters15(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap100001Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters48 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap100001Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters48(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000001Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000001Builder(instance); + public FaketestqueryparamtersPutQueryParameters16 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters16(instance); } - public FaketestqueryparamtersPutQueryParametersMap100000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100000Builder(instance); + public FaketestqueryparamtersPutQueryParameters47 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters47(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap100010Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters49 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap100010Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters49(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000010Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000010Builder(instance); + public FaketestqueryparamtersPutQueryParameters17 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters17(instance); } - public FaketestqueryparamtersPutQueryParametersMap100000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100000Builder(instance); + public FaketestqueryparamtersPutQueryParameters47 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters47(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap100011Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters50 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap100011Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters50(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000011Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000011Builder(instance); + public FaketestqueryparamtersPutQueryParameters18 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters18(instance); } - public FaketestqueryparamtersPutQueryParametersMap100001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100001Builder(instance); + public FaketestqueryparamtersPutQueryParameters48 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters48(instance); } - public FaketestqueryparamtersPutQueryParametersMap100010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100010Builder(instance); + public FaketestqueryparamtersPutQueryParameters49 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters49(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap100100Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutpipe { + public static class FaketestqueryparamtersPutQueryParameters51 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters6 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap100100Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters51(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000100Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000100Builder(instance); + public FaketestqueryparamtersPutQueryParameters19 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters19(instance); } - public FaketestqueryparamtersPutQueryParametersMap100000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100000Builder(instance); + public FaketestqueryparamtersPutQueryParameters47 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters47(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap100101Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters52 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap100101Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters52(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000101Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000101Builder(instance); + public FaketestqueryparamtersPutQueryParameters20 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters20(instance); } - public FaketestqueryparamtersPutQueryParametersMap100001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100001Builder(instance); + public FaketestqueryparamtersPutQueryParameters48 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters48(instance); } - public FaketestqueryparamtersPutQueryParametersMap100100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100100Builder(instance); + public FaketestqueryparamtersPutQueryParameters51 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters51(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap100110Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters53 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap100110Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters53(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000110Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000110Builder(instance); + public FaketestqueryparamtersPutQueryParameters21 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters21(instance); } - public FaketestqueryparamtersPutQueryParametersMap100010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100010Builder(instance); + public FaketestqueryparamtersPutQueryParameters49 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters49(instance); } - public FaketestqueryparamtersPutQueryParametersMap100100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100100Builder(instance); + public FaketestqueryparamtersPutQueryParameters51 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters51(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap100111Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters54 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap100111Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters54(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap000111Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap000111Builder(instance); + public FaketestqueryparamtersPutQueryParameters22 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters22(instance); } - public FaketestqueryparamtersPutQueryParametersMap100011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100011Builder(instance); + public FaketestqueryparamtersPutQueryParameters50 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters50(instance); } - public FaketestqueryparamtersPutQueryParametersMap100101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100101Builder(instance); + public FaketestqueryparamtersPutQueryParameters52 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters52(instance); } - public FaketestqueryparamtersPutQueryParametersMap100110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100110Builder(instance); + public FaketestqueryparamtersPutQueryParameters53 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters53(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap101000Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil { + public static class FaketestqueryparamtersPutQueryParameters55 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap101000Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters55(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001000Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001000Builder(instance); + public FaketestqueryparamtersPutQueryParameters23 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters23(instance); } - public FaketestqueryparamtersPutQueryParametersMap100000Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100000Builder(instance); + public FaketestqueryparamtersPutQueryParameters47 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters47(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap101001Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters56 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap101001Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters56(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001001Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001001Builder(instance); + public FaketestqueryparamtersPutQueryParameters24 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters24(instance); } - public FaketestqueryparamtersPutQueryParametersMap100001Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100001Builder(instance); + public FaketestqueryparamtersPutQueryParameters48 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters48(instance); } - public FaketestqueryparamtersPutQueryParametersMap101000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101000Builder(instance); + public FaketestqueryparamtersPutQueryParameters55 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters55(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap101010Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters57 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap101010Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters57(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001010Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001010Builder(instance); + public FaketestqueryparamtersPutQueryParameters25 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters25(instance); } - public FaketestqueryparamtersPutQueryParametersMap100010Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100010Builder(instance); + public FaketestqueryparamtersPutQueryParameters49 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters49(instance); } - public FaketestqueryparamtersPutQueryParametersMap101000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101000Builder(instance); + public FaketestqueryparamtersPutQueryParameters55 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters55(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap101011Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters58 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap101011Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters58(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001011Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001011Builder(instance); + public FaketestqueryparamtersPutQueryParameters26 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters26(instance); } - public FaketestqueryparamtersPutQueryParametersMap100011Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100011Builder(instance); + public FaketestqueryparamtersPutQueryParameters50 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters50(instance); } - public FaketestqueryparamtersPutQueryParametersMap101001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101001Builder(instance); + public FaketestqueryparamtersPutQueryParameters56 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters56(instance); } - public FaketestqueryparamtersPutQueryParametersMap101010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101010Builder(instance); + public FaketestqueryparamtersPutQueryParameters57 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters57(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap101100Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe { + public static class FaketestqueryparamtersPutQueryParameters59 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap101100Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters59(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001100Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001100Builder(instance); + public FaketestqueryparamtersPutQueryParameters27 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters27(instance); } - public FaketestqueryparamtersPutQueryParametersMap100100Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100100Builder(instance); + public FaketestqueryparamtersPutQueryParameters51 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters51(instance); } - public FaketestqueryparamtersPutQueryParametersMap101000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101000Builder(instance); + public FaketestqueryparamtersPutQueryParameters55 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters55(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap101101Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters60 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap101101Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters60(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001101Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001101Builder(instance); + public FaketestqueryparamtersPutQueryParameters28 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters28(instance); } - public FaketestqueryparamtersPutQueryParametersMap100101Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100101Builder(instance); + public FaketestqueryparamtersPutQueryParameters52 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters52(instance); } - public FaketestqueryparamtersPutQueryParametersMap101001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101001Builder(instance); + public FaketestqueryparamtersPutQueryParameters56 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters56(instance); } - public FaketestqueryparamtersPutQueryParametersMap101100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101100Builder(instance); + public FaketestqueryparamtersPutQueryParameters59 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters59(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap101110Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters61 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap101110Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters61(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001110Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001110Builder(instance); + public FaketestqueryparamtersPutQueryParameters29 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters29(instance); } - public FaketestqueryparamtersPutQueryParametersMap100110Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100110Builder(instance); + public FaketestqueryparamtersPutQueryParameters53 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters53(instance); } - public FaketestqueryparamtersPutQueryParametersMap101010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101010Builder(instance); + public FaketestqueryparamtersPutQueryParameters57 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters57(instance); } - public FaketestqueryparamtersPutQueryParametersMap101100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101100Builder(instance); + public FaketestqueryparamtersPutQueryParameters59 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters59(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap101111Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters62 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap101111Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters62(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap001111Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap001111Builder(instance); + public FaketestqueryparamtersPutQueryParameters30 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters30(instance); } - public FaketestqueryparamtersPutQueryParametersMap100111Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100111Builder(instance); + public FaketestqueryparamtersPutQueryParameters54 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters54(instance); } - public FaketestqueryparamtersPutQueryParametersMap101011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101011Builder(instance); + public FaketestqueryparamtersPutQueryParameters58 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters58(instance); } - public FaketestqueryparamtersPutQueryParametersMap101101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101101Builder(instance); + public FaketestqueryparamtersPutQueryParameters60 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters60(instance); } - public FaketestqueryparamtersPutQueryParametersMap101110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101110Builder(instance); + public FaketestqueryparamtersPutQueryParameters61 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters61(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap110000Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp { + public static class FaketestqueryparamtersPutQueryParameters63 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap110000Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters63(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap010000Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010000Builder(instance); + public FaketestqueryparamtersPutQueryParameters31 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters31(instance); } - public FaketestqueryparamtersPutQueryParametersMap100000Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100000Builder(instance); + public FaketestqueryparamtersPutQueryParameters47 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters47(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap110001Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters64 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap110001Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters64(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap010001Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010001Builder(instance); + public FaketestqueryparamtersPutQueryParameters32 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters32(instance); } - public FaketestqueryparamtersPutQueryParametersMap100001Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100001Builder(instance); + public FaketestqueryparamtersPutQueryParameters48 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters48(instance); } - public FaketestqueryparamtersPutQueryParametersMap110000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110000Builder(instance); + public FaketestqueryparamtersPutQueryParameters63 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters63(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap110010Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters65 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap110010Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters65(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap010010Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010010Builder(instance); + public FaketestqueryparamtersPutQueryParameters33 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters33(instance); } - public FaketestqueryparamtersPutQueryParametersMap100010Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100010Builder(instance); + public FaketestqueryparamtersPutQueryParameters49 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters49(instance); } - public FaketestqueryparamtersPutQueryParametersMap110000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110000Builder(instance); + public FaketestqueryparamtersPutQueryParameters63 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters63(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap110011Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters66 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap110011Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters66(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap010011Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010011Builder(instance); + public FaketestqueryparamtersPutQueryParameters34 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters34(instance); } - public FaketestqueryparamtersPutQueryParametersMap100011Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100011Builder(instance); + public FaketestqueryparamtersPutQueryParameters50 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters50(instance); } - public FaketestqueryparamtersPutQueryParametersMap110001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110001Builder(instance); + public FaketestqueryparamtersPutQueryParameters64 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters64(instance); } - public FaketestqueryparamtersPutQueryParametersMap110010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110010Builder(instance); + public FaketestqueryparamtersPutQueryParameters65 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters65(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap110100Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe { + public static class FaketestqueryparamtersPutQueryParameters67 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap110100Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters67(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap010100Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010100Builder(instance); + public FaketestqueryparamtersPutQueryParameters35 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters35(instance); } - public FaketestqueryparamtersPutQueryParametersMap100100Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100100Builder(instance); + public FaketestqueryparamtersPutQueryParameters51 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters51(instance); } - public FaketestqueryparamtersPutQueryParametersMap110000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110000Builder(instance); + public FaketestqueryparamtersPutQueryParameters63 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters63(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap110101Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters68 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap110101Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters68(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap010101Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010101Builder(instance); + public FaketestqueryparamtersPutQueryParameters36 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters36(instance); } - public FaketestqueryparamtersPutQueryParametersMap100101Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100101Builder(instance); + public FaketestqueryparamtersPutQueryParameters52 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters52(instance); } - public FaketestqueryparamtersPutQueryParametersMap110001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110001Builder(instance); + public FaketestqueryparamtersPutQueryParameters64 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters64(instance); } - public FaketestqueryparamtersPutQueryParametersMap110100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110100Builder(instance); + public FaketestqueryparamtersPutQueryParameters67 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters67(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap110110Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters69 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap110110Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters69(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap010110Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010110Builder(instance); + public FaketestqueryparamtersPutQueryParameters37 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters37(instance); } - public FaketestqueryparamtersPutQueryParametersMap100110Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100110Builder(instance); + public FaketestqueryparamtersPutQueryParameters53 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters53(instance); } - public FaketestqueryparamtersPutQueryParametersMap110010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110010Builder(instance); + public FaketestqueryparamtersPutQueryParameters65 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters65(instance); } - public FaketestqueryparamtersPutQueryParametersMap110100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110100Builder(instance); + public FaketestqueryparamtersPutQueryParameters67 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters67(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap110111Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters70 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap110111Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters70(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap010111Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap010111Builder(instance); + public FaketestqueryparamtersPutQueryParameters38 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters38(instance); } - public FaketestqueryparamtersPutQueryParametersMap100111Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap100111Builder(instance); + public FaketestqueryparamtersPutQueryParameters54 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters54(instance); } - public FaketestqueryparamtersPutQueryParametersMap110011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110011Builder(instance); + public FaketestqueryparamtersPutQueryParameters66 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters66(instance); } - public FaketestqueryparamtersPutQueryParametersMap110101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110101Builder(instance); + public FaketestqueryparamtersPutQueryParameters68 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters68(instance); } - public FaketestqueryparamtersPutQueryParametersMap110110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110110Builder(instance); + public FaketestqueryparamtersPutQueryParameters69 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters69(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap111000Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil { + public static class FaketestqueryparamtersPutQueryParameters71 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap111000Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters71(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap011000Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011000Builder(instance); + public FaketestqueryparamtersPutQueryParameters39 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters39(instance); } - public FaketestqueryparamtersPutQueryParametersMap101000Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101000Builder(instance); + public FaketestqueryparamtersPutQueryParameters55 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters55(instance); } - public FaketestqueryparamtersPutQueryParametersMap110000Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110000Builder(instance); + public FaketestqueryparamtersPutQueryParameters63 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters63(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap111001Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters72 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap111001Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters72(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap011001Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011001Builder(instance); + public FaketestqueryparamtersPutQueryParameters40 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters40(instance); } - public FaketestqueryparamtersPutQueryParametersMap101001Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101001Builder(instance); + public FaketestqueryparamtersPutQueryParameters56 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters56(instance); } - public FaketestqueryparamtersPutQueryParametersMap110001Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110001Builder(instance); + public FaketestqueryparamtersPutQueryParameters64 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters64(instance); } - public FaketestqueryparamtersPutQueryParametersMap111000Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111000Builder(instance); + public FaketestqueryparamtersPutQueryParameters71 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters71(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap111010Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters73 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap111010Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters73(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap011010Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011010Builder(instance); + public FaketestqueryparamtersPutQueryParameters41 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters41(instance); } - public FaketestqueryparamtersPutQueryParametersMap101010Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101010Builder(instance); + public FaketestqueryparamtersPutQueryParameters57 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters57(instance); } - public FaketestqueryparamtersPutQueryParametersMap110010Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110010Builder(instance); + public FaketestqueryparamtersPutQueryParameters65 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters65(instance); } - public FaketestqueryparamtersPutQueryParametersMap111000Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111000Builder(instance); + public FaketestqueryparamtersPutQueryParameters71 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters71(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap111011Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters74 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap111011Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters74(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap011011Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011011Builder(instance); + public FaketestqueryparamtersPutQueryParameters42 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters42(instance); } - public FaketestqueryparamtersPutQueryParametersMap101011Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101011Builder(instance); + public FaketestqueryparamtersPutQueryParameters58 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters58(instance); } - public FaketestqueryparamtersPutQueryParametersMap110011Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110011Builder(instance); + public FaketestqueryparamtersPutQueryParameters66 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters66(instance); } - public FaketestqueryparamtersPutQueryParametersMap111001Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111001Builder(instance); + public FaketestqueryparamtersPutQueryParameters72 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters72(instance); } - public FaketestqueryparamtersPutQueryParametersMap111010Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111010Builder(instance); + public FaketestqueryparamtersPutQueryParameters73 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters73(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap111100Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe { + public static class FaketestqueryparamtersPutQueryParameters75 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap111100Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters75(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap011100Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011100Builder(instance); + public FaketestqueryparamtersPutQueryParameters43 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters43(instance); } - public FaketestqueryparamtersPutQueryParametersMap101100Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101100Builder(instance); + public FaketestqueryparamtersPutQueryParameters59 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters59(instance); } - public FaketestqueryparamtersPutQueryParametersMap110100Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110100Builder(instance); + public FaketestqueryparamtersPutQueryParameters67 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters67(instance); } - public FaketestqueryparamtersPutQueryParametersMap111000Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111000Builder(instance); + public FaketestqueryparamtersPutQueryParameters71 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters71(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap111101Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters76 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap111101Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters76(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap011101Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011101Builder(instance); + public FaketestqueryparamtersPutQueryParameters44 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters44(instance); } - public FaketestqueryparamtersPutQueryParametersMap101101Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101101Builder(instance); + public FaketestqueryparamtersPutQueryParameters60 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters60(instance); } - public FaketestqueryparamtersPutQueryParametersMap110101Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110101Builder(instance); + public FaketestqueryparamtersPutQueryParameters68 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters68(instance); } - public FaketestqueryparamtersPutQueryParametersMap111001Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111001Builder(instance); + public FaketestqueryparamtersPutQueryParameters72 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters72(instance); } - public FaketestqueryparamtersPutQueryParametersMap111100Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111100Builder(instance); + public FaketestqueryparamtersPutQueryParameters75 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters75(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMap111110Builder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam { + public static class FaketestqueryparamtersPutQueryParameters77 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMap111110Builder(Map instance) { + public FaketestqueryparamtersPutQueryParameters77(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap011110Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011110Builder(instance); + public FaketestqueryparamtersPutQueryParameters45 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters45(instance); } - public FaketestqueryparamtersPutQueryParametersMap101110Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101110Builder(instance); + public FaketestqueryparamtersPutQueryParameters61 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters61(instance); } - public FaketestqueryparamtersPutQueryParametersMap110110Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110110Builder(instance); + public FaketestqueryparamtersPutQueryParameters69 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters69(instance); } - public FaketestqueryparamtersPutQueryParametersMap111010Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111010Builder(instance); + public FaketestqueryparamtersPutQueryParameters73 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters73(instance); } - public FaketestqueryparamtersPutQueryParametersMap111100Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111100Builder(instance); + public FaketestqueryparamtersPutQueryParameters75 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters75(instance); } } - public static class FaketestqueryparamtersPutQueryParametersMapBuilder implements SetterForFaketestqueryparamtersPutcontext, SetterForFaketestqueryparamtersPuthttp, SetterForFaketestqueryparamtersPutioutil, SetterForFaketestqueryparamtersPutpipe, SetterForFaketestqueryparamtersPutrefParam, SetterForFaketestqueryparamtersPuturl { + public static class FaketestqueryparamtersPutQueryParameters13 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { private final Map instance; - public FaketestqueryparamtersPutQueryParametersMapBuilder() { + public FaketestqueryparamtersPutQueryParameters13() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap011111Builder getBuilderAfterFaketestqueryparamtersPutcontext(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap011111Builder(instance); + public FaketestqueryparamtersPutQueryParameters46 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { + return new FaketestqueryparamtersPutQueryParameters46(instance); } - public FaketestqueryparamtersPutQueryParametersMap101111Builder getBuilderAfterFaketestqueryparamtersPuthttp(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap101111Builder(instance); + public FaketestqueryparamtersPutQueryParameters62 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { + return new FaketestqueryparamtersPutQueryParameters62(instance); } - public FaketestqueryparamtersPutQueryParametersMap110111Builder getBuilderAfterFaketestqueryparamtersPutioutil(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap110111Builder(instance); + public FaketestqueryparamtersPutQueryParameters70 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { + return new FaketestqueryparamtersPutQueryParameters70(instance); } - public FaketestqueryparamtersPutQueryParametersMap111011Builder getBuilderAfterFaketestqueryparamtersPutpipe(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111011Builder(instance); + public FaketestqueryparamtersPutQueryParameters74 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { + return new FaketestqueryparamtersPutQueryParameters74(instance); } - public FaketestqueryparamtersPutQueryParametersMap111101Builder getBuilderAfterFaketestqueryparamtersPutrefParam(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111101Builder(instance); + public FaketestqueryparamtersPutQueryParameters76 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { + return new FaketestqueryparamtersPutQueryParameters76(instance); } - public FaketestqueryparamtersPutQueryParametersMap111110Builder getBuilderAfterFaketestqueryparamtersPuturl(Map instance) { - return new FaketestqueryparamtersPutQueryParametersMap111110Builder(instance); + public FaketestqueryparamtersPutQueryParameters77 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { + return new FaketestqueryparamtersPutQueryParameters77(instance); } } @@ -1410,7 +1410,7 @@ public sealed interface FaketestqueryparamtersPutQueryParameters1Boxed permits F @Nullable Object getData(); } - public record FaketestqueryparamtersPutQueryParameters1BoxedMap(FaketestqueryparamtersPutQueryParametersMap data) implements FaketestqueryparamtersPutQueryParameters1Boxed { + public record FaketestqueryparamtersPutQueryParameters1BoxedMap(FaketestqueryparamtersPutQueryParameters14 data) implements FaketestqueryparamtersPutQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -1418,7 +1418,7 @@ public record FaketestqueryparamtersPutQueryParameters1BoxedMap(Faketestquerypar } - public static class FaketestqueryparamtersPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FaketestqueryparamtersPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FaketestqueryparamtersPutQueryParameters1 instance = null; protected FaketestqueryparamtersPutQueryParameters1() { @@ -1440,7 +1440,7 @@ protected FaketestqueryparamtersPutQueryParameters1() { "refParam", "url" )) - .additionalProperties(FaketestqueryparamtersPutadditionalProperties.class) + .additionalProperties(FaketestqueryparamtersPutQueryParameters9.class) ); } @@ -1451,7 +1451,7 @@ public static FaketestqueryparamtersPutQueryParameters1 getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public FaketestqueryparamtersPutQueryParameters14 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -1471,10 +1471,10 @@ public FaketestqueryparamtersPutQueryParametersMap getNewInstance(Map arg, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FaketestqueryparamtersPutQueryParametersMap(castProperties); + return new FaketestqueryparamtersPutQueryParameters14(castProperties); } - public FaketestqueryparamtersPutQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public FaketestqueryparamtersPutQueryParameters14 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java index fffaa35e4c2..9fed73d9e4b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java @@ -93,13 +93,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters; + public PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters; public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( - PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters, + PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters, PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex, PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -112,7 +112,7 @@ public GetRequest( } public static class GetNullableRequest { - public PetfindbystatusGetQueryParameters.@Nullable PetfindbystatusGetQueryParametersMap queryParameters; + public PetfindbystatusGetQueryParameters.@Nullable PetfindbystatusGetQueryParameters9 queryParameters; public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; @@ -151,7 +151,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParametersMap queryParameters) { + default T queryParameters(PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java index 79899cbd2ce..5b03c21b89c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java @@ -30,27 +30,27 @@ public class PetfindbystatusGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class PetfindbystatusGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetfindbystatusGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetfindbystatusGetadditionalProperties instance = null; - public static PetfindbystatusGetadditionalProperties getInstance() { + private static @Nullable PetfindbystatusGetQueryParameters4 instance = null; + public static PetfindbystatusGetQueryParameters4 getInstance() { if (instance == null) { - instance = new PetfindbystatusGetadditionalProperties(); + instance = new PetfindbystatusGetQueryParameters4(); } return instance; } } - public static class PetfindbystatusGetQueryParametersMap extends FrozenMap { - protected PetfindbystatusGetQueryParametersMap(FrozenMap m) { + public static class PetfindbystatusGetQueryParameters9 extends FrozenMap { + protected PetfindbystatusGetQueryParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "status" ); public static final Set optionalKeys = Set.of(); - public static PetfindbystatusGetQueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + public static PetfindbystatusGetQueryParameters9 of(Map> arg, SchemaConfiguration configuration) throws ValidationException { return PetfindbystatusGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -63,18 +63,18 @@ public Schema0.SchemaList0 status() { } } - public interface SetterForPetfindbystatusGetstatus { + public interface SetterForPetfindbystatusGetQueryParameters2 { Map> getInstance(); - T getBuilderAfterPetfindbystatusGetstatus(Map> instance); + T getBuilderAfterPetfindbystatusGetQueryParameters2(Map> instance); default T status(List value) { var instance = getInstance(); instance.put("status", value); - return getBuilderAfterPetfindbystatusGetstatus(instance); + return getBuilderAfterPetfindbystatusGetQueryParameters2(instance); } } - public static class PetfindbystatusGetQueryParametersMap0Builder implements GenericBuilder>> { + public static class PetfindbystatusGetQueryParameters10 implements GenericBuilder>> { private final Map> instance; private static final Set knownKeys = Set.of( "status" @@ -82,7 +82,7 @@ public static class PetfindbystatusGetQueryParametersMap0Builder implements Gene public Set getKnownKeys() { return knownKeys; } - public PetfindbystatusGetQueryParametersMap0Builder(Map> instance) { + public PetfindbystatusGetQueryParameters10(Map> instance) { this.instance = instance; } public Map> build() { @@ -90,16 +90,16 @@ public Map> build() { } } - public static class PetfindbystatusGetQueryParametersMapBuilder implements SetterForPetfindbystatusGetstatus { + public static class PetfindbystatusGetQueryParameters8 implements SetterForPetfindbystatusGetQueryParameters2 { private final Map> instance; - public PetfindbystatusGetQueryParametersMapBuilder() { + public PetfindbystatusGetQueryParameters8() { this.instance = new LinkedHashMap<>(); } public Map> getInstance() { return instance; } - public PetfindbystatusGetQueryParametersMap0Builder getBuilderAfterPetfindbystatusGetstatus(Map> instance) { - return new PetfindbystatusGetQueryParametersMap0Builder(instance); + public PetfindbystatusGetQueryParameters10 getBuilderAfterPetfindbystatusGetQueryParameters2(Map> instance) { + return new PetfindbystatusGetQueryParameters10(instance); } } @@ -108,7 +108,7 @@ public sealed interface PetfindbystatusGetQueryParameters1Boxed permits Petfindb @Nullable Object getData(); } - public record PetfindbystatusGetQueryParameters1BoxedMap(PetfindbystatusGetQueryParametersMap data) implements PetfindbystatusGetQueryParameters1Boxed { + public record PetfindbystatusGetQueryParameters1BoxedMap(PetfindbystatusGetQueryParameters9 data) implements PetfindbystatusGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -116,7 +116,7 @@ public record PetfindbystatusGetQueryParameters1BoxedMap(PetfindbystatusGetQuery } - public static class PetfindbystatusGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetfindbystatusGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetfindbystatusGetQueryParameters1 instance = null; protected PetfindbystatusGetQueryParameters1() { @@ -128,7 +128,7 @@ protected PetfindbystatusGetQueryParameters1() { .required(Set.of( "status" )) - .additionalProperties(PetfindbystatusGetadditionalProperties.class) + .additionalProperties(PetfindbystatusGetQueryParameters4.class) ); } @@ -139,7 +139,7 @@ public static PetfindbystatusGetQueryParameters1 getInstance() { return instance; } - public PetfindbystatusGetQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetfindbystatusGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -162,10 +162,10 @@ public PetfindbystatusGetQueryParametersMap getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new PetfindbystatusGetQueryParametersMap(castProperties); + return new PetfindbystatusGetQueryParameters9(castProperties); } - public PetfindbystatusGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetfindbystatusGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java index 0f56e08e4ef..d30652275a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java @@ -93,13 +93,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters; + public PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( - PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters, + PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -112,7 +112,7 @@ public GetRequest( } public static class GetNullableRequest { - public PetfindbytagsGetQueryParameters.@Nullable PetfindbytagsGetQueryParametersMap queryParameters; + public PetfindbytagsGetQueryParameters.@Nullable PetfindbytagsGetQueryParameters9 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; @@ -151,7 +151,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParametersMap queryParameters) { + default T queryParameters(PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java index d5b4b8853ab..d4d38fb3afc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java @@ -30,27 +30,27 @@ public class PetfindbytagsGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class PetfindbytagsGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetfindbytagsGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetfindbytagsGetadditionalProperties instance = null; - public static PetfindbytagsGetadditionalProperties getInstance() { + private static @Nullable PetfindbytagsGetQueryParameters4 instance = null; + public static PetfindbytagsGetQueryParameters4 getInstance() { if (instance == null) { - instance = new PetfindbytagsGetadditionalProperties(); + instance = new PetfindbytagsGetQueryParameters4(); } return instance; } } - public static class PetfindbytagsGetQueryParametersMap extends FrozenMap { - protected PetfindbytagsGetQueryParametersMap(FrozenMap m) { + public static class PetfindbytagsGetQueryParameters9 extends FrozenMap { + protected PetfindbytagsGetQueryParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "tags" ); public static final Set optionalKeys = Set.of(); - public static PetfindbytagsGetQueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + public static PetfindbytagsGetQueryParameters9 of(Map> arg, SchemaConfiguration configuration) throws ValidationException { return PetfindbytagsGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -63,18 +63,18 @@ public Schema0.SchemaList0 tags() { } } - public interface SetterForPetfindbytagsGettags { + public interface SetterForPetfindbytagsGetQueryParameters2 { Map> getInstance(); - T getBuilderAfterPetfindbytagsGettags(Map> instance); + T getBuilderAfterPetfindbytagsGetQueryParameters2(Map> instance); default T tags(List value) { var instance = getInstance(); instance.put("tags", value); - return getBuilderAfterPetfindbytagsGettags(instance); + return getBuilderAfterPetfindbytagsGetQueryParameters2(instance); } } - public static class PetfindbytagsGetQueryParametersMap0Builder implements GenericBuilder>> { + public static class PetfindbytagsGetQueryParameters10 implements GenericBuilder>> { private final Map> instance; private static final Set knownKeys = Set.of( "tags" @@ -82,7 +82,7 @@ public static class PetfindbytagsGetQueryParametersMap0Builder implements Generi public Set getKnownKeys() { return knownKeys; } - public PetfindbytagsGetQueryParametersMap0Builder(Map> instance) { + public PetfindbytagsGetQueryParameters10(Map> instance) { this.instance = instance; } public Map> build() { @@ -90,16 +90,16 @@ public Map> build() { } } - public static class PetfindbytagsGetQueryParametersMapBuilder implements SetterForPetfindbytagsGettags { + public static class PetfindbytagsGetQueryParameters8 implements SetterForPetfindbytagsGetQueryParameters2 { private final Map> instance; - public PetfindbytagsGetQueryParametersMapBuilder() { + public PetfindbytagsGetQueryParameters8() { this.instance = new LinkedHashMap<>(); } public Map> getInstance() { return instance; } - public PetfindbytagsGetQueryParametersMap0Builder getBuilderAfterPetfindbytagsGettags(Map> instance) { - return new PetfindbytagsGetQueryParametersMap0Builder(instance); + public PetfindbytagsGetQueryParameters10 getBuilderAfterPetfindbytagsGetQueryParameters2(Map> instance) { + return new PetfindbytagsGetQueryParameters10(instance); } } @@ -108,7 +108,7 @@ public sealed interface PetfindbytagsGetQueryParameters1Boxed permits Petfindbyt @Nullable Object getData(); } - public record PetfindbytagsGetQueryParameters1BoxedMap(PetfindbytagsGetQueryParametersMap data) implements PetfindbytagsGetQueryParameters1Boxed { + public record PetfindbytagsGetQueryParameters1BoxedMap(PetfindbytagsGetQueryParameters9 data) implements PetfindbytagsGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -116,7 +116,7 @@ public record PetfindbytagsGetQueryParameters1BoxedMap(PetfindbytagsGetQueryPara } - public static class PetfindbytagsGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetfindbytagsGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetfindbytagsGetQueryParameters1 instance = null; protected PetfindbytagsGetQueryParameters1() { @@ -128,7 +128,7 @@ protected PetfindbytagsGetQueryParameters1() { .required(Set.of( "tags" )) - .additionalProperties(PetfindbytagsGetadditionalProperties.class) + .additionalProperties(PetfindbytagsGetQueryParameters4.class) ); } @@ -139,7 +139,7 @@ public static PetfindbytagsGetQueryParameters1 getInstance() { return instance; } - public PetfindbytagsGetQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetfindbytagsGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -162,10 +162,10 @@ public PetfindbytagsGetQueryParametersMap getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new PetfindbytagsGetQueryParametersMap(castProperties); + return new PetfindbytagsGetQueryParameters9(castProperties); } - public PetfindbytagsGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetfindbytagsGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java index fa78dc69d5c..cdc25195b53 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java @@ -98,15 +98,15 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters; - public PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap headerParameters; + public PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters; + public PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParameters9 headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public DeleteRequest( - PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters, - PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap headerParameters, + PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters, + PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParameters9 headerParameters, ServerInfo.@Nullable ServerIndex serverIndex, PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -120,8 +120,8 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public PetpetidDeletePathParameters.@Nullable PetpetidDeletePathParametersMap pathParameters; - public PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParametersMap headerParameters; + public PetpetidDeletePathParameters.@Nullable PetpetidDeletePathParameters9 pathParameters; + public PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParameters9 headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; @@ -130,7 +130,7 @@ public static class DeleteNullableRequest { public interface SetterForHeaderParameters { DeleteNullableRequest getInstance(); T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); - default T headerParameters(PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParametersMap headerParameters) { + default T headerParameters(PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters9 headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -170,7 +170,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(PetpetidDeletePathParameters.PetpetidDeletePathParametersMap pathParameters) { + default T pathParameters(PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java index a8fac3e3874..1b2c2a07638 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java @@ -92,13 +92,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters; + public PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( - PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters, + PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -111,7 +111,7 @@ public GetRequest( } public static class GetNullableRequest { - public PetpetidGetPathParameters.@Nullable PetpetidGetPathParametersMap pathParameters; + public PetpetidGetPathParameters.@Nullable PetpetidGetPathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; @@ -150,7 +150,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(PetpetidGetPathParameters.PetpetidGetPathParametersMap pathParameters) { + default T pathParameters(PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java index 8bb280dbd7d..ff24f2c5a39 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java @@ -104,14 +104,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters; + public PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters; public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( - PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters, + PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters, PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody, ServerInfo.@Nullable ServerIndex serverIndex, PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -126,7 +126,7 @@ public PostRequest( } public static class PostNullableRequest { - public PetpetidPostPathParameters.@Nullable PetpetidPostPathParametersMap pathParameters; + public PetpetidPostPathParameters.@Nullable PetpetidPostPathParameters9 pathParameters; public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -176,7 +176,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(PetpetidPostPathParameters.PetpetidPostPathParametersMap pathParameters) { + default T pathParameters(PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java index 6e645c90469..3493c5d4dc3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java @@ -29,27 +29,27 @@ public class PetpetidDeleteHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class PetpetidDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetpetidDeleteHeaderParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetpetidDeleteadditionalProperties instance = null; - public static PetpetidDeleteadditionalProperties getInstance() { + private static @Nullable PetpetidDeleteHeaderParameters4 instance = null; + public static PetpetidDeleteHeaderParameters4 getInstance() { if (instance == null) { - instance = new PetpetidDeleteadditionalProperties(); + instance = new PetpetidDeleteHeaderParameters4(); } return instance; } } - public static class PetpetidDeleteHeaderParametersMap extends FrozenMap { - protected PetpetidDeleteHeaderParametersMap(FrozenMap m) { + public static class PetpetidDeleteHeaderParameters9 extends FrozenMap { + protected PetpetidDeleteHeaderParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "api_key" ); - public static PetpetidDeleteHeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PetpetidDeleteHeaderParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetpetidDeleteHeaderParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public String api_key() throws UnsetPropertyException { } } - public interface SetterForPetpetidDeleteapiKey { + public interface SetterForPetpetidDeleteHeaderParameters2 { Map getInstance(); - T getBuilderAfterPetpetidDeleteapiKey(Map instance); + T getBuilderAfterPetpetidDeleteHeaderParameters2(Map instance); default T api_key(String value) { var instance = getInstance(); instance.put("api_key", value); - return getBuilderAfterPetpetidDeleteapiKey(instance); + return getBuilderAfterPetpetidDeleteHeaderParameters2(instance); } } - public static class PetpetidDeleteHeaderParametersMapBuilder implements GenericBuilder>, SetterForPetpetidDeleteapiKey { + public static class PetpetidDeleteHeaderParameters8 implements GenericBuilder>, SetterForPetpetidDeleteHeaderParameters2 { private final Map instance; private static final Set knownKeys = Set.of( "api_key" @@ -77,7 +77,7 @@ public static class PetpetidDeleteHeaderParametersMapBuilder implements GenericB public Set getKnownKeys() { return knownKeys; } - public PetpetidDeleteHeaderParametersMapBuilder() { + public PetpetidDeleteHeaderParameters8() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,7 +86,7 @@ public Map build() { public Map getInstance() { return instance; } - public PetpetidDeleteHeaderParametersMapBuilder getBuilderAfterPetpetidDeleteapiKey(Map instance) { + public PetpetidDeleteHeaderParameters8 getBuilderAfterPetpetidDeleteHeaderParameters2(Map instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface PetpetidDeleteHeaderParameters1Boxed permits PetpetidDel @Nullable Object getData(); } - public record PetpetidDeleteHeaderParameters1BoxedMap(PetpetidDeleteHeaderParametersMap data) implements PetpetidDeleteHeaderParameters1Boxed { + public record PetpetidDeleteHeaderParameters1BoxedMap(PetpetidDeleteHeaderParameters9 data) implements PetpetidDeleteHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record PetpetidDeleteHeaderParameters1BoxedMap(PetpetidDeleteHeaderParame } - public static class PetpetidDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetpetidDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetpetidDeleteHeaderParameters1 instance = null; protected PetpetidDeleteHeaderParameters1() { @@ -113,7 +113,7 @@ protected PetpetidDeleteHeaderParameters1() { .properties(Map.ofEntries( new PropertyEntry("api_key", Schema0.Schema01.class) )) - .additionalProperties(PetpetidDeleteadditionalProperties.class) + .additionalProperties(PetpetidDeleteHeaderParameters4.class) ); } @@ -124,7 +124,7 @@ public static PetpetidDeleteHeaderParameters1 getInstance() { return instance; } - public PetpetidDeleteHeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetpetidDeleteHeaderParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public PetpetidDeleteHeaderParametersMap getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new PetpetidDeleteHeaderParametersMap(castProperties); + return new PetpetidDeleteHeaderParameters9(castProperties); } - public PetpetidDeleteHeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidDeleteHeaderParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java index 85d6e6b6684..c545eda9041 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java @@ -29,27 +29,27 @@ public class PetpetidDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class PetpetidDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetpetidDeletePathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetpetidDeleteadditionalProperties instance = null; - public static PetpetidDeleteadditionalProperties getInstance() { + private static @Nullable PetpetidDeletePathParameters4 instance = null; + public static PetpetidDeletePathParameters4 getInstance() { if (instance == null) { - instance = new PetpetidDeleteadditionalProperties(); + instance = new PetpetidDeletePathParameters4(); } return instance; } } - public static class PetpetidDeletePathParametersMap extends FrozenMap { - protected PetpetidDeletePathParametersMap(FrozenMap m) { + public static class PetpetidDeletePathParameters9 extends FrozenMap { + protected PetpetidDeletePathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PetpetidDeletePathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PetpetidDeletePathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetpetidDeletePathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetpetidDeletepetId { + public interface SetterForPetpetidDeletePathParameters2 { Map getInstance(); - T getBuilderAfterPetpetidDeletepetId(Map instance); + T getBuilderAfterPetpetidDeletePathParameters2(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidDeletepetId(instance); + return getBuilderAfterPetpetidDeletePathParameters2(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidDeletepetId(instance); + return getBuilderAfterPetpetidDeletePathParameters2(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidDeletepetId(instance); + return getBuilderAfterPetpetidDeletePathParameters2(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidDeletepetId(instance); + return getBuilderAfterPetpetidDeletePathParameters2(instance); } } - public static class PetpetidDeletePathParametersMap0Builder implements GenericBuilder> { + public static class PetpetidDeletePathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PetpetidDeletePathParametersMap0Builder implements GenericBu public Set getKnownKeys() { return knownKeys; } - public PetpetidDeletePathParametersMap0Builder(Map instance) { + public PetpetidDeletePathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class PetpetidDeletePathParametersMapBuilder implements SetterForPetpetidDeletepetId { + public static class PetpetidDeletePathParameters8 implements SetterForPetpetidDeletePathParameters2 { private final Map instance; - public PetpetidDeletePathParametersMapBuilder() { + public PetpetidDeletePathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PetpetidDeletePathParametersMap0Builder getBuilderAfterPetpetidDeletepetId(Map instance) { - return new PetpetidDeletePathParametersMap0Builder(instance); + public PetpetidDeletePathParameters10 getBuilderAfterPetpetidDeletePathParameters2(Map instance) { + return new PetpetidDeletePathParameters10(instance); } } @@ -125,7 +125,7 @@ public sealed interface PetpetidDeletePathParameters1Boxed permits PetpetidDelet @Nullable Object getData(); } - public record PetpetidDeletePathParameters1BoxedMap(PetpetidDeletePathParametersMap data) implements PetpetidDeletePathParameters1Boxed { + public record PetpetidDeletePathParameters1BoxedMap(PetpetidDeletePathParameters9 data) implements PetpetidDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record PetpetidDeletePathParameters1BoxedMap(PetpetidDeletePathParameters } - public static class PetpetidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetpetidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetpetidDeletePathParameters1 instance = null; protected PetpetidDeletePathParameters1() { @@ -145,7 +145,7 @@ protected PetpetidDeletePathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(PetpetidDeleteadditionalProperties.class) + .additionalProperties(PetpetidDeletePathParameters4.class) ); } @@ -156,7 +156,7 @@ public static PetpetidDeletePathParameters1 getInstance() { return instance; } - public PetpetidDeletePathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetpetidDeletePathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public PetpetidDeletePathParametersMap getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new PetpetidDeletePathParametersMap(castProperties); + return new PetpetidDeletePathParameters9(castProperties); } - public PetpetidDeletePathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidDeletePathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java index 8188f04af39..f5bf11769f6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java @@ -29,27 +29,27 @@ public class PetpetidGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class PetpetidGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetpetidGetPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetpetidGetadditionalProperties instance = null; - public static PetpetidGetadditionalProperties getInstance() { + private static @Nullable PetpetidGetPathParameters4 instance = null; + public static PetpetidGetPathParameters4 getInstance() { if (instance == null) { - instance = new PetpetidGetadditionalProperties(); + instance = new PetpetidGetPathParameters4(); } return instance; } } - public static class PetpetidGetPathParametersMap extends FrozenMap { - protected PetpetidGetPathParametersMap(FrozenMap m) { + public static class PetpetidGetPathParameters9 extends FrozenMap { + protected PetpetidGetPathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PetpetidGetPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PetpetidGetPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetpetidGetPathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetpetidGetpetId { + public interface SetterForPetpetidGetPathParameters2 { Map getInstance(); - T getBuilderAfterPetpetidGetpetId(Map instance); + T getBuilderAfterPetpetidGetPathParameters2(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidGetpetId(instance); + return getBuilderAfterPetpetidGetPathParameters2(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidGetpetId(instance); + return getBuilderAfterPetpetidGetPathParameters2(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidGetpetId(instance); + return getBuilderAfterPetpetidGetPathParameters2(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidGetpetId(instance); + return getBuilderAfterPetpetidGetPathParameters2(instance); } } - public static class PetpetidGetPathParametersMap0Builder implements GenericBuilder> { + public static class PetpetidGetPathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PetpetidGetPathParametersMap0Builder implements GenericBuild public Set getKnownKeys() { return knownKeys; } - public PetpetidGetPathParametersMap0Builder(Map instance) { + public PetpetidGetPathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class PetpetidGetPathParametersMapBuilder implements SetterForPetpetidGetpetId { + public static class PetpetidGetPathParameters8 implements SetterForPetpetidGetPathParameters2 { private final Map instance; - public PetpetidGetPathParametersMapBuilder() { + public PetpetidGetPathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PetpetidGetPathParametersMap0Builder getBuilderAfterPetpetidGetpetId(Map instance) { - return new PetpetidGetPathParametersMap0Builder(instance); + public PetpetidGetPathParameters10 getBuilderAfterPetpetidGetPathParameters2(Map instance) { + return new PetpetidGetPathParameters10(instance); } } @@ -125,7 +125,7 @@ public sealed interface PetpetidGetPathParameters1Boxed permits PetpetidGetPathP @Nullable Object getData(); } - public record PetpetidGetPathParameters1BoxedMap(PetpetidGetPathParametersMap data) implements PetpetidGetPathParameters1Boxed { + public record PetpetidGetPathParameters1BoxedMap(PetpetidGetPathParameters9 data) implements PetpetidGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record PetpetidGetPathParameters1BoxedMap(PetpetidGetPathParametersMap da } - public static class PetpetidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetpetidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetpetidGetPathParameters1 instance = null; protected PetpetidGetPathParameters1() { @@ -145,7 +145,7 @@ protected PetpetidGetPathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(PetpetidGetadditionalProperties.class) + .additionalProperties(PetpetidGetPathParameters4.class) ); } @@ -156,7 +156,7 @@ public static PetpetidGetPathParameters1 getInstance() { return instance; } - public PetpetidGetPathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetpetidGetPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public PetpetidGetPathParametersMap getNewInstance(Map arg, List p properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PetpetidGetPathParametersMap(castProperties); + return new PetpetidGetPathParameters9(castProperties); } - public PetpetidGetPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidGetPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java index 0548b7f1811..e596b6aa305 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java @@ -29,27 +29,27 @@ public class PetpetidPostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class PetpetidPostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetpetidPostPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetpetidPostadditionalProperties instance = null; - public static PetpetidPostadditionalProperties getInstance() { + private static @Nullable PetpetidPostPathParameters4 instance = null; + public static PetpetidPostPathParameters4 getInstance() { if (instance == null) { - instance = new PetpetidPostadditionalProperties(); + instance = new PetpetidPostPathParameters4(); } return instance; } } - public static class PetpetidPostPathParametersMap extends FrozenMap { - protected PetpetidPostPathParametersMap(FrozenMap m) { + public static class PetpetidPostPathParameters9 extends FrozenMap { + protected PetpetidPostPathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PetpetidPostPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PetpetidPostPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetpetidPostPathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetpetidPostpetId { + public interface SetterForPetpetidPostPathParameters2 { Map getInstance(); - T getBuilderAfterPetpetidPostpetId(Map instance); + T getBuilderAfterPetpetidPostPathParameters2(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidPostpetId(instance); + return getBuilderAfterPetpetidPostPathParameters2(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidPostpetId(instance); + return getBuilderAfterPetpetidPostPathParameters2(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidPostpetId(instance); + return getBuilderAfterPetpetidPostPathParameters2(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidPostpetId(instance); + return getBuilderAfterPetpetidPostPathParameters2(instance); } } - public static class PetpetidPostPathParametersMap0Builder implements GenericBuilder> { + public static class PetpetidPostPathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PetpetidPostPathParametersMap0Builder implements GenericBuil public Set getKnownKeys() { return knownKeys; } - public PetpetidPostPathParametersMap0Builder(Map instance) { + public PetpetidPostPathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class PetpetidPostPathParametersMapBuilder implements SetterForPetpetidPostpetId { + public static class PetpetidPostPathParameters8 implements SetterForPetpetidPostPathParameters2 { private final Map instance; - public PetpetidPostPathParametersMapBuilder() { + public PetpetidPostPathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PetpetidPostPathParametersMap0Builder getBuilderAfterPetpetidPostpetId(Map instance) { - return new PetpetidPostPathParametersMap0Builder(instance); + public PetpetidPostPathParameters10 getBuilderAfterPetpetidPostPathParameters2(Map instance) { + return new PetpetidPostPathParameters10(instance); } } @@ -125,7 +125,7 @@ public sealed interface PetpetidPostPathParameters1Boxed permits PetpetidPostPat @Nullable Object getData(); } - public record PetpetidPostPathParameters1BoxedMap(PetpetidPostPathParametersMap data) implements PetpetidPostPathParameters1Boxed { + public record PetpetidPostPathParameters1BoxedMap(PetpetidPostPathParameters9 data) implements PetpetidPostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record PetpetidPostPathParameters1BoxedMap(PetpetidPostPathParametersMap } - public static class PetpetidPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetpetidPostPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetpetidPostPathParameters1 instance = null; protected PetpetidPostPathParameters1() { @@ -145,7 +145,7 @@ protected PetpetidPostPathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(PetpetidPostadditionalProperties.class) + .additionalProperties(PetpetidPostPathParameters4.class) ); } @@ -156,7 +156,7 @@ public static PetpetidPostPathParameters1 getInstance() { return instance; } - public PetpetidPostPathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetpetidPostPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public PetpetidPostPathParametersMap getNewInstance(Map arg, List properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PetpetidPostPathParametersMap(castProperties); + return new PetpetidPostPathParameters9(castProperties); } - public PetpetidPostPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetidPostPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java index d2f8109124c..40aeeba0403 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java @@ -105,14 +105,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters; + public PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters; public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( - PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters, + PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters, PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody, ServerInfo.@Nullable ServerIndex serverIndex, PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -127,7 +127,7 @@ public PostRequest( } public static class PostNullableRequest { - public PetpetiduploadimagePostPathParameters.@Nullable PetpetiduploadimagePostPathParametersMap pathParameters; + public PetpetiduploadimagePostPathParameters.@Nullable PetpetiduploadimagePostPathParameters9 pathParameters; public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -177,7 +177,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParametersMap pathParameters) { + default T pathParameters(PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java index dcc8d641199..e7a3ecf1197 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java @@ -29,27 +29,27 @@ public class PetpetiduploadimagePostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class PetpetiduploadimagePostadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class PetpetiduploadimagePostPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetpetiduploadimagePostadditionalProperties instance = null; - public static PetpetiduploadimagePostadditionalProperties getInstance() { + private static @Nullable PetpetiduploadimagePostPathParameters4 instance = null; + public static PetpetiduploadimagePostPathParameters4 getInstance() { if (instance == null) { - instance = new PetpetiduploadimagePostadditionalProperties(); + instance = new PetpetiduploadimagePostPathParameters4(); } return instance; } } - public static class PetpetiduploadimagePostPathParametersMap extends FrozenMap { - protected PetpetiduploadimagePostPathParametersMap(FrozenMap m) { + public static class PetpetiduploadimagePostPathParameters9 extends FrozenMap { + protected PetpetiduploadimagePostPathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PetpetiduploadimagePostPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PetpetiduploadimagePostPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetpetiduploadimagePostPathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetpetiduploadimagePostpetId { + public interface SetterForPetpetiduploadimagePostPathParameters2 { Map getInstance(); - T getBuilderAfterPetpetiduploadimagePostpetId(Map instance); + T getBuilderAfterPetpetiduploadimagePostPathParameters2(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetiduploadimagePostpetId(instance); + return getBuilderAfterPetpetiduploadimagePostPathParameters2(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetiduploadimagePostpetId(instance); + return getBuilderAfterPetpetiduploadimagePostPathParameters2(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetiduploadimagePostpetId(instance); + return getBuilderAfterPetpetiduploadimagePostPathParameters2(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetiduploadimagePostpetId(instance); + return getBuilderAfterPetpetiduploadimagePostPathParameters2(instance); } } - public static class PetpetiduploadimagePostPathParametersMap0Builder implements GenericBuilder> { + public static class PetpetiduploadimagePostPathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PetpetiduploadimagePostPathParametersMap0Builder implements public Set getKnownKeys() { return knownKeys; } - public PetpetiduploadimagePostPathParametersMap0Builder(Map instance) { + public PetpetiduploadimagePostPathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class PetpetiduploadimagePostPathParametersMapBuilder implements SetterForPetpetiduploadimagePostpetId { + public static class PetpetiduploadimagePostPathParameters8 implements SetterForPetpetiduploadimagePostPathParameters2 { private final Map instance; - public PetpetiduploadimagePostPathParametersMapBuilder() { + public PetpetiduploadimagePostPathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PetpetiduploadimagePostPathParametersMap0Builder getBuilderAfterPetpetiduploadimagePostpetId(Map instance) { - return new PetpetiduploadimagePostPathParametersMap0Builder(instance); + public PetpetiduploadimagePostPathParameters10 getBuilderAfterPetpetiduploadimagePostPathParameters2(Map instance) { + return new PetpetiduploadimagePostPathParameters10(instance); } } @@ -125,7 +125,7 @@ public sealed interface PetpetiduploadimagePostPathParameters1Boxed permits Petp @Nullable Object getData(); } - public record PetpetiduploadimagePostPathParameters1BoxedMap(PetpetiduploadimagePostPathParametersMap data) implements PetpetiduploadimagePostPathParameters1Boxed { + public record PetpetiduploadimagePostPathParameters1BoxedMap(PetpetiduploadimagePostPathParameters9 data) implements PetpetiduploadimagePostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record PetpetiduploadimagePostPathParameters1BoxedMap(Petpetiduploadimage } - public static class PetpetiduploadimagePostPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetpetiduploadimagePostPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetpetiduploadimagePostPathParameters1 instance = null; protected PetpetiduploadimagePostPathParameters1() { @@ -145,7 +145,7 @@ protected PetpetiduploadimagePostPathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(PetpetiduploadimagePostadditionalProperties.class) + .additionalProperties(PetpetiduploadimagePostPathParameters4.class) ); } @@ -156,7 +156,7 @@ public static PetpetiduploadimagePostPathParameters1 getInstance() { return instance; } - public PetpetiduploadimagePostPathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PetpetiduploadimagePostPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public PetpetiduploadimagePostPathParametersMap getNewInstance(Map arg, Li properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PetpetiduploadimagePostPathParametersMap(castProperties); + return new PetpetiduploadimagePostPathParameters9(castProperties); } - public PetpetiduploadimagePostPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PetpetiduploadimagePostPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java index 960ffd2287e..20f78b6d819 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java @@ -78,12 +78,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters; + public StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters, + StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -94,7 +94,7 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public StoreorderorderidDeletePathParameters.@Nullable StoreorderorderidDeletePathParametersMap pathParameters; + public StoreorderorderidDeletePathParameters.@Nullable StoreorderorderidDeletePathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParametersMap pathParameters) { + default T pathParameters(StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java index 02f5280193b..15ead925cdb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java @@ -79,12 +79,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters; + public StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters, + StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public GetRequest( } public static class GetNullableRequest { - public StoreorderorderidGetPathParameters.@Nullable StoreorderorderidGetPathParametersMap pathParameters; + public StoreorderorderidGetPathParameters.@Nullable StoreorderorderidGetPathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(StoreorderorderidGetPathParameters.StoreorderorderidGetPathParametersMap pathParameters) { + default T pathParameters(StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java index 91cc3045110..efdcfbb207a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java @@ -29,27 +29,27 @@ public class StoreorderorderidDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class StoreorderorderidDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class StoreorderorderidDeletePathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable StoreorderorderidDeleteadditionalProperties instance = null; - public static StoreorderorderidDeleteadditionalProperties getInstance() { + private static @Nullable StoreorderorderidDeletePathParameters4 instance = null; + public static StoreorderorderidDeletePathParameters4 getInstance() { if (instance == null) { - instance = new StoreorderorderidDeleteadditionalProperties(); + instance = new StoreorderorderidDeletePathParameters4(); } return instance; } } - public static class StoreorderorderidDeletePathParametersMap extends FrozenMap { - protected StoreorderorderidDeletePathParametersMap(FrozenMap m) { + public static class StoreorderorderidDeletePathParameters9 extends FrozenMap { + protected StoreorderorderidDeletePathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "order_id" ); public static final Set optionalKeys = Set.of(); - public static StoreorderorderidDeletePathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static StoreorderorderidDeletePathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return StoreorderorderidDeletePathParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String order_id() { } } - public interface SetterForStoreorderorderidDeleteorderId { + public interface SetterForStoreorderorderidDeletePathParameters2 { Map getInstance(); - T getBuilderAfterStoreorderorderidDeleteorderId(Map instance); + T getBuilderAfterStoreorderorderidDeletePathParameters2(Map instance); default T order_id(String value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterStoreorderorderidDeleteorderId(instance); + return getBuilderAfterStoreorderorderidDeletePathParameters2(instance); } } - public static class StoreorderorderidDeletePathParametersMap0Builder implements GenericBuilder> { + public static class StoreorderorderidDeletePathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "order_id" @@ -81,7 +81,7 @@ public static class StoreorderorderidDeletePathParametersMap0Builder implements public Set getKnownKeys() { return knownKeys; } - public StoreorderorderidDeletePathParametersMap0Builder(Map instance) { + public StoreorderorderidDeletePathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class StoreorderorderidDeletePathParametersMapBuilder implements SetterForStoreorderorderidDeleteorderId { + public static class StoreorderorderidDeletePathParameters8 implements SetterForStoreorderorderidDeletePathParameters2 { private final Map instance; - public StoreorderorderidDeletePathParametersMapBuilder() { + public StoreorderorderidDeletePathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public StoreorderorderidDeletePathParametersMap0Builder getBuilderAfterStoreorderorderidDeleteorderId(Map instance) { - return new StoreorderorderidDeletePathParametersMap0Builder(instance); + public StoreorderorderidDeletePathParameters10 getBuilderAfterStoreorderorderidDeletePathParameters2(Map instance) { + return new StoreorderorderidDeletePathParameters10(instance); } } @@ -107,7 +107,7 @@ public sealed interface StoreorderorderidDeletePathParameters1Boxed permits Stor @Nullable Object getData(); } - public record StoreorderorderidDeletePathParameters1BoxedMap(StoreorderorderidDeletePathParametersMap data) implements StoreorderorderidDeletePathParameters1Boxed { + public record StoreorderorderidDeletePathParameters1BoxedMap(StoreorderorderidDeletePathParameters9 data) implements StoreorderorderidDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record StoreorderorderidDeletePathParameters1BoxedMap(StoreorderorderidDe } - public static class StoreorderorderidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class StoreorderorderidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable StoreorderorderidDeletePathParameters1 instance = null; protected StoreorderorderidDeletePathParameters1() { @@ -127,7 +127,7 @@ protected StoreorderorderidDeletePathParameters1() { .required(Set.of( "order_id" )) - .additionalProperties(StoreorderorderidDeleteadditionalProperties.class) + .additionalProperties(StoreorderorderidDeletePathParameters4.class) ); } @@ -138,7 +138,7 @@ public static StoreorderorderidDeletePathParameters1 getInstance() { return instance; } - public StoreorderorderidDeletePathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public StoreorderorderidDeletePathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public StoreorderorderidDeletePathParametersMap getNewInstance(Map arg, Li properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new StoreorderorderidDeletePathParametersMap(castProperties); + return new StoreorderorderidDeletePathParameters9(castProperties); } - public StoreorderorderidDeletePathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public StoreorderorderidDeletePathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java index 5cd36c42b58..ba65dec5a43 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java @@ -29,27 +29,27 @@ public class StoreorderorderidGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class StoreorderorderidGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class StoreorderorderidGetPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable StoreorderorderidGetadditionalProperties instance = null; - public static StoreorderorderidGetadditionalProperties getInstance() { + private static @Nullable StoreorderorderidGetPathParameters4 instance = null; + public static StoreorderorderidGetPathParameters4 getInstance() { if (instance == null) { - instance = new StoreorderorderidGetadditionalProperties(); + instance = new StoreorderorderidGetPathParameters4(); } return instance; } } - public static class StoreorderorderidGetPathParametersMap extends FrozenMap { - protected StoreorderorderidGetPathParametersMap(FrozenMap m) { + public static class StoreorderorderidGetPathParameters9 extends FrozenMap { + protected StoreorderorderidGetPathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "order_id" ); public static final Set optionalKeys = Set.of(); - public static StoreorderorderidGetPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static StoreorderorderidGetPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return StoreorderorderidGetPathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number order_id() { } } - public interface SetterForStoreorderorderidGetorderId { + public interface SetterForStoreorderorderidGetPathParameters2 { Map getInstance(); - T getBuilderAfterStoreorderorderidGetorderId(Map instance); + T getBuilderAfterStoreorderorderidGetPathParameters2(Map instance); default T order_id(int value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterStoreorderorderidGetorderId(instance); + return getBuilderAfterStoreorderorderidGetPathParameters2(instance); } default T order_id(float value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterStoreorderorderidGetorderId(instance); + return getBuilderAfterStoreorderorderidGetPathParameters2(instance); } default T order_id(long value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterStoreorderorderidGetorderId(instance); + return getBuilderAfterStoreorderorderidGetPathParameters2(instance); } default T order_id(double value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterStoreorderorderidGetorderId(instance); + return getBuilderAfterStoreorderorderidGetPathParameters2(instance); } } - public static class StoreorderorderidGetPathParametersMap0Builder implements GenericBuilder> { + public static class StoreorderorderidGetPathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "order_id" @@ -99,7 +99,7 @@ public static class StoreorderorderidGetPathParametersMap0Builder implements Gen public Set getKnownKeys() { return knownKeys; } - public StoreorderorderidGetPathParametersMap0Builder(Map instance) { + public StoreorderorderidGetPathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class StoreorderorderidGetPathParametersMapBuilder implements SetterForStoreorderorderidGetorderId { + public static class StoreorderorderidGetPathParameters8 implements SetterForStoreorderorderidGetPathParameters2 { private final Map instance; - public StoreorderorderidGetPathParametersMapBuilder() { + public StoreorderorderidGetPathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public StoreorderorderidGetPathParametersMap0Builder getBuilderAfterStoreorderorderidGetorderId(Map instance) { - return new StoreorderorderidGetPathParametersMap0Builder(instance); + public StoreorderorderidGetPathParameters10 getBuilderAfterStoreorderorderidGetPathParameters2(Map instance) { + return new StoreorderorderidGetPathParameters10(instance); } } @@ -125,7 +125,7 @@ public sealed interface StoreorderorderidGetPathParameters1Boxed permits Storeor @Nullable Object getData(); } - public record StoreorderorderidGetPathParameters1BoxedMap(StoreorderorderidGetPathParametersMap data) implements StoreorderorderidGetPathParameters1Boxed { + public record StoreorderorderidGetPathParameters1BoxedMap(StoreorderorderidGetPathParameters9 data) implements StoreorderorderidGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record StoreorderorderidGetPathParameters1BoxedMap(StoreorderorderidGetPa } - public static class StoreorderorderidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class StoreorderorderidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable StoreorderorderidGetPathParameters1 instance = null; protected StoreorderorderidGetPathParameters1() { @@ -145,7 +145,7 @@ protected StoreorderorderidGetPathParameters1() { .required(Set.of( "order_id" )) - .additionalProperties(StoreorderorderidGetadditionalProperties.class) + .additionalProperties(StoreorderorderidGetPathParameters4.class) ); } @@ -156,7 +156,7 @@ public static StoreorderorderidGetPathParameters1 getInstance() { return instance; } - public StoreorderorderidGetPathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public StoreorderorderidGetPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public StoreorderorderidGetPathParametersMap getNewInstance(Map arg, List< properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new StoreorderorderidGetPathParametersMap(castProperties); + return new StoreorderorderidGetPathParameters9(castProperties); } - public StoreorderorderidGetPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public StoreorderorderidGetPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java index 33ff6746e1f..13f986fe25c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java @@ -80,12 +80,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters; + public UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters, + UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public GetRequest( } public static class GetNullableRequest { - public UserloginGetQueryParameters.@Nullable UserloginGetQueryParametersMap queryParameters; + public UserloginGetQueryParameters.@Nullable UserloginGetQueryParameters10 queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(UserloginGetQueryParameters.UserloginGetQueryParametersMap queryParameters) { + default T queryParameters(UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java index 700107d32e1..2caa30069d7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java @@ -30,20 +30,20 @@ public class UserloginGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class UserloginGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class UserloginGetQueryParameters5 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable UserloginGetadditionalProperties instance = null; - public static UserloginGetadditionalProperties getInstance() { + private static @Nullable UserloginGetQueryParameters5 instance = null; + public static UserloginGetQueryParameters5 getInstance() { if (instance == null) { - instance = new UserloginGetadditionalProperties(); + instance = new UserloginGetQueryParameters5(); } return instance; } } - public static class UserloginGetQueryParametersMap extends FrozenMap<@Nullable Object> { - protected UserloginGetQueryParametersMap(FrozenMap<@Nullable Object> m) { + public static class UserloginGetQueryParameters10 extends FrozenMap<@Nullable Object> { + protected UserloginGetQueryParameters10(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -51,7 +51,7 @@ protected UserloginGetQueryParametersMap(FrozenMap<@Nullable Object> m) { "username" ); public static final Set optionalKeys = Set.of(); - public static UserloginGetQueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static UserloginGetQueryParameters10 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return UserloginGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -72,29 +72,29 @@ public String username() { } } - public interface SetterForUserloginGetpassword { + public interface SetterForUserloginGetQueryParameters2 { Map getInstance(); - T getBuilderAfterUserloginGetpassword(Map instance); + T getBuilderAfterUserloginGetQueryParameters2(Map instance); default T password(String value) { var instance = getInstance(); instance.put("password", value); - return getBuilderAfterUserloginGetpassword(instance); + return getBuilderAfterUserloginGetQueryParameters2(instance); } } - public interface SetterForUserloginGetusername { + public interface SetterForUserloginGetQueryParameters3 { Map getInstance(); - T getBuilderAfterUserloginGetusername(Map instance); + T getBuilderAfterUserloginGetQueryParameters3(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUserloginGetusername(instance); + return getBuilderAfterUserloginGetQueryParameters3(instance); } } - public static class UserloginGetQueryParametersMap00Builder implements GenericBuilder> { + public static class UserloginGetQueryParameters11 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "password", @@ -103,7 +103,7 @@ public static class UserloginGetQueryParametersMap00Builder implements GenericBu public Set getKnownKeys() { return knownKeys; } - public UserloginGetQueryParametersMap00Builder(Map instance) { + public UserloginGetQueryParameters11(Map instance) { this.instance = instance; } public Map build() { @@ -111,45 +111,45 @@ public UserloginGetQueryParametersMap00Builder(Map ins } } - public static class UserloginGetQueryParametersMap01Builder implements SetterForUserloginGetusername { + public static class UserloginGetQueryParameters12 implements SetterForUserloginGetQueryParameters3 { private final Map instance; - public UserloginGetQueryParametersMap01Builder(Map instance) { + public UserloginGetQueryParameters12(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public UserloginGetQueryParametersMap00Builder getBuilderAfterUserloginGetusername(Map instance) { - return new UserloginGetQueryParametersMap00Builder(instance); + public UserloginGetQueryParameters11 getBuilderAfterUserloginGetQueryParameters3(Map instance) { + return new UserloginGetQueryParameters11(instance); } } - public static class UserloginGetQueryParametersMap10Builder implements SetterForUserloginGetpassword { + public static class UserloginGetQueryParameters13 implements SetterForUserloginGetQueryParameters2 { private final Map instance; - public UserloginGetQueryParametersMap10Builder(Map instance) { + public UserloginGetQueryParameters13(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public UserloginGetQueryParametersMap00Builder getBuilderAfterUserloginGetpassword(Map instance) { - return new UserloginGetQueryParametersMap00Builder(instance); + public UserloginGetQueryParameters11 getBuilderAfterUserloginGetQueryParameters2(Map instance) { + return new UserloginGetQueryParameters11(instance); } } - public static class UserloginGetQueryParametersMapBuilder implements SetterForUserloginGetpassword, SetterForUserloginGetusername { + public static class UserloginGetQueryParameters9 implements SetterForUserloginGetQueryParameters2, SetterForUserloginGetQueryParameters3 { private final Map instance; - public UserloginGetQueryParametersMapBuilder() { + public UserloginGetQueryParameters9() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public UserloginGetQueryParametersMap01Builder getBuilderAfterUserloginGetpassword(Map instance) { - return new UserloginGetQueryParametersMap01Builder(instance); + public UserloginGetQueryParameters12 getBuilderAfterUserloginGetQueryParameters2(Map instance) { + return new UserloginGetQueryParameters12(instance); } - public UserloginGetQueryParametersMap10Builder getBuilderAfterUserloginGetusername(Map instance) { - return new UserloginGetQueryParametersMap10Builder(instance); + public UserloginGetQueryParameters13 getBuilderAfterUserloginGetQueryParameters3(Map instance) { + return new UserloginGetQueryParameters13(instance); } } @@ -158,7 +158,7 @@ public sealed interface UserloginGetQueryParameters1Boxed permits UserloginGetQu @Nullable Object getData(); } - public record UserloginGetQueryParameters1BoxedMap(UserloginGetQueryParametersMap data) implements UserloginGetQueryParameters1Boxed { + public record UserloginGetQueryParameters1BoxedMap(UserloginGetQueryParameters10 data) implements UserloginGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -166,7 +166,7 @@ public record UserloginGetQueryParameters1BoxedMap(UserloginGetQueryParametersMa } - public static class UserloginGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class UserloginGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable UserloginGetQueryParameters1 instance = null; protected UserloginGetQueryParameters1() { @@ -180,7 +180,7 @@ protected UserloginGetQueryParameters1() { "password", "username" )) - .additionalProperties(UserloginGetadditionalProperties.class) + .additionalProperties(UserloginGetQueryParameters5.class) ); } @@ -191,7 +191,7 @@ public static UserloginGetQueryParameters1 getInstance() { return instance; } - public UserloginGetQueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public UserloginGetQueryParameters10 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -211,10 +211,10 @@ public UserloginGetQueryParametersMap getNewInstance(Map arg, List properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new UserloginGetQueryParametersMap(castProperties); + return new UserloginGetQueryParameters10(castProperties); } - public UserloginGetQueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public UserloginGetQueryParameters10 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java index 2c703941307..7cc66199bce 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java @@ -79,12 +79,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters; + public UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters, + UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public UserusernameDeletePathParameters.@Nullable UserusernameDeletePathParametersMap pathParameters; + public UserusernameDeletePathParameters.@Nullable UserusernameDeletePathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(UserusernameDeletePathParameters.UserusernameDeletePathParametersMap pathParameters) { + default T pathParameters(UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java index e5735b2c2bb..2a522df968b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java @@ -79,12 +79,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters; + public UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters, + UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public GetRequest( } public static class GetNullableRequest { - public UserusernameGetPathParameters.@Nullable UserusernameGetPathParametersMap pathParameters; + public UserusernameGetPathParameters.@Nullable UserusernameGetPathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(UserusernameGetPathParameters.UserusernameGetPathParametersMap pathParameters) { + default T pathParameters(UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java index dca88adbed0..267dd27e07d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java @@ -88,13 +88,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public UserusernamePutRequestBody.SealedRequestBody requestBody; - public UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters; + public UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( UserusernamePutRequestBody.SealedRequestBody requestBody, - UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters, + UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -107,7 +107,7 @@ public PutRequest( public static class PutNullableRequest { public UserusernamePutRequestBody.@Nullable SealedRequestBody requestBody; - public UserusernamePutPathParameters.@Nullable UserusernamePutPathParametersMap pathParameters; + public UserusernamePutPathParameters.@Nullable UserusernamePutPathParameters9 pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -145,7 +145,7 @@ default T requestBody(UserusernamePutRequestBody.SealedRequestBody requestBody) public interface SetterForPathParameters { PutNullableRequest getInstance(); T getBuilderAfterPathParameters(PutNullableRequest instance); - default T pathParameters(UserusernamePutPathParameters.UserusernamePutPathParametersMap pathParameters) { + default T pathParameters(UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java index be9018de12b..6812c4fa36d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java @@ -29,27 +29,27 @@ public class UserusernameDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class UserusernameDeleteadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class UserusernameDeletePathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable UserusernameDeleteadditionalProperties instance = null; - public static UserusernameDeleteadditionalProperties getInstance() { + private static @Nullable UserusernameDeletePathParameters4 instance = null; + public static UserusernameDeletePathParameters4 getInstance() { if (instance == null) { - instance = new UserusernameDeleteadditionalProperties(); + instance = new UserusernameDeletePathParameters4(); } return instance; } } - public static class UserusernameDeletePathParametersMap extends FrozenMap { - protected UserusernameDeletePathParametersMap(FrozenMap m) { + public static class UserusernameDeletePathParameters9 extends FrozenMap { + protected UserusernameDeletePathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "username" ); public static final Set optionalKeys = Set.of(); - public static UserusernameDeletePathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static UserusernameDeletePathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return UserusernameDeletePathParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String username() { } } - public interface SetterForUserusernameDeleteusername { + public interface SetterForUserusernameDeletePathParameters2 { Map getInstance(); - T getBuilderAfterUserusernameDeleteusername(Map instance); + T getBuilderAfterUserusernameDeletePathParameters2(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUserusernameDeleteusername(instance); + return getBuilderAfterUserusernameDeletePathParameters2(instance); } } - public static class UserusernameDeletePathParametersMap0Builder implements GenericBuilder> { + public static class UserusernameDeletePathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "username" @@ -81,7 +81,7 @@ public static class UserusernameDeletePathParametersMap0Builder implements Gener public Set getKnownKeys() { return knownKeys; } - public UserusernameDeletePathParametersMap0Builder(Map instance) { + public UserusernameDeletePathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class UserusernameDeletePathParametersMapBuilder implements SetterForUserusernameDeleteusername { + public static class UserusernameDeletePathParameters8 implements SetterForUserusernameDeletePathParameters2 { private final Map instance; - public UserusernameDeletePathParametersMapBuilder() { + public UserusernameDeletePathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public UserusernameDeletePathParametersMap0Builder getBuilderAfterUserusernameDeleteusername(Map instance) { - return new UserusernameDeletePathParametersMap0Builder(instance); + public UserusernameDeletePathParameters10 getBuilderAfterUserusernameDeletePathParameters2(Map instance) { + return new UserusernameDeletePathParameters10(instance); } } @@ -107,7 +107,7 @@ public sealed interface UserusernameDeletePathParameters1Boxed permits Userusern @Nullable Object getData(); } - public record UserusernameDeletePathParameters1BoxedMap(UserusernameDeletePathParametersMap data) implements UserusernameDeletePathParameters1Boxed { + public record UserusernameDeletePathParameters1BoxedMap(UserusernameDeletePathParameters9 data) implements UserusernameDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record UserusernameDeletePathParameters1BoxedMap(UserusernameDeletePathPa } - public static class UserusernameDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class UserusernameDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable UserusernameDeletePathParameters1 instance = null; protected UserusernameDeletePathParameters1() { @@ -127,7 +127,7 @@ protected UserusernameDeletePathParameters1() { .required(Set.of( "username" )) - .additionalProperties(UserusernameDeleteadditionalProperties.class) + .additionalProperties(UserusernameDeletePathParameters4.class) ); } @@ -138,7 +138,7 @@ public static UserusernameDeletePathParameters1 getInstance() { return instance; } - public UserusernameDeletePathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public UserusernameDeletePathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public UserusernameDeletePathParametersMap getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new UserusernameDeletePathParametersMap(castProperties); + return new UserusernameDeletePathParameters9(castProperties); } - public UserusernameDeletePathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public UserusernameDeletePathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java index 97e95a2e0ce..81d0f3e64fe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java @@ -29,27 +29,27 @@ public class UserusernameGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class UserusernameGetadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class UserusernameGetPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable UserusernameGetadditionalProperties instance = null; - public static UserusernameGetadditionalProperties getInstance() { + private static @Nullable UserusernameGetPathParameters4 instance = null; + public static UserusernameGetPathParameters4 getInstance() { if (instance == null) { - instance = new UserusernameGetadditionalProperties(); + instance = new UserusernameGetPathParameters4(); } return instance; } } - public static class UserusernameGetPathParametersMap extends FrozenMap { - protected UserusernameGetPathParametersMap(FrozenMap m) { + public static class UserusernameGetPathParameters9 extends FrozenMap { + protected UserusernameGetPathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "username" ); public static final Set optionalKeys = Set.of(); - public static UserusernameGetPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static UserusernameGetPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return UserusernameGetPathParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String username() { } } - public interface SetterForUserusernameGetusername { + public interface SetterForUserusernameGetPathParameters2 { Map getInstance(); - T getBuilderAfterUserusernameGetusername(Map instance); + T getBuilderAfterUserusernameGetPathParameters2(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUserusernameGetusername(instance); + return getBuilderAfterUserusernameGetPathParameters2(instance); } } - public static class UserusernameGetPathParametersMap0Builder implements GenericBuilder> { + public static class UserusernameGetPathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "username" @@ -81,7 +81,7 @@ public static class UserusernameGetPathParametersMap0Builder implements GenericB public Set getKnownKeys() { return knownKeys; } - public UserusernameGetPathParametersMap0Builder(Map instance) { + public UserusernameGetPathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class UserusernameGetPathParametersMapBuilder implements SetterForUserusernameGetusername { + public static class UserusernameGetPathParameters8 implements SetterForUserusernameGetPathParameters2 { private final Map instance; - public UserusernameGetPathParametersMapBuilder() { + public UserusernameGetPathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public UserusernameGetPathParametersMap0Builder getBuilderAfterUserusernameGetusername(Map instance) { - return new UserusernameGetPathParametersMap0Builder(instance); + public UserusernameGetPathParameters10 getBuilderAfterUserusernameGetPathParameters2(Map instance) { + return new UserusernameGetPathParameters10(instance); } } @@ -107,7 +107,7 @@ public sealed interface UserusernameGetPathParameters1Boxed permits Userusername @Nullable Object getData(); } - public record UserusernameGetPathParameters1BoxedMap(UserusernameGetPathParametersMap data) implements UserusernameGetPathParameters1Boxed { + public record UserusernameGetPathParameters1BoxedMap(UserusernameGetPathParameters9 data) implements UserusernameGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record UserusernameGetPathParameters1BoxedMap(UserusernameGetPathParamete } - public static class UserusernameGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class UserusernameGetPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable UserusernameGetPathParameters1 instance = null; protected UserusernameGetPathParameters1() { @@ -127,7 +127,7 @@ protected UserusernameGetPathParameters1() { .required(Set.of( "username" )) - .additionalProperties(UserusernameGetadditionalProperties.class) + .additionalProperties(UserusernameGetPathParameters4.class) ); } @@ -138,7 +138,7 @@ public static UserusernameGetPathParameters1 getInstance() { return instance; } - public UserusernameGetPathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public UserusernameGetPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public UserusernameGetPathParametersMap getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new UserusernameGetPathParametersMap(castProperties); + return new UserusernameGetPathParameters9(castProperties); } - public UserusernameGetPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public UserusernameGetPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java index 6cf9587b974..754c5885dcf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java @@ -29,27 +29,27 @@ public class UserusernamePutPathParameters { // nest classes so all schemas and input/output classes can be public - public static class UserusernamePutadditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class UserusernamePutPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable UserusernamePutadditionalProperties instance = null; - public static UserusernamePutadditionalProperties getInstance() { + private static @Nullable UserusernamePutPathParameters4 instance = null; + public static UserusernamePutPathParameters4 getInstance() { if (instance == null) { - instance = new UserusernamePutadditionalProperties(); + instance = new UserusernamePutPathParameters4(); } return instance; } } - public static class UserusernamePutPathParametersMap extends FrozenMap { - protected UserusernamePutPathParametersMap(FrozenMap m) { + public static class UserusernamePutPathParameters9 extends FrozenMap { + protected UserusernamePutPathParameters9(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "username" ); public static final Set optionalKeys = Set.of(); - public static UserusernamePutPathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static UserusernamePutPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return UserusernamePutPathParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String username() { } } - public interface SetterForUserusernamePutusername { + public interface SetterForUserusernamePutPathParameters2 { Map getInstance(); - T getBuilderAfterUserusernamePutusername(Map instance); + T getBuilderAfterUserusernamePutPathParameters2(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUserusernamePutusername(instance); + return getBuilderAfterUserusernamePutPathParameters2(instance); } } - public static class UserusernamePutPathParametersMap0Builder implements GenericBuilder> { + public static class UserusernamePutPathParameters10 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "username" @@ -81,7 +81,7 @@ public static class UserusernamePutPathParametersMap0Builder implements GenericB public Set getKnownKeys() { return knownKeys; } - public UserusernamePutPathParametersMap0Builder(Map instance) { + public UserusernamePutPathParameters10(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class UserusernamePutPathParametersMapBuilder implements SetterForUserusernamePutusername { + public static class UserusernamePutPathParameters8 implements SetterForUserusernamePutPathParameters2 { private final Map instance; - public UserusernamePutPathParametersMapBuilder() { + public UserusernamePutPathParameters8() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public UserusernamePutPathParametersMap0Builder getBuilderAfterUserusernamePutusername(Map instance) { - return new UserusernamePutPathParametersMap0Builder(instance); + public UserusernamePutPathParameters10 getBuilderAfterUserusernamePutPathParameters2(Map instance) { + return new UserusernamePutPathParameters10(instance); } } @@ -107,7 +107,7 @@ public sealed interface UserusernamePutPathParameters1Boxed permits Userusername @Nullable Object getData(); } - public record UserusernamePutPathParameters1BoxedMap(UserusernamePutPathParametersMap data) implements UserusernamePutPathParameters1Boxed { + public record UserusernamePutPathParameters1BoxedMap(UserusernamePutPathParameters9 data) implements UserusernamePutPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record UserusernamePutPathParameters1BoxedMap(UserusernamePutPathParamete } - public static class UserusernamePutPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class UserusernamePutPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable UserusernamePutPathParameters1 instance = null; protected UserusernamePutPathParameters1() { @@ -127,7 +127,7 @@ protected UserusernamePutPathParameters1() { .required(Set.of( "username" )) - .additionalProperties(UserusernamePutadditionalProperties.class) + .additionalProperties(UserusernamePutPathParameters4.class) ); } @@ -138,7 +138,7 @@ public static UserusernamePutPathParameters1 getInstance() { return instance; } - public UserusernamePutPathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public UserusernamePutPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public UserusernamePutPathParametersMap getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new UserusernamePutPathParametersMap(castProperties); + return new UserusernamePutPathParameters9(castProperties); } - public UserusernamePutPathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public UserusernamePutPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java index c8ee951bed5..a63c2279fe5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java @@ -8,16 +8,16 @@ import java.util.AbstractMap; -public class Server0 extends ServerWithVariables { +public class Server0 extends ServerWithVariables { /* petstore server */ - private static Server0Variables.Server0Variables20 getVariables() { + private static Server0Variables.Server0Variables14 getVariables() { try { return Server0Variables.Server0Variables1.getInstance().validate( MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("port", Server0Variables.Server0Variables8.getInstance().defaultValue()), - new AbstractMap.SimpleEntry<>("server", Server0Variables.Server0Variables4.getInstance().defaultValue()) + new AbstractMap.SimpleEntry<>("port", Server0Variables.Server0Variables5.getInstance().defaultValue()), + new AbstractMap.SimpleEntry<>("server", Server0Variables.Server0Variables2.getInstance().defaultValue()) ), new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); @@ -32,7 +32,7 @@ public Server0() { getVariables() ); } - public Server0(Server0Variables.Server0Variables20 variables) { + public Server0(Server0Variables.Server0Variables14 variables) { super("http://{server}.swagger.io:{port}/v2", variables); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java index 8bce3657caa..2492f2199bd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java @@ -8,15 +8,15 @@ import java.util.AbstractMap; -public class Server1 extends ServerWithVariables { +public class Server1 extends ServerWithVariables { /* The local server */ - private static Server1Variables.Server1Variables16 getVariables() { + private static Server1Variables.Server1Variables11 getVariables() { try { return Server1Variables.Server1Variables1.getInstance().validate( MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("version", Server1Variables.Server1Variables4.getInstance().defaultValue()) + new AbstractMap.SimpleEntry<>("version", Server1Variables.Server1Variables2.getInstance().defaultValue()) ), new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); @@ -31,7 +31,7 @@ public Server1() { getVariables() ); } - public Server1(Server1Variables.Server1Variables16 variables) { + public Server1(Server1Variables.Server1Variables11 variables) { super("https://localhost:8080/{version}", variables); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables24.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java similarity index 78% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables24.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java index 1e0e3415ae1..df8cf29c66b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables24.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java @@ -33,24 +33,24 @@ public class Server0Variables { // nest classes so all schemas and input/output classes can be public - public static class Server0Variables13 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Server0Variables9 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Server0Variables13 instance = null; - public static Server0Variables13 getInstance() { + private static @Nullable Server0Variables9 instance = null; + public static Server0Variables9 getInstance() { if (instance == null) { - instance = new Server0Variables13(); + instance = new Server0Variables9(); } return instance; } } - public enum StringServer0Variables6 implements StringValueMethod { + public enum StringServer0Variables3 implements StringValueMethod { PETSTORE("petstore"), QA_HYPHEN_MINUS_PETSTORE("qa-petstore"), DEV_HYPHEN_MINUS_PETSTORE("dev-petstore"); private final String value; - StringServer0Variables6(String value) { + StringServer0Variables3(String value) { this.value = value; } public String value() { @@ -59,11 +59,11 @@ public String value() { } - public sealed interface Server0Variables4Boxed permits Server0Variables4BoxedString { + public sealed interface Server0Variables2Boxed permits Server0Variables2BoxedString { @Nullable Object getData(); } - public record Server0Variables4BoxedString(String data) implements Server0Variables4Boxed { + public record Server0Variables2BoxedString(String data) implements Server0Variables2Boxed { @Override public @Nullable Object getData() { return data; @@ -72,10 +72,10 @@ public record Server0Variables4BoxedString(String data) implements Server0Variab - public static class Server0Variables4 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Server0Variables4 instance = null; + public static class Server0Variables2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Server0Variables2 instance = null; - protected Server0Variables4() { + protected Server0Variables2() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -89,9 +89,9 @@ protected Server0Variables4() { ); } - public static Server0Variables4 getInstance() { + public static Server0Variables2 getInstance() { if (instance == null) { - instance = new Server0Variables4(); + instance = new Server0Variables2(); } return instance; } @@ -108,7 +108,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringServer0Variables6 arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringServer0Variables3 arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -133,23 +133,23 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public Server0Variables4BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Server0Variables4BoxedString(validate(arg, configuration)); + public Server0Variables2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Server0Variables2BoxedString(validate(arg, configuration)); } @Override - public Server0Variables4Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Server0Variables2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } - public enum StringServer0Variables10 implements StringValueMethod { + public enum StringServer0Variables6 implements StringValueMethod { POSITIVE_80("80"), POSITIVE_8080("8080"); private final String value; - StringServer0Variables10(String value) { + StringServer0Variables6(String value) { this.value = value; } public String value() { @@ -158,11 +158,11 @@ public String value() { } - public sealed interface Server0Variables8Boxed permits Server0Variables8BoxedString { + public sealed interface Server0Variables5Boxed permits Server0Variables5BoxedString { @Nullable Object getData(); } - public record Server0Variables8BoxedString(String data) implements Server0Variables8Boxed { + public record Server0Variables5BoxedString(String data) implements Server0Variables5Boxed { @Override public @Nullable Object getData() { return data; @@ -171,10 +171,10 @@ public record Server0Variables8BoxedString(String data) implements Server0Variab - public static class Server0Variables8 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Server0Variables8 instance = null; + public static class Server0Variables5 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Server0Variables5 instance = null; - protected Server0Variables8() { + protected Server0Variables5() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -187,9 +187,9 @@ protected Server0Variables8() { ); } - public static Server0Variables8 getInstance() { + public static Server0Variables5 getInstance() { if (instance == null) { - instance = new Server0Variables8(); + instance = new Server0Variables5(); } return instance; } @@ -206,7 +206,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringServer0Variables10 arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringServer0Variables6 arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -231,11 +231,11 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public Server0Variables8BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Server0Variables8BoxedString(validate(arg, configuration)); + public Server0Variables5BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Server0Variables5BoxedString(validate(arg, configuration)); } @Override - public Server0Variables8Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Server0Variables5Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } @@ -243,8 +243,8 @@ public Server0Variables8Boxed validateAndBox(@Nullable Object arg, SchemaConfigu } } - public static class Server0Variables20 extends FrozenMap { - protected Server0Variables20(FrozenMap m) { + public static class Server0Variables14 extends FrozenMap { + protected Server0Variables14(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( @@ -252,7 +252,7 @@ protected Server0Variables20(FrozenMap m) { "server" ); public static final Set optionalKeys = Set.of(); - public static Server0Variables20 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static Server0Variables14 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Server0Variables1.getInstance().validate(arg, configuration); } @@ -273,41 +273,41 @@ public String server() { } } - public interface SetterForServer0Variables8 { + public interface SetterForServer0Variables5 { Map getInstance(); - T getBuilderAfterServer0Variables8(Map instance); + T getBuilderAfterServer0Variables5(Map instance); default T port(String value) { var instance = getInstance(); instance.put("port", value); - return getBuilderAfterServer0Variables8(instance); + return getBuilderAfterServer0Variables5(instance); } - default T port(StringServer0Variables10 value) { + default T port(StringServer0Variables6 value) { var instance = getInstance(); instance.put("port", value.value()); - return getBuilderAfterServer0Variables8(instance); + return getBuilderAfterServer0Variables5(instance); } } - public interface SetterForServer0Variables4 { + public interface SetterForServer0Variables2 { Map getInstance(); - T getBuilderAfterServer0Variables4(Map instance); + T getBuilderAfterServer0Variables2(Map instance); default T server(String value) { var instance = getInstance(); instance.put("server", value); - return getBuilderAfterServer0Variables4(instance); + return getBuilderAfterServer0Variables2(instance); } - default T server(StringServer0Variables6 value) { + default T server(StringServer0Variables3 value) { var instance = getInstance(); instance.put("server", value.value()); - return getBuilderAfterServer0Variables4(instance); + return getBuilderAfterServer0Variables2(instance); } } - public static class Server0Variables21 implements GenericBuilder> { + public static class Server0Variables15 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "port", @@ -316,7 +316,7 @@ public static class Server0Variables21 implements GenericBuilder getKnownKeys() { return knownKeys; } - public Server0Variables21(Map instance) { + public Server0Variables15(Map instance) { this.instance = instance; } public Map build() { @@ -324,45 +324,45 @@ public Map build() { } } - public static class Server0Variables22 implements SetterForServer0Variables4 { + public static class Server0Variables16 implements SetterForServer0Variables2 { private final Map instance; - public Server0Variables22(Map instance) { + public Server0Variables16(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Server0Variables21 getBuilderAfterServer0Variables4(Map instance) { - return new Server0Variables21(instance); + public Server0Variables15 getBuilderAfterServer0Variables2(Map instance) { + return new Server0Variables15(instance); } } - public static class Server0Variables23 implements SetterForServer0Variables8 { + public static class Server0Variables17 implements SetterForServer0Variables5 { private final Map instance; - public Server0Variables23(Map instance) { + public Server0Variables17(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Server0Variables21 getBuilderAfterServer0Variables8(Map instance) { - return new Server0Variables21(instance); + public Server0Variables15 getBuilderAfterServer0Variables5(Map instance) { + return new Server0Variables15(instance); } } - public static class Server0Variables19 implements SetterForServer0Variables8, SetterForServer0Variables4 { + public static class Server0Variables13 implements SetterForServer0Variables5, SetterForServer0Variables2 { private final Map instance; - public Server0Variables19() { + public Server0Variables13() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public Server0Variables22 getBuilderAfterServer0Variables8(Map instance) { - return new Server0Variables22(instance); + public Server0Variables16 getBuilderAfterServer0Variables5(Map instance) { + return new Server0Variables16(instance); } - public Server0Variables23 getBuilderAfterServer0Variables4(Map instance) { - return new Server0Variables23(instance); + public Server0Variables17 getBuilderAfterServer0Variables2(Map instance) { + return new Server0Variables17(instance); } } @@ -371,7 +371,7 @@ public sealed interface Server0Variables1Boxed permits Server0Variables1BoxedMap @Nullable Object getData(); } - public record Server0Variables1BoxedMap(Server0Variables20 data) implements Server0Variables1Boxed { + public record Server0Variables1BoxedMap(Server0Variables14 data) implements Server0Variables1Boxed { @Override public @Nullable Object getData() { return data; @@ -379,21 +379,21 @@ public record Server0Variables1BoxedMap(Server0Variables20 data) implements Serv } - public static class Server0Variables1 extends JsonSchema implements MapSchemaValidator { + public static class Server0Variables1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Server0Variables1 instance = null; protected Server0Variables1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( - new PropertyEntry("server", Server0Variables4.class), - new PropertyEntry("port", Server0Variables8.class) + new PropertyEntry("server", Server0Variables2.class), + new PropertyEntry("port", Server0Variables5.class) )) .required(Set.of( "port", "server" )) - .additionalProperties(Server0Variables13.class) + .additionalProperties(Server0Variables9.class) ); } @@ -404,7 +404,7 @@ public static Server0Variables1 getInstance() { return instance; } - public Server0Variables20 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Server0Variables14 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -427,10 +427,10 @@ public Server0Variables20 getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new Server0Variables20(castProperties); + return new Server0Variables14(castProperties); } - public Server0Variables20 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Server0Variables14 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables18.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java similarity index 82% rename from samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables18.java rename to samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java index 91b20cabd04..a5c92e6bc11 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables18.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java @@ -33,23 +33,23 @@ public class Server1Variables { // nest classes so all schemas and input/output classes can be public - public static class Server1Variables9 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class Server1Variables6 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Server1Variables9 instance = null; - public static Server1Variables9 getInstance() { + private static @Nullable Server1Variables6 instance = null; + public static Server1Variables6 getInstance() { if (instance == null) { - instance = new Server1Variables9(); + instance = new Server1Variables6(); } return instance; } } - public enum StringServer1Variables6 implements StringValueMethod { + public enum StringServer1Variables3 implements StringValueMethod { V1("v1"), V2("v2"); private final String value; - StringServer1Variables6(String value) { + StringServer1Variables3(String value) { this.value = value; } public String value() { @@ -58,11 +58,11 @@ public String value() { } - public sealed interface Server1Variables4Boxed permits Server1Variables4BoxedString { + public sealed interface Server1Variables2Boxed permits Server1Variables2BoxedString { @Nullable Object getData(); } - public record Server1Variables4BoxedString(String data) implements Server1Variables4Boxed { + public record Server1Variables2BoxedString(String data) implements Server1Variables2Boxed { @Override public @Nullable Object getData() { return data; @@ -71,10 +71,10 @@ public record Server1Variables4BoxedString(String data) implements Server1Variab - public static class Server1Variables4 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Server1Variables4 instance = null; + public static class Server1Variables2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Server1Variables2 instance = null; - protected Server1Variables4() { + protected Server1Variables2() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -87,9 +87,9 @@ protected Server1Variables4() { ); } - public static Server1Variables4 getInstance() { + public static Server1Variables2 getInstance() { if (instance == null) { - instance = new Server1Variables4(); + instance = new Server1Variables2(); } return instance; } @@ -106,7 +106,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringServer1Variables6 arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringServer1Variables3 arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -131,11 +131,11 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public Server1Variables4BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Server1Variables4BoxedString(validate(arg, configuration)); + public Server1Variables2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Server1Variables2BoxedString(validate(arg, configuration)); } @Override - public Server1Variables4Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public Server1Variables2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } @@ -143,15 +143,15 @@ public Server1Variables4Boxed validateAndBox(@Nullable Object arg, SchemaConfigu } } - public static class Server1Variables16 extends FrozenMap { - protected Server1Variables16(FrozenMap m) { + public static class Server1Variables11 extends FrozenMap { + protected Server1Variables11(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "version" ); public static final Set optionalKeys = Set.of(); - public static Server1Variables16 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static Server1Variables11 of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Server1Variables1.getInstance().validate(arg, configuration); } @@ -164,24 +164,24 @@ public String version() { } } - public interface SetterForServer1Variables4 { + public interface SetterForServer1Variables2 { Map getInstance(); - T getBuilderAfterServer1Variables4(Map instance); + T getBuilderAfterServer1Variables2(Map instance); default T version(String value) { var instance = getInstance(); instance.put("version", value); - return getBuilderAfterServer1Variables4(instance); + return getBuilderAfterServer1Variables2(instance); } - default T version(StringServer1Variables6 value) { + default T version(StringServer1Variables3 value) { var instance = getInstance(); instance.put("version", value.value()); - return getBuilderAfterServer1Variables4(instance); + return getBuilderAfterServer1Variables2(instance); } } - public static class Server1Variables17 implements GenericBuilder> { + public static class Server1Variables12 implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "version" @@ -189,7 +189,7 @@ public static class Server1Variables17 implements GenericBuilder getKnownKeys() { return knownKeys; } - public Server1Variables17(Map instance) { + public Server1Variables12(Map instance) { this.instance = instance; } public Map build() { @@ -197,16 +197,16 @@ public Map build() { } } - public static class Server1Variables15 implements SetterForServer1Variables4 { + public static class Server1Variables10 implements SetterForServer1Variables2 { private final Map instance; - public Server1Variables15() { + public Server1Variables10() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public Server1Variables17 getBuilderAfterServer1Variables4(Map instance) { - return new Server1Variables17(instance); + public Server1Variables12 getBuilderAfterServer1Variables2(Map instance) { + return new Server1Variables12(instance); } } @@ -215,7 +215,7 @@ public sealed interface Server1Variables1Boxed permits Server1Variables1BoxedMap @Nullable Object getData(); } - public record Server1Variables1BoxedMap(Server1Variables16 data) implements Server1Variables1Boxed { + public record Server1Variables1BoxedMap(Server1Variables11 data) implements Server1Variables1Boxed { @Override public @Nullable Object getData() { return data; @@ -223,19 +223,19 @@ public record Server1Variables1BoxedMap(Server1Variables16 data) implements Serv } - public static class Server1Variables1 extends JsonSchema implements MapSchemaValidator { + public static class Server1Variables1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Server1Variables1 instance = null; protected Server1Variables1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( - new PropertyEntry("version", Server1Variables4.class) + new PropertyEntry("version", Server1Variables2.class) )) .required(Set.of( "version" )) - .additionalProperties(Server1Variables9.class) + .additionalProperties(Server1Variables6.class) ); } @@ -246,7 +246,7 @@ public static Server1Variables1 getInstance() { return instance; } - public Server1Variables16 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public Server1Variables11 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -269,10 +269,10 @@ public Server1Variables16 getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new Server1Variables16(castProperties); + return new Server1Variables11(castProperties); } - public Server1Variables16 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public Server1Variables11 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 223f70c3752..4e7f613995e 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -145,7 +145,7 @@ protected void updateServersFilepath(String[] pathPieces) { } else { // #/servers/0/variables pathPieces[2] = toServerFilename(pathPieces[2], jsonPath).toLowerCase(Locale.ROOT); - pathPieces[3] = getPascalCase(CodegenKeyType.SCHEMA, pathPieces[3], jsonPath); + pathPieces[3] = getSchemaFilename(jsonPath); } } @@ -1265,6 +1265,11 @@ private String getSchemaPascalCaseName(String name, @NotNull String sourceJsonPa - so all header schemas must be named by their header name to prevent collisions */ String[] pathPieces = sourceJsonPath.split("/"); + + + String lastFragment = pathPieces[pathPieces.length-1]; + boolean operationParametersSchema = sourceJsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment); + boolean serverVariables = (lastFragment.equals("variables") && Set.of(4,6,7).contains(pathPieces.length)); if (sourceJsonPath.endsWith("/schema")) { if (sourceJsonPath.startsWith("#/paths") && sourceJsonPath.contains("/parameters/")) { if (pathPieces[3].equals("parameters")) { @@ -1307,8 +1312,23 @@ private String getSchemaPascalCaseName(String name, @NotNull String sourceJsonPa String responseFragment = pathPieces[pathPieces.length-2]; String pascalCaseResponse = getPascalCaseResponse(responseFragment, responseJsonPath); usedKey = pascalCaseResponse + camelize(usedKey); + } else if (operationParametersSchema) { + String prefix = getPathClassNamePrefix(sourceJsonPath); + usedKey = prefix + lastFragment; + } else if (serverVariables) { + if (pathPieces.length == 4) { + // #/servers/0/variables -> 4 + usedKey = "Server" + pathPieces[2] + "Variables"; + } else if (pathPieces.length == 6) { + // #/paths/somePath/servers/0/variables -> 6 + CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", sourceJsonPath); + usedKey = pathKey.pascalCase + "Server" + pathPieces[4] + "Variables"; + } else { + // #/paths/somePath/get/servers/0/variables -> 7 + String prefix = getPathClassNamePrefix(sourceJsonPath); + usedKey = prefix + "Server" + pathPieces[5] + "Variables"; + } } - HashMap keyToQty = sourceJsonPathToKeyToQty.getOrDefault(sourceJsonPath, new HashMap<>()); if (useCache) { if (!sourceJsonPathToKeyToQty.containsKey(sourceJsonPath)) { @@ -1359,28 +1379,7 @@ public String getSchemaFilename(String jsonPath) { return modelName; } String[] pathPieces = jsonPath.split("/"); - String lastFragment = pathPieces[pathPieces.length-1]; - boolean operationParametersSchema = jsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment); - if (operationParametersSchema) { - String prefix = getPathClassNamePrefix(jsonPath); - lastFragment = prefix + lastFragment; - } - boolean serverVariables = (lastFragment.equals("variables") && Set.of(4,6,7).contains(pathPieces.length)); - if (serverVariables) { - if (pathPieces.length == 4) { - // #/servers/0/variables -> 4 - lastFragment = "Server" + pathPieces[2] + "Variables"; - } else if (pathPieces.length == 6) { - // #/paths/somePath/servers/0/variables -> 6 - CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); - lastFragment = pathKey.pascalCase + "Server" + pathPieces[4] + "Variables"; - } else { - // #/paths/somePath/get/servers/0/variables -> 7 - String prefix = getPathClassNamePrefix(jsonPath); - lastFragment = prefix + "Server" + pathPieces[5] + "Variables"; - } - } - return getSchemaPascalCaseName(lastFragment, jsonPath, false); + return getSchemaPascalCaseName(pathPieces[pathPieces.length-1], jsonPath, false); } protected CodegenKey getContainerJsonPathPiece(String expectedComponentType, String currentJsonPath, String sourceJsonPath) { @@ -2639,31 +2638,6 @@ public String toOperationFilename(String name, String jsonPath) { public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, String jsonPath) { switch (type) { case SCHEMA: - if (jsonPath != null) { - String[] pathPieces = jsonPath.split("/"); - String lastFragment = pathPieces[pathPieces.length-1]; - boolean operationParametersSchema = jsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment); - if (operationParametersSchema) { - // for path/query/header/cookie parameter schemas add a prefix - String prefix = getPathClassNamePrefix(jsonPath); - lastJsonPathFragment = prefix + lastJsonPathFragment; - } - boolean serverVariables = (lastFragment.equals("variables") && Set.of(4,6,7).contains(pathPieces.length)); - if (serverVariables) { - if (pathPieces.length == 4) { - // #/servers/0/variables -> 4 - lastJsonPathFragment = "Server" + pathPieces[2] + "Variables"; - } else if (pathPieces.length == 6) { - // #/paths/somePath/servers/0/variables -> 6 - CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); - lastJsonPathFragment = pathKey.pascalCase + "Server" + pathPieces[4] + "Variables"; - } else { - // #/paths/somePath/get/servers/0/variables -> 7 - String prefix = getPathClassNamePrefix(jsonPath); - lastJsonPathFragment = prefix + "Server" + pathPieces[5] + "Variables"; - } - } - } return getSchemaPascalCaseName(lastJsonPathFragment, jsonPath, true); case PATH: return camelize(toPathFilename(lastJsonPathFragment, jsonPath)); From bf6cf5b8a1dacd262792fbbea3c68ef1e4b7a97d Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 17:40:57 -0700 Subject: [PATCH 07/12] Fixes schema names for xparams and for server variables --- .../java/docs/apis/paths/Commonparamsubdir.md | 12 +- .../petstore/java/docs/apis/paths/Fake.md | 8 +- .../apis/paths/Fakebodywithqueryparams.md | 4 +- .../apis/paths/Fakecasesensitiveparams.md | 4 +- .../docs/apis/paths/Fakedeletecoffeeid.md | 4 +- .../Fakeparametercollisions1ababselfab.md | 4 +- .../Fakepetiduploadimagewithrequiredfile.md | 4 +- .../Fakequeryparamwithjsoncontenttype.md | 4 +- .../docs/apis/paths/Faketestqueryparamters.md | 4 +- .../java/docs/apis/paths/Petfindbystatus.md | 4 +- .../java/docs/apis/paths/Petfindbytags.md | 4 +- .../petstore/java/docs/apis/paths/Petpetid.md | 12 +- .../docs/apis/paths/Petpetiduploadimage.md | 4 +- .../java/docs/apis/paths/Storeorderorderid.md | 8 +- .../java/docs/apis/paths/Userlogin.md | 4 +- .../java/docs/apis/paths/Userusername.md | 12 +- .../petstore/java/docs/apis/tags/Fake.md | 44 +- .../petstore/java/docs/apis/tags/Pet.md | 28 +- .../petstore/java/docs/apis/tags/Store.md | 8 +- .../petstore/java/docs/apis/tags/User.md | 16 +- .../CommonparamsubdirDelete.md | 16 +- .../commonparamsubdir/CommonparamsubdirGet.md | 16 +- .../CommonparamsubdirPost.md | 16 +- ...CommonparamsubdirDeleteHeaderParameters.md | 116 +- .../CommonparamsubdirDeletePathParameters.md | 124 +- .../get/CommonparamsubdirGetPathParameters.md | 124 +- .../CommonparamsubdirGetQueryParameters.md | 116 +- .../CommonparamsubdirPostHeaderParameters.md | 116 +- .../CommonparamsubdirPostPathParameters.md | 124 +- .../java/docs/paths/fake/FakeDelete.md | 24 +- .../petstore/java/docs/paths/fake/FakeGet.md | 8 +- .../fake/delete/FakeDeleteHeaderParameters.md | 128 +- .../fake/delete/FakeDeleteQueryParameters.md | 166 +-- .../paths/fake/get/FakeGetHeaderParameters.md | 120 +- .../paths/fake/get/FakeGetQueryParameters.md | 146 +-- .../FakebodywithqueryparamsPut.md | 12 +- ...kebodywithqueryparamsPutQueryParameters.md | 122 +- .../FakecasesensitiveparamsPut.md | 10 +- ...kecasesensitiveparamsPutQueryParameters.md | 180 +-- .../FakedeletecoffeeidDelete.md | 10 +- .../FakedeletecoffeeidDeletePathParameters.md | 122 +- .../FakeinlinecompositionPost.md | 4 +- ...akeinlinecompositionPostQueryParameters.md | 136 +-- .../paths/fakeobjinquery/FakeobjinqueryGet.md | 4 +- .../get/FakeobjinqueryGetQueryParameters.md | 116 +- .../Fakeparametercollisions1ababselfabPost.md | 28 +- ...llisions1ababselfabPostCookieParameters.md | 126 +- ...llisions1ababselfabPostHeaderParameters.md | 122 +- ...collisions1ababselfabPostPathParameters.md | 460 +++---- ...ollisions1ababselfabPostQueryParameters.md | 126 +- ...akepetiduploadimagewithrequiredfilePost.md | 10 +- ...imagewithrequiredfilePostPathParameters.md | 128 +- .../FakequeryparamwithjsoncontenttypeGet.md | 10 +- ...amwithjsoncontenttypeGetQueryParameters.md | 140 +-- .../fakerefobjinquery/FakerefobjinqueryGet.md | 4 +- .../FakerefobjinqueryGetQueryParameters.md | 116 +- .../FaketestqueryparamtersPut.md | 10 +- ...aketestqueryparamtersPutQueryParameters.md | 876 ++++++------- .../paths/foo/get/servers/FooGetServer1.md | 4 +- .../foo/get/servers/server1/Variables.md | 166 +-- .../petfindbystatus/PetfindbystatusGet.md | 10 +- .../get/PetfindbystatusGetQueryParameters.md | 122 +- .../servers/PetfindbystatusServer1.md | 4 +- .../servers/server1/Variables.md | 166 +-- .../paths/petfindbytags/PetfindbytagsGet.md | 10 +- .../get/PetfindbytagsGetQueryParameters.md | 122 +- .../docs/paths/petpetid/PetpetidDelete.md | 16 +- .../java/docs/paths/petpetid/PetpetidGet.md | 10 +- .../java/docs/paths/petpetid/PetpetidPost.md | 10 +- .../delete/PetpetidDeleteHeaderParameters.md | 116 +- .../delete/PetpetidDeletePathParameters.md | 128 +- .../petpetid/get/PetpetidGetPathParameters.md | 128 +- .../post/PetpetidPostPathParameters.md | 128 +- .../PetpetiduploadimagePost.md | 10 +- .../PetpetiduploadimagePostPathParameters.md | 128 +- .../StoreorderorderidDelete.md | 10 +- .../storeorderorderid/StoreorderorderidGet.md | 10 +- .../StoreorderorderidDeletePathParameters.md | 122 +- .../get/StoreorderorderidGetPathParameters.md | 128 +- .../java/docs/paths/userlogin/UserloginGet.md | 10 +- .../get/UserloginGetQueryParameters.md | 140 +-- .../paths/userusername/UserusernameDelete.md | 10 +- .../paths/userusername/UserusernameGet.md | 10 +- .../paths/userusername/UserusernamePut.md | 12 +- .../UserusernameDeletePathParameters.md | 122 +- .../get/UserusernameGetPathParameters.md | 122 +- .../put/UserusernamePutPathParameters.md | 122 +- .../petstore/java/docs/servers/Server0.md | 4 +- .../petstore/java/docs/servers/Server1.md | 4 +- .../docs/servers/server0/Server0Variables.md | 230 ++-- .../docs/servers/server1/Server1Variables.md | 166 +-- .../CommonparamsubdirDelete.java | 16 +- .../CommonparamsubdirGet.java | 16 +- .../CommonparamsubdirPost.java | 16 +- ...mmonparamsubdirDeleteHeaderParameters.java | 38 +- ...CommonparamsubdirDeletePathParameters.java | 46 +- .../CommonparamsubdirGetPathParameters.java | 46 +- .../CommonparamsubdirGetQueryParameters.java | 38 +- ...CommonparamsubdirPostHeaderParameters.java | 38 +- .../CommonparamsubdirPostPathParameters.java | 46 +- .../client/paths/fake/FakeDelete.java | 16 +- .../client/paths/fake/FakeGet.java | 8 +- .../delete/FakeDeleteHeaderParameters.java | 56 +- .../delete/FakeDeleteQueryParameters.java | 98 +- .../fake/get/FakeGetHeaderParameters.java | 48 +- .../fake/get/FakeGetQueryParameters.java | 84 +- .../FakebodywithqueryparamsPut.java | 8 +- ...bodywithqueryparamsPutQueryParameters.java | 44 +- .../FakecasesensitiveparamsPut.java | 8 +- ...casesensitiveparamsPutQueryParameters.java | 124 +- .../FakedeletecoffeeidDelete.java | 8 +- ...akedeletecoffeeidDeletePathParameters.java | 44 +- .../FakeinlinecompositionPost.java | 4 +- ...einlinecompositionPostQueryParameters.java | 62 +- .../fakeobjinquery/FakeobjinqueryGet.java | 4 +- .../get/FakeobjinqueryGetQueryParameters.java | 38 +- ...akeparametercollisions1ababselfabPost.java | 32 +- ...isions1ababselfabPostCookieParameters.java | 70 +- ...isions1ababselfabPostHeaderParameters.java | 62 +- ...llisions1ababselfabPostPathParameters.java | 504 ++++---- ...lisions1ababselfabPostQueryParameters.java | 70 +- ...epetiduploadimagewithrequiredfilePost.java | 8 +- ...agewithrequiredfilePostPathParameters.java | 50 +- .../FakequeryparamwithjsoncontenttypeGet.java | 8 +- ...withjsoncontenttypeGetQueryParameters.java | 60 +- .../FakerefobjinqueryGet.java | 4 +- .../FakerefobjinqueryGetQueryParameters.java | 38 +- .../FaketestqueryparamtersPut.java | 8 +- ...etestqueryparamtersPutQueryParameters.java | 1086 ++++++++--------- .../paths/foo/get/servers/FooGetServer1.java | 8 +- .../foo/get/servers/server1/Variables.java | 76 +- .../petfindbystatus/PetfindbystatusGet.java | 8 +- .../PetfindbystatusGetQueryParameters.java | 44 +- .../servers/PetfindbystatusServer1.java | 8 +- .../servers/server1/Variables.java | 76 +- .../paths/petfindbytags/PetfindbytagsGet.java | 8 +- .../get/PetfindbytagsGetQueryParameters.java | 44 +- .../client/paths/petpetid/PetpetidDelete.java | 16 +- .../client/paths/petpetid/PetpetidGet.java | 8 +- .../client/paths/petpetid/PetpetidPost.java | 8 +- .../PetpetidDeleteHeaderParameters.java | 38 +- .../delete/PetpetidDeletePathParameters.java | 50 +- .../get/PetpetidGetPathParameters.java | 50 +- .../post/PetpetidPostPathParameters.java | 50 +- .../PetpetiduploadimagePost.java | 8 +- ...PetpetiduploadimagePostPathParameters.java | 50 +- .../StoreorderorderidDelete.java | 8 +- .../StoreorderorderidGet.java | 8 +- ...StoreorderorderidDeletePathParameters.java | 44 +- .../StoreorderorderidGetPathParameters.java | 50 +- .../client/paths/userlogin/UserloginGet.java | 8 +- .../get/UserloginGetQueryParameters.java | 70 +- .../userusername/UserusernameDelete.java | 8 +- .../paths/userusername/UserusernameGet.java | 8 +- .../paths/userusername/UserusernamePut.java | 8 +- .../UserusernameDeletePathParameters.java | 44 +- .../get/UserusernameGetPathParameters.java | 44 +- .../put/UserusernamePutPathParameters.java | 44 +- .../client/servers/Server0.java | 10 +- .../client/servers/Server1.java | 8 +- .../servers/server0/Server0Variables.java | 134 +- .../servers/server1/Server1Variables.java | 76 +- .../generators/JavaClientGenerator.java | 6 +- 163 files changed, 5503 insertions(+), 5503 deletions(-) diff --git a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md index d483f8fc78a..a8a75cd49e6 100644 --- a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md +++ b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md @@ -86,9 +86,9 @@ Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConf // Map validation -CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters = +CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters = CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( - new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters8() + new CommonparamsubdirDeletePathParameters.PathParametersMapBuilder() .subDir("c") .build(), @@ -186,9 +186,9 @@ Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConf // Map validation -CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters = +CommonparamsubdirGetPathParameters.PathParametersMap pathParameters = CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( - new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters8() + new CommonparamsubdirGetPathParameters.PathParametersMapBuilder() .subDir("a") .build(), @@ -286,9 +286,9 @@ Commonparamsubdir apiClient = new Commonparamsubdir(apiConfiguration, schemaConf // Map validation -CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters = +CommonparamsubdirPostPathParameters.PathParametersMap pathParameters = CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( - new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters8() + new CommonparamsubdirPostPathParameters.PathParametersMapBuilder() .subDir("a") .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Fake.md b/samples/client/petstore/java/docs/apis/paths/Fake.md index c02192b4b04..3c671b29ee8 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fake.md +++ b/samples/client/petstore/java/docs/apis/paths/Fake.md @@ -100,9 +100,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters = +FakeDeleteHeaderParameters.HeaderParametersMap headerParameters = FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( - new FakeDeleteHeaderParameters.FakeDeleteHeaderParameters11() + new FakeDeleteHeaderParameters.HeaderParametersMapBuilder() .required_boolean_group("true") .boolean_group("true") @@ -112,9 +112,9 @@ FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters = ); // Map validation -FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters = +FakeDeleteQueryParameters.QueryParametersMap queryParameters = FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( - new FakeDeleteQueryParameters.FakeDeleteQueryParameters13() + new FakeDeleteQueryParameters.QueryParametersMapBuilder() .required_int64_group(1L) .required_string_group("a") diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md index 7b07cdb65a8..051ede8e0dc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md @@ -107,9 +107,9 @@ User1BoxedMap requestBodyPayload = FakebodywithqueryparamsPut.SealedRequestBody requestBody = new FakebodywithqueryparamsPut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters = +FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters = FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( - new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters8() + new FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder() .query("a") .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md index dfd38672aac..f459c6985e3 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md @@ -81,9 +81,9 @@ Fakecasesensitiveparams apiClient = new Fakecasesensitiveparams(apiConfiguration // Map validation -FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters = +FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters = FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( - new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters10() + new FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder() .SomeVar("a") .someVar("a") diff --git a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md index 74ed388455e..5fc9ab3b73a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md @@ -82,9 +82,9 @@ Fakedeletecoffeeid apiClient = new Fakedeletecoffeeid(apiConfiguration, schemaCo // Map validation -FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters = +FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters = FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( - new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters8() + new FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder() .id("a") .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md index c497e6bc637..ecf40f190d0 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md @@ -83,9 +83,9 @@ Fakeparametercollisions1ababselfab apiClient = new Fakeparametercollisions1ababs // Map validation -Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters = +Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters = Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( - new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters12() + new Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder() .positive1("a") .aHyphenMinusB("a") diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md index e368077db75..c022625d189 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md @@ -91,9 +91,9 @@ Fakepetiduploadimagewithrequiredfile apiClient = new Fakepetiduploadimagewithreq // Map validation -FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters = +FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters = FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( - new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters8() + new FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md index 23f3595a14c..a3914276703 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md @@ -79,9 +79,9 @@ Fakequeryparamwithjsoncontenttype apiClient = new Fakequeryparamwithjsoncontentt // Map validation -FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters = +FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters = FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( - new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters8() + new FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder() .build(), schemaConfiguration ); diff --git a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md index 0a629247502..ebadd01af66 100644 --- a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md +++ b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md @@ -81,9 +81,9 @@ Faketestqueryparamters apiClient = new Faketestqueryparamters(apiConfiguration, // Map validation -FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters = +FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters = FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( - new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters13() + new FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder() .context( Arrays.asList( "a" diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md index 944e0630b72..abbfd60b0ca 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md @@ -95,9 +95,9 @@ Petfindbystatus apiClient = new Petfindbystatus(apiConfiguration, schemaConfigur // Map validation -PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters = +PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters = PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( - new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters8() + new PetfindbystatusGetQueryParameters.QueryParametersMapBuilder() .status( Arrays.asList( "available" diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md index 91cea50ba47..1dc9bc6ab00 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md @@ -92,9 +92,9 @@ Petfindbytags apiClient = new Petfindbytags(apiConfiguration, schemaConfiguratio // Map validation -PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters = +PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters = PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( - new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters8() + new PetfindbytagsGetQueryParameters.QueryParametersMapBuilder() .tags( Arrays.asList( "a" diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetid.md b/samples/client/petstore/java/docs/apis/paths/Petpetid.md index 0aafc86e3d5..294aa5d2698 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetid.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetid.md @@ -99,9 +99,9 @@ Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); // Map validation -PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters = +PetpetidDeletePathParameters.PathParametersMap pathParameters = PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( - new PetpetidDeletePathParameters.PetpetidDeletePathParameters8() + new PetpetidDeletePathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -216,9 +216,9 @@ Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); // Map validation -PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters = +PetpetidGetPathParameters.PathParametersMap pathParameters = PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( - new PetpetidGetPathParameters.PetpetidGetPathParameters8() + new PetpetidGetPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -340,9 +340,9 @@ Petpetid apiClient = new Petpetid(apiConfiguration, schemaConfiguration); // Map validation -PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters = +PetpetidPostPathParameters.PathParametersMap pathParameters = PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( - new PetpetidPostPathParameters.PetpetidPostPathParameters8() + new PetpetidPostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md index f0456450874..16c4ec09f1d 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md @@ -92,9 +92,9 @@ Petpetiduploadimage apiClient = new Petpetiduploadimage(apiConfiguration, schema // Map validation -PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters = +PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters = PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( - new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters8() + new PetpetiduploadimagePostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md index 167e4722b31..34762a62561 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md @@ -84,9 +84,9 @@ Storeorderorderid apiClient = new Storeorderorderid(apiConfiguration, schemaConf // Map validation -StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters = +StoreorderorderidDeletePathParameters.PathParametersMap pathParameters = StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( - new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters8() + new StoreorderorderidDeletePathParameters.PathParametersMapBuilder() .order_id("a") .build(), @@ -189,9 +189,9 @@ Storeorderorderid apiClient = new Storeorderorderid(apiConfiguration, schemaConf // Map validation -StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters = +StoreorderorderidGetPathParameters.PathParametersMap pathParameters = StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( - new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters8() + new StoreorderorderidGetPathParameters.PathParametersMapBuilder() .order_id(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogin.md b/samples/client/petstore/java/docs/apis/paths/Userlogin.md index 1cbbc3dbc62..cfb92f94ba1 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogin.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogin.md @@ -83,9 +83,9 @@ Userlogin apiClient = new Userlogin(apiConfiguration, schemaConfiguration); // Map validation -UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters = +UserloginGetQueryParameters.QueryParametersMap queryParameters = UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( - new UserloginGetQueryParameters.UserloginGetQueryParameters9() + new UserloginGetQueryParameters.QueryParametersMapBuilder() .password("a") .username("a") diff --git a/samples/client/petstore/java/docs/apis/paths/Userusername.md b/samples/client/petstore/java/docs/apis/paths/Userusername.md index 56938fdad2e..43c1574beff 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userusername.md +++ b/samples/client/petstore/java/docs/apis/paths/Userusername.md @@ -86,9 +86,9 @@ Userusername apiClient = new Userusername(apiConfiguration, schemaConfiguration) // Map validation -UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters = +UserusernameDeletePathParameters.PathParametersMap pathParameters = UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( - new UserusernameDeletePathParameters.UserusernameDeletePathParameters8() + new UserusernameDeletePathParameters.PathParametersMapBuilder() .username("a") .build(), @@ -192,9 +192,9 @@ Userusername apiClient = new Userusername(apiConfiguration, schemaConfiguration) // Map validation -UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters = +UserusernameGetPathParameters.PathParametersMap pathParameters = UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( - new UserusernameGetPathParameters.UserusernameGetPathParameters8() + new UserusernameGetPathParameters.PathParametersMapBuilder() .username("a") .build(), @@ -331,9 +331,9 @@ User1BoxedMap requestBodyPayload = UserusernamePut.SealedRequestBody requestBody = new UserusernamePut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters = +UserusernamePutPathParameters.PathParametersMap pathParameters = UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( - new UserusernamePutPathParameters.UserusernamePutPathParameters8() + new UserusernamePutPathParameters.PathParametersMapBuilder() .username("a") .build(), diff --git a/samples/client/petstore/java/docs/apis/tags/Fake.md b/samples/client/petstore/java/docs/apis/tags/Fake.md index a3a05d51c9a..2d1b48cb2d1 100644 --- a/samples/client/petstore/java/docs/apis/tags/Fake.md +++ b/samples/client/petstore/java/docs/apis/tags/Fake.md @@ -346,9 +346,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters = +CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters = CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( - new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters8() + new CommonparamsubdirDeletePathParameters.PathParametersMapBuilder() .subDir("c") .build(), @@ -446,9 +446,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters = +CommonparamsubdirGetPathParameters.PathParametersMap pathParameters = CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( - new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters8() + new CommonparamsubdirGetPathParameters.PathParametersMapBuilder() .subDir("a") .build(), @@ -546,9 +546,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters = +CommonparamsubdirPostPathParameters.PathParametersMap pathParameters = CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( - new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters8() + new CommonparamsubdirPostPathParameters.PathParametersMapBuilder() .subDir("a") .build(), @@ -647,9 +647,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters = +FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters = FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( - new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters10() + new FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder() .SomeVar("a") .someVar("a") @@ -885,9 +885,9 @@ User1BoxedMap requestBodyPayload = FakebodywithqueryparamsPut.SealedRequestBody requestBody = new FakebodywithqueryparamsPut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters = +FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters = FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( - new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters8() + new FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder() .query("a") .build(), @@ -1924,9 +1924,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters = +FakeDeleteHeaderParameters.HeaderParametersMap headerParameters = FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( - new FakeDeleteHeaderParameters.FakeDeleteHeaderParameters11() + new FakeDeleteHeaderParameters.HeaderParametersMapBuilder() .required_boolean_group("true") .boolean_group("true") @@ -1936,9 +1936,9 @@ FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters = ); // Map validation -FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters = +FakeDeleteQueryParameters.QueryParametersMap queryParameters = FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( - new FakeDeleteQueryParameters.FakeDeleteQueryParameters13() + new FakeDeleteQueryParameters.QueryParametersMapBuilder() .required_int64_group(1L) .required_string_group("a") @@ -3183,9 +3183,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters = +Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters = Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( - new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters12() + new Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder() .positive1("a") .aHyphenMinusB("a") @@ -3292,9 +3292,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters = +FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters = FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( - new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters8() + new FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder() .build(), schemaConfiguration ); @@ -3585,9 +3585,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters = +FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters = FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( - new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters13() + new FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder() .context( Arrays.asList( "a" @@ -4266,9 +4266,9 @@ Fake apiClient = new Fake(apiConfiguration, schemaConfiguration); // Map validation -FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters = +FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters = FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( - new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters8() + new FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder() .id("a") .build(), diff --git a/samples/client/petstore/java/docs/apis/tags/Pet.md b/samples/client/petstore/java/docs/apis/tags/Pet.md index 39ab87d7366..6adb0caff16 100644 --- a/samples/client/petstore/java/docs/apis/tags/Pet.md +++ b/samples/client/petstore/java/docs/apis/tags/Pet.md @@ -108,9 +108,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters = +FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters = FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( - new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters8() + new FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -520,9 +520,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters = +PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters = PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( - new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters8() + new PetfindbytagsGetQueryParameters.QueryParametersMapBuilder() .tags( Arrays.asList( "a" @@ -642,9 +642,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters = +PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters = PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( - new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters8() + new PetfindbystatusGetQueryParameters.QueryParametersMapBuilder() .status( Arrays.asList( "available" @@ -761,9 +761,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters = +PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters = PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( - new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters8() + new PetpetiduploadimagePostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -877,9 +877,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters = +PetpetidDeletePathParameters.PathParametersMap pathParameters = PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( - new PetpetidDeletePathParameters.PetpetidDeletePathParameters8() + new PetpetidDeletePathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -994,9 +994,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters = +PetpetidGetPathParameters.PathParametersMap pathParameters = PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( - new PetpetidGetPathParameters.PetpetidGetPathParameters8() + new PetpetidGetPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -1118,9 +1118,9 @@ Pet apiClient = new Pet(apiConfiguration, schemaConfiguration); // Map validation -PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters = +PetpetidPostPathParameters.PathParametersMap pathParameters = PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( - new PetpetidPostPathParameters.PetpetidPostPathParameters8() + new PetpetidPostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/tags/Store.md b/samples/client/petstore/java/docs/apis/tags/Store.md index 2313fba4c7f..c44d2258287 100644 --- a/samples/client/petstore/java/docs/apis/tags/Store.md +++ b/samples/client/petstore/java/docs/apis/tags/Store.md @@ -191,9 +191,9 @@ Store apiClient = new Store(apiConfiguration, schemaConfiguration); // Map validation -StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters = +StoreorderorderidDeletePathParameters.PathParametersMap pathParameters = StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( - new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters8() + new StoreorderorderidDeletePathParameters.PathParametersMapBuilder() .order_id("a") .build(), @@ -296,9 +296,9 @@ Store apiClient = new Store(apiConfiguration, schemaConfiguration); // Map validation -StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters = +StoreorderorderidGetPathParameters.PathParametersMap pathParameters = StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( - new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters8() + new StoreorderorderidGetPathParameters.PathParametersMapBuilder() .order_id(1L) .build(), diff --git a/samples/client/petstore/java/docs/apis/tags/User.md b/samples/client/petstore/java/docs/apis/tags/User.md index aa7b46392a3..a658eabeeb5 100644 --- a/samples/client/petstore/java/docs/apis/tags/User.md +++ b/samples/client/petstore/java/docs/apis/tags/User.md @@ -444,9 +444,9 @@ User apiClient = new User(apiConfiguration, schemaConfiguration); // Map validation -UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters = +UserloginGetQueryParameters.QueryParametersMap queryParameters = UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( - new UserloginGetQueryParameters.UserloginGetQueryParameters9() + new UserloginGetQueryParameters.QueryParametersMapBuilder() .password("a") .username("a") @@ -557,9 +557,9 @@ User apiClient = new User(apiConfiguration, schemaConfiguration); // Map validation -UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters = +UserusernameDeletePathParameters.PathParametersMap pathParameters = UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( - new UserusernameDeletePathParameters.UserusernameDeletePathParameters8() + new UserusernameDeletePathParameters.PathParametersMapBuilder() .username("a") .build(), @@ -663,9 +663,9 @@ User apiClient = new User(apiConfiguration, schemaConfiguration); // Map validation -UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters = +UserusernameGetPathParameters.PathParametersMap pathParameters = UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( - new UserusernameGetPathParameters.UserusernameGetPathParameters8() + new UserusernameGetPathParameters.PathParametersMapBuilder() .username("a") .build(), @@ -802,9 +802,9 @@ User1BoxedMap requestBodyPayload = UserusernamePut.SealedRequestBody requestBody = new UserusernamePut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters = +UserusernamePutPathParameters.PathParametersMap pathParameters = UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( - new UserusernamePutPathParameters.UserusernamePutPathParameters8() + new UserusernamePutPathParameters.PathParametersMapBuilder() .username("a") .build(), diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md index 63e18708657..2983f2981ad 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -75,9 +75,9 @@ CommonparamsubdirDelete.Delete apiClient = new CommonparamsubdirDelete.Delete(ap // Map validation -CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters = +CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters = CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( - new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters8() + new CommonparamsubdirDeletePathParameters.PathParametersMapBuilder() .subDir("c") .build(), @@ -135,8 +135,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparameters9) | pathParameters | -| [CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparameters9) | headerParameters
optional | +| [CommonparamsubdirDeletePathParameters.PathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#headerparametersmap) | headerParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -148,8 +148,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirDeletePathParameters.@Nullable CommonparamsubdirDeletePathParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparameters9) | pathParameters | -| [CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparameters9) | headerParameters | +| [CommonparamsubdirDeletePathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#headerparametersmap) | headerParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -167,7 +167,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([CommonparamsubdirDeleteHeaderParametersCommonparamsubdirDeleteHeaderParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#commonparamsubdirdeleteheaderparameters9) headerParameters)
sets the optional property | +| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([CommonparamsubdirDeleteHeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | | [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([CommonparamsubdirDeletePathParametersCommonparamsubdirDeletePathParameters9](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#commonparamsubdirdeletepathparameters9) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([CommonparamsubdirDeletePathParametersPathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md index fa512457a86..785dc71d732 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -75,9 +75,9 @@ CommonparamsubdirGet.Get apiClient = new CommonparamsubdirGet.Get(apiConfigurati // Map validation -CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters = +CommonparamsubdirGetPathParameters.PathParametersMap pathParameters = CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( - new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters8() + new CommonparamsubdirGetPathParameters.PathParametersMapBuilder() .subDir("a") .build(), @@ -135,8 +135,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparameters9) | pathParameters | -| [CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparameters9) | queryParameters
optional | +| [CommonparamsubdirGetPathParameters.PathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#queryparametersmap) | queryParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -148,8 +148,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirGetPathParameters.@Nullable CommonparamsubdirGetPathParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparameters9) | pathParameters | -| [CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparameters9) | queryParameters | +| [CommonparamsubdirGetPathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -167,7 +167,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([CommonparamsubdirGetQueryParametersCommonparamsubdirGetQueryParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#commonparamsubdirgetqueryparameters9) queryParameters)
sets the optional property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([CommonparamsubdirGetQueryParametersQueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | | [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([CommonparamsubdirGetPathParametersCommonparamsubdirGetPathParameters9](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#commonparamsubdirgetpathparameters9) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([CommonparamsubdirGetPathParametersPathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md index 29b6709535d..40da672b35a 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -75,9 +75,9 @@ CommonparamsubdirPost.Post apiClient = new CommonparamsubdirPost.Post(apiConfigu // Map validation -CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters = +CommonparamsubdirPostPathParameters.PathParametersMap pathParameters = CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( - new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters8() + new CommonparamsubdirPostPathParameters.PathParametersMapBuilder() .subDir("a") .build(), @@ -135,8 +135,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparameters9) | pathParameters | -| [CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparameters9) | headerParameters
optional | +| [CommonparamsubdirPostPathParameters.PathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#headerparametersmap) | headerParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -148,8 +148,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [CommonparamsubdirPostPathParameters.@Nullable CommonparamsubdirPostPathParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparameters9) | pathParameters | -| [CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparameters9) | headerParameters | +| [CommonparamsubdirPostPathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#headerparametersmap) | headerParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -167,7 +167,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([CommonparamsubdirPostHeaderParametersCommonparamsubdirPostHeaderParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#commonparamsubdirpostheaderparameters9) headerParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([CommonparamsubdirPostHeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([CommonparamsubdirPostPathParametersCommonparamsubdirPostPathParameters9](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#commonparamsubdirpostpathparameters9) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([CommonparamsubdirPostPathParametersPathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md index dc557b64842..c13b25baebb 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1](#commonparamsubdirdeleteheaderparameters1)
schema class | -| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters8](#commonparamsubdirdeleteheaderparameters8)
builder for Map payloads | -| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters9](#commonparamsubdirdeleteheaderparameters9)
output class for Map payloads | -| sealed interface | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedVoid](#commonparamsubdirdeleteheaderparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedBoolean](#commonparamsubdirdeleteheaderparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedNumber](#commonparamsubdirdeleteheaderparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedString](#commonparamsubdirdeleteheaderparameters4boxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedList](#commonparamsubdirdeleteheaderparameters4boxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4BoxedMap](#commonparamsubdirdeleteheaderparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters4](#commonparamsubdirdeleteheaderparameters4)
schema class | +| static class | [CommonparamsubdirDeleteHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirDeleteHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirDeleteHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | ## CommonparamsubdirDeleteHeaderParameters1Boxed public sealed interface CommonparamsubdirDeleteHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteHeaderParameters1BoxedMap([CommonparamsubdirDeleteHeaderParameters9](#commonparamsubdirdeleteheaderparameters9) data)
Creates an instance, private visibility | +| CommonparamsubdirDeleteHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeleteHeaderParameters9](#commonparamsubdirdeleteheaderparameters9) | data()
validated payload | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirDeleteHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters9 validatedPayload = +CommonparamsubdirDeleteHeaderParameters.HeaderParametersMap validatedPayload = CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1.validate( - new CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters8() + new CommonparamsubdirDeleteHeaderParameters.HeaderParametersMapBuilder() .someHeader("a") .build(), @@ -87,18 +87,18 @@ CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters9 | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("someHeader", [Schema0.Schema01.class](../../../paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [CommonparamsubdirDeleteHeaderParameters4.class](#commonparamsubdirdeleteheaderparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeleteHeaderParameters9](#commonparamsubdirdeleteheaderparameters9) | validate([Map<?, ?>](#commonparamsubdirdeleteheaderparameters8) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirdeleteheaderparameters8) arg, SchemaConfiguration configuration) | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | [CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirDeleteHeaderParameters8 -public class CommonparamsubdirDeleteHeaderParameters8
+## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -106,16 +106,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteHeaderParameters8()
Creates a builder that contains an empty map | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [CommonparamsubdirDeleteHeaderParameters8](#commonparamsubdirdeleteheaderparameters8) | someHeader(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | someHeader(String value) | -## CommonparamsubdirDeleteHeaderParameters9 -public static class CommonparamsubdirDeleteHeaderParameters9
+## HeaderParametersMap +public static class HeaderParametersMap
extends FrozenMap A class to store validated Map payloads @@ -123,31 +123,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirDeleteHeaderParameters9](#commonparamsubdirdeleteheaderparameters9) | of([Map](#commonparamsubdirdeleteheaderparameters8) arg, SchemaConfiguration configuration) | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | someHeader()
[optional] | -## CommonparamsubdirDeleteHeaderParameters4Boxed -public sealed interface CommonparamsubdirDeleteHeaderParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[CommonparamsubdirDeleteHeaderParameters4BoxedVoid](#commonparamsubdirdeleteheaderparameters4boxedvoid), -[CommonparamsubdirDeleteHeaderParameters4BoxedBoolean](#commonparamsubdirdeleteheaderparameters4boxedboolean), -[CommonparamsubdirDeleteHeaderParameters4BoxedNumber](#commonparamsubdirdeleteheaderparameters4boxednumber), -[CommonparamsubdirDeleteHeaderParameters4BoxedString](#commonparamsubdirdeleteheaderparameters4boxedstring), -[CommonparamsubdirDeleteHeaderParameters4BoxedList](#commonparamsubdirdeleteheaderparameters4boxedlist), -[CommonparamsubdirDeleteHeaderParameters4BoxedMap](#commonparamsubdirdeleteheaderparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirDeleteHeaderParameters4BoxedVoid -public record CommonparamsubdirDeleteHeaderParameters4BoxedVoid
-implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteHeaderParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -155,16 +155,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteHeaderParameters4BoxedBoolean -public record CommonparamsubdirDeleteHeaderParameters4BoxedBoolean
-implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteHeaderParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteHeaderParameters4BoxedNumber -public record CommonparamsubdirDeleteHeaderParameters4BoxedNumber
-implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteHeaderParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteHeaderParameters4BoxedString -public record CommonparamsubdirDeleteHeaderParameters4BoxedString
-implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteHeaderParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteHeaderParameters4BoxedList -public record CommonparamsubdirDeleteHeaderParameters4BoxedList
-implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteHeaderParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteHeaderParameters4BoxedMap -public record CommonparamsubdirDeleteHeaderParameters4BoxedMap
-implements [CommonparamsubdirDeleteHeaderParameters4Boxed](#commonparamsubdirdeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeleteHeaderParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,8 +240,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeleteHeaderParameters4 -public static class CommonparamsubdirDeleteHeaderParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md index 2b290390151..167225d6daf 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1](#commonparamsubdirdeletepathparameters1)
schema class | -| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters8](#commonparamsubdirdeletepathparameters8)
builder for Map payloads | -| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9](#commonparamsubdirdeletepathparameters9)
output class for Map payloads | -| sealed interface | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedVoid](#commonparamsubdirdeletepathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedBoolean](#commonparamsubdirdeletepathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedNumber](#commonparamsubdirdeletepathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedString](#commonparamsubdirdeletepathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedList](#commonparamsubdirdeletepathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4BoxedMap](#commonparamsubdirdeletepathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters4](#commonparamsubdirdeletepathparameters4)
schema class | +| static class | [CommonparamsubdirDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | ## CommonparamsubdirDeletePathParameters1Boxed public sealed interface CommonparamsubdirDeletePathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParameters1BoxedMap([CommonparamsubdirDeletePathParameters9](#commonparamsubdirdeletepathparameters9) data)
Creates an instance, private visibility | +| CommonparamsubdirDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeletePathParameters9](#commonparamsubdirdeletepathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirDeletePathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 validatedPayload = +CommonparamsubdirDeletePathParameters.PathParametersMap validatedPayload = CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( - new CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters8() + new CommonparamsubdirDeletePathParameters.PathParametersMapBuilder() .subDir("c") .build(), @@ -88,18 +88,18 @@ CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 val | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [Schema1.Schema11.class](../../../paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md#schema11))
)
| | Set | required = Set.of(
    "subDir"
)
| -| Class | additionalProperties = [CommonparamsubdirDeletePathParameters4.class](#commonparamsubdirdeletepathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeletePathParameters9](#commonparamsubdirdeletepathparameters9) | validate([Map<?, ?>](#commonparamsubdirdeletepathparameters8) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirdeletepathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirDeletePathParameters10 -public class CommonparamsubdirDeletePathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## CommonparamsubdirDeletePathParameters8 -public class CommonparamsubdirDeletePathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,16 +123,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirDeletePathParameters10](#commonparamsubdirdeletepathparameters10) | subDir(String value) | -| [CommonparamsubdirDeletePathParameters10](#commonparamsubdirdeletepathparameters10) | subDir([Schema1.StringSchemaEnums1](../../../paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir([Schema1.StringSchemaEnums1](../../../paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | -## CommonparamsubdirDeletePathParameters9 -public static class CommonparamsubdirDeletePathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -140,31 +140,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirDeletePathParameters9](#commonparamsubdirdeletepathparameters9) | of([Map](#commonparamsubdirdeletepathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | subDir()
| -## CommonparamsubdirDeletePathParameters4Boxed -public sealed interface CommonparamsubdirDeletePathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[CommonparamsubdirDeletePathParameters4BoxedVoid](#commonparamsubdirdeletepathparameters4boxedvoid), -[CommonparamsubdirDeletePathParameters4BoxedBoolean](#commonparamsubdirdeletepathparameters4boxedboolean), -[CommonparamsubdirDeletePathParameters4BoxedNumber](#commonparamsubdirdeletepathparameters4boxednumber), -[CommonparamsubdirDeletePathParameters4BoxedString](#commonparamsubdirdeletepathparameters4boxedstring), -[CommonparamsubdirDeletePathParameters4BoxedList](#commonparamsubdirdeletepathparameters4boxedlist), -[CommonparamsubdirDeletePathParameters4BoxedMap](#commonparamsubdirdeletepathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirDeletePathParameters4BoxedVoid -public record CommonparamsubdirDeletePathParameters4BoxedVoid
-implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeletePathParameters4BoxedBoolean -public record CommonparamsubdirDeletePathParameters4BoxedBoolean
-implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeletePathParameters4BoxedNumber -public record CommonparamsubdirDeletePathParameters4BoxedNumber
-implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeletePathParameters4BoxedString -public record CommonparamsubdirDeletePathParameters4BoxedString
-implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeletePathParameters4BoxedList -public record CommonparamsubdirDeletePathParameters4BoxedList
-implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,16 +240,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeletePathParameters4BoxedMap -public record CommonparamsubdirDeletePathParameters4BoxedMap
-implements [CommonparamsubdirDeletePathParameters4Boxed](#commonparamsubdirdeletepathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirDeletePathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -257,8 +257,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirDeletePathParameters4 -public static class CommonparamsubdirDeletePathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md index 5401a5e9c1b..3d4e639751b 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1](#commonparamsubdirgetpathparameters1)
schema class | -| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters8](#commonparamsubdirgetpathparameters8)
builder for Map payloads | -| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9](#commonparamsubdirgetpathparameters9)
output class for Map payloads | -| sealed interface | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedVoid](#commonparamsubdirgetpathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedBoolean](#commonparamsubdirgetpathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedNumber](#commonparamsubdirgetpathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedString](#commonparamsubdirgetpathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedList](#commonparamsubdirgetpathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4BoxedMap](#commonparamsubdirgetpathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters4](#commonparamsubdirgetpathparameters4)
schema class | +| static class | [CommonparamsubdirGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | ## CommonparamsubdirGetPathParameters1Boxed public sealed interface CommonparamsubdirGetPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParameters1BoxedMap([CommonparamsubdirGetPathParameters9](#commonparamsubdirgetpathparameters9) data)
Creates an instance, private visibility | +| CommonparamsubdirGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetPathParameters9](#commonparamsubdirgetpathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirGetPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 validatedPayload = +CommonparamsubdirGetPathParameters.PathParametersMap validatedPayload = CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( - new CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters8() + new CommonparamsubdirGetPathParameters.PathParametersMapBuilder() .subDir("a") .build(), @@ -88,18 +88,18 @@ CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 validated | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [RouteParamSchema0.RouteParamSchema01.class](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#routeparamschema01))
)
| | Set | required = Set.of(
    "subDir"
)
| -| Class | additionalProperties = [CommonparamsubdirGetPathParameters4.class](#commonparamsubdirgetpathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetPathParameters9](#commonparamsubdirgetpathparameters9) | validate([Map<?, ?>](#commonparamsubdirgetpathparameters8) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirgetpathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirGetPathParameters10 -public class CommonparamsubdirGetPathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## CommonparamsubdirGetPathParameters8 -public class CommonparamsubdirGetPathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,16 +123,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetPathParameters10](#commonparamsubdirgetpathparameters10) | subDir(String value) | -| [CommonparamsubdirGetPathParameters10](#commonparamsubdirgetpathparameters10) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | -## CommonparamsubdirGetPathParameters9 -public static class CommonparamsubdirGetPathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -140,31 +140,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirGetPathParameters9](#commonparamsubdirgetpathparameters9) | of([Map](#commonparamsubdirgetpathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | subDir()
| -## CommonparamsubdirGetPathParameters4Boxed -public sealed interface CommonparamsubdirGetPathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[CommonparamsubdirGetPathParameters4BoxedVoid](#commonparamsubdirgetpathparameters4boxedvoid), -[CommonparamsubdirGetPathParameters4BoxedBoolean](#commonparamsubdirgetpathparameters4boxedboolean), -[CommonparamsubdirGetPathParameters4BoxedNumber](#commonparamsubdirgetpathparameters4boxednumber), -[CommonparamsubdirGetPathParameters4BoxedString](#commonparamsubdirgetpathparameters4boxedstring), -[CommonparamsubdirGetPathParameters4BoxedList](#commonparamsubdirgetpathparameters4boxedlist), -[CommonparamsubdirGetPathParameters4BoxedMap](#commonparamsubdirgetpathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirGetPathParameters4BoxedVoid -public record CommonparamsubdirGetPathParameters4BoxedVoid
-implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetPathParameters4BoxedBoolean -public record CommonparamsubdirGetPathParameters4BoxedBoolean
-implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetPathParameters4BoxedNumber -public record CommonparamsubdirGetPathParameters4BoxedNumber
-implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetPathParameters4BoxedString -public record CommonparamsubdirGetPathParameters4BoxedString
-implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetPathParameters4BoxedList -public record CommonparamsubdirGetPathParameters4BoxedList
-implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,16 +240,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetPathParameters4BoxedMap -public record CommonparamsubdirGetPathParameters4BoxedMap
-implements [CommonparamsubdirGetPathParameters4Boxed](#commonparamsubdirgetpathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -257,8 +257,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetPathParameters4 -public static class CommonparamsubdirGetPathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md index 15b7bd3a42d..c2e2c4ecda1 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1](#commonparamsubdirgetqueryparameters1)
schema class | -| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters8](#commonparamsubdirgetqueryparameters8)
builder for Map payloads | -| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters9](#commonparamsubdirgetqueryparameters9)
output class for Map payloads | -| sealed interface | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedVoid](#commonparamsubdirgetqueryparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedBoolean](#commonparamsubdirgetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedNumber](#commonparamsubdirgetqueryparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedString](#commonparamsubdirgetqueryparameters4boxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedList](#commonparamsubdirgetqueryparameters4boxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4BoxedMap](#commonparamsubdirgetqueryparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters4](#commonparamsubdirgetqueryparameters4)
schema class | +| static class | [CommonparamsubdirGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## CommonparamsubdirGetQueryParameters1Boxed public sealed interface CommonparamsubdirGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetQueryParameters1BoxedMap([CommonparamsubdirGetQueryParameters9](#commonparamsubdirgetqueryparameters9) data)
Creates an instance, private visibility | +| CommonparamsubdirGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetQueryParameters9](#commonparamsubdirgetqueryparameters9) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters9 validatedPayload = +CommonparamsubdirGetQueryParameters.QueryParametersMap validatedPayload = CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1.validate( - new CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters8() + new CommonparamsubdirGetQueryParameters.QueryParametersMapBuilder() .searchStr("a") .build(), @@ -87,18 +87,18 @@ CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters9 validat | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("searchStr", [Schema0.Schema01.class](../../../paths/commonparamsubdir/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [CommonparamsubdirGetQueryParameters4.class](#commonparamsubdirgetqueryparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirGetQueryParameters9](#commonparamsubdirgetqueryparameters9) | validate([Map<?, ?>](#commonparamsubdirgetqueryparameters8) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirgetqueryparameters8) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirGetQueryParameters8 -public class CommonparamsubdirGetQueryParameters8
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -106,16 +106,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetQueryParameters8()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [CommonparamsubdirGetQueryParameters8](#commonparamsubdirgetqueryparameters8) | searchStr(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | searchStr(String value) | -## CommonparamsubdirGetQueryParameters9 -public static class CommonparamsubdirGetQueryParameters9
+## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -123,31 +123,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirGetQueryParameters9](#commonparamsubdirgetqueryparameters9) | of([Map](#commonparamsubdirgetqueryparameters8) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | searchStr()
[optional] | -## CommonparamsubdirGetQueryParameters4Boxed -public sealed interface CommonparamsubdirGetQueryParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[CommonparamsubdirGetQueryParameters4BoxedVoid](#commonparamsubdirgetqueryparameters4boxedvoid), -[CommonparamsubdirGetQueryParameters4BoxedBoolean](#commonparamsubdirgetqueryparameters4boxedboolean), -[CommonparamsubdirGetQueryParameters4BoxedNumber](#commonparamsubdirgetqueryparameters4boxednumber), -[CommonparamsubdirGetQueryParameters4BoxedString](#commonparamsubdirgetqueryparameters4boxedstring), -[CommonparamsubdirGetQueryParameters4BoxedList](#commonparamsubdirgetqueryparameters4boxedlist), -[CommonparamsubdirGetQueryParameters4BoxedMap](#commonparamsubdirgetqueryparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirGetQueryParameters4BoxedVoid -public record CommonparamsubdirGetQueryParameters4BoxedVoid
-implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -155,16 +155,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetQueryParameters4BoxedBoolean -public record CommonparamsubdirGetQueryParameters4BoxedBoolean
-implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetQueryParameters4BoxedNumber -public record CommonparamsubdirGetQueryParameters4BoxedNumber
-implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetQueryParameters4BoxedString -public record CommonparamsubdirGetQueryParameters4BoxedString
-implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetQueryParameters4BoxedList -public record CommonparamsubdirGetQueryParameters4BoxedList
-implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetQueryParameters4BoxedMap -public record CommonparamsubdirGetQueryParameters4BoxedMap
-implements [CommonparamsubdirGetQueryParameters4Boxed](#commonparamsubdirgetqueryparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,8 +240,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirGetQueryParameters4 -public static class CommonparamsubdirGetQueryParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md index 53d98a3dcc1..cc7b482a2f2 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1](#commonparamsubdirpostheaderparameters1)
schema class | -| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters8](#commonparamsubdirpostheaderparameters8)
builder for Map payloads | -| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters9](#commonparamsubdirpostheaderparameters9)
output class for Map payloads | -| sealed interface | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedVoid](#commonparamsubdirpostheaderparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedBoolean](#commonparamsubdirpostheaderparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedNumber](#commonparamsubdirpostheaderparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedString](#commonparamsubdirpostheaderparameters4boxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedList](#commonparamsubdirpostheaderparameters4boxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4BoxedMap](#commonparamsubdirpostheaderparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters4](#commonparamsubdirpostheaderparameters4)
schema class | +| static class | [CommonparamsubdirPostHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirPostHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirPostHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | ## CommonparamsubdirPostHeaderParameters1Boxed public sealed interface CommonparamsubdirPostHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostHeaderParameters1BoxedMap([CommonparamsubdirPostHeaderParameters9](#commonparamsubdirpostheaderparameters9) data)
Creates an instance, private visibility | +| CommonparamsubdirPostHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostHeaderParameters9](#commonparamsubdirpostheaderparameters9) | data()
validated payload | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirPostHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters9 validatedPayload = +CommonparamsubdirPostHeaderParameters.HeaderParametersMap validatedPayload = CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1.validate( - new CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters8() + new CommonparamsubdirPostHeaderParameters.HeaderParametersMapBuilder() .someHeader("a") .build(), @@ -87,18 +87,18 @@ CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters9 val | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("someHeader", [Schema0.Schema01.class](../../../paths/commonparamsubdir/post/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [CommonparamsubdirPostHeaderParameters4.class](#commonparamsubdirpostheaderparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostHeaderParameters9](#commonparamsubdirpostheaderparameters9) | validate([Map<?, ?>](#commonparamsubdirpostheaderparameters8) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirpostheaderparameters8) arg, SchemaConfiguration configuration) | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | [CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirPostHeaderParameters8 -public class CommonparamsubdirPostHeaderParameters8
+## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -106,16 +106,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostHeaderParameters8()
Creates a builder that contains an empty map | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [CommonparamsubdirPostHeaderParameters8](#commonparamsubdirpostheaderparameters8) | someHeader(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | someHeader(String value) | -## CommonparamsubdirPostHeaderParameters9 -public static class CommonparamsubdirPostHeaderParameters9
+## HeaderParametersMap +public static class HeaderParametersMap
extends FrozenMap A class to store validated Map payloads @@ -123,31 +123,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirPostHeaderParameters9](#commonparamsubdirpostheaderparameters9) | of([Map](#commonparamsubdirpostheaderparameters8) arg, SchemaConfiguration configuration) | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | someHeader()
[optional] | -## CommonparamsubdirPostHeaderParameters4Boxed -public sealed interface CommonparamsubdirPostHeaderParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[CommonparamsubdirPostHeaderParameters4BoxedVoid](#commonparamsubdirpostheaderparameters4boxedvoid), -[CommonparamsubdirPostHeaderParameters4BoxedBoolean](#commonparamsubdirpostheaderparameters4boxedboolean), -[CommonparamsubdirPostHeaderParameters4BoxedNumber](#commonparamsubdirpostheaderparameters4boxednumber), -[CommonparamsubdirPostHeaderParameters4BoxedString](#commonparamsubdirpostheaderparameters4boxedstring), -[CommonparamsubdirPostHeaderParameters4BoxedList](#commonparamsubdirpostheaderparameters4boxedlist), -[CommonparamsubdirPostHeaderParameters4BoxedMap](#commonparamsubdirpostheaderparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirPostHeaderParameters4BoxedVoid -public record CommonparamsubdirPostHeaderParameters4BoxedVoid
-implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostHeaderParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -155,16 +155,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostHeaderParameters4BoxedBoolean -public record CommonparamsubdirPostHeaderParameters4BoxedBoolean
-implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostHeaderParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostHeaderParameters4BoxedNumber -public record CommonparamsubdirPostHeaderParameters4BoxedNumber
-implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostHeaderParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostHeaderParameters4BoxedString -public record CommonparamsubdirPostHeaderParameters4BoxedString
-implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostHeaderParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostHeaderParameters4BoxedList -public record CommonparamsubdirPostHeaderParameters4BoxedList
-implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostHeaderParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostHeaderParameters4BoxedMap -public record CommonparamsubdirPostHeaderParameters4BoxedMap
-implements [CommonparamsubdirPostHeaderParameters4Boxed](#commonparamsubdirpostheaderparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostHeaderParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,8 +240,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostHeaderParameters4 -public static class CommonparamsubdirPostHeaderParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md index 917b27ec038..c07ad67929a 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed)
sealed interface for validated payloads | | record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1](#commonparamsubdirpostpathparameters1)
schema class | -| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters8](#commonparamsubdirpostpathparameters8)
builder for Map payloads | -| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9](#commonparamsubdirpostpathparameters9)
output class for Map payloads | -| sealed interface | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedVoid](#commonparamsubdirpostpathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedBoolean](#commonparamsubdirpostpathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedNumber](#commonparamsubdirpostpathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedString](#commonparamsubdirpostpathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedList](#commonparamsubdirpostpathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4BoxedMap](#commonparamsubdirpostpathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters4](#commonparamsubdirpostpathparameters4)
schema class | +| static class | [CommonparamsubdirPostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirPostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirPostPathParameters.AdditionalProperties](#additionalproperties)
schema class | ## CommonparamsubdirPostPathParameters1Boxed public sealed interface CommonparamsubdirPostPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParameters1BoxedMap([CommonparamsubdirPostPathParameters9](#commonparamsubdirpostpathparameters9) data)
Creates an instance, private visibility | +| CommonparamsubdirPostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostPathParameters9](#commonparamsubdirpostpathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## CommonparamsubdirPostPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 validatedPayload = +CommonparamsubdirPostPathParameters.PathParametersMap validatedPayload = CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( - new CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters8() + new CommonparamsubdirPostPathParameters.PathParametersMapBuilder() .subDir("a") .build(), @@ -88,18 +88,18 @@ CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 validat | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [RouteParamSchema0.RouteParamSchema01.class](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#routeparamschema01))
)
| | Set | required = Set.of(
    "subDir"
)
| -| Class | additionalProperties = [CommonparamsubdirPostPathParameters4.class](#commonparamsubdirpostpathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostPathParameters9](#commonparamsubdirpostpathparameters9) | validate([Map<?, ?>](#commonparamsubdirpostpathparameters8) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#commonparamsubdirpostpathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CommonparamsubdirPostPathParameters10 -public class CommonparamsubdirPostPathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## CommonparamsubdirPostPathParameters8 -public class CommonparamsubdirPostPathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,16 +123,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CommonparamsubdirPostPathParameters10](#commonparamsubdirpostpathparameters10) | subDir(String value) | -| [CommonparamsubdirPostPathParameters10](#commonparamsubdirpostpathparameters10) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | -## CommonparamsubdirPostPathParameters9 -public static class CommonparamsubdirPostPathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -140,31 +140,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CommonparamsubdirPostPathParameters9](#commonparamsubdirpostpathparameters9) | of([Map](#commonparamsubdirpostpathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | subDir()
| -## CommonparamsubdirPostPathParameters4Boxed -public sealed interface CommonparamsubdirPostPathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[CommonparamsubdirPostPathParameters4BoxedVoid](#commonparamsubdirpostpathparameters4boxedvoid), -[CommonparamsubdirPostPathParameters4BoxedBoolean](#commonparamsubdirpostpathparameters4boxedboolean), -[CommonparamsubdirPostPathParameters4BoxedNumber](#commonparamsubdirpostpathparameters4boxednumber), -[CommonparamsubdirPostPathParameters4BoxedString](#commonparamsubdirpostpathparameters4boxedstring), -[CommonparamsubdirPostPathParameters4BoxedList](#commonparamsubdirpostpathparameters4boxedlist), -[CommonparamsubdirPostPathParameters4BoxedMap](#commonparamsubdirpostpathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## CommonparamsubdirPostPathParameters4BoxedVoid -public record CommonparamsubdirPostPathParameters4BoxedVoid
-implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostPathParameters4BoxedBoolean -public record CommonparamsubdirPostPathParameters4BoxedBoolean
-implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostPathParameters4BoxedNumber -public record CommonparamsubdirPostPathParameters4BoxedNumber
-implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostPathParameters4BoxedString -public record CommonparamsubdirPostPathParameters4BoxedString
-implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostPathParameters4BoxedList -public record CommonparamsubdirPostPathParameters4BoxedList
-implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,16 +240,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostPathParameters4BoxedMap -public record CommonparamsubdirPostPathParameters4BoxedMap
-implements [CommonparamsubdirPostPathParameters4Boxed](#commonparamsubdirpostpathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| CommonparamsubdirPostPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -257,8 +257,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## CommonparamsubdirPostPathParameters4 -public static class CommonparamsubdirPostPathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md index 1878e4fe164..e092eb3ee58 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -89,9 +89,9 @@ FakeDelete.Delete apiClient = new FakeDelete.Delete(apiConfiguration, schemaConf // Map validation -FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters = +FakeDeleteHeaderParameters.HeaderParametersMap headerParameters = FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( - new FakeDeleteHeaderParameters.FakeDeleteHeaderParameters11() + new FakeDeleteHeaderParameters.HeaderParametersMapBuilder() .required_boolean_group("true") .boolean_group("true") @@ -101,9 +101,9 @@ FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters = ); // Map validation -FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters = +FakeDeleteQueryParameters.QueryParametersMap queryParameters = FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( - new FakeDeleteQueryParameters.FakeDeleteQueryParameters13() + new FakeDeleteQueryParameters.QueryParametersMapBuilder() .required_int64_group(1L) .required_string_group("a") @@ -168,8 +168,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparameters12) | headerParameters | -| [FakeDeleteQueryParameters.FakeDeleteQueryParameters14](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparameters14) | queryParameters | +| [FakeDeleteHeaderParameters.HeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) | headerParameters | +| [FakeDeleteQueryParameters.QueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -182,8 +182,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakeDeleteHeaderParameters.@Nullable FakeDeleteHeaderParameters12](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparameters12) | headerParameters | -| [FakeDeleteQueryParameters.@Nullable FakeDeleteQueryParameters14](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparameters14) | queryParameters | +| [FakeDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) | headerParameters | +| [FakeDeleteQueryParameters.@Nullable QueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -219,7 +219,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete00RequestBuilder](#delete00requestbuilder) | queryParameters([FakeDeleteQueryParametersFakeDeleteQueryParameters14](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparameters14) queryParameters)
sets the property | +| [Delete00RequestBuilder](#delete00requestbuilder) | queryParameters([FakeDeleteQueryParametersQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) queryParameters)
sets the property | ## Delete10RequestBuilder public static class Delete10RequestBuilder
@@ -234,7 +234,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete00RequestBuilder](#delete00requestbuilder) | headerParameters([FakeDeleteHeaderParametersFakeDeleteHeaderParameters12](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparameters12) headerParameters)
sets the property | +| [Delete00RequestBuilder](#delete00requestbuilder) | headerParameters([FakeDeleteHeaderParametersHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the property | ## DeleteRequestBuilder public static class DeleteRequestBuilder
@@ -249,7 +249,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete01RequestBuilder](#delete01requestbuilder) | headerParameters([FakeDeleteHeaderParametersFakeDeleteHeaderParameters12](../../paths/fake/delete/FakeDeleteHeaderParameters.md#fakedeleteheaderparameters12) headerParameters)
sets the property | -| [Delete10RequestBuilder](#delete10requestbuilder) | queryParameters([FakeDeleteQueryParametersFakeDeleteQueryParameters14](../../paths/fake/delete/FakeDeleteQueryParameters.md#fakedeletequeryparameters14) queryParameters)
sets the property | +| [Delete01RequestBuilder](#delete01requestbuilder) | headerParameters([FakeDeleteHeaderParametersHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the property | +| [Delete10RequestBuilder](#delete10requestbuilder) | queryParameters([FakeDeleteQueryParametersQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md index b9c2012398a..9d1b33b9799 100644 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -128,8 +128,8 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeGetRequestBody.@Nullable SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) | requestBody
optional | -| [FakeGetHeaderParameters.@Nullable FakeGetHeaderParameters10](../../paths/fake/get/FakeGetHeaderParameters.md#fakegetheaderparameters10) | headerParameters
optional | -| [FakeGetQueryParameters.@Nullable FakeGetQueryParameters12](../../paths/fake/get/FakeGetQueryParameters.md#fakegetqueryparameters12) | queryParameters
optional | +| [FakeGetHeaderParameters.@Nullable HeaderParametersMap](../../paths/fake/get/FakeGetHeaderParameters.md#headerparametersmap) | headerParameters
optional | +| [FakeGetQueryParameters.@Nullable QueryParametersMap](../../paths/fake/get/FakeGetQueryParameters.md#queryparametersmap) | queryParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -148,8 +148,8 @@ a builder for request inputs | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | | [GetRequestBuilder](#getrequestbuilder) | requestBody([FakeGetRequestBody.SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | headerParameters([FakeGetHeaderParametersFakeGetHeaderParameters10](../../paths/fake/get/FakeGetHeaderParameters.md#fakegetheaderparameters10) headerParameters)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeGetQueryParametersFakeGetQueryParameters12](../../paths/fake/get/FakeGetQueryParameters.md#fakegetqueryparameters12) queryParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | headerParameters([FakeGetHeaderParametersHeaderParametersMap](../../paths/fake/get/FakeGetHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeGetQueryParametersQueryParametersMap](../../paths/fake/get/FakeGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md index 1c04fb03f38..58e271594da 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed)
sealed interface for validated payloads | | record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1](#fakedeleteheaderparameters1)
schema class | -| static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters11](#fakedeleteheaderparameters11)
builder for Map payloads | -| static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12](#fakedeleteheaderparameters12)
output class for Map payloads | -| sealed interface | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed)
sealed interface for validated payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedVoid](#fakedeleteheaderparameters5boxedvoid)
boxed class to store validated null payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedBoolean](#fakedeleteheaderparameters5boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedNumber](#fakedeleteheaderparameters5boxednumber)
boxed class to store validated Number payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedString](#fakedeleteheaderparameters5boxedstring)
boxed class to store validated String payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedList](#fakedeleteheaderparameters5boxedlist)
boxed class to store validated List payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5BoxedMap](#fakedeleteheaderparameters5boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters5](#fakedeleteheaderparameters5)
schema class | +| static class | [FakeDeleteHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [FakeDeleteHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeDeleteHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakeDeleteHeaderParameters1Boxed public sealed interface FakeDeleteHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParameters1BoxedMap([FakeDeleteHeaderParameters12](#fakedeleteheaderparameters12) data)
Creates an instance, private visibility | +| FakeDeleteHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteHeaderParameters12](#fakedeleteheaderparameters12) | data()
validated payload | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeDeleteHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 validatedPayload = +FakeDeleteHeaderParameters.HeaderParametersMap validatedPayload = FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( - new FakeDeleteHeaderParameters.FakeDeleteHeaderParameters11() + new FakeDeleteHeaderParameters.HeaderParametersMapBuilder() .required_boolean_group("true") .boolean_group("true") @@ -90,18 +90,18 @@ FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("required_boolean_group", [Schema1.Schema11.class](../../../paths/fake/delete/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("boolean_group", [Schema4.Schema41.class](../../../paths/fake/delete/parameters/parameter4/Schema4.md#schema41))
)
| | Set | required = Set.of(
    "required_boolean_group"
)
| -| Class | additionalProperties = [FakeDeleteHeaderParameters5.class](#fakedeleteheaderparameters5) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteHeaderParameters12](#fakedeleteheaderparameters12) | validate([Map<?, ?>](#fakedeleteheaderparameters11) arg, SchemaConfiguration configuration) | -| [FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeleteheaderparameters11) arg, SchemaConfiguration configuration) | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeDeleteHeaderParameters13 -public class FakeDeleteHeaderParameters13
+## HeaderParametersMap0Builder +public class HeaderParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -109,17 +109,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParameters13(Map instance)
Creates a builder that contains the passed instance | +| HeaderParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [FakeDeleteHeaderParameters13](#fakedeleteheaderparameters13) | boolean_group(String value) | -| [FakeDeleteHeaderParameters13](#fakedeleteheaderparameters13) | boolean_group([Schema4.StringSchemaEnums4](../../../paths/fake/delete/parameters/parameter4/Schema4.md#stringschemaenums4) value) | +| [HeaderParametersMap0Builder](#headerparametersmap0builder) | boolean_group(String value) | +| [HeaderParametersMap0Builder](#headerparametersmap0builder) | boolean_group([Schema4.StringSchemaEnums4](../../../paths/fake/delete/parameters/parameter4/Schema4.md#stringschemaenums4) value) | -## FakeDeleteHeaderParameters11 -public class FakeDeleteHeaderParameters11
+## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -127,16 +127,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParameters11()
Creates a builder that contains an empty map | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteHeaderParameters13](#fakedeleteheaderparameters13) | required_boolean_group(String value) | -| [FakeDeleteHeaderParameters13](#fakedeleteheaderparameters13) | required_boolean_group([Schema1.StringSchemaEnums1](../../../paths/fake/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | +| [HeaderParametersMap0Builder](#headerparametersmap0builder) | required_boolean_group(String value) | +| [HeaderParametersMap0Builder](#headerparametersmap0builder) | required_boolean_group([Schema1.StringSchemaEnums1](../../../paths/fake/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | -## FakeDeleteHeaderParameters12 -public static class FakeDeleteHeaderParameters12
+## HeaderParametersMap +public static class HeaderParametersMap
extends FrozenMap A class to store validated Map payloads @@ -144,32 +144,32 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeDeleteHeaderParameters12](#fakedeleteheaderparameters12) | of([Map](#fakedeleteheaderparameters11) arg, SchemaConfiguration configuration) | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | required_boolean_group()
| | String | boolean_group()
[optional] | -## FakeDeleteHeaderParameters5Boxed -public sealed interface FakeDeleteHeaderParameters5Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakeDeleteHeaderParameters5BoxedVoid](#fakedeleteheaderparameters5boxedvoid), -[FakeDeleteHeaderParameters5BoxedBoolean](#fakedeleteheaderparameters5boxedboolean), -[FakeDeleteHeaderParameters5BoxedNumber](#fakedeleteheaderparameters5boxednumber), -[FakeDeleteHeaderParameters5BoxedString](#fakedeleteheaderparameters5boxedstring), -[FakeDeleteHeaderParameters5BoxedList](#fakedeleteheaderparameters5boxedlist), -[FakeDeleteHeaderParameters5BoxedMap](#fakedeleteheaderparameters5boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakeDeleteHeaderParameters5BoxedVoid -public record FakeDeleteHeaderParameters5BoxedVoid
-implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParameters5BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -177,16 +177,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteHeaderParameters5BoxedBoolean -public record FakeDeleteHeaderParameters5BoxedBoolean
-implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParameters5BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -194,16 +194,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteHeaderParameters5BoxedNumber -public record FakeDeleteHeaderParameters5BoxedNumber
-implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParameters5BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -211,16 +211,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteHeaderParameters5BoxedString -public record FakeDeleteHeaderParameters5BoxedString
-implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParameters5BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -228,16 +228,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteHeaderParameters5BoxedList -public record FakeDeleteHeaderParameters5BoxedList
-implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParameters5BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -245,16 +245,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteHeaderParameters5BoxedMap -public record FakeDeleteHeaderParameters5BoxedMap
-implements [FakeDeleteHeaderParameters5Boxed](#fakedeleteheaderparameters5boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteHeaderParameters5BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -262,8 +262,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteHeaderParameters5 -public static class FakeDeleteHeaderParameters5
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md index 6f42ebb5021..393e446a18a 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed)
sealed interface for validated payloads | | record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1](#fakedeletequeryparameters1)
schema class | -| static class | [FakeDeleteQueryParameters.FakeDeleteQueryParameters13](#fakedeletequeryparameters13)
builder for Map payloads | -| static class | [FakeDeleteQueryParameters.FakeDeleteQueryParameters14](#fakedeletequeryparameters14)
output class for Map payloads | -| sealed interface | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed)
sealed interface for validated payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedVoid](#fakedeletequeryparameters7boxedvoid)
boxed class to store validated null payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedBoolean](#fakedeletequeryparameters7boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedNumber](#fakedeletequeryparameters7boxednumber)
boxed class to store validated Number payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedString](#fakedeletequeryparameters7boxedstring)
boxed class to store validated String payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedList](#fakedeletequeryparameters7boxedlist)
boxed class to store validated List payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7BoxedMap](#fakedeletequeryparameters7boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeDeleteQueryParameters.FakeDeleteQueryParameters7](#fakedeletequeryparameters7)
schema class | +| static class | [FakeDeleteQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakeDeleteQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakeDeleteQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeDeleteQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakeDeleteQueryParameters1Boxed public sealed interface FakeDeleteQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters1BoxedMap([FakeDeleteQueryParameters14](#fakedeletequeryparameters14) data)
Creates an instance, private visibility | +| FakeDeleteQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteQueryParameters14](#fakedeletequeryparameters14) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeDeleteQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeDeleteQueryParameters.FakeDeleteQueryParameters14 validatedPayload = +FakeDeleteQueryParameters.QueryParametersMap validatedPayload = FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( - new FakeDeleteQueryParameters.FakeDeleteQueryParameters13() + new FakeDeleteQueryParameters.QueryParametersMapBuilder() .required_int64_group(1L) .required_string_group("a") @@ -94,18 +94,18 @@ FakeDeleteQueryParameters.FakeDeleteQueryParameters14 validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("required_string_group", [Schema0.Schema01.class](../../../paths/fake/delete/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("int64_group", [Schema5.Schema51.class](../../../paths/fake/delete/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("string_group", [Schema3.Schema31.class](../../../paths/fake/delete/parameters/parameter3/Schema3.md#schema31)),
    new PropertyEntry("required_int64_group", [Schema2.Schema21.class](../../../paths/fake/delete/parameters/parameter2/Schema2.md#schema21))
)
| | Set | required = Set.of(
    "required_int64_group",
    "required_string_group"
)
| -| Class | additionalProperties = [FakeDeleteQueryParameters7.class](#fakedeletequeryparameters7) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteQueryParameters14](#fakedeletequeryparameters14) | validate([Map<?, ?>](#fakedeletequeryparameters13) arg, SchemaConfiguration configuration) | -| [FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeletequeryparameters13) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeDeleteQueryParameters15 -public class FakeDeleteQueryParameters15
+## QueryParametersMap00Builder +public class QueryParametersMap00Builder
builder for `Map` A class that builds the Map input type @@ -113,20 +113,20 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters15(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap00Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | int64_group(int value) | -| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | int64_group(float value) | -| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | int64_group(long value) | -| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | int64_group(double value) | -| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | string_group(String value) | - -## FakeDeleteQueryParameters16 -public class FakeDeleteQueryParameters16
+| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(int value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(float value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(long value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(double value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | string_group(String value) | + +## QueryParametersMap01Builder +public class QueryParametersMap01Builder
builder for `Map` A class that builds the Map input type @@ -134,15 +134,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters16(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap01Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | required_string_group(String value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_string_group(String value) | -## FakeDeleteQueryParameters17 -public class FakeDeleteQueryParameters17
+## QueryParametersMap10Builder +public class QueryParametersMap10Builder
builder for `Map` A class that builds the Map input type @@ -150,18 +150,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters17(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap10Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | required_int64_group(int value) | -| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | required_int64_group(float value) | -| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | required_int64_group(long value) | -| [FakeDeleteQueryParameters15](#fakedeletequeryparameters15) | required_int64_group(double value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(int value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(float value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(long value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(double value) | -## FakeDeleteQueryParameters13 -public class FakeDeleteQueryParameters13
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -169,19 +169,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters13()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeDeleteQueryParameters16](#fakedeletequeryparameters16) | required_int64_group(int value) | -| [FakeDeleteQueryParameters16](#fakedeletequeryparameters16) | required_int64_group(float value) | -| [FakeDeleteQueryParameters16](#fakedeletequeryparameters16) | required_int64_group(long value) | -| [FakeDeleteQueryParameters16](#fakedeletequeryparameters16) | required_int64_group(double value) | -| [FakeDeleteQueryParameters17](#fakedeletequeryparameters17) | required_string_group(String value) | - -## FakeDeleteQueryParameters14 -public static class FakeDeleteQueryParameters14
+| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(int value) | +| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(float value) | +| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(long value) | +| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(double value) | +| [QueryParametersMap10Builder](#queryparametersmap10builder) | required_string_group(String value) | + +## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -189,34 +189,34 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeDeleteQueryParameters14](#fakedeletequeryparameters14) | of([Map](#fakedeletequeryparameters13) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | Number | required_int64_group()
| | String | required_string_group()
| | Number | int64_group()
[optional] | | String | string_group()
[optional] | -## FakeDeleteQueryParameters7Boxed -public sealed interface FakeDeleteQueryParameters7Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakeDeleteQueryParameters7BoxedVoid](#fakedeletequeryparameters7boxedvoid), -[FakeDeleteQueryParameters7BoxedBoolean](#fakedeletequeryparameters7boxedboolean), -[FakeDeleteQueryParameters7BoxedNumber](#fakedeletequeryparameters7boxednumber), -[FakeDeleteQueryParameters7BoxedString](#fakedeletequeryparameters7boxedstring), -[FakeDeleteQueryParameters7BoxedList](#fakedeletequeryparameters7boxedlist), -[FakeDeleteQueryParameters7BoxedMap](#fakedeletequeryparameters7boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakeDeleteQueryParameters7BoxedVoid -public record FakeDeleteQueryParameters7BoxedVoid
-implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters7BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -224,16 +224,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteQueryParameters7BoxedBoolean -public record FakeDeleteQueryParameters7BoxedBoolean
-implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters7BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -241,16 +241,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteQueryParameters7BoxedNumber -public record FakeDeleteQueryParameters7BoxedNumber
-implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters7BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteQueryParameters7BoxedString -public record FakeDeleteQueryParameters7BoxedString
-implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters7BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteQueryParameters7BoxedList -public record FakeDeleteQueryParameters7BoxedList
-implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters7BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,16 +292,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteQueryParameters7BoxedMap -public record FakeDeleteQueryParameters7BoxedMap
-implements [FakeDeleteQueryParameters7Boxed](#fakedeletequeryparameters7boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeDeleteQueryParameters7BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -309,8 +309,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeDeleteQueryParameters7 -public static class FakeDeleteQueryParameters7
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md index 12cea47d8a2..b5ccccfd2b8 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeGetHeaderParameters.FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed)
sealed interface for validated payloads | | record | [FakeGetHeaderParameters.FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeGetHeaderParameters.FakeGetHeaderParameters1](#fakegetheaderparameters1)
schema class | -| static class | [FakeGetHeaderParameters.FakeGetHeaderParameters9](#fakegetheaderparameters9)
builder for Map payloads | -| static class | [FakeGetHeaderParameters.FakeGetHeaderParameters10](#fakegetheaderparameters10)
output class for Map payloads | -| sealed interface | [FakeGetHeaderParameters.FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed)
sealed interface for validated payloads | -| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedVoid](#fakegetheaderparameters5boxedvoid)
boxed class to store validated null payloads | -| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedBoolean](#fakegetheaderparameters5boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedNumber](#fakegetheaderparameters5boxednumber)
boxed class to store validated Number payloads | -| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedString](#fakegetheaderparameters5boxedstring)
boxed class to store validated String payloads | -| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedList](#fakegetheaderparameters5boxedlist)
boxed class to store validated List payloads | -| record | [FakeGetHeaderParameters.FakeGetHeaderParameters5BoxedMap](#fakegetheaderparameters5boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeGetHeaderParameters.FakeGetHeaderParameters5](#fakegetheaderparameters5)
schema class | +| static class | [FakeGetHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [FakeGetHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [FakeGetHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeGetHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakeGetHeaderParameters1Boxed public sealed interface FakeGetHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetHeaderParameters1BoxedMap([FakeGetHeaderParameters10](#fakegetheaderparameters10) data)
Creates an instance, private visibility | +| FakeGetHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeGetHeaderParameters10](#fakegetheaderparameters10) | data()
validated payload | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeGetHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeGetHeaderParameters.FakeGetHeaderParameters10 validatedPayload = +FakeGetHeaderParameters.HeaderParametersMap validatedPayload = FakeGetHeaderParameters.FakeGetHeaderParameters1.validate( - new FakeGetHeaderParameters.FakeGetHeaderParameters9() + new FakeGetHeaderParameters.HeaderParametersMapBuilder() .enum_header_string("_abc") .enum_header_string_array( @@ -92,18 +92,18 @@ FakeGetHeaderParameters.FakeGetHeaderParameters10 validatedPayload = | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("enum_header_string", [Schema1.Schema11.class](../../../paths/fake/get/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("enum_header_string_array", [Schema0.Schema01.class](../../../paths/fake/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [FakeGetHeaderParameters5.class](#fakegetheaderparameters5) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeGetHeaderParameters10](#fakegetheaderparameters10) | validate([Map<?, ?>](#fakegetheaderparameters9) arg, SchemaConfiguration configuration) | -| [FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakegetheaderparameters9) arg, SchemaConfiguration configuration) | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeGetHeaderParameters9 -public class FakeGetHeaderParameters9
+## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -111,18 +111,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetHeaderParameters9()
Creates a builder that contains an empty map | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [FakeGetHeaderParameters9](#fakegetheaderparameters9) | enum_header_string(String value) | -| [FakeGetHeaderParameters9](#fakegetheaderparameters9) | enum_header_string([Schema1.StringSchemaEnums1](../../../paths/fake/get/parameters/parameter1/Schema1.md#stringschemaenums1) value) | -| [FakeGetHeaderParameters9](#fakegetheaderparameters9) | enum_header_string_array(List value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | enum_header_string(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | enum_header_string([Schema1.StringSchemaEnums1](../../../paths/fake/get/parameters/parameter1/Schema1.md#stringschemaenums1) value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | enum_header_string_array(List value) | -## FakeGetHeaderParameters10 -public static class FakeGetHeaderParameters10
+## HeaderParametersMap +public static class HeaderParametersMap
extends FrozenMap A class to store validated Map payloads @@ -130,32 +130,32 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeGetHeaderParameters10](#fakegetheaderparameters10) | of([Map](#fakegetheaderparameters9) arg, SchemaConfiguration configuration) | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | enum_header_string()
[optional] | | [Schema0.SchemaList0](../../../paths/fake/get/parameters/parameter0/Schema0.md#schemalist0) | enum_header_string_array()
[optional] | -## FakeGetHeaderParameters5Boxed -public sealed interface FakeGetHeaderParameters5Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakeGetHeaderParameters5BoxedVoid](#fakegetheaderparameters5boxedvoid), -[FakeGetHeaderParameters5BoxedBoolean](#fakegetheaderparameters5boxedboolean), -[FakeGetHeaderParameters5BoxedNumber](#fakegetheaderparameters5boxednumber), -[FakeGetHeaderParameters5BoxedString](#fakegetheaderparameters5boxedstring), -[FakeGetHeaderParameters5BoxedList](#fakegetheaderparameters5boxedlist), -[FakeGetHeaderParameters5BoxedMap](#fakegetheaderparameters5boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakeGetHeaderParameters5BoxedVoid -public record FakeGetHeaderParameters5BoxedVoid
-implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetHeaderParameters5BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -163,16 +163,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetHeaderParameters5BoxedBoolean -public record FakeGetHeaderParameters5BoxedBoolean
-implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetHeaderParameters5BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -180,16 +180,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetHeaderParameters5BoxedNumber -public record FakeGetHeaderParameters5BoxedNumber
-implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetHeaderParameters5BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -197,16 +197,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetHeaderParameters5BoxedString -public record FakeGetHeaderParameters5BoxedString
-implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetHeaderParameters5BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -214,16 +214,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetHeaderParameters5BoxedList -public record FakeGetHeaderParameters5BoxedList
-implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetHeaderParameters5BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -231,16 +231,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetHeaderParameters5BoxedMap -public record FakeGetHeaderParameters5BoxedMap
-implements [FakeGetHeaderParameters5Boxed](#fakegetheaderparameters5boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetHeaderParameters5BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -248,8 +248,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetHeaderParameters5 -public static class FakeGetHeaderParameters5
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md index 346086c500a..0c5e4591745 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeGetQueryParameters.FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakeGetQueryParameters.FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeGetQueryParameters.FakeGetQueryParameters1](#fakegetqueryparameters1)
schema class | -| static class | [FakeGetQueryParameters.FakeGetQueryParameters11](#fakegetqueryparameters11)
builder for Map payloads | -| static class | [FakeGetQueryParameters.FakeGetQueryParameters12](#fakegetqueryparameters12)
output class for Map payloads | -| sealed interface | [FakeGetQueryParameters.FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed)
sealed interface for validated payloads | -| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedVoid](#fakegetqueryparameters7boxedvoid)
boxed class to store validated null payloads | -| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedBoolean](#fakegetqueryparameters7boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedNumber](#fakegetqueryparameters7boxednumber)
boxed class to store validated Number payloads | -| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedString](#fakegetqueryparameters7boxedstring)
boxed class to store validated String payloads | -| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedList](#fakegetqueryparameters7boxedlist)
boxed class to store validated List payloads | -| record | [FakeGetQueryParameters.FakeGetQueryParameters7BoxedMap](#fakegetqueryparameters7boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeGetQueryParameters.FakeGetQueryParameters7](#fakegetqueryparameters7)
schema class | +| static class | [FakeGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakeGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakeGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakeGetQueryParameters1Boxed public sealed interface FakeGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetQueryParameters1BoxedMap([FakeGetQueryParameters12](#fakegetqueryparameters12) data)
Creates an instance, private visibility | +| FakeGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeGetQueryParameters12](#fakegetqueryparameters12) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeGetQueryParameters.FakeGetQueryParameters12 validatedPayload = +FakeGetQueryParameters.QueryParametersMap validatedPayload = FakeGetQueryParameters.FakeGetQueryParameters1.validate( - new FakeGetQueryParameters.FakeGetQueryParameters11() + new FakeGetQueryParameters.QueryParametersMapBuilder() .enum_query_double(3.14d) .enum_query_string("_abc") @@ -96,18 +96,18 @@ FakeGetQueryParameters.FakeGetQueryParameters12 validatedPayload = | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("enum_query_double", [Schema5.Schema51.class](../../../paths/fake/get/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("enum_query_string", [Schema3.Schema31.class](../../../paths/fake/get/parameters/parameter3/Schema3.md#schema31)),
    new PropertyEntry("enum_query_integer", [Schema4.Schema41.class](../../../paths/fake/get/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("enum_query_string_array", [Schema2.Schema21.class](../../../paths/fake/get/parameters/parameter2/Schema2.md#schema21))
)
| -| Class | additionalProperties = [FakeGetQueryParameters7.class](#fakegetqueryparameters7) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeGetQueryParameters12](#fakegetqueryparameters12) | validate([Map<?, ?>](#fakegetqueryparameters11) arg, SchemaConfiguration configuration) | -| [FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakegetqueryparameters11) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeGetQueryParameters11 -public class FakeGetQueryParameters11
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -115,30 +115,30 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetQueryParameters11()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double(int value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double(float value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double(long value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double(double value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double([Schema5.DoubleSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#doubleschemaenums5) value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_double([Schema5.FloatSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#floatschemaenums5) value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_string(String value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_string([Schema3.StringSchemaEnums3](../../../paths/fake/get/parameters/parameter3/Schema3.md#stringschemaenums3) value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer(int value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer(float value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer([Schema4.IntegerSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#integerschemaenums4) value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer([Schema4.LongSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#longschemaenums4) value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer([Schema4.FloatSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#floatschemaenums4) value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_integer([Schema4.DoubleSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#doubleschemaenums4) value) | -| [FakeGetQueryParameters11](#fakegetqueryparameters11) | enum_query_string_array(List value) | - -## FakeGetQueryParameters12 -public static class FakeGetQueryParameters12
+| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(int value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(float value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(long value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(double value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double([Schema5.DoubleSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#doubleschemaenums5) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double([Schema5.FloatSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#floatschemaenums5) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_string(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_string([Schema3.StringSchemaEnums3](../../../paths/fake/get/parameters/parameter3/Schema3.md#stringschemaenums3) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer(int value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer(float value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.IntegerSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#integerschemaenums4) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.LongSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#longschemaenums4) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.FloatSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#floatschemaenums4) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.DoubleSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#doubleschemaenums4) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_string_array(List value) | + +## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -146,34 +146,34 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeGetQueryParameters12](#fakegetqueryparameters12) | of([Map](#fakegetqueryparameters11) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | Number | enum_query_double()
[optional] | | String | enum_query_string()
[optional] | | Number | enum_query_integer()
[optional] | | [Schema2.SchemaList2](../../../paths/fake/get/parameters/parameter2/Schema2.md#schemalist2) | enum_query_string_array()
[optional] | -## FakeGetQueryParameters7Boxed -public sealed interface FakeGetQueryParameters7Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakeGetQueryParameters7BoxedVoid](#fakegetqueryparameters7boxedvoid), -[FakeGetQueryParameters7BoxedBoolean](#fakegetqueryparameters7boxedboolean), -[FakeGetQueryParameters7BoxedNumber](#fakegetqueryparameters7boxednumber), -[FakeGetQueryParameters7BoxedString](#fakegetqueryparameters7boxedstring), -[FakeGetQueryParameters7BoxedList](#fakegetqueryparameters7boxedlist), -[FakeGetQueryParameters7BoxedMap](#fakegetqueryparameters7boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakeGetQueryParameters7BoxedVoid -public record FakeGetQueryParameters7BoxedVoid
-implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetQueryParameters7BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -181,16 +181,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetQueryParameters7BoxedBoolean -public record FakeGetQueryParameters7BoxedBoolean
-implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetQueryParameters7BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -198,16 +198,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetQueryParameters7BoxedNumber -public record FakeGetQueryParameters7BoxedNumber
-implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetQueryParameters7BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -215,16 +215,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetQueryParameters7BoxedString -public record FakeGetQueryParameters7BoxedString
-implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetQueryParameters7BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -232,16 +232,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetQueryParameters7BoxedList -public record FakeGetQueryParameters7BoxedList
-implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetQueryParameters7BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -249,16 +249,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetQueryParameters7BoxedMap -public record FakeGetQueryParameters7BoxedMap
-implements [FakeGetQueryParameters7Boxed](#fakegetqueryparameters7boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeGetQueryParameters7BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -266,8 +266,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeGetQueryParameters7 -public static class FakeGetQueryParameters7
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md index 92f5fea3547..435e4648ca2 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -104,9 +104,9 @@ User1BoxedMap requestBodyPayload = FakebodywithqueryparamsPut.SealedRequestBody requestBody = new FakebodywithqueryparamsPut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters = +FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters = FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( - new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters8() + new FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder() .query("a") .build(), @@ -166,7 +166,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | -| [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparameters9) | queryParameters | +| [FakebodywithqueryparamsPutQueryParameters.QueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -179,7 +179,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | -| [FakebodywithqueryparamsPutQueryParameters.@Nullable FakebodywithqueryparamsPutQueryParameters9](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparameters9) | queryParameters | +| [FakebodywithqueryparamsPutQueryParameters.@Nullable QueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -213,7 +213,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersFakebodywithqueryparamsPutQueryParameters9](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparameters9) queryParameters)
sets the property | +| [Put00RequestBuilder](#put00requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | ## Put10RequestBuilder public static class Put10RequestBuilder
@@ -244,6 +244,6 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Put01RequestBuilder](#put01requestbuilder) | requestBody([FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | -| [Put10RequestBuilder](#put10requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersFakebodywithqueryparamsPutQueryParameters9](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#fakebodywithqueryparamsputqueryparameters9) queryParameters)
sets the property | +| [Put10RequestBuilder](#put10requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md index e3c8c67ad90..74a71c5e92a 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1](#fakebodywithqueryparamsputqueryparameters1)
schema class | -| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters8](#fakebodywithqueryparamsputqueryparameters8)
builder for Map payloads | -| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9](#fakebodywithqueryparamsputqueryparameters9)
output class for Map payloads | -| sealed interface | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed)
sealed interface for validated payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedVoid](#fakebodywithqueryparamsputqueryparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedBoolean](#fakebodywithqueryparamsputqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedNumber](#fakebodywithqueryparamsputqueryparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedString](#fakebodywithqueryparamsputqueryparameters4boxedstring)
boxed class to store validated String payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedList](#fakebodywithqueryparamsputqueryparameters4boxedlist)
boxed class to store validated List payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4BoxedMap](#fakebodywithqueryparamsputqueryparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters4](#fakebodywithqueryparamsputqueryparameters4)
schema class | +| static class | [FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakebodywithqueryparamsPutQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakebodywithqueryparamsPutQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakebodywithqueryparamsPutQueryParameters1Boxed public sealed interface FakebodywithqueryparamsPutQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParameters1BoxedMap([FakebodywithqueryparamsPutQueryParameters9](#fakebodywithqueryparamsputqueryparameters9) data)
Creates an instance, private visibility | +| FakebodywithqueryparamsPutQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakebodywithqueryparamsPutQueryParameters9](#fakebodywithqueryparamsputqueryparameters9) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakebodywithqueryparamsPutQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 validatedPayload = +FakebodywithqueryparamsPutQueryParameters.QueryParametersMap validatedPayload = FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( - new FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters8() + new FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder() .query("a") .build(), @@ -88,18 +88,18 @@ FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParamet | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("query", [Schema0.Schema01.class](../../../paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "query"
)
| -| Class | additionalProperties = [FakebodywithqueryparamsPutQueryParameters4.class](#fakebodywithqueryparamsputqueryparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakebodywithqueryparamsPutQueryParameters9](#fakebodywithqueryparamsputqueryparameters9) | validate([Map<?, ?>](#fakebodywithqueryparamsputqueryparameters8) arg, SchemaConfiguration configuration) | -| [FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakebodywithqueryparamsputqueryparameters8) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakebodywithqueryparamsPutQueryParameters10 -public class FakebodywithqueryparamsPutQueryParameters10
+## QueryParametersMap0Builder +public class QueryParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParameters10(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FakebodywithqueryparamsPutQueryParameters8 -public class FakebodywithqueryparamsPutQueryParameters8
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParameters8()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakebodywithqueryparamsPutQueryParameters10](#fakebodywithqueryparamsputqueryparameters10) | query(String value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | query(String value) | -## FakebodywithqueryparamsPutQueryParameters9 -public static class FakebodywithqueryparamsPutQueryParameters9
+## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakebodywithqueryparamsPutQueryParameters9](#fakebodywithqueryparamsputqueryparameters9) | of([Map](#fakebodywithqueryparamsputqueryparameters8) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | query()
| -## FakebodywithqueryparamsPutQueryParameters4Boxed -public sealed interface FakebodywithqueryparamsPutQueryParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakebodywithqueryparamsPutQueryParameters4BoxedVoid](#fakebodywithqueryparamsputqueryparameters4boxedvoid), -[FakebodywithqueryparamsPutQueryParameters4BoxedBoolean](#fakebodywithqueryparamsputqueryparameters4boxedboolean), -[FakebodywithqueryparamsPutQueryParameters4BoxedNumber](#fakebodywithqueryparamsputqueryparameters4boxednumber), -[FakebodywithqueryparamsPutQueryParameters4BoxedString](#fakebodywithqueryparamsputqueryparameters4boxedstring), -[FakebodywithqueryparamsPutQueryParameters4BoxedList](#fakebodywithqueryparamsputqueryparameters4boxedlist), -[FakebodywithqueryparamsPutQueryParameters4BoxedMap](#fakebodywithqueryparamsputqueryparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakebodywithqueryparamsPutQueryParameters4BoxedVoid -public record FakebodywithqueryparamsPutQueryParameters4BoxedVoid
-implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutQueryParameters4BoxedBoolean -public record FakebodywithqueryparamsPutQueryParameters4BoxedBoolean
-implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutQueryParameters4BoxedNumber -public record FakebodywithqueryparamsPutQueryParameters4BoxedNumber
-implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutQueryParameters4BoxedString -public record FakebodywithqueryparamsPutQueryParameters4BoxedString
-implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutQueryParameters4BoxedList -public record FakebodywithqueryparamsPutQueryParameters4BoxedList
-implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutQueryParameters4BoxedMap -public record FakebodywithqueryparamsPutQueryParameters4BoxedMap
-implements [FakebodywithqueryparamsPutQueryParameters4Boxed](#fakebodywithqueryparamsputqueryparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakebodywithqueryparamsPutQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakebodywithqueryparamsPutQueryParameters4 -public static class FakebodywithqueryparamsPutQueryParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md index e64b442662f..2ef0519b1d5 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -74,9 +74,9 @@ FakecasesensitiveparamsPut.Put apiClient = new FakecasesensitiveparamsPut.Put(ap // Map validation -FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters = +FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters = FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( - new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters10() + new FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder() .SomeVar("a") .someVar("a") @@ -138,7 +138,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparameters11) | queryParameters | +| [FakecasesensitiveparamsPutQueryParameters.QueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -150,7 +150,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakecasesensitiveparamsPutQueryParameters.@Nullable FakecasesensitiveparamsPutQueryParameters11](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparameters11) | queryParameters | +| [FakecasesensitiveparamsPutQueryParameters.@Nullable QueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FakecasesensitiveparamsPutQueryParametersFakecasesensitiveparamsPutQueryParameters11](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#fakecasesensitiveparamsputqueryparameters11) queryParameters)
sets the property | +| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FakecasesensitiveparamsPutQueryParametersQueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md index 78b24ed4bc0..0822ddca240 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1](#fakecasesensitiveparamsputqueryparameters1)
schema class | -| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters10](#fakecasesensitiveparamsputqueryparameters10)
builder for Map payloads | -| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11](#fakecasesensitiveparamsputqueryparameters11)
output class for Map payloads | -| sealed interface | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed)
sealed interface for validated payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedVoid](#fakecasesensitiveparamsputqueryparameters6boxedvoid)
boxed class to store validated null payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedBoolean](#fakecasesensitiveparamsputqueryparameters6boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedNumber](#fakecasesensitiveparamsputqueryparameters6boxednumber)
boxed class to store validated Number payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedString](#fakecasesensitiveparamsputqueryparameters6boxedstring)
boxed class to store validated String payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedList](#fakecasesensitiveparamsputqueryparameters6boxedlist)
boxed class to store validated List payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6BoxedMap](#fakecasesensitiveparamsputqueryparameters6boxedmap)
boxed class to store validated Map payloads | -| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters6](#fakecasesensitiveparamsputqueryparameters6)
schema class | +| static class | [FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakecasesensitiveparamsPutQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakecasesensitiveparamsPutQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakecasesensitiveparamsPutQueryParameters1Boxed public sealed interface FakecasesensitiveparamsPutQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters1BoxedMap([FakecasesensitiveparamsPutQueryParameters11](#fakecasesensitiveparamsputqueryparameters11) data)
Creates an instance, private visibility | +| FakecasesensitiveparamsPutQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParameters11](#fakecasesensitiveparamsputqueryparameters11) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakecasesensitiveparamsPutQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 validatedPayload = +FakecasesensitiveparamsPutQueryParameters.QueryParametersMap validatedPayload = FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( - new FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters10() + new FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder() .SomeVar("a") .someVar("a") @@ -92,18 +92,18 @@ FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParamet | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("someVar", [Schema0.Schema01.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("some_var", [Schema2.Schema21.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("SomeVar", [Schema1.Schema11.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md#schema11))
)
| | Set | required = Set.of(
    "SomeVar",
    "someVar",
    "some_var"
)
| -| Class | additionalProperties = [FakecasesensitiveparamsPutQueryParameters6.class](#fakecasesensitiveparamsputqueryparameters6) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParameters11](#fakecasesensitiveparamsputqueryparameters11) | validate([Map<?, ?>](#fakecasesensitiveparamsputqueryparameters10) arg, SchemaConfiguration configuration) | -| [FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakecasesensitiveparamsputqueryparameters10) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakecasesensitiveparamsPutQueryParameters12 -public class FakecasesensitiveparamsPutQueryParameters12
+## QueryParametersMap000Builder +public class QueryParametersMap000Builder
builder for `Map` A class that builds the Map input type @@ -111,15 +111,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters12(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FakecasesensitiveparamsPutQueryParameters13 -public class FakecasesensitiveparamsPutQueryParameters13
+## QueryParametersMap001Builder +public class QueryParametersMap001Builder
builder for `Map` A class that builds the Map input type @@ -127,15 +127,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters13(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParameters12](#fakecasesensitiveparamsputqueryparameters12) | some_var(String value) | +| [QueryParametersMap000Builder](#queryparametersmap000builder) | some_var(String value) | -## FakecasesensitiveparamsPutQueryParameters14 -public class FakecasesensitiveparamsPutQueryParameters14
+## QueryParametersMap010Builder +public class QueryParametersMap010Builder
builder for `Map` A class that builds the Map input type @@ -143,15 +143,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters14(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParameters12](#fakecasesensitiveparamsputqueryparameters12) | someVar(String value) | +| [QueryParametersMap000Builder](#queryparametersmap000builder) | someVar(String value) | -## FakecasesensitiveparamsPutQueryParameters15 -public class FakecasesensitiveparamsPutQueryParameters15
+## QueryParametersMap011Builder +public class QueryParametersMap011Builder
builder for `Map` A class that builds the Map input type @@ -159,16 +159,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters15(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParameters13](#fakecasesensitiveparamsputqueryparameters13) | someVar(String value) | -| [FakecasesensitiveparamsPutQueryParameters14](#fakecasesensitiveparamsputqueryparameters14) | some_var(String value) | +| [QueryParametersMap001Builder](#queryparametersmap001builder) | someVar(String value) | +| [QueryParametersMap010Builder](#queryparametersmap010builder) | some_var(String value) | -## FakecasesensitiveparamsPutQueryParameters16 -public class FakecasesensitiveparamsPutQueryParameters16
+## QueryParametersMap100Builder +public class QueryParametersMap100Builder
builder for `Map` A class that builds the Map input type @@ -176,15 +176,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters16(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParameters12](#fakecasesensitiveparamsputqueryparameters12) | SomeVar(String value) | +| [QueryParametersMap000Builder](#queryparametersmap000builder) | SomeVar(String value) | -## FakecasesensitiveparamsPutQueryParameters17 -public class FakecasesensitiveparamsPutQueryParameters17
+## QueryParametersMap101Builder +public class QueryParametersMap101Builder
builder for `Map` A class that builds the Map input type @@ -192,16 +192,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters17(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParameters13](#fakecasesensitiveparamsputqueryparameters13) | SomeVar(String value) | -| [FakecasesensitiveparamsPutQueryParameters16](#fakecasesensitiveparamsputqueryparameters16) | some_var(String value) | +| [QueryParametersMap001Builder](#queryparametersmap001builder) | SomeVar(String value) | +| [QueryParametersMap100Builder](#queryparametersmap100builder) | some_var(String value) | -## FakecasesensitiveparamsPutQueryParameters18 -public class FakecasesensitiveparamsPutQueryParameters18
+## QueryParametersMap110Builder +public class QueryParametersMap110Builder
builder for `Map` A class that builds the Map input type @@ -209,16 +209,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters18(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParameters14](#fakecasesensitiveparamsputqueryparameters14) | SomeVar(String value) | -| [FakecasesensitiveparamsPutQueryParameters16](#fakecasesensitiveparamsputqueryparameters16) | someVar(String value) | +| [QueryParametersMap010Builder](#queryparametersmap010builder) | SomeVar(String value) | +| [QueryParametersMap100Builder](#queryparametersmap100builder) | someVar(String value) | -## FakecasesensitiveparamsPutQueryParameters10 -public class FakecasesensitiveparamsPutQueryParameters10
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -226,17 +226,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters10()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutQueryParameters15](#fakecasesensitiveparamsputqueryparameters15) | SomeVar(String value) | -| [FakecasesensitiveparamsPutQueryParameters17](#fakecasesensitiveparamsputqueryparameters17) | someVar(String value) | -| [FakecasesensitiveparamsPutQueryParameters18](#fakecasesensitiveparamsputqueryparameters18) | some_var(String value) | +| [QueryParametersMap011Builder](#queryparametersmap011builder) | SomeVar(String value) | +| [QueryParametersMap101Builder](#queryparametersmap101builder) | someVar(String value) | +| [QueryParametersMap110Builder](#queryparametersmap110builder) | some_var(String value) | -## FakecasesensitiveparamsPutQueryParameters11 -public static class FakecasesensitiveparamsPutQueryParameters11
+## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -244,33 +244,33 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakecasesensitiveparamsPutQueryParameters11](#fakecasesensitiveparamsputqueryparameters11) | of([Map](#fakecasesensitiveparamsputqueryparameters10) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | SomeVar()
| | String | someVar()
| | String | some_var()
| -## FakecasesensitiveparamsPutQueryParameters6Boxed -public sealed interface FakecasesensitiveparamsPutQueryParameters6Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakecasesensitiveparamsPutQueryParameters6BoxedVoid](#fakecasesensitiveparamsputqueryparameters6boxedvoid), -[FakecasesensitiveparamsPutQueryParameters6BoxedBoolean](#fakecasesensitiveparamsputqueryparameters6boxedboolean), -[FakecasesensitiveparamsPutQueryParameters6BoxedNumber](#fakecasesensitiveparamsputqueryparameters6boxednumber), -[FakecasesensitiveparamsPutQueryParameters6BoxedString](#fakecasesensitiveparamsputqueryparameters6boxedstring), -[FakecasesensitiveparamsPutQueryParameters6BoxedList](#fakecasesensitiveparamsputqueryparameters6boxedlist), -[FakecasesensitiveparamsPutQueryParameters6BoxedMap](#fakecasesensitiveparamsputqueryparameters6boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakecasesensitiveparamsPutQueryParameters6BoxedVoid -public record FakecasesensitiveparamsPutQueryParameters6BoxedVoid
-implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters6BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -278,16 +278,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutQueryParameters6BoxedBoolean -public record FakecasesensitiveparamsPutQueryParameters6BoxedBoolean
-implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters6BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -295,16 +295,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutQueryParameters6BoxedNumber -public record FakecasesensitiveparamsPutQueryParameters6BoxedNumber
-implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters6BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -312,16 +312,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutQueryParameters6BoxedString -public record FakecasesensitiveparamsPutQueryParameters6BoxedString
-implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters6BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -329,16 +329,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutQueryParameters6BoxedList -public record FakecasesensitiveparamsPutQueryParameters6BoxedList
-implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters6BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -346,16 +346,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutQueryParameters6BoxedMap -public record FakecasesensitiveparamsPutQueryParameters6BoxedMap
-implements [FakecasesensitiveparamsPutQueryParameters6Boxed](#fakecasesensitiveparamsputqueryparameters6boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakecasesensitiveparamsPutQueryParameters6BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -363,8 +363,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakecasesensitiveparamsPutQueryParameters6 -public static class FakecasesensitiveparamsPutQueryParameters6
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md index 76adc2d2271..92d55c7a719 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -75,9 +75,9 @@ FakedeletecoffeeidDelete.Delete apiClient = new FakedeletecoffeeidDelete.Delete( // Map validation -FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters = +FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters = FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( - new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters8() + new FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder() .id("a") .build(), @@ -138,7 +138,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparameters9) | pathParameters | +| [FakedeletecoffeeidDeletePathParameters.PathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -150,7 +150,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakedeletecoffeeidDeletePathParameters.@Nullable FakedeletecoffeeidDeletePathParameters9](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparameters9) | pathParameters | +| [FakedeletecoffeeidDeletePathParameters.@Nullable PathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([FakedeletecoffeeidDeletePathParametersFakedeletecoffeeidDeletePathParameters9](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#fakedeletecoffeeiddeletepathparameters9) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([FakedeletecoffeeidDeletePathParametersPathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md index 2197db5eaea..fbe77c0964a 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed)
sealed interface for validated payloads | | record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1](#fakedeletecoffeeiddeletepathparameters1)
schema class | -| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters8](#fakedeletecoffeeiddeletepathparameters8)
builder for Map payloads | -| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9](#fakedeletecoffeeiddeletepathparameters9)
output class for Map payloads | -| sealed interface | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed)
sealed interface for validated payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedVoid](#fakedeletecoffeeiddeletepathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedBoolean](#fakedeletecoffeeiddeletepathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedNumber](#fakedeletecoffeeiddeletepathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedString](#fakedeletecoffeeiddeletepathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedList](#fakedeletecoffeeiddeletepathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4BoxedMap](#fakedeletecoffeeiddeletepathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters4](#fakedeletecoffeeiddeletepathparameters4)
schema class | +| static class | [FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [FakedeletecoffeeidDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakedeletecoffeeidDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakedeletecoffeeidDeletePathParameters1Boxed public sealed interface FakedeletecoffeeidDeletePathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParameters1BoxedMap([FakedeletecoffeeidDeletePathParameters9](#fakedeletecoffeeiddeletepathparameters9) data)
Creates an instance, private visibility | +| FakedeletecoffeeidDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakedeletecoffeeidDeletePathParameters9](#fakedeletecoffeeiddeletepathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakedeletecoffeeidDeletePathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 validatedPayload = +FakedeletecoffeeidDeletePathParameters.PathParametersMap validatedPayload = FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( - new FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters8() + new FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder() .id("a") .build(), @@ -88,18 +88,18 @@ FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 v | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("id", [Schema0.Schema01.class](../../../paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "id"
)
| -| Class | additionalProperties = [FakedeletecoffeeidDeletePathParameters4.class](#fakedeletecoffeeiddeletepathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakedeletecoffeeidDeletePathParameters9](#fakedeletecoffeeiddeletepathparameters9) | validate([Map<?, ?>](#fakedeletecoffeeiddeletepathparameters8) arg, SchemaConfiguration configuration) | -| [FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakedeletecoffeeiddeletepathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakedeletecoffeeidDeletePathParameters10 -public class FakedeletecoffeeidDeletePathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FakedeletecoffeeidDeletePathParameters8 -public class FakedeletecoffeeidDeletePathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakedeletecoffeeidDeletePathParameters10](#fakedeletecoffeeiddeletepathparameters10) | id(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | id(String value) | -## FakedeletecoffeeidDeletePathParameters9 -public static class FakedeletecoffeeidDeletePathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakedeletecoffeeidDeletePathParameters9](#fakedeletecoffeeiddeletepathparameters9) | of([Map](#fakedeletecoffeeiddeletepathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | id()
| -## FakedeletecoffeeidDeletePathParameters4Boxed -public sealed interface FakedeletecoffeeidDeletePathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakedeletecoffeeidDeletePathParameters4BoxedVoid](#fakedeletecoffeeiddeletepathparameters4boxedvoid), -[FakedeletecoffeeidDeletePathParameters4BoxedBoolean](#fakedeletecoffeeiddeletepathparameters4boxedboolean), -[FakedeletecoffeeidDeletePathParameters4BoxedNumber](#fakedeletecoffeeiddeletepathparameters4boxednumber), -[FakedeletecoffeeidDeletePathParameters4BoxedString](#fakedeletecoffeeiddeletepathparameters4boxedstring), -[FakedeletecoffeeidDeletePathParameters4BoxedList](#fakedeletecoffeeiddeletepathparameters4boxedlist), -[FakedeletecoffeeidDeletePathParameters4BoxedMap](#fakedeletecoffeeiddeletepathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakedeletecoffeeidDeletePathParameters4BoxedVoid -public record FakedeletecoffeeidDeletePathParameters4BoxedVoid
-implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeletePathParameters4BoxedBoolean -public record FakedeletecoffeeidDeletePathParameters4BoxedBoolean
-implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeletePathParameters4BoxedNumber -public record FakedeletecoffeeidDeletePathParameters4BoxedNumber
-implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeletePathParameters4BoxedString -public record FakedeletecoffeeidDeletePathParameters4BoxedString
-implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeletePathParameters4BoxedList -public record FakedeletecoffeeidDeletePathParameters4BoxedList
-implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeletePathParameters4BoxedMap -public record FakedeletecoffeeidDeletePathParameters4BoxedMap
-implements [FakedeletecoffeeidDeletePathParameters4Boxed](#fakedeletecoffeeiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakedeletecoffeeidDeletePathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakedeletecoffeeidDeletePathParameters4 -public static class FakedeletecoffeeidDeletePathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md index 2ccf96b2089..a28cd91ef74 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -129,7 +129,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [FakeinlinecompositionPostQueryParameters.@Nullable FakeinlinecompositionPostQueryParameters10](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#fakeinlinecompositionpostqueryparameters10) | queryParameters
optional | +| [FakeinlinecompositionPostQueryParameters.@Nullable QueryParametersMap](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#queryparametersmap) | queryParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -148,7 +148,7 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeinlinecompositionPostRequestBody.SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | queryParameters([FakeinlinecompositionPostQueryParametersFakeinlinecompositionPostQueryParameters10](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#fakeinlinecompositionpostqueryparameters10) queryParameters)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | queryParameters([FakeinlinecompositionPostQueryParametersQueryParametersMap](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | | [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md index 8a9aff38ac4..958be9e102e 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1](#fakeinlinecompositionpostqueryparameters1)
schema class | -| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9)
builder for Map payloads | -| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters10](#fakeinlinecompositionpostqueryparameters10)
output class for Map payloads | -| sealed interface | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed)
sealed interface for validated payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedVoid](#fakeinlinecompositionpostqueryparameters5boxedvoid)
boxed class to store validated null payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedBoolean](#fakeinlinecompositionpostqueryparameters5boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedNumber](#fakeinlinecompositionpostqueryparameters5boxednumber)
boxed class to store validated Number payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedString](#fakeinlinecompositionpostqueryparameters5boxedstring)
boxed class to store validated String payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedList](#fakeinlinecompositionpostqueryparameters5boxedlist)
boxed class to store validated List payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5BoxedMap](#fakeinlinecompositionpostqueryparameters5boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters5](#fakeinlinecompositionpostqueryparameters5)
schema class | +| static class | [FakeinlinecompositionPostQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakeinlinecompositionPostQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeinlinecompositionPostQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakeinlinecompositionPostQueryParameters1Boxed public sealed interface FakeinlinecompositionPostQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostQueryParameters1BoxedMap([FakeinlinecompositionPostQueryParameters10](#fakeinlinecompositionpostqueryparameters10) data)
Creates an instance, private visibility | +| FakeinlinecompositionPostQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeinlinecompositionPostQueryParameters10](#fakeinlinecompositionpostqueryparameters10) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeinlinecompositionPostQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters10 validatedPayload = +FakeinlinecompositionPostQueryParameters.QueryParametersMap validatedPayload = FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1.validate( - new FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters9() + new FakeinlinecompositionPostQueryParameters.QueryParametersMapBuilder() .compositionInProperty( MapUtils.makeMap( ) @@ -89,18 +89,18 @@ FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameter | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("compositionAtRoot", [Schema0.Schema01.class](../../../paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("compositionInProperty", [Schema1.Schema11.class](../../../paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md#schema11))
)
| -| Class | additionalProperties = [FakeinlinecompositionPostQueryParameters5.class](#fakeinlinecompositionpostqueryparameters5) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeinlinecompositionPostQueryParameters10](#fakeinlinecompositionpostqueryparameters10) | validate([Map<?, ?>](#fakeinlinecompositionpostqueryparameters9) arg, SchemaConfiguration configuration) | -| [FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeinlinecompositionpostqueryparameters9) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeinlinecompositionPostQueryParameters9 -public class FakeinlinecompositionPostQueryParameters9
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -108,25 +108,25 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostQueryParameters9()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(Void value) | -| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(boolean value) | -| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(String value) | -| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(int value) | -| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(float value) | -| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(long value) | -| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(double value) | -| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(List value) | -| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionAtRoot(Map value) | -| [FakeinlinecompositionPostQueryParameters9](#fakeinlinecompositionpostqueryparameters9) | compositionInProperty(Map value) | - -## FakeinlinecompositionPostQueryParameters10 -public static class FakeinlinecompositionPostQueryParameters10
+| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(Void value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(boolean value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(int value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(float value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(long value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(double value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(List value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(Map value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionInProperty(Map value) | + +## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -134,32 +134,32 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeinlinecompositionPostQueryParameters10](#fakeinlinecompositionpostqueryparameters10) | of([Map](#fakeinlinecompositionpostqueryparameters9) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | compositionAtRoot()
[optional] | | [Schema1.SchemaMap1](../../../paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md#schemamap1) | compositionInProperty()
[optional] | -## FakeinlinecompositionPostQueryParameters5Boxed -public sealed interface FakeinlinecompositionPostQueryParameters5Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakeinlinecompositionPostQueryParameters5BoxedVoid](#fakeinlinecompositionpostqueryparameters5boxedvoid), -[FakeinlinecompositionPostQueryParameters5BoxedBoolean](#fakeinlinecompositionpostqueryparameters5boxedboolean), -[FakeinlinecompositionPostQueryParameters5BoxedNumber](#fakeinlinecompositionpostqueryparameters5boxednumber), -[FakeinlinecompositionPostQueryParameters5BoxedString](#fakeinlinecompositionpostqueryparameters5boxedstring), -[FakeinlinecompositionPostQueryParameters5BoxedList](#fakeinlinecompositionpostqueryparameters5boxedlist), -[FakeinlinecompositionPostQueryParameters5BoxedMap](#fakeinlinecompositionpostqueryparameters5boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakeinlinecompositionPostQueryParameters5BoxedVoid -public record FakeinlinecompositionPostQueryParameters5BoxedVoid
-implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostQueryParameters5BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -167,16 +167,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostQueryParameters5BoxedBoolean -public record FakeinlinecompositionPostQueryParameters5BoxedBoolean
-implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostQueryParameters5BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -184,16 +184,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostQueryParameters5BoxedNumber -public record FakeinlinecompositionPostQueryParameters5BoxedNumber
-implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostQueryParameters5BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -201,16 +201,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostQueryParameters5BoxedString -public record FakeinlinecompositionPostQueryParameters5BoxedString
-implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostQueryParameters5BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -218,16 +218,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostQueryParameters5BoxedList -public record FakeinlinecompositionPostQueryParameters5BoxedList
-implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostQueryParameters5BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -235,16 +235,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostQueryParameters5BoxedMap -public record FakeinlinecompositionPostQueryParameters5BoxedMap
-implements [FakeinlinecompositionPostQueryParameters5Boxed](#fakeinlinecompositionpostqueryparameters5boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeinlinecompositionPostQueryParameters5BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -252,8 +252,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeinlinecompositionPostQueryParameters5 -public static class FakeinlinecompositionPostQueryParameters5
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md index fe021d00782..0c831e06c23 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -120,7 +120,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakeobjinqueryGetQueryParameters.@Nullable FakeobjinqueryGetQueryParameters9](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#fakeobjinquerygetqueryparameters9) | queryParameters
optional | +| [FakeobjinqueryGetQueryParameters.@Nullable QueryParametersMap](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#queryparametersmap) | queryParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -138,7 +138,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeobjinqueryGetQueryParametersFakeobjinqueryGetQueryParameters9](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#fakeobjinquerygetqueryparameters9) queryParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeobjinqueryGetQueryParametersQueryParametersMap](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md index c8b92e6f868..f5b52436710 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1](#fakeobjinquerygetqueryparameters1)
schema class | -| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters8](#fakeobjinquerygetqueryparameters8)
builder for Map payloads | -| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters9](#fakeobjinquerygetqueryparameters9)
output class for Map payloads | -| sealed interface | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed)
sealed interface for validated payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedVoid](#fakeobjinquerygetqueryparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedBoolean](#fakeobjinquerygetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedNumber](#fakeobjinquerygetqueryparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedString](#fakeobjinquerygetqueryparameters4boxedstring)
boxed class to store validated String payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedList](#fakeobjinquerygetqueryparameters4boxedlist)
boxed class to store validated List payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4BoxedMap](#fakeobjinquerygetqueryparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters4](#fakeobjinquerygetqueryparameters4)
schema class | +| static class | [FakeobjinqueryGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakeobjinqueryGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeobjinqueryGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakeobjinqueryGetQueryParameters1Boxed public sealed interface FakeobjinqueryGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetQueryParameters1BoxedMap([FakeobjinqueryGetQueryParameters9](#fakeobjinquerygetqueryparameters9) data)
Creates an instance, private visibility | +| FakeobjinqueryGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeobjinqueryGetQueryParameters9](#fakeobjinquerygetqueryparameters9) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakeobjinqueryGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters9 validatedPayload = +FakeobjinqueryGetQueryParameters.QueryParametersMap validatedPayload = FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1.validate( - new FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters8() + new FakeobjinqueryGetQueryParameters.QueryParametersMapBuilder() .mapBean( MapUtils.makeMap( new AbstractMap.SimpleEntry( @@ -93,18 +93,18 @@ FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters9 validatedPayl | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("mapBean", [Schema0.Schema01.class](../../../paths/fakeobjinquery/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [FakeobjinqueryGetQueryParameters4.class](#fakeobjinquerygetqueryparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakeobjinqueryGetQueryParameters9](#fakeobjinquerygetqueryparameters9) | validate([Map<?, ?>](#fakeobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | -| [FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakeobjinqueryGetQueryParameters8 -public class FakeobjinqueryGetQueryParameters8
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map>` A class that builds the Map input type @@ -112,16 +112,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetQueryParameters8()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map> | build()
Returns map input that should be used with Schema.validate | -| [FakeobjinqueryGetQueryParameters8](#fakeobjinquerygetqueryparameters8) | mapBean(Map value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | mapBean(Map value) | -## FakeobjinqueryGetQueryParameters9 -public static class FakeobjinqueryGetQueryParameters9
+## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -129,31 +129,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakeobjinqueryGetQueryParameters9](#fakeobjinquerygetqueryparameters9) | of([Map>](#fakeobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [Schema0.SchemaMap0](../../../paths/fakeobjinquery/get/parameters/parameter0/Schema0.md#schemamap0) | mapBean()
[optional] | -## FakeobjinqueryGetQueryParameters4Boxed -public sealed interface FakeobjinqueryGetQueryParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakeobjinqueryGetQueryParameters4BoxedVoid](#fakeobjinquerygetqueryparameters4boxedvoid), -[FakeobjinqueryGetQueryParameters4BoxedBoolean](#fakeobjinquerygetqueryparameters4boxedboolean), -[FakeobjinqueryGetQueryParameters4BoxedNumber](#fakeobjinquerygetqueryparameters4boxednumber), -[FakeobjinqueryGetQueryParameters4BoxedString](#fakeobjinquerygetqueryparameters4boxedstring), -[FakeobjinqueryGetQueryParameters4BoxedList](#fakeobjinquerygetqueryparameters4boxedlist), -[FakeobjinqueryGetQueryParameters4BoxedMap](#fakeobjinquerygetqueryparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakeobjinqueryGetQueryParameters4BoxedVoid -public record FakeobjinqueryGetQueryParameters4BoxedVoid
-implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -161,16 +161,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetQueryParameters4BoxedBoolean -public record FakeobjinqueryGetQueryParameters4BoxedBoolean
-implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -178,16 +178,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetQueryParameters4BoxedNumber -public record FakeobjinqueryGetQueryParameters4BoxedNumber
-implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -195,16 +195,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetQueryParameters4BoxedString -public record FakeobjinqueryGetQueryParameters4BoxedString
-implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -212,16 +212,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetQueryParameters4BoxedList -public record FakeobjinqueryGetQueryParameters4BoxedList
-implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -229,16 +229,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetQueryParameters4BoxedMap -public record FakeobjinqueryGetQueryParameters4BoxedMap
-implements [FakeobjinqueryGetQueryParameters4Boxed](#fakeobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakeobjinqueryGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -246,8 +246,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakeobjinqueryGetQueryParameters4 -public static class FakeobjinqueryGetQueryParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md index 6681f3cf69e..9300b1a2e23 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -78,9 +78,9 @@ Fakeparametercollisions1ababselfabPost.Post apiClient = new Fakeparametercollisi // Map validation -Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters = +Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters = Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( - new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters12() + new Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder() .positive1("a") .aHyphenMinusB("a") @@ -148,11 +148,11 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparameters13) | pathParameters | +| [Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#pathparametersmap) | pathParameters | | [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParameters12](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparameters12) | headerParameters
optional | -| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparameters13) | queryParameters
optional | -| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparameters13) | cookieParameters
optional | +| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#headerparametersmap) | headerParameters
optional | +| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#queryparametersmap) | queryParameters
optional | +| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#cookieparametersmap) | cookieParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -164,11 +164,11 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters.@Nullable Fakeparametercollisions1ababselfabPostPathParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparameters13) | pathParameters | +| [Fakeparametercollisions1ababselfabPostPathParameters.@Nullable PathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#pathparametersmap) | pathParameters | | [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody | -| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParameters12](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparameters12) | headerParameters | -| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparameters13) | queryParameters | -| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparameters13) | cookieParameters | +| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#headerparametersmap) | headerParameters | +| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#queryparametersmap) | queryParameters | +| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#cookieparametersmap) | cookieParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -187,9 +187,9 @@ a builder for request inputs | ----------------- | ---------------------- | | [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | | [Post0RequestBuilder](#post0requestbuilder) | requestBody([Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([Fakeparametercollisions1ababselfabPostHeaderParametersFakeparametercollisions1ababselfabPostHeaderParameters12](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#fakeparametercollisions1ababselfabpostheaderparameters12) headerParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | queryParameters([Fakeparametercollisions1ababselfabPostQueryParametersFakeparametercollisions1ababselfabPostQueryParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#fakeparametercollisions1ababselfabpostqueryparameters13) queryParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | cookieParameters([Fakeparametercollisions1ababselfabPostCookieParametersFakeparametercollisions1ababselfabPostCookieParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#fakeparametercollisions1ababselfabpostcookieparameters13) cookieParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([Fakeparametercollisions1ababselfabPostHeaderParametersHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | queryParameters([Fakeparametercollisions1ababselfabPostQueryParametersQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | cookieParameters([Fakeparametercollisions1ababselfabPostCookieParametersCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#cookieparametersmap) cookieParameters)
sets the optional property | | [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -206,6 +206,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([Fakeparametercollisions1ababselfabPostPathParametersFakeparametercollisions1ababselfabPostPathParameters13](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#fakeparametercollisions1ababselfabpostpathparameters13) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([Fakeparametercollisions1ababselfabPostPathParametersPathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md index 4f3864cc822..02b21681818 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed)
sealed interface for validated payloads | | record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1](#fakeparametercollisions1ababselfabpostcookieparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters13](#fakeparametercollisions1ababselfabpostcookieparameters13)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostcookieparameters8boxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostcookieparameters8boxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostcookieparameters8boxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedString](#fakeparametercollisions1ababselfabpostcookieparameters8boxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedList](#fakeparametercollisions1ababselfabpostcookieparameters8boxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters8boxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters8](#fakeparametercollisions1ababselfabpostcookieparameters8)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMapBuilder](#cookieparametersmapbuilder)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMap](#cookieparametersmap)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalProperties](#additionalproperties)
schema class | ## Fakeparametercollisions1ababselfabPostCookieParameters1Boxed public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap([Fakeparametercollisions1ababselfabPostCookieParameters13](#fakeparametercollisions1ababselfabpostcookieparameters13) data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap([CookieParametersMap](#cookieparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostCookieParameters13](#fakeparametercollisions1ababselfabpostcookieparameters13) | data()
validated payload | +| [CookieParametersMap](#cookieparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Fakeparametercollisions1ababselfabPostCookieParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters13 validatedPayload = +Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMap validatedPayload = Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1.validate( - new Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters12() + new Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMapBuilder() .positive1("a") .aB("a") @@ -95,18 +95,18 @@ Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1a | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema14.Schema141.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md#schema141)),
    new PropertyEntry("aB", [Schema15.Schema151.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md#schema151)),
    new PropertyEntry("Ab", [Schema16.Schema161.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md#schema161)),
    new PropertyEntry("A-B", [Schema18.Schema181.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md#schema181)),
    new PropertyEntry("self", [Schema17.Schema171.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md#schema171))
)
| -| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostCookieParameters8.class](#fakeparametercollisions1ababselfabpostcookieparameters8) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostCookieParameters13](#fakeparametercollisions1ababselfabpostcookieparameters13) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostcookieparameters12) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostcookieparameters12) arg, SchemaConfiguration configuration) | +| [CookieParametersMap](#cookieparametersmap) | validate([Map<?, ?>](#cookieparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap) | validateAndBox([Map<?, ?>](#cookieparametersmapbuilder) arg, SchemaConfiguration configuration) | | [Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Fakeparametercollisions1ababselfabPostCookieParameters12 -public class Fakeparametercollisions1ababselfabPostCookieParameters12
+## CookieParametersMapBuilder +public class CookieParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -114,20 +114,20 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParameters12()
Creates a builder that contains an empty map | +| CookieParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostCookieParameters12](#fakeparametercollisions1ababselfabpostcookieparameters12) | self(String value) | - -## Fakeparametercollisions1ababselfabPostCookieParameters13 -public static class Fakeparametercollisions1ababselfabPostCookieParameters13
+| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | positive1(String value) | +| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | aB(String value) | +| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | Ab(String value) | +| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | aHyphenMinusB(String value) | +| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | self(String value) | + +## CookieParametersMap +public static class CookieParametersMap
extends FrozenMap A class to store validated Map payloads @@ -135,34 +135,34 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Fakeparametercollisions1ababselfabPostCookieParameters13](#fakeparametercollisions1ababselfabpostcookieparameters13) | of([Map](#fakeparametercollisions1ababselfabpostcookieparameters12) arg, SchemaConfiguration configuration) | +| static [CookieParametersMap](#cookieparametersmap) | of([Map](#cookieparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | aB()
[optional] | | String | Ab()
[optional] | | String | self()
[optional] | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | -## Fakeparametercollisions1ababselfabPostCookieParameters8Boxed -public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters8Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostcookieparameters8boxedvoid), -[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostcookieparameters8boxedboolean), -[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostcookieparameters8boxednumber), -[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedString](#fakeparametercollisions1ababselfabpostcookieparameters8boxedstring), -[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedList](#fakeparametercollisions1ababselfabpostcookieparameters8boxedlist), -[Fakeparametercollisions1ababselfabPostCookieParameters8BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters8boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedVoid -public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedVoid
-implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -170,16 +170,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedBoolean -public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedBoolean
-implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -187,16 +187,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedNumber -public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedNumber
-implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -204,16 +204,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedString -public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedString
-implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -221,16 +221,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedList -public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedList
-implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -238,16 +238,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostCookieParameters8BoxedMap -public record Fakeparametercollisions1ababselfabPostCookieParameters8BoxedMap
-implements [Fakeparametercollisions1ababselfabPostCookieParameters8Boxed](#fakeparametercollisions1ababselfabpostcookieparameters8boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParameters8BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -255,8 +255,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostCookieParameters8 -public static class Fakeparametercollisions1ababselfabPostCookieParameters8
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md index 560a6bc19a9..35e45166b63 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed)
sealed interface for validated payloads | | record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1](#fakeparametercollisions1ababselfabpostheaderparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters11](#fakeparametercollisions1ababselfabpostheaderparameters11)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters12](#fakeparametercollisions1ababselfabpostheaderparameters12)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedVoid](#fakeparametercollisions1ababselfabpostheaderparameters7boxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedBoolean](#fakeparametercollisions1ababselfabpostheaderparameters7boxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedNumber](#fakeparametercollisions1ababselfabpostheaderparameters7boxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedString](#fakeparametercollisions1ababselfabpostheaderparameters7boxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedList](#fakeparametercollisions1ababselfabpostheaderparameters7boxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters7boxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters7](#fakeparametercollisions1ababselfabpostheaderparameters7)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | ## Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap([Fakeparametercollisions1ababselfabPostHeaderParameters12](#fakeparametercollisions1ababselfabpostheaderparameters12) data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostHeaderParameters12](#fakeparametercollisions1ababselfabpostheaderparameters12) | data()
validated payload | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Fakeparametercollisions1ababselfabPostHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters12 validatedPayload = +Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMap validatedPayload = Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1.validate( - new Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters11() + new Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMapBuilder() .positive1("a") .aB("a") @@ -93,18 +93,18 @@ Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1a | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema5.Schema51.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("aB", [Schema6.Schema61.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md#schema61)),
    new PropertyEntry("A-B", [Schema8.Schema81.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md#schema81)),
    new PropertyEntry("self", [Schema7.Schema71.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md#schema71))
)
| -| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostHeaderParameters7.class](#fakeparametercollisions1ababselfabpostheaderparameters7) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostHeaderParameters12](#fakeparametercollisions1ababselfabpostheaderparameters12) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostheaderparameters11) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostheaderparameters11) arg, SchemaConfiguration configuration) | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | [Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Fakeparametercollisions1ababselfabPostHeaderParameters11 -public class Fakeparametercollisions1ababselfabPostHeaderParameters11
+## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -112,19 +112,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParameters11()
Creates a builder that contains an empty map | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [Fakeparametercollisions1ababselfabPostHeaderParameters11](#fakeparametercollisions1ababselfabpostheaderparameters11) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostHeaderParameters11](#fakeparametercollisions1ababselfabpostheaderparameters11) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostHeaderParameters11](#fakeparametercollisions1ababselfabpostheaderparameters11) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostHeaderParameters11](#fakeparametercollisions1ababselfabpostheaderparameters11) | self(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | positive1(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | aB(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | aHyphenMinusB(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | self(String value) | -## Fakeparametercollisions1ababselfabPostHeaderParameters12 -public static class Fakeparametercollisions1ababselfabPostHeaderParameters12
+## HeaderParametersMap +public static class HeaderParametersMap
extends FrozenMap A class to store validated Map payloads @@ -132,33 +132,33 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Fakeparametercollisions1ababselfabPostHeaderParameters12](#fakeparametercollisions1ababselfabpostheaderparameters12) | of([Map](#fakeparametercollisions1ababselfabpostheaderparameters11) arg, SchemaConfiguration configuration) | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | aB()
[optional] | | String | self()
[optional] | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | -## Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed -public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedVoid](#fakeparametercollisions1ababselfabpostheaderparameters7boxedvoid), -[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedBoolean](#fakeparametercollisions1ababselfabpostheaderparameters7boxedboolean), -[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedNumber](#fakeparametercollisions1ababselfabpostheaderparameters7boxednumber), -[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedString](#fakeparametercollisions1ababselfabpostheaderparameters7boxedstring), -[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedList](#fakeparametercollisions1ababselfabpostheaderparameters7boxedlist), -[Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters7boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedVoid -public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedVoid
-implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -166,16 +166,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedBoolean -public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedBoolean
-implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -183,16 +183,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedNumber -public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedNumber
-implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -200,16 +200,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedString -public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedString
-implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -217,16 +217,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedList -public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedList
-implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -234,16 +234,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedMap -public record Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedMap
-implements [Fakeparametercollisions1ababselfabPostHeaderParameters7Boxed](#fakeparametercollisions1ababselfabpostheaderparameters7boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParameters7BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -251,8 +251,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostHeaderParameters7 -public static class Fakeparametercollisions1ababselfabPostHeaderParameters7
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md index 8918724d717..923dee054a3 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed)
sealed interface for validated payloads | | record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1](#fakeparametercollisions1ababselfabpostpathparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters12](#fakeparametercollisions1ababselfabpostpathparameters12)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13](#fakeparametercollisions1ababselfabpostpathparameters13)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostpathparameters8boxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostpathparameters8boxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostpathparameters8boxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedString](#fakeparametercollisions1ababselfabpostpathparameters8boxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedList](#fakeparametercollisions1ababselfabpostpathparameters8boxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters8boxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters8](#fakeparametercollisions1ababselfabpostpathparameters8)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalProperties](#additionalproperties)
schema class | ## Fakeparametercollisions1ababselfabPostPathParameters1Boxed public sealed interface Fakeparametercollisions1ababselfabPostPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap([Fakeparametercollisions1ababselfabPostPathParameters13](#fakeparametercollisions1ababselfabpostpathparameters13) data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters13](#fakeparametercollisions1ababselfabpostpathparameters13) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Fakeparametercollisions1ababselfabPostPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 validatedPayload = +Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap validatedPayload = Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( - new Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters12() + new Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder() .positive1("a") .aHyphenMinusB("a") @@ -96,18 +96,18 @@ Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1aba | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema9.Schema91.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md#schema91)),
    new PropertyEntry("aB", [Schema10.Schema101.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md#schema101)),
    new PropertyEntry("Ab", [Schema11.Schema111.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md#schema111)),
    new PropertyEntry("A-B", [Schema13.Schema131.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md#schema131)),
    new PropertyEntry("self", [Schema12.Schema121.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md#schema121))
)
| | Set | required = Set.of(
    "1",
    "A-B",
    "Ab",
    "aB",
    "self"
)
| -| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostPathParameters8.class](#fakeparametercollisions1ababselfabpostpathparameters8) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters13](#fakeparametercollisions1ababselfabpostpathparameters13) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostpathparameters12) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostpathparameters12) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Fakeparametercollisions1ababselfabPostPathParameters14 -public class Fakeparametercollisions1ababselfabPostPathParameters14
+## PathParametersMap00000Builder +public class PathParametersMap00000Builder
builder for `Map` A class that builds the Map input type @@ -115,15 +115,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters14(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap00000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## Fakeparametercollisions1ababselfabPostPathParameters15 -public class Fakeparametercollisions1ababselfabPostPathParameters15
+## PathParametersMap00001Builder +public class PathParametersMap00001Builder
builder for `Map` A class that builds the Map input type @@ -131,15 +131,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters15(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap00001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters14](#fakeparametercollisions1ababselfabpostpathparameters14) | self(String value) | +| [PathParametersMap00000Builder](#pathparametersmap00000builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters16 -public class Fakeparametercollisions1ababselfabPostPathParameters16
+## PathParametersMap00010Builder +public class PathParametersMap00010Builder
builder for `Map` A class that builds the Map input type @@ -147,15 +147,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters16(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap00010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters14](#fakeparametercollisions1ababselfabpostpathparameters14) | aB(String value) | +| [PathParametersMap00000Builder](#pathparametersmap00000builder) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters17 -public class Fakeparametercollisions1ababselfabPostPathParameters17
+## PathParametersMap00011Builder +public class PathParametersMap00011Builder
builder for `Map` A class that builds the Map input type @@ -163,16 +163,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters17(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap00011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters15](#fakeparametercollisions1ababselfabpostpathparameters15) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters16](#fakeparametercollisions1ababselfabpostpathparameters16) | self(String value) | +| [PathParametersMap00001Builder](#pathparametersmap00001builder) | aB(String value) | +| [PathParametersMap00010Builder](#pathparametersmap00010builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters18 -public class Fakeparametercollisions1ababselfabPostPathParameters18
+## PathParametersMap00100Builder +public class PathParametersMap00100Builder
builder for `Map` A class that builds the Map input type @@ -180,15 +180,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters18(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap00100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters14](#fakeparametercollisions1ababselfabpostpathparameters14) | Ab(String value) | +| [PathParametersMap00000Builder](#pathparametersmap00000builder) | Ab(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters19 -public class Fakeparametercollisions1ababselfabPostPathParameters19
+## PathParametersMap00101Builder +public class PathParametersMap00101Builder
builder for `Map` A class that builds the Map input type @@ -196,16 +196,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters19(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap00101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters15](#fakeparametercollisions1ababselfabpostpathparameters15) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters18](#fakeparametercollisions1ababselfabpostpathparameters18) | self(String value) | +| [PathParametersMap00001Builder](#pathparametersmap00001builder) | Ab(String value) | +| [PathParametersMap00100Builder](#pathparametersmap00100builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters20 -public class Fakeparametercollisions1ababselfabPostPathParameters20
+## PathParametersMap00110Builder +public class PathParametersMap00110Builder
builder for `Map` A class that builds the Map input type @@ -213,16 +213,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters20(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap00110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters16](#fakeparametercollisions1ababselfabpostpathparameters16) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters18](#fakeparametercollisions1ababselfabpostpathparameters18) | aB(String value) | +| [PathParametersMap00010Builder](#pathparametersmap00010builder) | Ab(String value) | +| [PathParametersMap00100Builder](#pathparametersmap00100builder) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters21 -public class Fakeparametercollisions1ababselfabPostPathParameters21
+## PathParametersMap00111Builder +public class PathParametersMap00111Builder
builder for `Map` A class that builds the Map input type @@ -230,17 +230,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters21(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap00111Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters17](#fakeparametercollisions1ababselfabpostpathparameters17) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters19](#fakeparametercollisions1ababselfabpostpathparameters19) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters20](#fakeparametercollisions1ababselfabpostpathparameters20) | self(String value) | +| [PathParametersMap00011Builder](#pathparametersmap00011builder) | Ab(String value) | +| [PathParametersMap00101Builder](#pathparametersmap00101builder) | aB(String value) | +| [PathParametersMap00110Builder](#pathparametersmap00110builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters22 -public class Fakeparametercollisions1ababselfabPostPathParameters22
+## PathParametersMap01000Builder +public class PathParametersMap01000Builder
builder for `Map` A class that builds the Map input type @@ -248,15 +248,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters22(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap01000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters14](#fakeparametercollisions1ababselfabpostpathparameters14) | aHyphenMinusB(String value) | +| [PathParametersMap00000Builder](#pathparametersmap00000builder) | aHyphenMinusB(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters23 -public class Fakeparametercollisions1ababselfabPostPathParameters23
+## PathParametersMap01001Builder +public class PathParametersMap01001Builder
builder for `Map` A class that builds the Map input type @@ -264,16 +264,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters23(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap01001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters15](#fakeparametercollisions1ababselfabpostpathparameters15) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters22](#fakeparametercollisions1ababselfabpostpathparameters22) | self(String value) | +| [PathParametersMap00001Builder](#pathparametersmap00001builder) | aHyphenMinusB(String value) | +| [PathParametersMap01000Builder](#pathparametersmap01000builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters24 -public class Fakeparametercollisions1ababselfabPostPathParameters24
+## PathParametersMap01010Builder +public class PathParametersMap01010Builder
builder for `Map` A class that builds the Map input type @@ -281,16 +281,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters24(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap01010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters16](#fakeparametercollisions1ababselfabpostpathparameters16) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters22](#fakeparametercollisions1ababselfabpostpathparameters22) | aB(String value) | +| [PathParametersMap00010Builder](#pathparametersmap00010builder) | aHyphenMinusB(String value) | +| [PathParametersMap01000Builder](#pathparametersmap01000builder) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters25 -public class Fakeparametercollisions1ababselfabPostPathParameters25
+## PathParametersMap01011Builder +public class PathParametersMap01011Builder
builder for `Map` A class that builds the Map input type @@ -298,17 +298,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters25(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap01011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters17](#fakeparametercollisions1ababselfabpostpathparameters17) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters23](#fakeparametercollisions1ababselfabpostpathparameters23) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters24](#fakeparametercollisions1ababselfabpostpathparameters24) | self(String value) | +| [PathParametersMap00011Builder](#pathparametersmap00011builder) | aHyphenMinusB(String value) | +| [PathParametersMap01001Builder](#pathparametersmap01001builder) | aB(String value) | +| [PathParametersMap01010Builder](#pathparametersmap01010builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters26 -public class Fakeparametercollisions1ababselfabPostPathParameters26
+## PathParametersMap01100Builder +public class PathParametersMap01100Builder
builder for `Map` A class that builds the Map input type @@ -316,16 +316,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters26(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap01100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters18](#fakeparametercollisions1ababselfabpostpathparameters18) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters22](#fakeparametercollisions1ababselfabpostpathparameters22) | Ab(String value) | +| [PathParametersMap00100Builder](#pathparametersmap00100builder) | aHyphenMinusB(String value) | +| [PathParametersMap01000Builder](#pathparametersmap01000builder) | Ab(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters27 -public class Fakeparametercollisions1ababselfabPostPathParameters27
+## PathParametersMap01101Builder +public class PathParametersMap01101Builder
builder for `Map` A class that builds the Map input type @@ -333,17 +333,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters27(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap01101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters19](#fakeparametercollisions1ababselfabpostpathparameters19) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters23](#fakeparametercollisions1ababselfabpostpathparameters23) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters26](#fakeparametercollisions1ababselfabpostpathparameters26) | self(String value) | +| [PathParametersMap00101Builder](#pathparametersmap00101builder) | aHyphenMinusB(String value) | +| [PathParametersMap01001Builder](#pathparametersmap01001builder) | Ab(String value) | +| [PathParametersMap01100Builder](#pathparametersmap01100builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters28 -public class Fakeparametercollisions1ababselfabPostPathParameters28
+## PathParametersMap01110Builder +public class PathParametersMap01110Builder
builder for `Map` A class that builds the Map input type @@ -351,17 +351,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters28(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap01110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters20](#fakeparametercollisions1ababselfabpostpathparameters20) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters24](#fakeparametercollisions1ababselfabpostpathparameters24) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters26](#fakeparametercollisions1ababselfabpostpathparameters26) | aB(String value) | +| [PathParametersMap00110Builder](#pathparametersmap00110builder) | aHyphenMinusB(String value) | +| [PathParametersMap01010Builder](#pathparametersmap01010builder) | Ab(String value) | +| [PathParametersMap01100Builder](#pathparametersmap01100builder) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters29 -public class Fakeparametercollisions1ababselfabPostPathParameters29
+## PathParametersMap01111Builder +public class PathParametersMap01111Builder
builder for `Map` A class that builds the Map input type @@ -369,18 +369,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters29(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap01111Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters21](#fakeparametercollisions1ababselfabpostpathparameters21) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters25](#fakeparametercollisions1ababselfabpostpathparameters25) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters27](#fakeparametercollisions1ababselfabpostpathparameters27) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters28](#fakeparametercollisions1ababselfabpostpathparameters28) | self(String value) | +| [PathParametersMap00111Builder](#pathparametersmap00111builder) | aHyphenMinusB(String value) | +| [PathParametersMap01011Builder](#pathparametersmap01011builder) | Ab(String value) | +| [PathParametersMap01101Builder](#pathparametersmap01101builder) | aB(String value) | +| [PathParametersMap01110Builder](#pathparametersmap01110builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters30 -public class Fakeparametercollisions1ababselfabPostPathParameters30
+## PathParametersMap10000Builder +public class PathParametersMap10000Builder
builder for `Map` A class that builds the Map input type @@ -388,15 +388,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters30(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap10000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters14](#fakeparametercollisions1ababselfabpostpathparameters14) | positive1(String value) | +| [PathParametersMap00000Builder](#pathparametersmap00000builder) | positive1(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters31 -public class Fakeparametercollisions1ababselfabPostPathParameters31
+## PathParametersMap10001Builder +public class PathParametersMap10001Builder
builder for `Map` A class that builds the Map input type @@ -404,16 +404,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters31(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap10001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters15](#fakeparametercollisions1ababselfabpostpathparameters15) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters30](#fakeparametercollisions1ababselfabpostpathparameters30) | self(String value) | +| [PathParametersMap00001Builder](#pathparametersmap00001builder) | positive1(String value) | +| [PathParametersMap10000Builder](#pathparametersmap10000builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters32 -public class Fakeparametercollisions1ababselfabPostPathParameters32
+## PathParametersMap10010Builder +public class PathParametersMap10010Builder
builder for `Map` A class that builds the Map input type @@ -421,16 +421,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters32(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap10010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters16](#fakeparametercollisions1ababselfabpostpathparameters16) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters30](#fakeparametercollisions1ababselfabpostpathparameters30) | aB(String value) | +| [PathParametersMap00010Builder](#pathparametersmap00010builder) | positive1(String value) | +| [PathParametersMap10000Builder](#pathparametersmap10000builder) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters33 -public class Fakeparametercollisions1ababselfabPostPathParameters33
+## PathParametersMap10011Builder +public class PathParametersMap10011Builder
builder for `Map` A class that builds the Map input type @@ -438,17 +438,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters33(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap10011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters17](#fakeparametercollisions1ababselfabpostpathparameters17) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters31](#fakeparametercollisions1ababselfabpostpathparameters31) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters32](#fakeparametercollisions1ababselfabpostpathparameters32) | self(String value) | +| [PathParametersMap00011Builder](#pathparametersmap00011builder) | positive1(String value) | +| [PathParametersMap10001Builder](#pathparametersmap10001builder) | aB(String value) | +| [PathParametersMap10010Builder](#pathparametersmap10010builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters34 -public class Fakeparametercollisions1ababselfabPostPathParameters34
+## PathParametersMap10100Builder +public class PathParametersMap10100Builder
builder for `Map` A class that builds the Map input type @@ -456,16 +456,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters34(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap10100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters18](#fakeparametercollisions1ababselfabpostpathparameters18) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters30](#fakeparametercollisions1ababselfabpostpathparameters30) | Ab(String value) | +| [PathParametersMap00100Builder](#pathparametersmap00100builder) | positive1(String value) | +| [PathParametersMap10000Builder](#pathparametersmap10000builder) | Ab(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters35 -public class Fakeparametercollisions1ababselfabPostPathParameters35
+## PathParametersMap10101Builder +public class PathParametersMap10101Builder
builder for `Map` A class that builds the Map input type @@ -473,17 +473,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters35(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap10101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters19](#fakeparametercollisions1ababselfabpostpathparameters19) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters31](#fakeparametercollisions1ababselfabpostpathparameters31) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters34](#fakeparametercollisions1ababselfabpostpathparameters34) | self(String value) | +| [PathParametersMap00101Builder](#pathparametersmap00101builder) | positive1(String value) | +| [PathParametersMap10001Builder](#pathparametersmap10001builder) | Ab(String value) | +| [PathParametersMap10100Builder](#pathparametersmap10100builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters36 -public class Fakeparametercollisions1ababselfabPostPathParameters36
+## PathParametersMap10110Builder +public class PathParametersMap10110Builder
builder for `Map` A class that builds the Map input type @@ -491,17 +491,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters36(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap10110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters20](#fakeparametercollisions1ababselfabpostpathparameters20) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters32](#fakeparametercollisions1ababselfabpostpathparameters32) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters34](#fakeparametercollisions1ababselfabpostpathparameters34) | aB(String value) | +| [PathParametersMap00110Builder](#pathparametersmap00110builder) | positive1(String value) | +| [PathParametersMap10010Builder](#pathparametersmap10010builder) | Ab(String value) | +| [PathParametersMap10100Builder](#pathparametersmap10100builder) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters37 -public class Fakeparametercollisions1ababselfabPostPathParameters37
+## PathParametersMap10111Builder +public class PathParametersMap10111Builder
builder for `Map` A class that builds the Map input type @@ -509,18 +509,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters37(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap10111Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters21](#fakeparametercollisions1ababselfabpostpathparameters21) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters33](#fakeparametercollisions1ababselfabpostpathparameters33) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters35](#fakeparametercollisions1ababselfabpostpathparameters35) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters36](#fakeparametercollisions1ababselfabpostpathparameters36) | self(String value) | +| [PathParametersMap00111Builder](#pathparametersmap00111builder) | positive1(String value) | +| [PathParametersMap10011Builder](#pathparametersmap10011builder) | Ab(String value) | +| [PathParametersMap10101Builder](#pathparametersmap10101builder) | aB(String value) | +| [PathParametersMap10110Builder](#pathparametersmap10110builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters38 -public class Fakeparametercollisions1ababselfabPostPathParameters38
+## PathParametersMap11000Builder +public class PathParametersMap11000Builder
builder for `Map` A class that builds the Map input type @@ -528,16 +528,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters38(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap11000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters22](#fakeparametercollisions1ababselfabpostpathparameters22) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters30](#fakeparametercollisions1ababselfabpostpathparameters30) | aHyphenMinusB(String value) | +| [PathParametersMap01000Builder](#pathparametersmap01000builder) | positive1(String value) | +| [PathParametersMap10000Builder](#pathparametersmap10000builder) | aHyphenMinusB(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters39 -public class Fakeparametercollisions1ababselfabPostPathParameters39
+## PathParametersMap11001Builder +public class PathParametersMap11001Builder
builder for `Map` A class that builds the Map input type @@ -545,17 +545,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters39(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap11001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters23](#fakeparametercollisions1ababselfabpostpathparameters23) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters31](#fakeparametercollisions1ababselfabpostpathparameters31) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters38](#fakeparametercollisions1ababselfabpostpathparameters38) | self(String value) | +| [PathParametersMap01001Builder](#pathparametersmap01001builder) | positive1(String value) | +| [PathParametersMap10001Builder](#pathparametersmap10001builder) | aHyphenMinusB(String value) | +| [PathParametersMap11000Builder](#pathparametersmap11000builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters40 -public class Fakeparametercollisions1ababselfabPostPathParameters40
+## PathParametersMap11010Builder +public class PathParametersMap11010Builder
builder for `Map` A class that builds the Map input type @@ -563,17 +563,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters40(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap11010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters24](#fakeparametercollisions1ababselfabpostpathparameters24) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters32](#fakeparametercollisions1ababselfabpostpathparameters32) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters38](#fakeparametercollisions1ababselfabpostpathparameters38) | aB(String value) | +| [PathParametersMap01010Builder](#pathparametersmap01010builder) | positive1(String value) | +| [PathParametersMap10010Builder](#pathparametersmap10010builder) | aHyphenMinusB(String value) | +| [PathParametersMap11000Builder](#pathparametersmap11000builder) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters41 -public class Fakeparametercollisions1ababselfabPostPathParameters41
+## PathParametersMap11011Builder +public class PathParametersMap11011Builder
builder for `Map` A class that builds the Map input type @@ -581,18 +581,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters41(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap11011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters25](#fakeparametercollisions1ababselfabpostpathparameters25) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters33](#fakeparametercollisions1ababselfabpostpathparameters33) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters39](#fakeparametercollisions1ababselfabpostpathparameters39) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters40](#fakeparametercollisions1ababselfabpostpathparameters40) | self(String value) | +| [PathParametersMap01011Builder](#pathparametersmap01011builder) | positive1(String value) | +| [PathParametersMap10011Builder](#pathparametersmap10011builder) | aHyphenMinusB(String value) | +| [PathParametersMap11001Builder](#pathparametersmap11001builder) | aB(String value) | +| [PathParametersMap11010Builder](#pathparametersmap11010builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters42 -public class Fakeparametercollisions1ababselfabPostPathParameters42
+## PathParametersMap11100Builder +public class PathParametersMap11100Builder
builder for `Map` A class that builds the Map input type @@ -600,17 +600,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters42(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap11100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters26](#fakeparametercollisions1ababselfabpostpathparameters26) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters34](#fakeparametercollisions1ababselfabpostpathparameters34) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters38](#fakeparametercollisions1ababselfabpostpathparameters38) | Ab(String value) | +| [PathParametersMap01100Builder](#pathparametersmap01100builder) | positive1(String value) | +| [PathParametersMap10100Builder](#pathparametersmap10100builder) | aHyphenMinusB(String value) | +| [PathParametersMap11000Builder](#pathparametersmap11000builder) | Ab(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters43 -public class Fakeparametercollisions1ababselfabPostPathParameters43
+## PathParametersMap11101Builder +public class PathParametersMap11101Builder
builder for `Map` A class that builds the Map input type @@ -618,18 +618,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters43(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap11101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters27](#fakeparametercollisions1ababselfabpostpathparameters27) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters35](#fakeparametercollisions1ababselfabpostpathparameters35) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters39](#fakeparametercollisions1ababselfabpostpathparameters39) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters42](#fakeparametercollisions1ababselfabpostpathparameters42) | self(String value) | +| [PathParametersMap01101Builder](#pathparametersmap01101builder) | positive1(String value) | +| [PathParametersMap10101Builder](#pathparametersmap10101builder) | aHyphenMinusB(String value) | +| [PathParametersMap11001Builder](#pathparametersmap11001builder) | Ab(String value) | +| [PathParametersMap11100Builder](#pathparametersmap11100builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters44 -public class Fakeparametercollisions1ababselfabPostPathParameters44
+## PathParametersMap11110Builder +public class PathParametersMap11110Builder
builder for `Map` A class that builds the Map input type @@ -637,18 +637,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters44(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap11110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters28](#fakeparametercollisions1ababselfabpostpathparameters28) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters36](#fakeparametercollisions1ababselfabpostpathparameters36) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters40](#fakeparametercollisions1ababselfabpostpathparameters40) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters42](#fakeparametercollisions1ababselfabpostpathparameters42) | aB(String value) | +| [PathParametersMap01110Builder](#pathparametersmap01110builder) | positive1(String value) | +| [PathParametersMap10110Builder](#pathparametersmap10110builder) | aHyphenMinusB(String value) | +| [PathParametersMap11010Builder](#pathparametersmap11010builder) | Ab(String value) | +| [PathParametersMap11100Builder](#pathparametersmap11100builder) | aB(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters12 -public class Fakeparametercollisions1ababselfabPostPathParameters12
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -656,19 +656,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters12()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters29](#fakeparametercollisions1ababselfabpostpathparameters29) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters37](#fakeparametercollisions1ababselfabpostpathparameters37) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters41](#fakeparametercollisions1ababselfabpostpathparameters41) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters43](#fakeparametercollisions1ababselfabpostpathparameters43) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostPathParameters44](#fakeparametercollisions1ababselfabpostpathparameters44) | self(String value) | +| [PathParametersMap01111Builder](#pathparametersmap01111builder) | positive1(String value) | +| [PathParametersMap10111Builder](#pathparametersmap10111builder) | aHyphenMinusB(String value) | +| [PathParametersMap11011Builder](#pathparametersmap11011builder) | Ab(String value) | +| [PathParametersMap11101Builder](#pathparametersmap11101builder) | aB(String value) | +| [PathParametersMap11110Builder](#pathparametersmap11110builder) | self(String value) | -## Fakeparametercollisions1ababselfabPostPathParameters13 -public static class Fakeparametercollisions1ababselfabPostPathParameters13
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -676,34 +676,34 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Fakeparametercollisions1ababselfabPostPathParameters13](#fakeparametercollisions1ababselfabpostpathparameters13) | of([Map](#fakeparametercollisions1ababselfabpostpathparameters12) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | Ab()
| | String | aB()
| | String | self()
| | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | -## Fakeparametercollisions1ababselfabPostPathParameters8Boxed -public sealed interface Fakeparametercollisions1ababselfabPostPathParameters8Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[Fakeparametercollisions1ababselfabPostPathParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostpathparameters8boxedvoid), -[Fakeparametercollisions1ababselfabPostPathParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostpathparameters8boxedboolean), -[Fakeparametercollisions1ababselfabPostPathParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostpathparameters8boxednumber), -[Fakeparametercollisions1ababselfabPostPathParameters8BoxedString](#fakeparametercollisions1ababselfabpostpathparameters8boxedstring), -[Fakeparametercollisions1ababselfabPostPathParameters8BoxedList](#fakeparametercollisions1ababselfabpostpathparameters8boxedlist), -[Fakeparametercollisions1ababselfabPostPathParameters8BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters8boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## Fakeparametercollisions1ababselfabPostPathParameters8BoxedVoid -public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedVoid
-implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters8BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -711,16 +711,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostPathParameters8BoxedBoolean -public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedBoolean
-implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters8BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -728,16 +728,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostPathParameters8BoxedNumber -public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedNumber
-implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters8BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -745,16 +745,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostPathParameters8BoxedString -public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedString
-implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters8BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -762,16 +762,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostPathParameters8BoxedList -public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedList
-implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters8BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -779,16 +779,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostPathParameters8BoxedMap -public record Fakeparametercollisions1ababselfabPostPathParameters8BoxedMap
-implements [Fakeparametercollisions1ababselfabPostPathParameters8Boxed](#fakeparametercollisions1ababselfabpostpathparameters8boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters8BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -796,8 +796,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostPathParameters8 -public static class Fakeparametercollisions1ababselfabPostPathParameters8
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md index 87dd3f349dd..5c8d38d4e68 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed)
sealed interface for validated payloads | | record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1](#fakeparametercollisions1ababselfabpostqueryparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters13](#fakeparametercollisions1ababselfabpostqueryparameters13)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostqueryparameters8boxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostqueryparameters8boxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostqueryparameters8boxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedString](#fakeparametercollisions1ababselfabpostqueryparameters8boxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedList](#fakeparametercollisions1ababselfabpostqueryparameters8boxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters8boxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters8](#fakeparametercollisions1ababselfabpostqueryparameters8)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## Fakeparametercollisions1ababselfabPostQueryParameters1Boxed public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap([Fakeparametercollisions1ababselfabPostQueryParameters13](#fakeparametercollisions1ababselfabpostqueryparameters13) data)
Creates an instance, private visibility | +| Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostQueryParameters13](#fakeparametercollisions1ababselfabpostqueryparameters13) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Fakeparametercollisions1ababselfabPostQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters13 validatedPayload = +Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMap validatedPayload = Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1.validate( - new Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters12() + new Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMapBuilder() .positive1("a") .aB("a") @@ -95,18 +95,18 @@ Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ab | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema0.Schema01.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("aB", [Schema1.Schema11.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("Ab", [Schema2.Schema21.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("A-B", [Schema4.Schema41.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("self", [Schema3.Schema31.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md#schema31))
)
| -| Class | additionalProperties = [Fakeparametercollisions1ababselfabPostQueryParameters8.class](#fakeparametercollisions1ababselfabpostqueryparameters8) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostQueryParameters13](#fakeparametercollisions1ababselfabpostqueryparameters13) | validate([Map<?, ?>](#fakeparametercollisions1ababselfabpostqueryparameters12) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakeparametercollisions1ababselfabpostqueryparameters12) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Fakeparametercollisions1ababselfabPostQueryParameters12 -public class Fakeparametercollisions1ababselfabPostQueryParameters12
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -114,20 +114,20 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParameters12()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12) | positive1(String value) | -| [Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12) | aB(String value) | -| [Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12) | Ab(String value) | -| [Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12) | aHyphenMinusB(String value) | -| [Fakeparametercollisions1ababselfabPostQueryParameters12](#fakeparametercollisions1ababselfabpostqueryparameters12) | self(String value) | - -## Fakeparametercollisions1ababselfabPostQueryParameters13 -public static class Fakeparametercollisions1ababselfabPostQueryParameters13
+| [QueryParametersMapBuilder](#queryparametersmapbuilder) | positive1(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | aB(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | Ab(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | aHyphenMinusB(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | self(String value) | + +## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -135,34 +135,34 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Fakeparametercollisions1ababselfabPostQueryParameters13](#fakeparametercollisions1ababselfabpostqueryparameters13) | of([Map](#fakeparametercollisions1ababselfabpostqueryparameters12) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | aB()
[optional] | | String | Ab()
[optional] | | String | self()
[optional] | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | -## Fakeparametercollisions1ababselfabPostQueryParameters8Boxed -public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters8Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedVoid](#fakeparametercollisions1ababselfabpostqueryparameters8boxedvoid), -[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedBoolean](#fakeparametercollisions1ababselfabpostqueryparameters8boxedboolean), -[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedNumber](#fakeparametercollisions1ababselfabpostqueryparameters8boxednumber), -[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedString](#fakeparametercollisions1ababselfabpostqueryparameters8boxedstring), -[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedList](#fakeparametercollisions1ababselfabpostqueryparameters8boxedlist), -[Fakeparametercollisions1ababselfabPostQueryParameters8BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters8boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedVoid -public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedVoid
-implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -170,16 +170,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedBoolean -public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedBoolean
-implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -187,16 +187,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedNumber -public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedNumber
-implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -204,16 +204,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedString -public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedString
-implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -221,16 +221,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedList -public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedList
-implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -238,16 +238,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostQueryParameters8BoxedMap -public record Fakeparametercollisions1ababselfabPostQueryParameters8BoxedMap
-implements [Fakeparametercollisions1ababselfabPostQueryParameters8Boxed](#fakeparametercollisions1ababselfabpostqueryparameters8boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParameters8BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -255,8 +255,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Fakeparametercollisions1ababselfabPostQueryParameters8 -public static class Fakeparametercollisions1ababselfabPostQueryParameters8
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md index 2abe4097f6a..02a20fa4996 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -84,9 +84,9 @@ FakepetiduploadimagewithrequiredfilePost.Post apiClient = new Fakepetiduploadima // Map validation -FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters = +FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters = FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( - new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters8() + new FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -146,7 +146,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparameters9) | pathParameters | +| [FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#pathparametersmap) | pathParameters | | [FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) | requestBody
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | @@ -160,7 +160,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable FakepetiduploadimagewithrequiredfilePostPathParameters9](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparameters9) | pathParameters | +| [FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable PathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#pathparametersmap) | pathParameters | | [FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) | requestBody | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex | @@ -198,6 +198,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([FakepetiduploadimagewithrequiredfilePostPathParametersFakepetiduploadimagewithrequiredfilePostPathParameters9](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#fakepetiduploadimagewithrequiredfilepostpathparameters9) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([FakepetiduploadimagewithrequiredfilePostPathParametersPathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md index 0960e974625..d8238bf62e8 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed)
sealed interface for validated payloads | | record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1](#fakepetiduploadimagewithrequiredfilepostpathparameters1)
schema class | -| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters8](#fakepetiduploadimagewithrequiredfilepostpathparameters8)
builder for Map payloads | -| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9](#fakepetiduploadimagewithrequiredfilepostpathparameters9)
output class for Map payloads | -| sealed interface | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed)
sealed interface for validated payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedVoid](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedBoolean](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedNumber](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedString](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedList](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters4](#fakepetiduploadimagewithrequiredfilepostpathparameters4)
schema class | +| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap([FakepetiduploadimagewithrequiredfilePostPathParameters9](#fakepetiduploadimagewithrequiredfilepostpathparameters9) data)
Creates an instance, private visibility | +| FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParameters9](#fakepetiduploadimagewithrequiredfilepostpathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakepetiduploadimagewithrequiredfilePostPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 validatedPayload = +FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap validatedPayload = FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( - new FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters8() + new FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -88,18 +88,18 @@ FakepetiduploadimagewithrequiredfilePostPathParameters.Fakepetiduploadimagewithr | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [FakepetiduploadimagewithrequiredfilePostPathParameters4.class](#fakepetiduploadimagewithrequiredfilepostpathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParameters9](#fakepetiduploadimagewithrequiredfilepostpathparameters9) | validate([Map<?, ?>](#fakepetiduploadimagewithrequiredfilepostpathparameters8) arg, SchemaConfiguration configuration) | -| [FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakepetiduploadimagewithrequiredfilepostpathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakepetiduploadimagewithrequiredfilePostPathParameters10 -public class FakepetiduploadimagewithrequiredfilePostPathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FakepetiduploadimagewithrequiredfilePostPathParameters8 -public class FakepetiduploadimagewithrequiredfilePostPathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParameters10](#fakepetiduploadimagewithrequiredfilepostpathparameters10) | petId(int value) | -| [FakepetiduploadimagewithrequiredfilePostPathParameters10](#fakepetiduploadimagewithrequiredfilepostpathparameters10) | petId(float value) | -| [FakepetiduploadimagewithrequiredfilePostPathParameters10](#fakepetiduploadimagewithrequiredfilepostpathparameters10) | petId(long value) | -| [FakepetiduploadimagewithrequiredfilePostPathParameters10](#fakepetiduploadimagewithrequiredfilepostpathparameters10) | petId(double value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | -## FakepetiduploadimagewithrequiredfilePostPathParameters9 -public static class FakepetiduploadimagewithrequiredfilePostPathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakepetiduploadimagewithrequiredfilePostPathParameters9](#fakepetiduploadimagewithrequiredfilepostpathparameters9) | of([Map](#fakepetiduploadimagewithrequiredfilepostpathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | Number | petId()
| -## FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed -public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedVoid](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedvoid), -[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedBoolean](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedboolean), -[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedNumber](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxednumber), -[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedString](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedstring), -[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedList](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedlist), -[FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedVoid -public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedVoid
-implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedBoolean -public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedBoolean
-implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedNumber -public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedNumber
-implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedString -public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedString
-implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedList -public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedList
-implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedMap -public record FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedMap
-implements [FakepetiduploadimagewithrequiredfilePostPathParameters4Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakepetiduploadimagewithrequiredfilePostPathParameters4 -public static class FakepetiduploadimagewithrequiredfilePostPathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md index cb976074337..fdad63ddf22 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -74,9 +74,9 @@ FakequeryparamwithjsoncontenttypeGet.Get apiClient = new Fakequeryparamwithjsonc // Map validation -FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters = +FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters = FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( - new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters8() + new FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder() .build(), schemaConfiguration ); @@ -134,7 +134,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparameters9) | queryParameters | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -146,7 +146,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters9](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparameters9) | queryParameters | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable QueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -180,6 +180,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([FakequeryparamwithjsoncontenttypeGetQueryParametersFakequeryparamwithjsoncontenttypeGetQueryParameters9](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#fakequeryparamwithjsoncontenttypegetqueryparameters9) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([FakequeryparamwithjsoncontenttypeGetQueryParametersQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md index 8cea5869de4..da36f1e2a11 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1](#fakequeryparamwithjsoncontenttypegetqueryparameters1)
schema class | -| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters8](#fakequeryparamwithjsoncontenttypegetqueryparameters8)
builder for Map payloads | -| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9](#fakequeryparamwithjsoncontenttypegetqueryparameters9)
output class for Map payloads | -| sealed interface | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed)
sealed interface for validated payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedVoid](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedBoolean](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedNumber](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedString](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedstring)
boxed class to store validated String payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedList](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedlist)
boxed class to store validated List payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters4](#fakequeryparamwithjsoncontenttypegetqueryparameters4)
schema class | +| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap([FakequeryparamwithjsoncontenttypeGetQueryParameters9](#fakequeryparamwithjsoncontenttypegetqueryparameters9) data)
Creates an instance, private visibility | +| FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters9](#fakequeryparamwithjsoncontenttypegetqueryparameters9) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakequeryparamwithjsoncontenttypeGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 validatedPayload = +FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap validatedPayload = FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( - new FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters8() + new FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder() .build(), configuration ); @@ -86,18 +86,18 @@ FakequeryparamwithjsoncontenttypeGetQueryParameters.Fakequeryparamwithjsonconten | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("someParam", [Schema0.Schema01.class](../../../paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "someParam"
)
| -| Class | additionalProperties = [FakequeryparamwithjsoncontenttypeGetQueryParameters4.class](#fakequeryparamwithjsoncontenttypegetqueryparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters9](#fakequeryparamwithjsoncontenttypegetqueryparameters9) | validate([Map<?, ?>](#fakequeryparamwithjsoncontenttypegetqueryparameters8) arg, SchemaConfiguration configuration) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakequeryparamwithjsoncontenttypegetqueryparameters8) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakequeryparamwithjsoncontenttypeGetQueryParameters10 -public class FakequeryparamwithjsoncontenttypeGetQueryParameters10
+## QueryParametersMap0Builder +public class QueryParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -105,15 +105,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters10(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FakequeryparamwithjsoncontenttypeGetQueryParameters8 -public class FakequeryparamwithjsoncontenttypeGetQueryParameters8
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -121,23 +121,23 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters8()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(Void value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(boolean value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(String value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(int value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(float value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(long value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(double value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(List value) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters10](#fakequeryparamwithjsoncontenttypegetqueryparameters10) | someParam(Map value) | - -## FakequeryparamwithjsoncontenttypeGetQueryParameters9 -public static class FakequeryparamwithjsoncontenttypeGetQueryParameters9
+| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(Void value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(boolean value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(String value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(int value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(float value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(long value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(double value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(List value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(Map value) | + +## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -145,31 +145,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakequeryparamwithjsoncontenttypeGetQueryParameters9](#fakequeryparamwithjsoncontenttypegetqueryparameters9) | of([Map](#fakequeryparamwithjsoncontenttypegetqueryparameters8) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | someParam()
| -## FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed -public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedVoid](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedvoid), -[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedBoolean](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedboolean), -[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedNumber](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxednumber), -[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedString](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedstring), -[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedList](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedlist), -[FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedVoid -public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedVoid
-implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -177,16 +177,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedBoolean -public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedBoolean
-implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -194,16 +194,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedNumber -public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedNumber
-implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -211,16 +211,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedString -public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedString
-implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -228,16 +228,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedList -public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedList
-implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -245,16 +245,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedMap -public record FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedMap
-implements [FakequeryparamwithjsoncontenttypeGetQueryParameters4Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -262,8 +262,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakequeryparamwithjsoncontenttypeGetQueryParameters4 -public static class FakequeryparamwithjsoncontenttypeGetQueryParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md index 89af79b14df..5e51c24f147 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -120,7 +120,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FakerefobjinqueryGetQueryParameters.@Nullable FakerefobjinqueryGetQueryParameters9](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#fakerefobjinquerygetqueryparameters9) | queryParameters
optional | +| [FakerefobjinqueryGetQueryParameters.@Nullable QueryParametersMap](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#queryparametersmap) | queryParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -138,7 +138,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakerefobjinqueryGetQueryParametersFakerefobjinqueryGetQueryParameters9](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#fakerefobjinquerygetqueryparameters9) queryParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakerefobjinqueryGetQueryParametersQueryParametersMap](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | | [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md index 19a7ca133c6..4929ddf41e2 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed)
sealed interface for validated payloads | | record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1](#fakerefobjinquerygetqueryparameters1)
schema class | -| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters8](#fakerefobjinquerygetqueryparameters8)
builder for Map payloads | -| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters9](#fakerefobjinquerygetqueryparameters9)
output class for Map payloads | -| sealed interface | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed)
sealed interface for validated payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedVoid](#fakerefobjinquerygetqueryparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedBoolean](#fakerefobjinquerygetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedNumber](#fakerefobjinquerygetqueryparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedString](#fakerefobjinquerygetqueryparameters4boxedstring)
boxed class to store validated String payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedList](#fakerefobjinquerygetqueryparameters4boxedlist)
boxed class to store validated List payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4BoxedMap](#fakerefobjinquerygetqueryparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters4](#fakerefobjinquerygetqueryparameters4)
schema class | +| static class | [FakerefobjinqueryGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakerefobjinqueryGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakerefobjinqueryGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## FakerefobjinqueryGetQueryParameters1Boxed public sealed interface FakerefobjinqueryGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetQueryParameters1BoxedMap([FakerefobjinqueryGetQueryParameters9](#fakerefobjinquerygetqueryparameters9) data)
Creates an instance, private visibility | +| FakerefobjinqueryGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefobjinqueryGetQueryParameters9](#fakerefobjinquerygetqueryparameters9) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FakerefobjinqueryGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters9 validatedPayload = +FakerefobjinqueryGetQueryParameters.QueryParametersMap validatedPayload = FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1.validate( - new FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters8() + new FakerefobjinqueryGetQueryParameters.QueryParametersMapBuilder() .mapBean( MapUtils.makeMap( new AbstractMap.SimpleEntry( @@ -93,18 +93,18 @@ FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters9 validat | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("mapBean", [Foo.Foo1.class](../../../components/schemas/Foo.md#foo1))
)
| -| Class | additionalProperties = [FakerefobjinqueryGetQueryParameters4.class](#fakerefobjinquerygetqueryparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FakerefobjinqueryGetQueryParameters9](#fakerefobjinquerygetqueryparameters9) | validate([Map<?, ?>](#fakerefobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | -| [FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#fakerefobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FakerefobjinqueryGetQueryParameters8 -public class FakerefobjinqueryGetQueryParameters8
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map>` A class that builds the Map input type @@ -112,16 +112,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetQueryParameters8()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map> | build()
Returns map input that should be used with Schema.validate | -| [FakerefobjinqueryGetQueryParameters8](#fakerefobjinquerygetqueryparameters8) | mapBean(Map value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | mapBean(Map value) | -## FakerefobjinqueryGetQueryParameters9 -public static class FakerefobjinqueryGetQueryParameters9
+## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -129,31 +129,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FakerefobjinqueryGetQueryParameters9](#fakerefobjinquerygetqueryparameters9) | of([Map>](#fakerefobjinquerygetqueryparameters8) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [Foo.FooMap](../../../components/schemas/Foo.md#foomap) | mapBean()
[optional] | -## FakerefobjinqueryGetQueryParameters4Boxed -public sealed interface FakerefobjinqueryGetQueryParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FakerefobjinqueryGetQueryParameters4BoxedVoid](#fakerefobjinquerygetqueryparameters4boxedvoid), -[FakerefobjinqueryGetQueryParameters4BoxedBoolean](#fakerefobjinquerygetqueryparameters4boxedboolean), -[FakerefobjinqueryGetQueryParameters4BoxedNumber](#fakerefobjinquerygetqueryparameters4boxednumber), -[FakerefobjinqueryGetQueryParameters4BoxedString](#fakerefobjinquerygetqueryparameters4boxedstring), -[FakerefobjinqueryGetQueryParameters4BoxedList](#fakerefobjinquerygetqueryparameters4boxedlist), -[FakerefobjinqueryGetQueryParameters4BoxedMap](#fakerefobjinquerygetqueryparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FakerefobjinqueryGetQueryParameters4BoxedVoid -public record FakerefobjinqueryGetQueryParameters4BoxedVoid
-implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -161,16 +161,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetQueryParameters4BoxedBoolean -public record FakerefobjinqueryGetQueryParameters4BoxedBoolean
-implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -178,16 +178,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetQueryParameters4BoxedNumber -public record FakerefobjinqueryGetQueryParameters4BoxedNumber
-implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -195,16 +195,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetQueryParameters4BoxedString -public record FakerefobjinqueryGetQueryParameters4BoxedString
-implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -212,16 +212,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetQueryParameters4BoxedList -public record FakerefobjinqueryGetQueryParameters4BoxedList
-implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -229,16 +229,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetQueryParameters4BoxedMap -public record FakerefobjinqueryGetQueryParameters4BoxedMap
-implements [FakerefobjinqueryGetQueryParameters4Boxed](#fakerefobjinquerygetqueryparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FakerefobjinqueryGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -246,8 +246,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FakerefobjinqueryGetQueryParameters4 -public static class FakerefobjinqueryGetQueryParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md index b56954122aa..39603298e1f 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -74,9 +74,9 @@ FaketestqueryparamtersPut.Put apiClient = new FaketestqueryparamtersPut.Put(apiC // Map validation -FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters = +FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters = FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( - new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters13() + new FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder() .context( Arrays.asList( "a" @@ -159,7 +159,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparameters14) | queryParameters | +| [FaketestqueryparamtersPutQueryParameters.QueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -171,7 +171,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [FaketestqueryparamtersPutQueryParameters.@Nullable FaketestqueryparamtersPutQueryParameters14](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparameters14) | queryParameters | +| [FaketestqueryparamtersPutQueryParameters.@Nullable QueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -205,6 +205,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FaketestqueryparamtersPutQueryParametersFaketestqueryparamtersPutQueryParameters14](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#faketestqueryparamtersputqueryparameters14) queryParameters)
sets the property | +| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FaketestqueryparamtersPutQueryParametersQueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md index cdb3c642490..f2fb841bf9f 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed)
sealed interface for validated payloads | | record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1](#faketestqueryparamtersputqueryparameters1)
schema class | -| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters13](#faketestqueryparamtersputqueryparameters13)
builder for Map payloads | -| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14](#faketestqueryparamtersputqueryparameters14)
output class for Map payloads | -| sealed interface | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed)
sealed interface for validated payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedVoid](#faketestqueryparamtersputqueryparameters9boxedvoid)
boxed class to store validated null payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedBoolean](#faketestqueryparamtersputqueryparameters9boxedboolean)
boxed class to store validated boolean payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedNumber](#faketestqueryparamtersputqueryparameters9boxednumber)
boxed class to store validated Number payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedString](#faketestqueryparamtersputqueryparameters9boxedstring)
boxed class to store validated String payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedList](#faketestqueryparamtersputqueryparameters9boxedlist)
boxed class to store validated List payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9BoxedMap](#faketestqueryparamtersputqueryparameters9boxedmap)
boxed class to store validated Map payloads | -| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters9](#faketestqueryparamtersputqueryparameters9)
schema class | +| static class | [FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FaketestqueryparamtersPutQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FaketestqueryparamtersPutQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## FaketestqueryparamtersPutQueryParameters1Boxed public sealed interface FaketestqueryparamtersPutQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters1BoxedMap([FaketestqueryparamtersPutQueryParameters14](#faketestqueryparamtersputqueryparameters14) data)
Creates an instance, private visibility | +| FaketestqueryparamtersPutQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters14](#faketestqueryparamtersputqueryparameters14) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FaketestqueryparamtersPutQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 validatedPayload = +FaketestqueryparamtersPutQueryParameters.QueryParametersMap validatedPayload = FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( - new FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters13() + new FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder() .context( Arrays.asList( "a" @@ -113,18 +113,18 @@ FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameter | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("refParam", [StringWithValidation.StringWithValidation1.class](../../../components/schemas/StringWithValidation.md#stringwithvalidation1)),
    new PropertyEntry("ioutil", [Schema1.Schema11.class](../../../paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("context", [Schema4.Schema41.class](../../../paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("http", [Schema2.Schema21.class](../../../paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("pipe", [Schema0.Schema01.class](../../../paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("url", [Schema3.Schema31.class](../../../paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md#schema31))
)
| | Set | required = Set.of(
    "context",
    "http",
    "ioutil",
    "pipe",
    "refParam",
    "url"
)
| -| Class | additionalProperties = [FaketestqueryparamtersPutQueryParameters9.class](#faketestqueryparamtersputqueryparameters9) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters14](#faketestqueryparamtersputqueryparameters14) | validate([Map<?, ?>](#faketestqueryparamtersputqueryparameters13) arg, SchemaConfiguration configuration) | -| [FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#faketestqueryparamtersputqueryparameters13) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FaketestqueryparamtersPutQueryParameters15 -public class FaketestqueryparamtersPutQueryParameters15
+## QueryParametersMap000000Builder +public class QueryParametersMap000000Builder
builder for `Map` A class that builds the Map input type @@ -132,15 +132,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters15(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap000000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FaketestqueryparamtersPutQueryParameters16 -public class FaketestqueryparamtersPutQueryParameters16
+## QueryParametersMap000001Builder +public class QueryParametersMap000001Builder
builder for `Map` A class that builds the Map input type @@ -148,15 +148,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters16(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap000001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | url(List value) | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters17 -public class FaketestqueryparamtersPutQueryParameters17
+## QueryParametersMap000010Builder +public class QueryParametersMap000010Builder
builder for `Map` A class that builds the Map input type @@ -164,15 +164,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters17(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap000010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | refParam(String value) | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters18 -public class FaketestqueryparamtersPutQueryParameters18
+## QueryParametersMap000011Builder +public class QueryParametersMap000011Builder
builder for `Map` A class that builds the Map input type @@ -180,16 +180,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters18(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap000011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters16](#faketestqueryparamtersputqueryparameters16) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters17](#faketestqueryparamtersputqueryparameters17) | url(List value) | +| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | refParam(String value) | +| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters19 -public class FaketestqueryparamtersPutQueryParameters19
+## QueryParametersMap000100Builder +public class QueryParametersMap000100Builder
builder for `Map` A class that builds the Map input type @@ -197,15 +197,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters19(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap000100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | pipe(List value) | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | pipe(List value) | -## FaketestqueryparamtersPutQueryParameters20 -public class FaketestqueryparamtersPutQueryParameters20
+## QueryParametersMap000101Builder +public class QueryParametersMap000101Builder
builder for `Map` A class that builds the Map input type @@ -213,16 +213,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters20(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap000101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters16](#faketestqueryparamtersputqueryparameters16) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters19](#faketestqueryparamtersputqueryparameters19) | url(List value) | +| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | pipe(List value) | +| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters21 -public class FaketestqueryparamtersPutQueryParameters21
+## QueryParametersMap000110Builder +public class QueryParametersMap000110Builder
builder for `Map` A class that builds the Map input type @@ -230,16 +230,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters21(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap000110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters17](#faketestqueryparamtersputqueryparameters17) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters19](#faketestqueryparamtersputqueryparameters19) | refParam(String value) | +| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | pipe(List value) | +| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters22 -public class FaketestqueryparamtersPutQueryParameters22
+## QueryParametersMap000111Builder +public class QueryParametersMap000111Builder
builder for `Map` A class that builds the Map input type @@ -247,17 +247,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters22(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap000111Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters18](#faketestqueryparamtersputqueryparameters18) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters20](#faketestqueryparamtersputqueryparameters20) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters21](#faketestqueryparamtersputqueryparameters21) | url(List value) | +| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | pipe(List value) | +| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | refParam(String value) | +| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters23 -public class FaketestqueryparamtersPutQueryParameters23
+## QueryParametersMap001000Builder +public class QueryParametersMap001000Builder
builder for `Map` A class that builds the Map input type @@ -265,15 +265,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters23(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap001000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | ioutil(List value) | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | ioutil(List value) | -## FaketestqueryparamtersPutQueryParameters24 -public class FaketestqueryparamtersPutQueryParameters24
+## QueryParametersMap001001Builder +public class QueryParametersMap001001Builder
builder for `Map` A class that builds the Map input type @@ -281,16 +281,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters24(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap001001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters16](#faketestqueryparamtersputqueryparameters16) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters23](#faketestqueryparamtersputqueryparameters23) | url(List value) | +| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | ioutil(List value) | +| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters25 -public class FaketestqueryparamtersPutQueryParameters25
+## QueryParametersMap001010Builder +public class QueryParametersMap001010Builder
builder for `Map` A class that builds the Map input type @@ -298,16 +298,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters25(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap001010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters17](#faketestqueryparamtersputqueryparameters17) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters23](#faketestqueryparamtersputqueryparameters23) | refParam(String value) | +| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | ioutil(List value) | +| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters26 -public class FaketestqueryparamtersPutQueryParameters26
+## QueryParametersMap001011Builder +public class QueryParametersMap001011Builder
builder for `Map` A class that builds the Map input type @@ -315,17 +315,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters26(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap001011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters18](#faketestqueryparamtersputqueryparameters18) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters24](#faketestqueryparamtersputqueryparameters24) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters25](#faketestqueryparamtersputqueryparameters25) | url(List value) | +| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | ioutil(List value) | +| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | refParam(String value) | +| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters27 -public class FaketestqueryparamtersPutQueryParameters27
+## QueryParametersMap001100Builder +public class QueryParametersMap001100Builder
builder for `Map` A class that builds the Map input type @@ -333,16 +333,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters27(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap001100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters19](#faketestqueryparamtersputqueryparameters19) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters23](#faketestqueryparamtersputqueryparameters23) | pipe(List value) | +| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | ioutil(List value) | +| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | pipe(List value) | -## FaketestqueryparamtersPutQueryParameters28 -public class FaketestqueryparamtersPutQueryParameters28
+## QueryParametersMap001101Builder +public class QueryParametersMap001101Builder
builder for `Map` A class that builds the Map input type @@ -350,17 +350,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters28(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap001101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters20](#faketestqueryparamtersputqueryparameters20) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters24](#faketestqueryparamtersputqueryparameters24) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters27](#faketestqueryparamtersputqueryparameters27) | url(List value) | +| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | ioutil(List value) | +| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | pipe(List value) | +| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters29 -public class FaketestqueryparamtersPutQueryParameters29
+## QueryParametersMap001110Builder +public class QueryParametersMap001110Builder
builder for `Map` A class that builds the Map input type @@ -368,17 +368,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters29(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap001110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters21](#faketestqueryparamtersputqueryparameters21) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters25](#faketestqueryparamtersputqueryparameters25) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters27](#faketestqueryparamtersputqueryparameters27) | refParam(String value) | +| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | ioutil(List value) | +| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | pipe(List value) | +| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters30 -public class FaketestqueryparamtersPutQueryParameters30
+## QueryParametersMap001111Builder +public class QueryParametersMap001111Builder
builder for `Map` A class that builds the Map input type @@ -386,18 +386,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters30(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap001111Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters22](#faketestqueryparamtersputqueryparameters22) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters26](#faketestqueryparamtersputqueryparameters26) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters28](#faketestqueryparamtersputqueryparameters28) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters29](#faketestqueryparamtersputqueryparameters29) | url(List value) | +| [QueryParametersMap000111Builder](#queryparametersmap000111builder) | ioutil(List value) | +| [QueryParametersMap001011Builder](#queryparametersmap001011builder) | pipe(List value) | +| [QueryParametersMap001101Builder](#queryparametersmap001101builder) | refParam(String value) | +| [QueryParametersMap001110Builder](#queryparametersmap001110builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters31 -public class FaketestqueryparamtersPutQueryParameters31
+## QueryParametersMap010000Builder +public class QueryParametersMap010000Builder
builder for `Map` A class that builds the Map input type @@ -405,15 +405,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters31(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap010000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | http(List value) | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | http(List value) | -## FaketestqueryparamtersPutQueryParameters32 -public class FaketestqueryparamtersPutQueryParameters32
+## QueryParametersMap010001Builder +public class QueryParametersMap010001Builder
builder for `Map` A class that builds the Map input type @@ -421,16 +421,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters32(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap010001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters16](#faketestqueryparamtersputqueryparameters16) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters31](#faketestqueryparamtersputqueryparameters31) | url(List value) | +| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | http(List value) | +| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters33 -public class FaketestqueryparamtersPutQueryParameters33
+## QueryParametersMap010010Builder +public class QueryParametersMap010010Builder
builder for `Map` A class that builds the Map input type @@ -438,16 +438,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters33(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap010010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters17](#faketestqueryparamtersputqueryparameters17) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters31](#faketestqueryparamtersputqueryparameters31) | refParam(String value) | +| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | http(List value) | +| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters34 -public class FaketestqueryparamtersPutQueryParameters34
+## QueryParametersMap010011Builder +public class QueryParametersMap010011Builder
builder for `Map` A class that builds the Map input type @@ -455,17 +455,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters34(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap010011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters18](#faketestqueryparamtersputqueryparameters18) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters32](#faketestqueryparamtersputqueryparameters32) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters33](#faketestqueryparamtersputqueryparameters33) | url(List value) | +| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | http(List value) | +| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | refParam(String value) | +| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters35 -public class FaketestqueryparamtersPutQueryParameters35
+## QueryParametersMap010100Builder +public class QueryParametersMap010100Builder
builder for `Map` A class that builds the Map input type @@ -473,16 +473,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters35(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap010100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters19](#faketestqueryparamtersputqueryparameters19) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters31](#faketestqueryparamtersputqueryparameters31) | pipe(List value) | +| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | http(List value) | +| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | pipe(List value) | -## FaketestqueryparamtersPutQueryParameters36 -public class FaketestqueryparamtersPutQueryParameters36
+## QueryParametersMap010101Builder +public class QueryParametersMap010101Builder
builder for `Map` A class that builds the Map input type @@ -490,17 +490,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters36(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap010101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters20](#faketestqueryparamtersputqueryparameters20) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters32](#faketestqueryparamtersputqueryparameters32) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters35](#faketestqueryparamtersputqueryparameters35) | url(List value) | +| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | http(List value) | +| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | pipe(List value) | +| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters37 -public class FaketestqueryparamtersPutQueryParameters37
+## QueryParametersMap010110Builder +public class QueryParametersMap010110Builder
builder for `Map` A class that builds the Map input type @@ -508,17 +508,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters37(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap010110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters21](#faketestqueryparamtersputqueryparameters21) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters33](#faketestqueryparamtersputqueryparameters33) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters35](#faketestqueryparamtersputqueryparameters35) | refParam(String value) | +| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | http(List value) | +| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | pipe(List value) | +| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters38 -public class FaketestqueryparamtersPutQueryParameters38
+## QueryParametersMap010111Builder +public class QueryParametersMap010111Builder
builder for `Map` A class that builds the Map input type @@ -526,18 +526,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters38(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap010111Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters22](#faketestqueryparamtersputqueryparameters22) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters34](#faketestqueryparamtersputqueryparameters34) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters36](#faketestqueryparamtersputqueryparameters36) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters37](#faketestqueryparamtersputqueryparameters37) | url(List value) | +| [QueryParametersMap000111Builder](#queryparametersmap000111builder) | http(List value) | +| [QueryParametersMap010011Builder](#queryparametersmap010011builder) | pipe(List value) | +| [QueryParametersMap010101Builder](#queryparametersmap010101builder) | refParam(String value) | +| [QueryParametersMap010110Builder](#queryparametersmap010110builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters39 -public class FaketestqueryparamtersPutQueryParameters39
+## QueryParametersMap011000Builder +public class QueryParametersMap011000Builder
builder for `Map` A class that builds the Map input type @@ -545,16 +545,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters39(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap011000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters23](#faketestqueryparamtersputqueryparameters23) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters31](#faketestqueryparamtersputqueryparameters31) | ioutil(List value) | +| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | http(List value) | +| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | ioutil(List value) | -## FaketestqueryparamtersPutQueryParameters40 -public class FaketestqueryparamtersPutQueryParameters40
+## QueryParametersMap011001Builder +public class QueryParametersMap011001Builder
builder for `Map` A class that builds the Map input type @@ -562,17 +562,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters40(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap011001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters24](#faketestqueryparamtersputqueryparameters24) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters32](#faketestqueryparamtersputqueryparameters32) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters39](#faketestqueryparamtersputqueryparameters39) | url(List value) | +| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | http(List value) | +| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | ioutil(List value) | +| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters41 -public class FaketestqueryparamtersPutQueryParameters41
+## QueryParametersMap011010Builder +public class QueryParametersMap011010Builder
builder for `Map` A class that builds the Map input type @@ -580,17 +580,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters41(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap011010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters25](#faketestqueryparamtersputqueryparameters25) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters33](#faketestqueryparamtersputqueryparameters33) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters39](#faketestqueryparamtersputqueryparameters39) | refParam(String value) | +| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | http(List value) | +| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | ioutil(List value) | +| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters42 -public class FaketestqueryparamtersPutQueryParameters42
+## QueryParametersMap011011Builder +public class QueryParametersMap011011Builder
builder for `Map` A class that builds the Map input type @@ -598,18 +598,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters42(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap011011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters26](#faketestqueryparamtersputqueryparameters26) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters34](#faketestqueryparamtersputqueryparameters34) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters40](#faketestqueryparamtersputqueryparameters40) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters41](#faketestqueryparamtersputqueryparameters41) | url(List value) | +| [QueryParametersMap001011Builder](#queryparametersmap001011builder) | http(List value) | +| [QueryParametersMap010011Builder](#queryparametersmap010011builder) | ioutil(List value) | +| [QueryParametersMap011001Builder](#queryparametersmap011001builder) | refParam(String value) | +| [QueryParametersMap011010Builder](#queryparametersmap011010builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters43 -public class FaketestqueryparamtersPutQueryParameters43
+## QueryParametersMap011100Builder +public class QueryParametersMap011100Builder
builder for `Map` A class that builds the Map input type @@ -617,17 +617,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters43(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap011100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters27](#faketestqueryparamtersputqueryparameters27) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters35](#faketestqueryparamtersputqueryparameters35) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters39](#faketestqueryparamtersputqueryparameters39) | pipe(List value) | +| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | http(List value) | +| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | ioutil(List value) | +| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | pipe(List value) | -## FaketestqueryparamtersPutQueryParameters44 -public class FaketestqueryparamtersPutQueryParameters44
+## QueryParametersMap011101Builder +public class QueryParametersMap011101Builder
builder for `Map` A class that builds the Map input type @@ -635,18 +635,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters44(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap011101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters28](#faketestqueryparamtersputqueryparameters28) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters36](#faketestqueryparamtersputqueryparameters36) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters40](#faketestqueryparamtersputqueryparameters40) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters43](#faketestqueryparamtersputqueryparameters43) | url(List value) | +| [QueryParametersMap001101Builder](#queryparametersmap001101builder) | http(List value) | +| [QueryParametersMap010101Builder](#queryparametersmap010101builder) | ioutil(List value) | +| [QueryParametersMap011001Builder](#queryparametersmap011001builder) | pipe(List value) | +| [QueryParametersMap011100Builder](#queryparametersmap011100builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters45 -public class FaketestqueryparamtersPutQueryParameters45
+## QueryParametersMap011110Builder +public class QueryParametersMap011110Builder
builder for `Map` A class that builds the Map input type @@ -654,18 +654,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters45(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap011110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters29](#faketestqueryparamtersputqueryparameters29) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters37](#faketestqueryparamtersputqueryparameters37) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters41](#faketestqueryparamtersputqueryparameters41) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters43](#faketestqueryparamtersputqueryparameters43) | refParam(String value) | +| [QueryParametersMap001110Builder](#queryparametersmap001110builder) | http(List value) | +| [QueryParametersMap010110Builder](#queryparametersmap010110builder) | ioutil(List value) | +| [QueryParametersMap011010Builder](#queryparametersmap011010builder) | pipe(List value) | +| [QueryParametersMap011100Builder](#queryparametersmap011100builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters46 -public class FaketestqueryparamtersPutQueryParameters46
+## QueryParametersMap011111Builder +public class QueryParametersMap011111Builder
builder for `Map` A class that builds the Map input type @@ -673,19 +673,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters46(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap011111Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters30](#faketestqueryparamtersputqueryparameters30) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters38](#faketestqueryparamtersputqueryparameters38) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters42](#faketestqueryparamtersputqueryparameters42) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters44](#faketestqueryparamtersputqueryparameters44) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters45](#faketestqueryparamtersputqueryparameters45) | url(List value) | +| [QueryParametersMap001111Builder](#queryparametersmap001111builder) | http(List value) | +| [QueryParametersMap010111Builder](#queryparametersmap010111builder) | ioutil(List value) | +| [QueryParametersMap011011Builder](#queryparametersmap011011builder) | pipe(List value) | +| [QueryParametersMap011101Builder](#queryparametersmap011101builder) | refParam(String value) | +| [QueryParametersMap011110Builder](#queryparametersmap011110builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters47 -public class FaketestqueryparamtersPutQueryParameters47
+## QueryParametersMap100000Builder +public class QueryParametersMap100000Builder
builder for `Map` A class that builds the Map input type @@ -693,15 +693,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters47(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap100000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters15](#faketestqueryparamtersputqueryparameters15) | context(List value) | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | context(List value) | -## FaketestqueryparamtersPutQueryParameters48 -public class FaketestqueryparamtersPutQueryParameters48
+## QueryParametersMap100001Builder +public class QueryParametersMap100001Builder
builder for `Map` A class that builds the Map input type @@ -709,16 +709,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters48(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap100001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters16](#faketestqueryparamtersputqueryparameters16) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters47](#faketestqueryparamtersputqueryparameters47) | url(List value) | +| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | context(List value) | +| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters49 -public class FaketestqueryparamtersPutQueryParameters49
+## QueryParametersMap100010Builder +public class QueryParametersMap100010Builder
builder for `Map` A class that builds the Map input type @@ -726,16 +726,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters49(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap100010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters17](#faketestqueryparamtersputqueryparameters17) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters47](#faketestqueryparamtersputqueryparameters47) | refParam(String value) | +| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | context(List value) | +| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters50 -public class FaketestqueryparamtersPutQueryParameters50
+## QueryParametersMap100011Builder +public class QueryParametersMap100011Builder
builder for `Map` A class that builds the Map input type @@ -743,17 +743,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters50(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap100011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters18](#faketestqueryparamtersputqueryparameters18) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters48](#faketestqueryparamtersputqueryparameters48) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters49](#faketestqueryparamtersputqueryparameters49) | url(List value) | +| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | context(List value) | +| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | refParam(String value) | +| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters51 -public class FaketestqueryparamtersPutQueryParameters51
+## QueryParametersMap100100Builder +public class QueryParametersMap100100Builder
builder for `Map` A class that builds the Map input type @@ -761,16 +761,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters51(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap100100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters19](#faketestqueryparamtersputqueryparameters19) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters47](#faketestqueryparamtersputqueryparameters47) | pipe(List value) | +| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | context(List value) | +| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | pipe(List value) | -## FaketestqueryparamtersPutQueryParameters52 -public class FaketestqueryparamtersPutQueryParameters52
+## QueryParametersMap100101Builder +public class QueryParametersMap100101Builder
builder for `Map` A class that builds the Map input type @@ -778,17 +778,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters52(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap100101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters20](#faketestqueryparamtersputqueryparameters20) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters48](#faketestqueryparamtersputqueryparameters48) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters51](#faketestqueryparamtersputqueryparameters51) | url(List value) | +| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | context(List value) | +| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | pipe(List value) | +| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters53 -public class FaketestqueryparamtersPutQueryParameters53
+## QueryParametersMap100110Builder +public class QueryParametersMap100110Builder
builder for `Map` A class that builds the Map input type @@ -796,17 +796,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters53(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap100110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters21](#faketestqueryparamtersputqueryparameters21) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters49](#faketestqueryparamtersputqueryparameters49) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters51](#faketestqueryparamtersputqueryparameters51) | refParam(String value) | +| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | context(List value) | +| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | pipe(List value) | +| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters54 -public class FaketestqueryparamtersPutQueryParameters54
+## QueryParametersMap100111Builder +public class QueryParametersMap100111Builder
builder for `Map` A class that builds the Map input type @@ -814,18 +814,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters54(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap100111Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters22](#faketestqueryparamtersputqueryparameters22) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters50](#faketestqueryparamtersputqueryparameters50) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters52](#faketestqueryparamtersputqueryparameters52) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters53](#faketestqueryparamtersputqueryparameters53) | url(List value) | +| [QueryParametersMap000111Builder](#queryparametersmap000111builder) | context(List value) | +| [QueryParametersMap100011Builder](#queryparametersmap100011builder) | pipe(List value) | +| [QueryParametersMap100101Builder](#queryparametersmap100101builder) | refParam(String value) | +| [QueryParametersMap100110Builder](#queryparametersmap100110builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters55 -public class FaketestqueryparamtersPutQueryParameters55
+## QueryParametersMap101000Builder +public class QueryParametersMap101000Builder
builder for `Map` A class that builds the Map input type @@ -833,16 +833,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters55(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap101000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters23](#faketestqueryparamtersputqueryparameters23) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters47](#faketestqueryparamtersputqueryparameters47) | ioutil(List value) | +| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | context(List value) | +| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | ioutil(List value) | -## FaketestqueryparamtersPutQueryParameters56 -public class FaketestqueryparamtersPutQueryParameters56
+## QueryParametersMap101001Builder +public class QueryParametersMap101001Builder
builder for `Map` A class that builds the Map input type @@ -850,17 +850,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters56(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap101001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters24](#faketestqueryparamtersputqueryparameters24) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters48](#faketestqueryparamtersputqueryparameters48) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters55](#faketestqueryparamtersputqueryparameters55) | url(List value) | +| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | context(List value) | +| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | ioutil(List value) | +| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters57 -public class FaketestqueryparamtersPutQueryParameters57
+## QueryParametersMap101010Builder +public class QueryParametersMap101010Builder
builder for `Map` A class that builds the Map input type @@ -868,17 +868,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters57(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap101010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters25](#faketestqueryparamtersputqueryparameters25) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters49](#faketestqueryparamtersputqueryparameters49) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters55](#faketestqueryparamtersputqueryparameters55) | refParam(String value) | +| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | context(List value) | +| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | ioutil(List value) | +| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters58 -public class FaketestqueryparamtersPutQueryParameters58
+## QueryParametersMap101011Builder +public class QueryParametersMap101011Builder
builder for `Map` A class that builds the Map input type @@ -886,18 +886,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters58(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap101011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters26](#faketestqueryparamtersputqueryparameters26) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters50](#faketestqueryparamtersputqueryparameters50) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters56](#faketestqueryparamtersputqueryparameters56) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters57](#faketestqueryparamtersputqueryparameters57) | url(List value) | +| [QueryParametersMap001011Builder](#queryparametersmap001011builder) | context(List value) | +| [QueryParametersMap100011Builder](#queryparametersmap100011builder) | ioutil(List value) | +| [QueryParametersMap101001Builder](#queryparametersmap101001builder) | refParam(String value) | +| [QueryParametersMap101010Builder](#queryparametersmap101010builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters59 -public class FaketestqueryparamtersPutQueryParameters59
+## QueryParametersMap101100Builder +public class QueryParametersMap101100Builder
builder for `Map` A class that builds the Map input type @@ -905,17 +905,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters59(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap101100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters27](#faketestqueryparamtersputqueryparameters27) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters51](#faketestqueryparamtersputqueryparameters51) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters55](#faketestqueryparamtersputqueryparameters55) | pipe(List value) | +| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | context(List value) | +| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | ioutil(List value) | +| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | pipe(List value) | -## FaketestqueryparamtersPutQueryParameters60 -public class FaketestqueryparamtersPutQueryParameters60
+## QueryParametersMap101101Builder +public class QueryParametersMap101101Builder
builder for `Map` A class that builds the Map input type @@ -923,18 +923,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters60(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap101101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters28](#faketestqueryparamtersputqueryparameters28) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters52](#faketestqueryparamtersputqueryparameters52) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters56](#faketestqueryparamtersputqueryparameters56) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters59](#faketestqueryparamtersputqueryparameters59) | url(List value) | +| [QueryParametersMap001101Builder](#queryparametersmap001101builder) | context(List value) | +| [QueryParametersMap100101Builder](#queryparametersmap100101builder) | ioutil(List value) | +| [QueryParametersMap101001Builder](#queryparametersmap101001builder) | pipe(List value) | +| [QueryParametersMap101100Builder](#queryparametersmap101100builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters61 -public class FaketestqueryparamtersPutQueryParameters61
+## QueryParametersMap101110Builder +public class QueryParametersMap101110Builder
builder for `Map` A class that builds the Map input type @@ -942,18 +942,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters61(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap101110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters29](#faketestqueryparamtersputqueryparameters29) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters53](#faketestqueryparamtersputqueryparameters53) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters57](#faketestqueryparamtersputqueryparameters57) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters59](#faketestqueryparamtersputqueryparameters59) | refParam(String value) | +| [QueryParametersMap001110Builder](#queryparametersmap001110builder) | context(List value) | +| [QueryParametersMap100110Builder](#queryparametersmap100110builder) | ioutil(List value) | +| [QueryParametersMap101010Builder](#queryparametersmap101010builder) | pipe(List value) | +| [QueryParametersMap101100Builder](#queryparametersmap101100builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters62 -public class FaketestqueryparamtersPutQueryParameters62
+## QueryParametersMap101111Builder +public class QueryParametersMap101111Builder
builder for `Map` A class that builds the Map input type @@ -961,19 +961,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters62(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap101111Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters30](#faketestqueryparamtersputqueryparameters30) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters54](#faketestqueryparamtersputqueryparameters54) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters58](#faketestqueryparamtersputqueryparameters58) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters60](#faketestqueryparamtersputqueryparameters60) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters61](#faketestqueryparamtersputqueryparameters61) | url(List value) | +| [QueryParametersMap001111Builder](#queryparametersmap001111builder) | context(List value) | +| [QueryParametersMap100111Builder](#queryparametersmap100111builder) | ioutil(List value) | +| [QueryParametersMap101011Builder](#queryparametersmap101011builder) | pipe(List value) | +| [QueryParametersMap101101Builder](#queryparametersmap101101builder) | refParam(String value) | +| [QueryParametersMap101110Builder](#queryparametersmap101110builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters63 -public class FaketestqueryparamtersPutQueryParameters63
+## QueryParametersMap110000Builder +public class QueryParametersMap110000Builder
builder for `Map` A class that builds the Map input type @@ -981,16 +981,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters63(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap110000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters31](#faketestqueryparamtersputqueryparameters31) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters47](#faketestqueryparamtersputqueryparameters47) | http(List value) | +| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | context(List value) | +| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | http(List value) | -## FaketestqueryparamtersPutQueryParameters64 -public class FaketestqueryparamtersPutQueryParameters64
+## QueryParametersMap110001Builder +public class QueryParametersMap110001Builder
builder for `Map` A class that builds the Map input type @@ -998,17 +998,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters64(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap110001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters32](#faketestqueryparamtersputqueryparameters32) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters48](#faketestqueryparamtersputqueryparameters48) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters63](#faketestqueryparamtersputqueryparameters63) | url(List value) | +| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | context(List value) | +| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | http(List value) | +| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters65 -public class FaketestqueryparamtersPutQueryParameters65
+## QueryParametersMap110010Builder +public class QueryParametersMap110010Builder
builder for `Map` A class that builds the Map input type @@ -1016,17 +1016,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters65(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap110010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters33](#faketestqueryparamtersputqueryparameters33) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters49](#faketestqueryparamtersputqueryparameters49) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters63](#faketestqueryparamtersputqueryparameters63) | refParam(String value) | +| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | context(List value) | +| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | http(List value) | +| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters66 -public class FaketestqueryparamtersPutQueryParameters66
+## QueryParametersMap110011Builder +public class QueryParametersMap110011Builder
builder for `Map` A class that builds the Map input type @@ -1034,18 +1034,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters66(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap110011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters34](#faketestqueryparamtersputqueryparameters34) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters50](#faketestqueryparamtersputqueryparameters50) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters64](#faketestqueryparamtersputqueryparameters64) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters65](#faketestqueryparamtersputqueryparameters65) | url(List value) | +| [QueryParametersMap010011Builder](#queryparametersmap010011builder) | context(List value) | +| [QueryParametersMap100011Builder](#queryparametersmap100011builder) | http(List value) | +| [QueryParametersMap110001Builder](#queryparametersmap110001builder) | refParam(String value) | +| [QueryParametersMap110010Builder](#queryparametersmap110010builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters67 -public class FaketestqueryparamtersPutQueryParameters67
+## QueryParametersMap110100Builder +public class QueryParametersMap110100Builder
builder for `Map` A class that builds the Map input type @@ -1053,17 +1053,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters67(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap110100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters35](#faketestqueryparamtersputqueryparameters35) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters51](#faketestqueryparamtersputqueryparameters51) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters63](#faketestqueryparamtersputqueryparameters63) | pipe(List value) | +| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | context(List value) | +| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | http(List value) | +| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | pipe(List value) | -## FaketestqueryparamtersPutQueryParameters68 -public class FaketestqueryparamtersPutQueryParameters68
+## QueryParametersMap110101Builder +public class QueryParametersMap110101Builder
builder for `Map` A class that builds the Map input type @@ -1071,18 +1071,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters68(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap110101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters36](#faketestqueryparamtersputqueryparameters36) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters52](#faketestqueryparamtersputqueryparameters52) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters64](#faketestqueryparamtersputqueryparameters64) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters67](#faketestqueryparamtersputqueryparameters67) | url(List value) | +| [QueryParametersMap010101Builder](#queryparametersmap010101builder) | context(List value) | +| [QueryParametersMap100101Builder](#queryparametersmap100101builder) | http(List value) | +| [QueryParametersMap110001Builder](#queryparametersmap110001builder) | pipe(List value) | +| [QueryParametersMap110100Builder](#queryparametersmap110100builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters69 -public class FaketestqueryparamtersPutQueryParameters69
+## QueryParametersMap110110Builder +public class QueryParametersMap110110Builder
builder for `Map` A class that builds the Map input type @@ -1090,18 +1090,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters69(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap110110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters37](#faketestqueryparamtersputqueryparameters37) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters53](#faketestqueryparamtersputqueryparameters53) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters65](#faketestqueryparamtersputqueryparameters65) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters67](#faketestqueryparamtersputqueryparameters67) | refParam(String value) | +| [QueryParametersMap010110Builder](#queryparametersmap010110builder) | context(List value) | +| [QueryParametersMap100110Builder](#queryparametersmap100110builder) | http(List value) | +| [QueryParametersMap110010Builder](#queryparametersmap110010builder) | pipe(List value) | +| [QueryParametersMap110100Builder](#queryparametersmap110100builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters70 -public class FaketestqueryparamtersPutQueryParameters70
+## QueryParametersMap110111Builder +public class QueryParametersMap110111Builder
builder for `Map` A class that builds the Map input type @@ -1109,19 +1109,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters70(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap110111Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters38](#faketestqueryparamtersputqueryparameters38) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters54](#faketestqueryparamtersputqueryparameters54) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters66](#faketestqueryparamtersputqueryparameters66) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters68](#faketestqueryparamtersputqueryparameters68) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters69](#faketestqueryparamtersputqueryparameters69) | url(List value) | +| [QueryParametersMap010111Builder](#queryparametersmap010111builder) | context(List value) | +| [QueryParametersMap100111Builder](#queryparametersmap100111builder) | http(List value) | +| [QueryParametersMap110011Builder](#queryparametersmap110011builder) | pipe(List value) | +| [QueryParametersMap110101Builder](#queryparametersmap110101builder) | refParam(String value) | +| [QueryParametersMap110110Builder](#queryparametersmap110110builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters71 -public class FaketestqueryparamtersPutQueryParameters71
+## QueryParametersMap111000Builder +public class QueryParametersMap111000Builder
builder for `Map` A class that builds the Map input type @@ -1129,17 +1129,17 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters71(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap111000Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters39](#faketestqueryparamtersputqueryparameters39) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters55](#faketestqueryparamtersputqueryparameters55) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters63](#faketestqueryparamtersputqueryparameters63) | ioutil(List value) | +| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | context(List value) | +| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | http(List value) | +| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | ioutil(List value) | -## FaketestqueryparamtersPutQueryParameters72 -public class FaketestqueryparamtersPutQueryParameters72
+## QueryParametersMap111001Builder +public class QueryParametersMap111001Builder
builder for `Map` A class that builds the Map input type @@ -1147,18 +1147,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters72(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap111001Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters40](#faketestqueryparamtersputqueryparameters40) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters56](#faketestqueryparamtersputqueryparameters56) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters64](#faketestqueryparamtersputqueryparameters64) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters71](#faketestqueryparamtersputqueryparameters71) | url(List value) | +| [QueryParametersMap011001Builder](#queryparametersmap011001builder) | context(List value) | +| [QueryParametersMap101001Builder](#queryparametersmap101001builder) | http(List value) | +| [QueryParametersMap110001Builder](#queryparametersmap110001builder) | ioutil(List value) | +| [QueryParametersMap111000Builder](#queryparametersmap111000builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters73 -public class FaketestqueryparamtersPutQueryParameters73
+## QueryParametersMap111010Builder +public class QueryParametersMap111010Builder
builder for `Map` A class that builds the Map input type @@ -1166,18 +1166,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters73(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap111010Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters41](#faketestqueryparamtersputqueryparameters41) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters57](#faketestqueryparamtersputqueryparameters57) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters65](#faketestqueryparamtersputqueryparameters65) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters71](#faketestqueryparamtersputqueryparameters71) | refParam(String value) | +| [QueryParametersMap011010Builder](#queryparametersmap011010builder) | context(List value) | +| [QueryParametersMap101010Builder](#queryparametersmap101010builder) | http(List value) | +| [QueryParametersMap110010Builder](#queryparametersmap110010builder) | ioutil(List value) | +| [QueryParametersMap111000Builder](#queryparametersmap111000builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters74 -public class FaketestqueryparamtersPutQueryParameters74
+## QueryParametersMap111011Builder +public class QueryParametersMap111011Builder
builder for `Map` A class that builds the Map input type @@ -1185,19 +1185,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters74(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap111011Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters42](#faketestqueryparamtersputqueryparameters42) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters58](#faketestqueryparamtersputqueryparameters58) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters66](#faketestqueryparamtersputqueryparameters66) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters72](#faketestqueryparamtersputqueryparameters72) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters73](#faketestqueryparamtersputqueryparameters73) | url(List value) | +| [QueryParametersMap011011Builder](#queryparametersmap011011builder) | context(List value) | +| [QueryParametersMap101011Builder](#queryparametersmap101011builder) | http(List value) | +| [QueryParametersMap110011Builder](#queryparametersmap110011builder) | ioutil(List value) | +| [QueryParametersMap111001Builder](#queryparametersmap111001builder) | refParam(String value) | +| [QueryParametersMap111010Builder](#queryparametersmap111010builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters75 -public class FaketestqueryparamtersPutQueryParameters75
+## QueryParametersMap111100Builder +public class QueryParametersMap111100Builder
builder for `Map` A class that builds the Map input type @@ -1205,18 +1205,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters75(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap111100Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters43](#faketestqueryparamtersputqueryparameters43) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters59](#faketestqueryparamtersputqueryparameters59) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters67](#faketestqueryparamtersputqueryparameters67) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters71](#faketestqueryparamtersputqueryparameters71) | pipe(List value) | +| [QueryParametersMap011100Builder](#queryparametersmap011100builder) | context(List value) | +| [QueryParametersMap101100Builder](#queryparametersmap101100builder) | http(List value) | +| [QueryParametersMap110100Builder](#queryparametersmap110100builder) | ioutil(List value) | +| [QueryParametersMap111000Builder](#queryparametersmap111000builder) | pipe(List value) | -## FaketestqueryparamtersPutQueryParameters76 -public class FaketestqueryparamtersPutQueryParameters76
+## QueryParametersMap111101Builder +public class QueryParametersMap111101Builder
builder for `Map` A class that builds the Map input type @@ -1224,19 +1224,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters76(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap111101Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters44](#faketestqueryparamtersputqueryparameters44) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters60](#faketestqueryparamtersputqueryparameters60) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters68](#faketestqueryparamtersputqueryparameters68) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters72](#faketestqueryparamtersputqueryparameters72) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters75](#faketestqueryparamtersputqueryparameters75) | url(List value) | +| [QueryParametersMap011101Builder](#queryparametersmap011101builder) | context(List value) | +| [QueryParametersMap101101Builder](#queryparametersmap101101builder) | http(List value) | +| [QueryParametersMap110101Builder](#queryparametersmap110101builder) | ioutil(List value) | +| [QueryParametersMap111001Builder](#queryparametersmap111001builder) | pipe(List value) | +| [QueryParametersMap111100Builder](#queryparametersmap111100builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters77 -public class FaketestqueryparamtersPutQueryParameters77
+## QueryParametersMap111110Builder +public class QueryParametersMap111110Builder
builder for `Map` A class that builds the Map input type @@ -1244,19 +1244,19 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters77(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap111110Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters45](#faketestqueryparamtersputqueryparameters45) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters61](#faketestqueryparamtersputqueryparameters61) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters69](#faketestqueryparamtersputqueryparameters69) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters73](#faketestqueryparamtersputqueryparameters73) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters75](#faketestqueryparamtersputqueryparameters75) | refParam(String value) | +| [QueryParametersMap011110Builder](#queryparametersmap011110builder) | context(List value) | +| [QueryParametersMap101110Builder](#queryparametersmap101110builder) | http(List value) | +| [QueryParametersMap110110Builder](#queryparametersmap110110builder) | ioutil(List value) | +| [QueryParametersMap111010Builder](#queryparametersmap111010builder) | pipe(List value) | +| [QueryParametersMap111100Builder](#queryparametersmap111100builder) | refParam(String value) | -## FaketestqueryparamtersPutQueryParameters13 -public class FaketestqueryparamtersPutQueryParameters13
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -1264,20 +1264,20 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters13()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FaketestqueryparamtersPutQueryParameters46](#faketestqueryparamtersputqueryparameters46) | context(List value) | -| [FaketestqueryparamtersPutQueryParameters62](#faketestqueryparamtersputqueryparameters62) | http(List value) | -| [FaketestqueryparamtersPutQueryParameters70](#faketestqueryparamtersputqueryparameters70) | ioutil(List value) | -| [FaketestqueryparamtersPutQueryParameters74](#faketestqueryparamtersputqueryparameters74) | pipe(List value) | -| [FaketestqueryparamtersPutQueryParameters76](#faketestqueryparamtersputqueryparameters76) | refParam(String value) | -| [FaketestqueryparamtersPutQueryParameters77](#faketestqueryparamtersputqueryparameters77) | url(List value) | +| [QueryParametersMap011111Builder](#queryparametersmap011111builder) | context(List value) | +| [QueryParametersMap101111Builder](#queryparametersmap101111builder) | http(List value) | +| [QueryParametersMap110111Builder](#queryparametersmap110111builder) | ioutil(List value) | +| [QueryParametersMap111011Builder](#queryparametersmap111011builder) | pipe(List value) | +| [QueryParametersMap111101Builder](#queryparametersmap111101builder) | refParam(String value) | +| [QueryParametersMap111110Builder](#queryparametersmap111110builder) | url(List value) | -## FaketestqueryparamtersPutQueryParameters14 -public static class FaketestqueryparamtersPutQueryParameters14
+## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -1285,7 +1285,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FaketestqueryparamtersPutQueryParameters14](#faketestqueryparamtersputqueryparameters14) | of([Map](#faketestqueryparamtersputqueryparameters13) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [Schema4.SchemaList4](../../../paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md#schemalist4) | context()
| | [Schema2.SchemaList2](../../../paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md#schemalist2) | http()
| | [Schema1.SchemaList1](../../../paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md#schemalist1) | ioutil()
| @@ -1293,28 +1293,28 @@ A class to store validated Map payloads | String | refParam()
| | [Schema3.SchemaList3](../../../paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md#schemalist3) | url()
| -## FaketestqueryparamtersPutQueryParameters9Boxed -public sealed interface FaketestqueryparamtersPutQueryParameters9Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FaketestqueryparamtersPutQueryParameters9BoxedVoid](#faketestqueryparamtersputqueryparameters9boxedvoid), -[FaketestqueryparamtersPutQueryParameters9BoxedBoolean](#faketestqueryparamtersputqueryparameters9boxedboolean), -[FaketestqueryparamtersPutQueryParameters9BoxedNumber](#faketestqueryparamtersputqueryparameters9boxednumber), -[FaketestqueryparamtersPutQueryParameters9BoxedString](#faketestqueryparamtersputqueryparameters9boxedstring), -[FaketestqueryparamtersPutQueryParameters9BoxedList](#faketestqueryparamtersputqueryparameters9boxedlist), -[FaketestqueryparamtersPutQueryParameters9BoxedMap](#faketestqueryparamtersputqueryparameters9boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FaketestqueryparamtersPutQueryParameters9BoxedVoid -public record FaketestqueryparamtersPutQueryParameters9BoxedVoid
-implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters9BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1322,16 +1322,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutQueryParameters9BoxedBoolean -public record FaketestqueryparamtersPutQueryParameters9BoxedBoolean
-implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters9BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1339,16 +1339,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutQueryParameters9BoxedNumber -public record FaketestqueryparamtersPutQueryParameters9BoxedNumber
-implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters9BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1356,16 +1356,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutQueryParameters9BoxedString -public record FaketestqueryparamtersPutQueryParameters9BoxedString
-implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters9BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1373,16 +1373,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutQueryParameters9BoxedList -public record FaketestqueryparamtersPutQueryParameters9BoxedList
-implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters9BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1390,16 +1390,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutQueryParameters9BoxedMap -public record FaketestqueryparamtersPutQueryParameters9BoxedMap
-implements [FaketestqueryparamtersPutQueryParameters9Boxed](#faketestqueryparamtersputqueryparameters9boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FaketestqueryparamtersPutQueryParameters9BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -1407,8 +1407,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FaketestqueryparamtersPutQueryParameters9 -public static class FaketestqueryparamtersPutQueryParameters9
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md b/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md index f86f4d37f2e..eb4569697ef 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md +++ b/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md @@ -7,10 +7,10 @@ A class that stores a server url | Constructor and Description | | --------------------------- | | FooGetServer1()
Creates a server using default values for variables | -| FooGetServer1([FooGetServer1Variables.FooGetServer1Variables11](../../../../paths/foo/get/servers/server1/Variables.md#foogetserver1variables11) variables)
Creates a server using input values for variables | +| FooGetServer1([FooGetServer1Variables.VariablesMap](../../../../paths/foo/get/servers/server1/Variables.md#variablesmap) variables)
Creates a server using input values for variables | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | | String | url = "https://petstore.swagger.io/{version}" | -| [FooGetServer1Variables.FooGetServer1Variables11](../../../../paths/foo/get/servers/server1/Variables.md#foogetserver1variables11) | variables | +| [FooGetServer1Variables.VariablesMap](../../../../paths/foo/get/servers/server1/Variables.md#variablesmap) | variables | diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md b/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md index a7929ba7cc9..4ce7ff26e50 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md +++ b/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md @@ -15,20 +15,20 @@ A class that contains necessary nested | sealed interface | [FooGetServer1Variables.FooGetServer1Variables1Boxed](#foogetserver1variables1boxed)
sealed interface for validated payloads | | record | [FooGetServer1Variables.FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap)
boxed class to store validated Map payloads | | static class | [FooGetServer1Variables.FooGetServer1Variables1](#foogetserver1variables1)
schema class | -| static class | [FooGetServer1Variables.FooGetServer1Variables10](#foogetserver1variables10)
builder for Map payloads | -| static class | [FooGetServer1Variables.FooGetServer1Variables11](#foogetserver1variables11)
output class for Map payloads | -| sealed interface | [FooGetServer1Variables.FooGetServer1Variables2Boxed](#foogetserver1variables2boxed)
sealed interface for validated payloads | -| record | [FooGetServer1Variables.FooGetServer1Variables2BoxedString](#foogetserver1variables2boxedstring)
boxed class to store validated String payloads | -| static class | [FooGetServer1Variables.FooGetServer1Variables2](#foogetserver1variables2)
schema class | -| enum | [FooGetServer1Variables.StringFooGetServer1Variables3](#stringfoogetserver1variables3)
String enum | -| sealed interface | [FooGetServer1Variables.FooGetServer1Variables6Boxed](#foogetserver1variables6boxed)
sealed interface for validated payloads | -| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedVoid](#foogetserver1variables6boxedvoid)
boxed class to store validated null payloads | -| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedBoolean](#foogetserver1variables6boxedboolean)
boxed class to store validated boolean payloads | -| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedNumber](#foogetserver1variables6boxednumber)
boxed class to store validated Number payloads | -| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedString](#foogetserver1variables6boxedstring)
boxed class to store validated String payloads | -| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedList](#foogetserver1variables6boxedlist)
boxed class to store validated List payloads | -| record | [FooGetServer1Variables.FooGetServer1Variables6BoxedMap](#foogetserver1variables6boxedmap)
boxed class to store validated Map payloads | -| static class | [FooGetServer1Variables.FooGetServer1Variables6](#foogetserver1variables6)
schema class | +| static class | [FooGetServer1Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | +| static class | [FooGetServer1Variables.VariablesMap](#variablesmap)
output class for Map payloads | +| sealed interface | [FooGetServer1Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | +| record | [FooGetServer1Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | +| static class | [FooGetServer1Variables.Version](#version)
schema class | +| enum | [FooGetServer1Variables.StringVersionEnums](#stringversionenums)
String enum | +| sealed interface | [FooGetServer1Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FooGetServer1Variables.AdditionalProperties](#additionalproperties)
schema class | ## FooGetServer1Variables1Boxed public sealed interface FooGetServer1Variables1Boxed
@@ -46,12 +46,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServer1Variables1BoxedMap([FooGetServer1Variables11](#foogetserver1variables11) data)
Creates an instance, private visibility | +| FooGetServer1Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FooGetServer1Variables11](#foogetserver1variables11) | data()
validated payload | +| [VariablesMap](#variablesmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## FooGetServer1Variables1 @@ -77,9 +77,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -FooGetServer1Variables.FooGetServer1Variables11 validatedPayload = +FooGetServer1Variables.VariablesMap validatedPayload = FooGetServer1Variables.FooGetServer1Variables1.validate( - new FooGetServer1Variables.FooGetServer1Variables10() + new FooGetServer1Variables.VariablesMapBuilder() .version("v1") .build(), @@ -91,20 +91,20 @@ FooGetServer1Variables.FooGetServer1Variables11 validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [FooGetServer1Variables2.class](#foogetserver1variables2)))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| | Set | required = Set.of(
    "version"
)
| -| Class | additionalProperties = [FooGetServer1Variables6.class](#foogetserver1variables6) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FooGetServer1Variables11](#foogetserver1variables11) | validate([Map<?, ?>](#foogetserver1variables10) arg, SchemaConfiguration configuration) | -| [FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#foogetserver1variables10) arg, SchemaConfiguration configuration) | +| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | | [FooGetServer1Variables1Boxed](#foogetserver1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FooGetServer1Variables12 -public class FooGetServer1Variables12
+## VariablesMap0Builder +public class VariablesMap0Builder
builder for `Map` A class that builds the Map input type @@ -112,15 +112,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServer1Variables12(Map instance)
Creates a builder that contains the passed instance | +| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## FooGetServer1Variables10 -public class FooGetServer1Variables10
+## VariablesMapBuilder +public class VariablesMapBuilder
builder for `Map` A class that builds the Map input type @@ -128,16 +128,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServer1Variables10()
Creates a builder that contains an empty map | +| VariablesMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FooGetServer1Variables12](#foogetserver1variables12) | version(String value) | -| [FooGetServer1Variables12](#foogetserver1variables12) | version([StringFooGetServer1Variables3](#stringfoogetserver1variables3) value) | +| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | +| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | -## FooGetServer1Variables11 -public static class FooGetServer1Variables11
+## VariablesMap +public static class VariablesMap
extends FrozenMap A class to store validated Map payloads @@ -145,26 +145,26 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FooGetServer1Variables11](#foogetserver1variables11) | of([Map](#foogetserver1variables10) arg, SchemaConfiguration configuration) | +| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | | String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v1 | -## FooGetServer1Variables2Boxed -public sealed interface FooGetServer1Variables2Boxed
+## VersionBoxed +public sealed interface VersionBoxed
permits
-[FooGetServer1Variables2BoxedString](#foogetserver1variables2boxedstring) +[VersionBoxedString](#versionboxedstring) sealed interface that stores validated payloads using boxed classes -## FooGetServer1Variables2BoxedString -public record FooGetServer1Variables2BoxedString
-implements [FooGetServer1Variables2Boxed](#foogetserver1variables2boxed) +## VersionBoxedString +public record VersionBoxedString
+implements [VersionBoxed](#versionboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServer1Variables2BoxedString(String data)
Creates an instance, private visibility | +| VersionBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,8 +172,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FooGetServer1Variables2 -public static class FooGetServer1Variables2
+## Version +public static class Version
extends JsonSchema A schema class that validates payloads @@ -195,7 +195,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = FooGetServer1Variables.FooGetServer1Variables2.validate( +String validatedPayload = FooGetServer1Variables.Version.validate( "v1", configuration ); @@ -212,14 +212,14 @@ String validatedPayload = FooGetServer1Variables.FooGetServer1Variables2.validat | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringFooGetServer1Variables3](#stringfoogetserver1variables3) arg, SchemaConfiguration configuration) | -| [FooGetServer1Variables2BoxedString](#foogetserver1variables2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [FooGetServer1Variables2Boxed](#foogetserver1variables2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | +| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringFooGetServer1Variables3 -public enum StringFooGetServer1Variables3
-extends `Enum` +## StringVersionEnums +public enum StringVersionEnums
+extends `Enum` A class that stores String enum values @@ -229,28 +229,28 @@ A class that stores String enum values | V1 | value = "v1" | | V2 | value = "v2" | -## FooGetServer1Variables6Boxed -public sealed interface FooGetServer1Variables6Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[FooGetServer1Variables6BoxedVoid](#foogetserver1variables6boxedvoid), -[FooGetServer1Variables6BoxedBoolean](#foogetserver1variables6boxedboolean), -[FooGetServer1Variables6BoxedNumber](#foogetserver1variables6boxednumber), -[FooGetServer1Variables6BoxedString](#foogetserver1variables6boxedstring), -[FooGetServer1Variables6BoxedList](#foogetserver1variables6boxedlist), -[FooGetServer1Variables6BoxedMap](#foogetserver1variables6boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## FooGetServer1Variables6BoxedVoid -public record FooGetServer1Variables6BoxedVoid
-implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServer1Variables6BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FooGetServer1Variables6BoxedBoolean -public record FooGetServer1Variables6BoxedBoolean
-implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServer1Variables6BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FooGetServer1Variables6BoxedNumber -public record FooGetServer1Variables6BoxedNumber
-implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServer1Variables6BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,16 +292,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FooGetServer1Variables6BoxedString -public record FooGetServer1Variables6BoxedString
-implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServer1Variables6BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -309,16 +309,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FooGetServer1Variables6BoxedList -public record FooGetServer1Variables6BoxedList
-implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServer1Variables6BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -326,16 +326,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FooGetServer1Variables6BoxedMap -public record FooGetServer1Variables6BoxedMap
-implements [FooGetServer1Variables6Boxed](#foogetserver1variables6boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServer1Variables6BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -343,8 +343,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## FooGetServer1Variables6 -public static class FooGetServer1Variables6
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md index f3dc2dd5eec..209dbc6912b 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -88,9 +88,9 @@ PetfindbystatusGet.Get apiClient = new PetfindbystatusGet.Get(apiConfiguration, // Map validation -PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters = +PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters = PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( - new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters8() + new PetfindbystatusGetQueryParameters.QueryParametersMapBuilder() .status( Arrays.asList( "available" @@ -155,7 +155,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparameters9) | queryParameters | +| [PetfindbystatusGetQueryParameters.QueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#queryparametersmap) | queryParameters | | [PetfindbystatusServerInfo.@Nullable ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -168,7 +168,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetfindbystatusGetQueryParameters.@Nullable PetfindbystatusGetQueryParameters9](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparameters9) | queryParameters | +| [PetfindbystatusGetQueryParameters.@Nullable QueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#queryparametersmap) | queryParameters | | [PetfindbystatusServerInfo.@Nullable ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) | serverIndex | | [PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -204,6 +204,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbystatusGetQueryParametersPetfindbystatusGetQueryParameters9](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#petfindbystatusgetqueryparameters9) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbystatusGetQueryParametersQueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md index b9a9eb4f05e..5e8081098ca 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed)
sealed interface for validated payloads | | record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1](#petfindbystatusgetqueryparameters1)
schema class | -| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters8](#petfindbystatusgetqueryparameters8)
builder for Map payloads | -| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9](#petfindbystatusgetqueryparameters9)
output class for Map payloads | -| sealed interface | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed)
sealed interface for validated payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedVoid](#petfindbystatusgetqueryparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedBoolean](#petfindbystatusgetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedNumber](#petfindbystatusgetqueryparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedString](#petfindbystatusgetqueryparameters4boxedstring)
boxed class to store validated String payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedList](#petfindbystatusgetqueryparameters4boxedlist)
boxed class to store validated List payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4BoxedMap](#petfindbystatusgetqueryparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters4](#petfindbystatusgetqueryparameters4)
schema class | +| static class | [PetfindbystatusGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [PetfindbystatusGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbystatusGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## PetfindbystatusGetQueryParameters1Boxed public sealed interface PetfindbystatusGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParameters1BoxedMap([PetfindbystatusGetQueryParameters9](#petfindbystatusgetqueryparameters9) data)
Creates an instance, private visibility | +| PetfindbystatusGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusGetQueryParameters9](#petfindbystatusgetqueryparameters9) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetfindbystatusGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 validatedPayload = +PetfindbystatusGetQueryParameters.QueryParametersMap validatedPayload = PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( - new PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters8() + new PetfindbystatusGetQueryParameters.QueryParametersMapBuilder() .status( Arrays.asList( "available" @@ -91,18 +91,18 @@ PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 validatedPa | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("status", [Schema0.Schema01.class](../../../paths/petfindbystatus/get/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "status"
)
| -| Class | additionalProperties = [PetfindbystatusGetQueryParameters4.class](#petfindbystatusgetqueryparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusGetQueryParameters9](#petfindbystatusgetqueryparameters9) | validate([Map<?, ?>](#petfindbystatusgetqueryparameters8) arg, SchemaConfiguration configuration) | -| [PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#petfindbystatusgetqueryparameters8) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetfindbystatusGetQueryParameters10 -public class PetfindbystatusGetQueryParameters10
+## QueryParametersMap0Builder +public class QueryParametersMap0Builder
builder for `Map>` A class that builds the Map input type @@ -110,15 +110,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParameters10(Map> instance)
Creates a builder that contains the passed instance | +| QueryParametersMap0Builder(Map> instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map> | build()
Returns map input that should be used with Schema.validate | -## PetfindbystatusGetQueryParameters8 -public class PetfindbystatusGetQueryParameters8
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map>` A class that builds the Map input type @@ -126,15 +126,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParameters8()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusGetQueryParameters10](#petfindbystatusgetqueryparameters10) | status(List value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | status(List value) | -## PetfindbystatusGetQueryParameters9 -public static class PetfindbystatusGetQueryParameters9
+## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetfindbystatusGetQueryParameters9](#petfindbystatusgetqueryparameters9) | of([Map>](#petfindbystatusgetqueryparameters8) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [Schema0.SchemaList0](../../../paths/petfindbystatus/get/parameters/parameter0/Schema0.md#schemalist0) | status()
| -## PetfindbystatusGetQueryParameters4Boxed -public sealed interface PetfindbystatusGetQueryParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[PetfindbystatusGetQueryParameters4BoxedVoid](#petfindbystatusgetqueryparameters4boxedvoid), -[PetfindbystatusGetQueryParameters4BoxedBoolean](#petfindbystatusgetqueryparameters4boxedboolean), -[PetfindbystatusGetQueryParameters4BoxedNumber](#petfindbystatusgetqueryparameters4boxednumber), -[PetfindbystatusGetQueryParameters4BoxedString](#petfindbystatusgetqueryparameters4boxedstring), -[PetfindbystatusGetQueryParameters4BoxedList](#petfindbystatusgetqueryparameters4boxedlist), -[PetfindbystatusGetQueryParameters4BoxedMap](#petfindbystatusgetqueryparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## PetfindbystatusGetQueryParameters4BoxedVoid -public record PetfindbystatusGetQueryParameters4BoxedVoid
-implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetQueryParameters4BoxedBoolean -public record PetfindbystatusGetQueryParameters4BoxedBoolean
-implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetQueryParameters4BoxedNumber -public record PetfindbystatusGetQueryParameters4BoxedNumber
-implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetQueryParameters4BoxedString -public record PetfindbystatusGetQueryParameters4BoxedString
-implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetQueryParameters4BoxedList -public record PetfindbystatusGetQueryParameters4BoxedList
-implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetQueryParameters4BoxedMap -public record PetfindbystatusGetQueryParameters4BoxedMap
-implements [PetfindbystatusGetQueryParameters4Boxed](#petfindbystatusgetqueryparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusGetQueryParameters4 -public static class PetfindbystatusGetQueryParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md index 0eacdafd288..51b2599d0c7 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md @@ -7,10 +7,10 @@ A class that stores a server url | Constructor and Description | | --------------------------- | | PetfindbystatusServer1()
Creates a server using default values for variables | -| PetfindbystatusServer1([PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11](../../../paths/petfindbystatus/servers/server1/Variables.md#petfindbystatusserver1variables11) variables)
Creates a server using input values for variables | +| PetfindbystatusServer1([PetfindbystatusServer1Variables.VariablesMap](../../../paths/petfindbystatus/servers/server1/Variables.md#variablesmap) variables)
Creates a server using input values for variables | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | | String | url = "https://petstore.swagger.io/{version}" | -| [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11](../../../paths/petfindbystatus/servers/server1/Variables.md#petfindbystatusserver1variables11) | variables | +| [PetfindbystatusServer1Variables.VariablesMap](../../../paths/petfindbystatus/servers/server1/Variables.md#variablesmap) | variables | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md index 8d8e3c9c7f9..b2df6fc9a8b 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md @@ -15,20 +15,20 @@ A class that contains necessary nested | sealed interface | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed)
sealed interface for validated payloads | | record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap)
boxed class to store validated Map payloads | | static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1](#petfindbystatusserver1variables1)
schema class | -| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables10](#petfindbystatusserver1variables10)
builder for Map payloads | -| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11](#petfindbystatusserver1variables11)
output class for Map payloads | -| sealed interface | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables2Boxed](#petfindbystatusserver1variables2boxed)
sealed interface for validated payloads | -| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables2BoxedString](#petfindbystatusserver1variables2boxedstring)
boxed class to store validated String payloads | -| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables2](#petfindbystatusserver1variables2)
schema class | -| enum | [PetfindbystatusServer1Variables.StringPetfindbystatusServer1Variables3](#stringpetfindbystatusserver1variables3)
String enum | -| sealed interface | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed)
sealed interface for validated payloads | -| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedVoid](#petfindbystatusserver1variables6boxedvoid)
boxed class to store validated null payloads | -| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedBoolean](#petfindbystatusserver1variables6boxedboolean)
boxed class to store validated boolean payloads | -| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedNumber](#petfindbystatusserver1variables6boxednumber)
boxed class to store validated Number payloads | -| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedString](#petfindbystatusserver1variables6boxedstring)
boxed class to store validated String payloads | -| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedList](#petfindbystatusserver1variables6boxedlist)
boxed class to store validated List payloads | -| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6BoxedMap](#petfindbystatusserver1variables6boxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables6](#petfindbystatusserver1variables6)
schema class | +| static class | [PetfindbystatusServer1Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | +| static class | [PetfindbystatusServer1Variables.VariablesMap](#variablesmap)
output class for Map payloads | +| sealed interface | [PetfindbystatusServer1Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | +| record | [PetfindbystatusServer1Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | +| static class | [PetfindbystatusServer1Variables.Version](#version)
schema class | +| enum | [PetfindbystatusServer1Variables.StringVersionEnums](#stringversionenums)
String enum | +| sealed interface | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbystatusServer1Variables.AdditionalProperties](#additionalproperties)
schema class | ## PetfindbystatusServer1Variables1Boxed public sealed interface PetfindbystatusServer1Variables1Boxed
@@ -46,12 +46,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServer1Variables1BoxedMap([PetfindbystatusServer1Variables11](#petfindbystatusserver1variables11) data)
Creates an instance, private visibility | +| PetfindbystatusServer1Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusServer1Variables11](#petfindbystatusserver1variables11) | data()
validated payload | +| [VariablesMap](#variablesmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetfindbystatusServer1Variables1 @@ -77,9 +77,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11 validatedPayload = +PetfindbystatusServer1Variables.VariablesMap validatedPayload = PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1.validate( - new PetfindbystatusServer1Variables.PetfindbystatusServer1Variables10() + new PetfindbystatusServer1Variables.VariablesMapBuilder() .version("v1") .build(), @@ -91,20 +91,20 @@ PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11 validatedPaylo | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [PetfindbystatusServer1Variables2.class](#petfindbystatusserver1variables2)))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| | Set | required = Set.of(
    "version"
)
| -| Class | additionalProperties = [PetfindbystatusServer1Variables6.class](#petfindbystatusserver1variables6) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusServer1Variables11](#petfindbystatusserver1variables11) | validate([Map<?, ?>](#petfindbystatusserver1variables10) arg, SchemaConfiguration configuration) | -| [PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#petfindbystatusserver1variables10) arg, SchemaConfiguration configuration) | +| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | | [PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetfindbystatusServer1Variables12 -public class PetfindbystatusServer1Variables12
+## VariablesMap0Builder +public class VariablesMap0Builder
builder for `Map` A class that builds the Map input type @@ -112,15 +112,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServer1Variables12(Map instance)
Creates a builder that contains the passed instance | +| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## PetfindbystatusServer1Variables10 -public class PetfindbystatusServer1Variables10
+## VariablesMapBuilder +public class VariablesMapBuilder
builder for `Map` A class that builds the Map input type @@ -128,16 +128,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServer1Variables10()
Creates a builder that contains an empty map | +| VariablesMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbystatusServer1Variables12](#petfindbystatusserver1variables12) | version(String value) | -| [PetfindbystatusServer1Variables12](#petfindbystatusserver1variables12) | version([StringPetfindbystatusServer1Variables3](#stringpetfindbystatusserver1variables3) value) | +| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | +| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | -## PetfindbystatusServer1Variables11 -public static class PetfindbystatusServer1Variables11
+## VariablesMap +public static class VariablesMap
extends FrozenMap A class to store validated Map payloads @@ -145,26 +145,26 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetfindbystatusServer1Variables11](#petfindbystatusserver1variables11) | of([Map](#petfindbystatusserver1variables10) arg, SchemaConfiguration configuration) | +| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | | String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v1 | -## PetfindbystatusServer1Variables2Boxed -public sealed interface PetfindbystatusServer1Variables2Boxed
+## VersionBoxed +public sealed interface VersionBoxed
permits
-[PetfindbystatusServer1Variables2BoxedString](#petfindbystatusserver1variables2boxedstring) +[VersionBoxedString](#versionboxedstring) sealed interface that stores validated payloads using boxed classes -## PetfindbystatusServer1Variables2BoxedString -public record PetfindbystatusServer1Variables2BoxedString
-implements [PetfindbystatusServer1Variables2Boxed](#petfindbystatusserver1variables2boxed) +## VersionBoxedString +public record VersionBoxedString
+implements [VersionBoxed](#versionboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServer1Variables2BoxedString(String data)
Creates an instance, private visibility | +| VersionBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,8 +172,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusServer1Variables2 -public static class PetfindbystatusServer1Variables2
+## Version +public static class Version
extends JsonSchema A schema class that validates payloads @@ -195,7 +195,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = PetfindbystatusServer1Variables.PetfindbystatusServer1Variables2.validate( +String validatedPayload = PetfindbystatusServer1Variables.Version.validate( "v1", configuration ); @@ -212,14 +212,14 @@ String validatedPayload = PetfindbystatusServer1Variables.PetfindbystatusServer1 | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringPetfindbystatusServer1Variables3](#stringpetfindbystatusserver1variables3) arg, SchemaConfiguration configuration) | -| [PetfindbystatusServer1Variables2BoxedString](#petfindbystatusserver1variables2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [PetfindbystatusServer1Variables2Boxed](#petfindbystatusserver1variables2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | +| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringPetfindbystatusServer1Variables3 -public enum StringPetfindbystatusServer1Variables3
-extends `Enum` +## StringVersionEnums +public enum StringVersionEnums
+extends `Enum` A class that stores String enum values @@ -229,28 +229,28 @@ A class that stores String enum values | V1 | value = "v1" | | V2 | value = "v2" | -## PetfindbystatusServer1Variables6Boxed -public sealed interface PetfindbystatusServer1Variables6Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[PetfindbystatusServer1Variables6BoxedVoid](#petfindbystatusserver1variables6boxedvoid), -[PetfindbystatusServer1Variables6BoxedBoolean](#petfindbystatusserver1variables6boxedboolean), -[PetfindbystatusServer1Variables6BoxedNumber](#petfindbystatusserver1variables6boxednumber), -[PetfindbystatusServer1Variables6BoxedString](#petfindbystatusserver1variables6boxedstring), -[PetfindbystatusServer1Variables6BoxedList](#petfindbystatusserver1variables6boxedlist), -[PetfindbystatusServer1Variables6BoxedMap](#petfindbystatusserver1variables6boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## PetfindbystatusServer1Variables6BoxedVoid -public record PetfindbystatusServer1Variables6BoxedVoid
-implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServer1Variables6BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusServer1Variables6BoxedBoolean -public record PetfindbystatusServer1Variables6BoxedBoolean
-implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServer1Variables6BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusServer1Variables6BoxedNumber -public record PetfindbystatusServer1Variables6BoxedNumber
-implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServer1Variables6BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,16 +292,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusServer1Variables6BoxedString -public record PetfindbystatusServer1Variables6BoxedString
-implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServer1Variables6BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -309,16 +309,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusServer1Variables6BoxedList -public record PetfindbystatusServer1Variables6BoxedList
-implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServer1Variables6BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -326,16 +326,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusServer1Variables6BoxedMap -public record PetfindbystatusServer1Variables6BoxedMap
-implements [PetfindbystatusServer1Variables6Boxed](#petfindbystatusserver1variables6boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServer1Variables6BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -343,8 +343,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbystatusServer1Variables6 -public static class PetfindbystatusServer1Variables6
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md index 132b5f7039b..fe05d311a2e 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -85,9 +85,9 @@ PetfindbytagsGet.Get apiClient = new PetfindbytagsGet.Get(apiConfiguration, sche // Map validation -PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters = +PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters = PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( - new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters8() + new PetfindbytagsGetQueryParameters.QueryParametersMapBuilder() .tags( Arrays.asList( "a" @@ -152,7 +152,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparameters9) | queryParameters | +| [PetfindbytagsGetQueryParameters.QueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -165,7 +165,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetfindbytagsGetQueryParameters.@Nullable PetfindbytagsGetQueryParameters9](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparameters9) | queryParameters | +| [PetfindbytagsGetQueryParameters.@Nullable QueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -201,6 +201,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbytagsGetQueryParametersPetfindbytagsGetQueryParameters9](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#petfindbytagsgetqueryparameters9) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbytagsGetQueryParametersQueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md index 09eaa381df9..5560afd593c 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed)
sealed interface for validated payloads | | record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1](#petfindbytagsgetqueryparameters1)
schema class | -| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters8](#petfindbytagsgetqueryparameters8)
builder for Map payloads | -| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9](#petfindbytagsgetqueryparameters9)
output class for Map payloads | -| sealed interface | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed)
sealed interface for validated payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedVoid](#petfindbytagsgetqueryparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedBoolean](#petfindbytagsgetqueryparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedNumber](#petfindbytagsgetqueryparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedString](#petfindbytagsgetqueryparameters4boxedstring)
boxed class to store validated String payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedList](#petfindbytagsgetqueryparameters4boxedlist)
boxed class to store validated List payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4BoxedMap](#petfindbytagsgetqueryparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters4](#petfindbytagsgetqueryparameters4)
schema class | +| static class | [PetfindbytagsGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [PetfindbytagsGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbytagsGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## PetfindbytagsGetQueryParameters1Boxed public sealed interface PetfindbytagsGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParameters1BoxedMap([PetfindbytagsGetQueryParameters9](#petfindbytagsgetqueryparameters9) data)
Creates an instance, private visibility | +| PetfindbytagsGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbytagsGetQueryParameters9](#petfindbytagsgetqueryparameters9) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetfindbytagsGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 validatedPayload = +PetfindbytagsGetQueryParameters.QueryParametersMap validatedPayload = PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( - new PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters8() + new PetfindbytagsGetQueryParameters.QueryParametersMapBuilder() .tags( Arrays.asList( "a" @@ -91,18 +91,18 @@ PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 validatedPayloa | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("tags", [Schema0.Schema01.class](../../../paths/petfindbytags/get/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "tags"
)
| -| Class | additionalProperties = [PetfindbytagsGetQueryParameters4.class](#petfindbytagsgetqueryparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbytagsGetQueryParameters9](#petfindbytagsgetqueryparameters9) | validate([Map<?, ?>](#petfindbytagsgetqueryparameters8) arg, SchemaConfiguration configuration) | -| [PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#petfindbytagsgetqueryparameters8) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetfindbytagsGetQueryParameters10 -public class PetfindbytagsGetQueryParameters10
+## QueryParametersMap0Builder +public class QueryParametersMap0Builder
builder for `Map>` A class that builds the Map input type @@ -110,15 +110,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParameters10(Map> instance)
Creates a builder that contains the passed instance | +| QueryParametersMap0Builder(Map> instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map> | build()
Returns map input that should be used with Schema.validate | -## PetfindbytagsGetQueryParameters8 -public class PetfindbytagsGetQueryParameters8
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map>` A class that builds the Map input type @@ -126,15 +126,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParameters8()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetfindbytagsGetQueryParameters10](#petfindbytagsgetqueryparameters10) | tags(List value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | tags(List value) | -## PetfindbytagsGetQueryParameters9 -public static class PetfindbytagsGetQueryParameters9
+## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetfindbytagsGetQueryParameters9](#petfindbytagsgetqueryparameters9) | of([Map>](#petfindbytagsgetqueryparameters8) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [Schema0.SchemaList0](../../../paths/petfindbytags/get/parameters/parameter0/Schema0.md#schemalist0) | tags()
| -## PetfindbytagsGetQueryParameters4Boxed -public sealed interface PetfindbytagsGetQueryParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[PetfindbytagsGetQueryParameters4BoxedVoid](#petfindbytagsgetqueryparameters4boxedvoid), -[PetfindbytagsGetQueryParameters4BoxedBoolean](#petfindbytagsgetqueryparameters4boxedboolean), -[PetfindbytagsGetQueryParameters4BoxedNumber](#petfindbytagsgetqueryparameters4boxednumber), -[PetfindbytagsGetQueryParameters4BoxedString](#petfindbytagsgetqueryparameters4boxedstring), -[PetfindbytagsGetQueryParameters4BoxedList](#petfindbytagsgetqueryparameters4boxedlist), -[PetfindbytagsGetQueryParameters4BoxedMap](#petfindbytagsgetqueryparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## PetfindbytagsGetQueryParameters4BoxedVoid -public record PetfindbytagsGetQueryParameters4BoxedVoid
-implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetQueryParameters4BoxedBoolean -public record PetfindbytagsGetQueryParameters4BoxedBoolean
-implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetQueryParameters4BoxedNumber -public record PetfindbytagsGetQueryParameters4BoxedNumber
-implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetQueryParameters4BoxedString -public record PetfindbytagsGetQueryParameters4BoxedString
-implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetQueryParameters4BoxedList -public record PetfindbytagsGetQueryParameters4BoxedList
-implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetQueryParameters4BoxedMap -public record PetfindbytagsGetQueryParameters4BoxedMap
-implements [PetfindbytagsGetQueryParameters4Boxed](#petfindbytagsgetqueryparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbytagsGetQueryParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetfindbytagsGetQueryParameters4 -public static class PetfindbytagsGetQueryParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md index b33d8a4f10d..4558531942b 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -88,9 +88,9 @@ PetpetidDelete.Delete apiClient = new PetpetidDelete.Delete(apiConfiguration, sc // Map validation -PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters = +PetpetidDeletePathParameters.PathParametersMap pathParameters = PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( - new PetpetidDeletePathParameters.PetpetidDeletePathParameters8() + new PetpetidDeletePathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -150,8 +150,8 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidDeletePathParameters.PetpetidDeletePathParameters9](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparameters9) | pathParameters | -| [PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParameters9](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparameters9) | headerParameters
optional | +| [PetpetidDeletePathParameters.PathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#pathparametersmap) | pathParameters | +| [PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#headerparametersmap) | headerParameters
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -164,8 +164,8 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidDeletePathParameters.@Nullable PetpetidDeletePathParameters9](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparameters9) | pathParameters | -| [PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParameters9](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparameters9) | headerParameters | +| [PetpetidDeletePathParameters.@Nullable PathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#pathparametersmap) | pathParameters | +| [PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#headerparametersmap) | headerParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -184,7 +184,7 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([PetpetidDeleteHeaderParametersPetpetidDeleteHeaderParameters9](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#petpetiddeleteheaderparameters9) headerParameters)
sets the optional property | +| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([PetpetidDeleteHeaderParametersHeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | | [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | securityIndex([PetpetidDeleteSecurityInfo.SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | | [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | @@ -202,6 +202,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PetpetidDeletePathParametersPetpetidDeletePathParameters9](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#petpetiddeletepathparameters9) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PetpetidDeletePathParametersPathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md index 4c1b6646cca..5a9abe00904 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -88,9 +88,9 @@ PetpetidGet.Get apiClient = new PetpetidGet.Get(apiConfiguration, schemaConfigur // Map validation -PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters = +PetpetidGetPathParameters.PathParametersMap pathParameters = PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( - new PetpetidGetPathParameters.PetpetidGetPathParameters8() + new PetpetidGetPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -157,7 +157,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidGetPathParameters.PetpetidGetPathParameters9](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparameters9) | pathParameters | +| [PetpetidGetPathParameters.PathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -170,7 +170,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidGetPathParameters.@Nullable PetpetidGetPathParameters9](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparameters9) | pathParameters | +| [PetpetidGetPathParameters.@Nullable PathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex | | @Nullable Duration | timeout | @@ -206,6 +206,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PetpetidGetPathParametersPetpetidGetPathParameters9](../../paths/petpetid/get/PetpetidGetPathParameters.md#petpetidgetpathparameters9) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PetpetidGetPathParametersPathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md index ff142173a3b..db4efe1552e 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -88,9 +88,9 @@ PetpetidPost.Post apiClient = new PetpetidPost.Post(apiConfiguration, schemaConf // Map validation -PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters = +PetpetidPostPathParameters.PathParametersMap pathParameters = PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( - new PetpetidPostPathParameters.PetpetidPostPathParameters8() + new PetpetidPostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -150,7 +150,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidPostPathParameters.PetpetidPostPathParameters9](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparameters9) | pathParameters | +| [PetpetidPostPathParameters.PathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#pathparametersmap) | pathParameters | | [PetpetidPostRequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) | requestBody
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | @@ -164,7 +164,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetidPostPathParameters.@Nullable PetpetidPostPathParameters9](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparameters9) | pathParameters | +| [PetpetidPostPathParameters.@Nullable PathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#pathparametersmap) | pathParameters | | [PetpetidPostRequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) | requestBody | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex | @@ -202,6 +202,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetidPostPathParametersPetpetidPostPathParameters9](../../paths/petpetid/post/PetpetidPostPathParameters.md#petpetidpostpathparameters9) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetidPostPathParametersPathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md index 02ee6e172be..15cf0486a40 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed)
sealed interface for validated payloads | | record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1](#petpetiddeleteheaderparameters1)
schema class | -| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters8](#petpetiddeleteheaderparameters8)
builder for Map payloads | -| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters9](#petpetiddeleteheaderparameters9)
output class for Map payloads | -| sealed interface | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed)
sealed interface for validated payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedVoid](#petpetiddeleteheaderparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedBoolean](#petpetiddeleteheaderparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedNumber](#petpetiddeleteheaderparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedString](#petpetiddeleteheaderparameters4boxedstring)
boxed class to store validated String payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedList](#petpetiddeleteheaderparameters4boxedlist)
boxed class to store validated List payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4BoxedMap](#petpetiddeleteheaderparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters4](#petpetiddeleteheaderparameters4)
schema class | +| static class | [PetpetidDeleteHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [PetpetidDeleteHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidDeleteHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | ## PetpetidDeleteHeaderParameters1Boxed public sealed interface PetpetidDeleteHeaderParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteHeaderParameters1BoxedMap([PetpetidDeleteHeaderParameters9](#petpetiddeleteheaderparameters9) data)
Creates an instance, private visibility | +| PetpetidDeleteHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeleteHeaderParameters9](#petpetiddeleteheaderparameters9) | data()
validated payload | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetpetidDeleteHeaderParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters9 validatedPayload = +PetpetidDeleteHeaderParameters.HeaderParametersMap validatedPayload = PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1.validate( - new PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters8() + new PetpetidDeleteHeaderParameters.HeaderParametersMapBuilder() .api_key("a") .build(), @@ -87,18 +87,18 @@ PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters9 validatedPayload | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("api_key", [Schema0.Schema01.class](../../../paths/petpetid/delete/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [PetpetidDeleteHeaderParameters4.class](#petpetiddeleteheaderparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeleteHeaderParameters9](#petpetiddeleteheaderparameters9) | validate([Map<?, ?>](#petpetiddeleteheaderparameters8) arg, SchemaConfiguration configuration) | -| [PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiddeleteheaderparameters8) arg, SchemaConfiguration configuration) | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | [PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetpetidDeleteHeaderParameters8 -public class PetpetidDeleteHeaderParameters8
+## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -106,16 +106,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteHeaderParameters8()
Creates a builder that contains an empty map | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -| [PetpetidDeleteHeaderParameters8](#petpetiddeleteheaderparameters8) | api_key(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | api_key(String value) | -## PetpetidDeleteHeaderParameters9 -public static class PetpetidDeleteHeaderParameters9
+## HeaderParametersMap +public static class HeaderParametersMap
extends FrozenMap A class to store validated Map payloads @@ -123,31 +123,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetpetidDeleteHeaderParameters9](#petpetiddeleteheaderparameters9) | of([Map](#petpetiddeleteheaderparameters8) arg, SchemaConfiguration configuration) | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | api_key()
[optional] | -## PetpetidDeleteHeaderParameters4Boxed -public sealed interface PetpetidDeleteHeaderParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[PetpetidDeleteHeaderParameters4BoxedVoid](#petpetiddeleteheaderparameters4boxedvoid), -[PetpetidDeleteHeaderParameters4BoxedBoolean](#petpetiddeleteheaderparameters4boxedboolean), -[PetpetidDeleteHeaderParameters4BoxedNumber](#petpetiddeleteheaderparameters4boxednumber), -[PetpetidDeleteHeaderParameters4BoxedString](#petpetiddeleteheaderparameters4boxedstring), -[PetpetidDeleteHeaderParameters4BoxedList](#petpetiddeleteheaderparameters4boxedlist), -[PetpetidDeleteHeaderParameters4BoxedMap](#petpetiddeleteheaderparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## PetpetidDeleteHeaderParameters4BoxedVoid -public record PetpetidDeleteHeaderParameters4BoxedVoid
-implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteHeaderParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -155,16 +155,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteHeaderParameters4BoxedBoolean -public record PetpetidDeleteHeaderParameters4BoxedBoolean
-implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteHeaderParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,16 +172,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteHeaderParameters4BoxedNumber -public record PetpetidDeleteHeaderParameters4BoxedNumber
-implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteHeaderParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -189,16 +189,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteHeaderParameters4BoxedString -public record PetpetidDeleteHeaderParameters4BoxedString
-implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteHeaderParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -206,16 +206,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteHeaderParameters4BoxedList -public record PetpetidDeleteHeaderParameters4BoxedList
-implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteHeaderParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -223,16 +223,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteHeaderParameters4BoxedMap -public record PetpetidDeleteHeaderParameters4BoxedMap
-implements [PetpetidDeleteHeaderParameters4Boxed](#petpetiddeleteheaderparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeleteHeaderParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -240,8 +240,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeleteHeaderParameters4 -public static class PetpetidDeleteHeaderParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md index aabac742c05..f5c5b699f52 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed)
sealed interface for validated payloads | | record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1](#petpetiddeletepathparameters1)
schema class | -| static class | [PetpetidDeletePathParameters.PetpetidDeletePathParameters8](#petpetiddeletepathparameters8)
builder for Map payloads | -| static class | [PetpetidDeletePathParameters.PetpetidDeletePathParameters9](#petpetiddeletepathparameters9)
output class for Map payloads | -| sealed interface | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed)
sealed interface for validated payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedVoid](#petpetiddeletepathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedBoolean](#petpetiddeletepathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedNumber](#petpetiddeletepathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedString](#petpetiddeletepathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedList](#petpetiddeletepathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4BoxedMap](#petpetiddeletepathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidDeletePathParameters.PetpetidDeletePathParameters4](#petpetiddeletepathparameters4)
schema class | +| static class | [PetpetidDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [PetpetidDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [PetpetidDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | ## PetpetidDeletePathParameters1Boxed public sealed interface PetpetidDeletePathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParameters1BoxedMap([PetpetidDeletePathParameters9](#petpetiddeletepathparameters9) data)
Creates an instance, private visibility | +| PetpetidDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeletePathParameters9](#petpetiddeletepathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetpetidDeletePathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetpetidDeletePathParameters.PetpetidDeletePathParameters9 validatedPayload = +PetpetidDeletePathParameters.PathParametersMap validatedPayload = PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( - new PetpetidDeletePathParameters.PetpetidDeletePathParameters8() + new PetpetidDeletePathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -88,18 +88,18 @@ PetpetidDeletePathParameters.PetpetidDeletePathParameters9 validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema1.Schema11.class](../../../paths/petpetid/delete/parameters/parameter1/Schema1.md#schema11))
)
| | Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [PetpetidDeletePathParameters4.class](#petpetiddeletepathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeletePathParameters9](#petpetiddeletepathparameters9) | validate([Map<?, ?>](#petpetiddeletepathparameters8) arg, SchemaConfiguration configuration) | -| [PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiddeletepathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetpetidDeletePathParameters10 -public class PetpetidDeletePathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## PetpetidDeletePathParameters8 -public class PetpetidDeletePathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidDeletePathParameters10](#petpetiddeletepathparameters10) | petId(int value) | -| [PetpetidDeletePathParameters10](#petpetiddeletepathparameters10) | petId(float value) | -| [PetpetidDeletePathParameters10](#petpetiddeletepathparameters10) | petId(long value) | -| [PetpetidDeletePathParameters10](#petpetiddeletepathparameters10) | petId(double value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | -## PetpetidDeletePathParameters9 -public static class PetpetidDeletePathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetpetidDeletePathParameters9](#petpetiddeletepathparameters9) | of([Map](#petpetiddeletepathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | Number | petId()
| -## PetpetidDeletePathParameters4Boxed -public sealed interface PetpetidDeletePathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[PetpetidDeletePathParameters4BoxedVoid](#petpetiddeletepathparameters4boxedvoid), -[PetpetidDeletePathParameters4BoxedBoolean](#petpetiddeletepathparameters4boxedboolean), -[PetpetidDeletePathParameters4BoxedNumber](#petpetiddeletepathparameters4boxednumber), -[PetpetidDeletePathParameters4BoxedString](#petpetiddeletepathparameters4boxedstring), -[PetpetidDeletePathParameters4BoxedList](#petpetiddeletepathparameters4boxedlist), -[PetpetidDeletePathParameters4BoxedMap](#petpetiddeletepathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## PetpetidDeletePathParameters4BoxedVoid -public record PetpetidDeletePathParameters4BoxedVoid
-implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeletePathParameters4BoxedBoolean -public record PetpetidDeletePathParameters4BoxedBoolean
-implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeletePathParameters4BoxedNumber -public record PetpetidDeletePathParameters4BoxedNumber
-implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeletePathParameters4BoxedString -public record PetpetidDeletePathParameters4BoxedString
-implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeletePathParameters4BoxedList -public record PetpetidDeletePathParameters4BoxedList
-implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeletePathParameters4BoxedMap -public record PetpetidDeletePathParameters4BoxedMap
-implements [PetpetidDeletePathParameters4Boxed](#petpetiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidDeletePathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidDeletePathParameters4 -public static class PetpetidDeletePathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md index 7b4e92886fe..fd600b22cd4 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetpetidGetPathParameters.PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed)
sealed interface for validated payloads | | record | [PetpetidGetPathParameters.PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetpetidGetPathParameters.PetpetidGetPathParameters1](#petpetidgetpathparameters1)
schema class | -| static class | [PetpetidGetPathParameters.PetpetidGetPathParameters8](#petpetidgetpathparameters8)
builder for Map payloads | -| static class | [PetpetidGetPathParameters.PetpetidGetPathParameters9](#petpetidgetpathparameters9)
output class for Map payloads | -| sealed interface | [PetpetidGetPathParameters.PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed)
sealed interface for validated payloads | -| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedVoid](#petpetidgetpathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedBoolean](#petpetidgetpathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedNumber](#petpetidgetpathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedString](#petpetidgetpathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedList](#petpetidgetpathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [PetpetidGetPathParameters.PetpetidGetPathParameters4BoxedMap](#petpetidgetpathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidGetPathParameters.PetpetidGetPathParameters4](#petpetidgetpathparameters4)
schema class | +| static class | [PetpetidGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [PetpetidGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [PetpetidGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | ## PetpetidGetPathParameters1Boxed public sealed interface PetpetidGetPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParameters1BoxedMap([PetpetidGetPathParameters9](#petpetidgetpathparameters9) data)
Creates an instance, private visibility | +| PetpetidGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidGetPathParameters9](#petpetidgetpathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetpetidGetPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetpetidGetPathParameters.PetpetidGetPathParameters9 validatedPayload = +PetpetidGetPathParameters.PathParametersMap validatedPayload = PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( - new PetpetidGetPathParameters.PetpetidGetPathParameters8() + new PetpetidGetPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -88,18 +88,18 @@ PetpetidGetPathParameters.PetpetidGetPathParameters9 validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetid/get/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [PetpetidGetPathParameters4.class](#petpetidgetpathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidGetPathParameters9](#petpetidgetpathparameters9) | validate([Map<?, ?>](#petpetidgetpathparameters8) arg, SchemaConfiguration configuration) | -| [PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetidgetpathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetpetidGetPathParameters10 -public class PetpetidGetPathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## PetpetidGetPathParameters8 -public class PetpetidGetPathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidGetPathParameters10](#petpetidgetpathparameters10) | petId(int value) | -| [PetpetidGetPathParameters10](#petpetidgetpathparameters10) | petId(float value) | -| [PetpetidGetPathParameters10](#petpetidgetpathparameters10) | petId(long value) | -| [PetpetidGetPathParameters10](#petpetidgetpathparameters10) | petId(double value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | -## PetpetidGetPathParameters9 -public static class PetpetidGetPathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetpetidGetPathParameters9](#petpetidgetpathparameters9) | of([Map](#petpetidgetpathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | Number | petId()
| -## PetpetidGetPathParameters4Boxed -public sealed interface PetpetidGetPathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[PetpetidGetPathParameters4BoxedVoid](#petpetidgetpathparameters4boxedvoid), -[PetpetidGetPathParameters4BoxedBoolean](#petpetidgetpathparameters4boxedboolean), -[PetpetidGetPathParameters4BoxedNumber](#petpetidgetpathparameters4boxednumber), -[PetpetidGetPathParameters4BoxedString](#petpetidgetpathparameters4boxedstring), -[PetpetidGetPathParameters4BoxedList](#petpetidgetpathparameters4boxedlist), -[PetpetidGetPathParameters4BoxedMap](#petpetidgetpathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## PetpetidGetPathParameters4BoxedVoid -public record PetpetidGetPathParameters4BoxedVoid
-implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetPathParameters4BoxedBoolean -public record PetpetidGetPathParameters4BoxedBoolean
-implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetPathParameters4BoxedNumber -public record PetpetidGetPathParameters4BoxedNumber
-implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetPathParameters4BoxedString -public record PetpetidGetPathParameters4BoxedString
-implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetPathParameters4BoxedList -public record PetpetidGetPathParameters4BoxedList
-implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetPathParameters4BoxedMap -public record PetpetidGetPathParameters4BoxedMap
-implements [PetpetidGetPathParameters4Boxed](#petpetidgetpathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidGetPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidGetPathParameters4 -public static class PetpetidGetPathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md index 9850d83fa54..8a12a161b7f 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetpetidPostPathParameters.PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed)
sealed interface for validated payloads | | record | [PetpetidPostPathParameters.PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetpetidPostPathParameters.PetpetidPostPathParameters1](#petpetidpostpathparameters1)
schema class | -| static class | [PetpetidPostPathParameters.PetpetidPostPathParameters8](#petpetidpostpathparameters8)
builder for Map payloads | -| static class | [PetpetidPostPathParameters.PetpetidPostPathParameters9](#petpetidpostpathparameters9)
output class for Map payloads | -| sealed interface | [PetpetidPostPathParameters.PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed)
sealed interface for validated payloads | -| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedVoid](#petpetidpostpathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedBoolean](#petpetidpostpathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedNumber](#petpetidpostpathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedString](#petpetidpostpathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedList](#petpetidpostpathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [PetpetidPostPathParameters.PetpetidPostPathParameters4BoxedMap](#petpetidpostpathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidPostPathParameters.PetpetidPostPathParameters4](#petpetidpostpathparameters4)
schema class | +| static class | [PetpetidPostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [PetpetidPostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [PetpetidPostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidPostPathParameters.AdditionalProperties](#additionalproperties)
schema class | ## PetpetidPostPathParameters1Boxed public sealed interface PetpetidPostPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParameters1BoxedMap([PetpetidPostPathParameters9](#petpetidpostpathparameters9) data)
Creates an instance, private visibility | +| PetpetidPostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidPostPathParameters9](#petpetidpostpathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetpetidPostPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetpetidPostPathParameters.PetpetidPostPathParameters9 validatedPayload = +PetpetidPostPathParameters.PathParametersMap validatedPayload = PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( - new PetpetidPostPathParameters.PetpetidPostPathParameters8() + new PetpetidPostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -88,18 +88,18 @@ PetpetidPostPathParameters.PetpetidPostPathParameters9 validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetid/post/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [PetpetidPostPathParameters4.class](#petpetidpostpathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidPostPathParameters9](#petpetidpostpathparameters9) | validate([Map<?, ?>](#petpetidpostpathparameters8) arg, SchemaConfiguration configuration) | -| [PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetidpostpathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetpetidPostPathParameters10 -public class PetpetidPostPathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## PetpetidPostPathParameters8 -public class PetpetidPostPathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetidPostPathParameters10](#petpetidpostpathparameters10) | petId(int value) | -| [PetpetidPostPathParameters10](#petpetidpostpathparameters10) | petId(float value) | -| [PetpetidPostPathParameters10](#petpetidpostpathparameters10) | petId(long value) | -| [PetpetidPostPathParameters10](#petpetidpostpathparameters10) | petId(double value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | -## PetpetidPostPathParameters9 -public static class PetpetidPostPathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetpetidPostPathParameters9](#petpetidpostpathparameters9) | of([Map](#petpetidpostpathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | Number | petId()
| -## PetpetidPostPathParameters4Boxed -public sealed interface PetpetidPostPathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[PetpetidPostPathParameters4BoxedVoid](#petpetidpostpathparameters4boxedvoid), -[PetpetidPostPathParameters4BoxedBoolean](#petpetidpostpathparameters4boxedboolean), -[PetpetidPostPathParameters4BoxedNumber](#petpetidpostpathparameters4boxednumber), -[PetpetidPostPathParameters4BoxedString](#petpetidpostpathparameters4boxedstring), -[PetpetidPostPathParameters4BoxedList](#petpetidpostpathparameters4boxedlist), -[PetpetidPostPathParameters4BoxedMap](#petpetidpostpathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## PetpetidPostPathParameters4BoxedVoid -public record PetpetidPostPathParameters4BoxedVoid
-implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostPathParameters4BoxedBoolean -public record PetpetidPostPathParameters4BoxedBoolean
-implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostPathParameters4BoxedNumber -public record PetpetidPostPathParameters4BoxedNumber
-implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostPathParameters4BoxedString -public record PetpetidPostPathParameters4BoxedString
-implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostPathParameters4BoxedList -public record PetpetidPostPathParameters4BoxedList
-implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostPathParameters4BoxedMap -public record PetpetidPostPathParameters4BoxedMap
-implements [PetpetidPostPathParameters4Boxed](#petpetidpostpathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetidPostPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetidPostPathParameters4 -public static class PetpetidPostPathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md index 30937e649cc..d5698ed5883 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -85,9 +85,9 @@ PetpetiduploadimagePost.Post apiClient = new PetpetiduploadimagePost.Post(apiCon // Map validation -PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters = +PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters = PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( - new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters8() + new PetpetiduploadimagePostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -146,7 +146,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparameters9) | pathParameters | +| [PetpetiduploadimagePostPathParameters.PathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#pathparametersmap) | pathParameters | | [PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) | requestBody
optional | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | @@ -160,7 +160,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [PetpetiduploadimagePostPathParameters.@Nullable PetpetiduploadimagePostPathParameters9](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparameters9) | pathParameters | +| [PetpetiduploadimagePostPathParameters.@Nullable PathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#pathparametersmap) | pathParameters | | [PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) | requestBody | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex | @@ -198,6 +198,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetiduploadimagePostPathParametersPetpetiduploadimagePostPathParameters9](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#petpetiduploadimagepostpathparameters9) pathParameters)
sets the property | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetiduploadimagePostPathParametersPathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md index e9ffec2c6aa..fa49543e3e7 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed)
sealed interface for validated payloads | | record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1](#petpetiduploadimagepostpathparameters1)
schema class | -| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters8](#petpetiduploadimagepostpathparameters8)
builder for Map payloads | -| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9](#petpetiduploadimagepostpathparameters9)
output class for Map payloads | -| sealed interface | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed)
sealed interface for validated payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedVoid](#petpetiduploadimagepostpathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedBoolean](#petpetiduploadimagepostpathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedNumber](#petpetiduploadimagepostpathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedString](#petpetiduploadimagepostpathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedList](#petpetiduploadimagepostpathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4BoxedMap](#petpetiduploadimagepostpathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters4](#petpetiduploadimagepostpathparameters4)
schema class | +| static class | [PetpetiduploadimagePostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [PetpetiduploadimagePostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetiduploadimagePostPathParameters.AdditionalProperties](#additionalproperties)
schema class | ## PetpetiduploadimagePostPathParameters1Boxed public sealed interface PetpetiduploadimagePostPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParameters1BoxedMap([PetpetiduploadimagePostPathParameters9](#petpetiduploadimagepostpathparameters9) data)
Creates an instance, private visibility | +| PetpetiduploadimagePostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetiduploadimagePostPathParameters9](#petpetiduploadimagepostpathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## PetpetiduploadimagePostPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 validatedPayload = +PetpetiduploadimagePostPathParameters.PathParametersMap validatedPayload = PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( - new PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters8() + new PetpetiduploadimagePostPathParameters.PathParametersMapBuilder() .petId(1L) .build(), @@ -88,18 +88,18 @@ PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 val | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [PetpetiduploadimagePostPathParameters4.class](#petpetiduploadimagepostpathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetiduploadimagePostPathParameters9](#petpetiduploadimagepostpathparameters9) | validate([Map<?, ?>](#petpetiduploadimagepostpathparameters8) arg, SchemaConfiguration configuration) | -| [PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#petpetiduploadimagepostpathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetpetiduploadimagePostPathParameters10 -public class PetpetiduploadimagePostPathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## PetpetiduploadimagePostPathParameters8 -public class PetpetiduploadimagePostPathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetpetiduploadimagePostPathParameters10](#petpetiduploadimagepostpathparameters10) | petId(int value) | -| [PetpetiduploadimagePostPathParameters10](#petpetiduploadimagepostpathparameters10) | petId(float value) | -| [PetpetiduploadimagePostPathParameters10](#petpetiduploadimagepostpathparameters10) | petId(long value) | -| [PetpetiduploadimagePostPathParameters10](#petpetiduploadimagepostpathparameters10) | petId(double value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | -## PetpetiduploadimagePostPathParameters9 -public static class PetpetiduploadimagePostPathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetpetiduploadimagePostPathParameters9](#petpetiduploadimagepostpathparameters9) | of([Map](#petpetiduploadimagepostpathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | Number | petId()
| -## PetpetiduploadimagePostPathParameters4Boxed -public sealed interface PetpetiduploadimagePostPathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[PetpetiduploadimagePostPathParameters4BoxedVoid](#petpetiduploadimagepostpathparameters4boxedvoid), -[PetpetiduploadimagePostPathParameters4BoxedBoolean](#petpetiduploadimagepostpathparameters4boxedboolean), -[PetpetiduploadimagePostPathParameters4BoxedNumber](#petpetiduploadimagepostpathparameters4boxednumber), -[PetpetiduploadimagePostPathParameters4BoxedString](#petpetiduploadimagepostpathparameters4boxedstring), -[PetpetiduploadimagePostPathParameters4BoxedList](#petpetiduploadimagepostpathparameters4boxedlist), -[PetpetiduploadimagePostPathParameters4BoxedMap](#petpetiduploadimagepostpathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## PetpetiduploadimagePostPathParameters4BoxedVoid -public record PetpetiduploadimagePostPathParameters4BoxedVoid
-implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostPathParameters4BoxedBoolean -public record PetpetiduploadimagePostPathParameters4BoxedBoolean
-implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostPathParameters4BoxedNumber -public record PetpetiduploadimagePostPathParameters4BoxedNumber
-implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostPathParameters4BoxedString -public record PetpetiduploadimagePostPathParameters4BoxedString
-implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostPathParameters4BoxedList -public record PetpetiduploadimagePostPathParameters4BoxedList
-implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostPathParameters4BoxedMap -public record PetpetiduploadimagePostPathParameters4BoxedMap
-implements [PetpetiduploadimagePostPathParameters4Boxed](#petpetiduploadimagepostpathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetpetiduploadimagePostPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## PetpetiduploadimagePostPathParameters4 -public static class PetpetiduploadimagePostPathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md index c291f0ff27e..cce45316368 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -75,9 +75,9 @@ StoreorderorderidDelete.Delete apiClient = new StoreorderorderidDelete.Delete(ap // Map validation -StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters = +StoreorderorderidDeletePathParameters.PathParametersMap pathParameters = StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( - new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters8() + new StoreorderorderidDeletePathParameters.PathParametersMapBuilder() .order_id("a") .build(), @@ -137,7 +137,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparameters9) | pathParameters | +| [StoreorderorderidDeletePathParameters.PathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -149,7 +149,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [StoreorderorderidDeletePathParameters.@Nullable StoreorderorderidDeletePathParameters9](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparameters9) | pathParameters | +| [StoreorderorderidDeletePathParameters.@Nullable PathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -183,6 +183,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([StoreorderorderidDeletePathParametersStoreorderorderidDeletePathParameters9](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#storeorderorderiddeletepathparameters9) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([StoreorderorderidDeletePathParametersPathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md index 8ca51d906e7..1b8c91e2631 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -76,9 +76,9 @@ StoreorderorderidGet.Get apiClient = new StoreorderorderidGet.Get(apiConfigurati // Map validation -StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters = +StoreorderorderidGetPathParameters.PathParametersMap pathParameters = StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( - new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters8() + new StoreorderorderidGetPathParameters.PathParametersMapBuilder() .order_id(1L) .build(), @@ -145,7 +145,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparameters9) | pathParameters | +| [StoreorderorderidGetPathParameters.PathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -157,7 +157,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [StoreorderorderidGetPathParameters.@Nullable StoreorderorderidGetPathParameters9](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparameters9) | pathParameters | +| [StoreorderorderidGetPathParameters.@Nullable PathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -191,6 +191,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([StoreorderorderidGetPathParametersStoreorderorderidGetPathParameters9](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#storeorderorderidgetpathparameters9) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([StoreorderorderidGetPathParametersPathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md index 8e74e069a09..9add70eca1d 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed)
sealed interface for validated payloads | | record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1](#storeorderorderiddeletepathparameters1)
schema class | -| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters8](#storeorderorderiddeletepathparameters8)
builder for Map payloads | -| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9](#storeorderorderiddeletepathparameters9)
output class for Map payloads | -| sealed interface | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed)
sealed interface for validated payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedVoid](#storeorderorderiddeletepathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedBoolean](#storeorderorderiddeletepathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedNumber](#storeorderorderiddeletepathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedString](#storeorderorderiddeletepathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedList](#storeorderorderiddeletepathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4BoxedMap](#storeorderorderiddeletepathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters4](#storeorderorderiddeletepathparameters4)
schema class | +| static class | [StoreorderorderidDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [StoreorderorderidDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [StoreorderorderidDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | ## StoreorderorderidDeletePathParameters1Boxed public sealed interface StoreorderorderidDeletePathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParameters1BoxedMap([StoreorderorderidDeletePathParameters9](#storeorderorderiddeletepathparameters9) data)
Creates an instance, private visibility | +| StoreorderorderidDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidDeletePathParameters9](#storeorderorderiddeletepathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## StoreorderorderidDeletePathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 validatedPayload = +StoreorderorderidDeletePathParameters.PathParametersMap validatedPayload = StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( - new StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters8() + new StoreorderorderidDeletePathParameters.PathParametersMapBuilder() .order_id("a") .build(), @@ -88,18 +88,18 @@ StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 val | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("order_id", [Schema0.Schema01.class](../../../paths/storeorderorderid/delete/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "order_id"
)
| -| Class | additionalProperties = [StoreorderorderidDeletePathParameters4.class](#storeorderorderiddeletepathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidDeletePathParameters9](#storeorderorderiddeletepathparameters9) | validate([Map<?, ?>](#storeorderorderiddeletepathparameters8) arg, SchemaConfiguration configuration) | -| [StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#storeorderorderiddeletepathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StoreorderorderidDeletePathParameters10 -public class StoreorderorderidDeletePathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## StoreorderorderidDeletePathParameters8 -public class StoreorderorderidDeletePathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidDeletePathParameters10](#storeorderorderiddeletepathparameters10) | order_id(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(String value) | -## StoreorderorderidDeletePathParameters9 -public static class StoreorderorderidDeletePathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [StoreorderorderidDeletePathParameters9](#storeorderorderiddeletepathparameters9) | of([Map](#storeorderorderiddeletepathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | order_id()
| -## StoreorderorderidDeletePathParameters4Boxed -public sealed interface StoreorderorderidDeletePathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[StoreorderorderidDeletePathParameters4BoxedVoid](#storeorderorderiddeletepathparameters4boxedvoid), -[StoreorderorderidDeletePathParameters4BoxedBoolean](#storeorderorderiddeletepathparameters4boxedboolean), -[StoreorderorderidDeletePathParameters4BoxedNumber](#storeorderorderiddeletepathparameters4boxednumber), -[StoreorderorderidDeletePathParameters4BoxedString](#storeorderorderiddeletepathparameters4boxedstring), -[StoreorderorderidDeletePathParameters4BoxedList](#storeorderorderiddeletepathparameters4boxedlist), -[StoreorderorderidDeletePathParameters4BoxedMap](#storeorderorderiddeletepathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## StoreorderorderidDeletePathParameters4BoxedVoid -public record StoreorderorderidDeletePathParameters4BoxedVoid
-implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeletePathParameters4BoxedBoolean -public record StoreorderorderidDeletePathParameters4BoxedBoolean
-implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeletePathParameters4BoxedNumber -public record StoreorderorderidDeletePathParameters4BoxedNumber
-implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeletePathParameters4BoxedString -public record StoreorderorderidDeletePathParameters4BoxedString
-implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeletePathParameters4BoxedList -public record StoreorderorderidDeletePathParameters4BoxedList
-implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeletePathParameters4BoxedMap -public record StoreorderorderidDeletePathParameters4BoxedMap
-implements [StoreorderorderidDeletePathParameters4Boxed](#storeorderorderiddeletepathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidDeletePathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidDeletePathParameters4 -public static class StoreorderorderidDeletePathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md index fa4491b7801..e5c288385e7 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed)
sealed interface for validated payloads | | record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1](#storeorderorderidgetpathparameters1)
schema class | -| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters8](#storeorderorderidgetpathparameters8)
builder for Map payloads | -| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9](#storeorderorderidgetpathparameters9)
output class for Map payloads | -| sealed interface | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed)
sealed interface for validated payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedVoid](#storeorderorderidgetpathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedBoolean](#storeorderorderidgetpathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedNumber](#storeorderorderidgetpathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedString](#storeorderorderidgetpathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedList](#storeorderorderidgetpathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4BoxedMap](#storeorderorderidgetpathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters4](#storeorderorderidgetpathparameters4)
schema class | +| static class | [StoreorderorderidGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [StoreorderorderidGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [StoreorderorderidGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | ## StoreorderorderidGetPathParameters1Boxed public sealed interface StoreorderorderidGetPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParameters1BoxedMap([StoreorderorderidGetPathParameters9](#storeorderorderidgetpathparameters9) data)
Creates an instance, private visibility | +| StoreorderorderidGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidGetPathParameters9](#storeorderorderidgetpathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## StoreorderorderidGetPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 validatedPayload = +StoreorderorderidGetPathParameters.PathParametersMap validatedPayload = StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( - new StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters8() + new StoreorderorderidGetPathParameters.PathParametersMapBuilder() .order_id(1L) .build(), @@ -88,18 +88,18 @@ StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 validated | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("order_id", [Schema0.Schema01.class](../../../paths/storeorderorderid/get/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "order_id"
)
| -| Class | additionalProperties = [StoreorderorderidGetPathParameters4.class](#storeorderorderidgetpathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidGetPathParameters9](#storeorderorderidgetpathparameters9) | validate([Map<?, ?>](#storeorderorderidgetpathparameters8) arg, SchemaConfiguration configuration) | -| [StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#storeorderorderidgetpathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StoreorderorderidGetPathParameters10 -public class StoreorderorderidGetPathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## StoreorderorderidGetPathParameters8 -public class StoreorderorderidGetPathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,18 +123,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StoreorderorderidGetPathParameters10](#storeorderorderidgetpathparameters10) | order_id(int value) | -| [StoreorderorderidGetPathParameters10](#storeorderorderidgetpathparameters10) | order_id(float value) | -| [StoreorderorderidGetPathParameters10](#storeorderorderidgetpathparameters10) | order_id(long value) | -| [StoreorderorderidGetPathParameters10](#storeorderorderidgetpathparameters10) | order_id(double value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(double value) | -## StoreorderorderidGetPathParameters9 -public static class StoreorderorderidGetPathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -142,31 +142,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [StoreorderorderidGetPathParameters9](#storeorderorderidgetpathparameters9) | of([Map](#storeorderorderidgetpathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | Number | order_id()
| -## StoreorderorderidGetPathParameters4Boxed -public sealed interface StoreorderorderidGetPathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[StoreorderorderidGetPathParameters4BoxedVoid](#storeorderorderidgetpathparameters4boxedvoid), -[StoreorderorderidGetPathParameters4BoxedBoolean](#storeorderorderidgetpathparameters4boxedboolean), -[StoreorderorderidGetPathParameters4BoxedNumber](#storeorderorderidgetpathparameters4boxednumber), -[StoreorderorderidGetPathParameters4BoxedString](#storeorderorderidgetpathparameters4boxedstring), -[StoreorderorderidGetPathParameters4BoxedList](#storeorderorderidgetpathparameters4boxedlist), -[StoreorderorderidGetPathParameters4BoxedMap](#storeorderorderidgetpathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## StoreorderorderidGetPathParameters4BoxedVoid -public record StoreorderorderidGetPathParameters4BoxedVoid
-implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -174,16 +174,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetPathParameters4BoxedBoolean -public record StoreorderorderidGetPathParameters4BoxedBoolean
-implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -191,16 +191,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetPathParameters4BoxedNumber -public record StoreorderorderidGetPathParameters4BoxedNumber
-implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -208,16 +208,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetPathParameters4BoxedString -public record StoreorderorderidGetPathParameters4BoxedString
-implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -225,16 +225,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetPathParameters4BoxedList -public record StoreorderorderidGetPathParameters4BoxedList
-implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -242,16 +242,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetPathParameters4BoxedMap -public record StoreorderorderidGetPathParameters4BoxedMap
-implements [StoreorderorderidGetPathParameters4Boxed](#storeorderorderidgetpathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| StoreorderorderidGetPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -259,8 +259,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## StoreorderorderidGetPathParameters4 -public static class StoreorderorderidGetPathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md index f1747d8e9a0..8b61002c201 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -76,9 +76,9 @@ UserloginGet.Get apiClient = new UserloginGet.Get(apiConfiguration, schemaConfig // Map validation -UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters = +UserloginGetQueryParameters.QueryParametersMap queryParameters = UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( - new UserloginGetQueryParameters.UserloginGetQueryParameters9() + new UserloginGetQueryParameters.QueryParametersMapBuilder() .password("a") .username("a") @@ -147,7 +147,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserloginGetQueryParameters.UserloginGetQueryParameters10](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparameters10) | queryParameters | +| [UserloginGetQueryParameters.QueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -159,7 +159,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserloginGetQueryParameters.@Nullable UserloginGetQueryParameters10](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparameters10) | queryParameters | +| [UserloginGetQueryParameters.@Nullable QueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#queryparametersmap) | queryParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -193,6 +193,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([UserloginGetQueryParametersUserloginGetQueryParameters10](../../paths/userlogin/get/UserloginGetQueryParameters.md#userlogingetqueryparameters10) queryParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([UserloginGetQueryParametersQueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md index e670cbf06ae..4dbd0a7bd89 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [UserloginGetQueryParameters.UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed)
sealed interface for validated payloads | | record | [UserloginGetQueryParameters.UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [UserloginGetQueryParameters.UserloginGetQueryParameters1](#userlogingetqueryparameters1)
schema class | -| static class | [UserloginGetQueryParameters.UserloginGetQueryParameters9](#userlogingetqueryparameters9)
builder for Map payloads | -| static class | [UserloginGetQueryParameters.UserloginGetQueryParameters10](#userlogingetqueryparameters10)
output class for Map payloads | -| sealed interface | [UserloginGetQueryParameters.UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed)
sealed interface for validated payloads | -| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedVoid](#userlogingetqueryparameters5boxedvoid)
boxed class to store validated null payloads | -| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedBoolean](#userlogingetqueryparameters5boxedboolean)
boxed class to store validated boolean payloads | -| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedNumber](#userlogingetqueryparameters5boxednumber)
boxed class to store validated Number payloads | -| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedString](#userlogingetqueryparameters5boxedstring)
boxed class to store validated String payloads | -| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedList](#userlogingetqueryparameters5boxedlist)
boxed class to store validated List payloads | -| record | [UserloginGetQueryParameters.UserloginGetQueryParameters5BoxedMap](#userlogingetqueryparameters5boxedmap)
boxed class to store validated Map payloads | -| static class | [UserloginGetQueryParameters.UserloginGetQueryParameters5](#userlogingetqueryparameters5)
schema class | +| static class | [UserloginGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [UserloginGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [UserloginGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [UserloginGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | ## UserloginGetQueryParameters1Boxed public sealed interface UserloginGetQueryParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters1BoxedMap([UserloginGetQueryParameters10](#userlogingetqueryparameters10) data)
Creates an instance, private visibility | +| UserloginGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetQueryParameters10](#userlogingetqueryparameters10) | data()
validated payload | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## UserloginGetQueryParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -UserloginGetQueryParameters.UserloginGetQueryParameters10 validatedPayload = +UserloginGetQueryParameters.QueryParametersMap validatedPayload = UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( - new UserloginGetQueryParameters.UserloginGetQueryParameters9() + new UserloginGetQueryParameters.QueryParametersMapBuilder() .password("a") .username("a") @@ -90,18 +90,18 @@ UserloginGetQueryParameters.UserloginGetQueryParameters10 validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("password", [Schema1.Schema11.class](../../../paths/userlogin/get/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("username", [Schema0.Schema01.class](../../../paths/userlogin/get/parameters/parameter0/Schema0.md#schema01))
)
| | Set | required = Set.of(
    "password",
    "username"
)
| -| Class | additionalProperties = [UserloginGetQueryParameters5.class](#userlogingetqueryparameters5) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetQueryParameters10](#userlogingetqueryparameters10) | validate([Map<?, ?>](#userlogingetqueryparameters9) arg, SchemaConfiguration configuration) | -| [UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#userlogingetqueryparameters9) arg, SchemaConfiguration configuration) | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | [UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## UserloginGetQueryParameters11 -public class UserloginGetQueryParameters11
+## QueryParametersMap00Builder +public class QueryParametersMap00Builder
builder for `Map` A class that builds the Map input type @@ -109,15 +109,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters11(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap00Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## UserloginGetQueryParameters12 -public class UserloginGetQueryParameters12
+## QueryParametersMap01Builder +public class QueryParametersMap01Builder
builder for `Map` A class that builds the Map input type @@ -125,15 +125,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters12(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap01Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetQueryParameters11](#userlogingetqueryparameters11) | username(String value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | username(String value) | -## UserloginGetQueryParameters13 -public class UserloginGetQueryParameters13
+## QueryParametersMap10Builder +public class QueryParametersMap10Builder
builder for `Map` A class that builds the Map input type @@ -141,15 +141,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters13(Map instance)
Creates a builder that contains the passed instance | +| QueryParametersMap10Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetQueryParameters11](#userlogingetqueryparameters11) | password(String value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | password(String value) | -## UserloginGetQueryParameters9 -public class UserloginGetQueryParameters9
+## QueryParametersMapBuilder +public class QueryParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -157,16 +157,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters9()
Creates a builder that contains an empty map | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserloginGetQueryParameters12](#userlogingetqueryparameters12) | password(String value) | -| [UserloginGetQueryParameters13](#userlogingetqueryparameters13) | username(String value) | +| [QueryParametersMap01Builder](#queryparametersmap01builder) | password(String value) | +| [QueryParametersMap10Builder](#queryparametersmap10builder) | username(String value) | -## UserloginGetQueryParameters10 -public static class UserloginGetQueryParameters10
+## QueryParametersMap +public static class QueryParametersMap
extends FrozenMap A class to store validated Map payloads @@ -174,32 +174,32 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [UserloginGetQueryParameters10](#userlogingetqueryparameters10) | of([Map](#userlogingetqueryparameters9) arg, SchemaConfiguration configuration) | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | password()
| | String | username()
| -## UserloginGetQueryParameters5Boxed -public sealed interface UserloginGetQueryParameters5Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[UserloginGetQueryParameters5BoxedVoid](#userlogingetqueryparameters5boxedvoid), -[UserloginGetQueryParameters5BoxedBoolean](#userlogingetqueryparameters5boxedboolean), -[UserloginGetQueryParameters5BoxedNumber](#userlogingetqueryparameters5boxednumber), -[UserloginGetQueryParameters5BoxedString](#userlogingetqueryparameters5boxedstring), -[UserloginGetQueryParameters5BoxedList](#userlogingetqueryparameters5boxedlist), -[UserloginGetQueryParameters5BoxedMap](#userlogingetqueryparameters5boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## UserloginGetQueryParameters5BoxedVoid -public record UserloginGetQueryParameters5BoxedVoid
-implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters5BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -207,16 +207,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetQueryParameters5BoxedBoolean -public record UserloginGetQueryParameters5BoxedBoolean
-implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters5BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -224,16 +224,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetQueryParameters5BoxedNumber -public record UserloginGetQueryParameters5BoxedNumber
-implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters5BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -241,16 +241,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetQueryParameters5BoxedString -public record UserloginGetQueryParameters5BoxedString
-implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters5BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetQueryParameters5BoxedList -public record UserloginGetQueryParameters5BoxedList
-implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters5BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetQueryParameters5BoxedMap -public record UserloginGetQueryParameters5BoxedMap
-implements [UserloginGetQueryParameters5Boxed](#userlogingetqueryparameters5boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserloginGetQueryParameters5BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,8 +292,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserloginGetQueryParameters5 -public static class UserloginGetQueryParameters5
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md index 98d7d665c3a..003f5a2e4bb 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -75,9 +75,9 @@ UserusernameDelete.Delete apiClient = new UserusernameDelete.Delete(apiConfigura // Map validation -UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters = +UserusernameDeletePathParameters.PathParametersMap pathParameters = UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( - new UserusernameDeletePathParameters.UserusernameDeletePathParameters8() + new UserusernameDeletePathParameters.PathParametersMapBuilder() .username("a") .build(), @@ -138,7 +138,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserusernameDeletePathParameters.UserusernameDeletePathParameters9](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparameters9) | pathParameters | +| [UserusernameDeletePathParameters.PathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -150,7 +150,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserusernameDeletePathParameters.@Nullable UserusernameDeletePathParameters9](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparameters9) | pathParameters | +| [UserusernameDeletePathParameters.@Nullable PathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -184,6 +184,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([UserusernameDeletePathParametersUserusernameDeletePathParameters9](../../paths/userusername/delete/UserusernameDeletePathParameters.md#userusernamedeletepathparameters9) pathParameters)
sets the property | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([UserusernameDeletePathParametersPathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md index ab497604e76..4d72635a3b1 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -76,9 +76,9 @@ UserusernameGet.Get apiClient = new UserusernameGet.Get(apiConfiguration, schema // Map validation -UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters = +UserusernameGetPathParameters.PathParametersMap pathParameters = UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( - new UserusernameGetPathParameters.UserusernameGetPathParameters8() + new UserusernameGetPathParameters.PathParametersMapBuilder() .username("a") .build(), @@ -145,7 +145,7 @@ a class that stores the final request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserusernameGetPathParameters.UserusernameGetPathParameters9](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparameters9) | pathParameters | +| [UserusernameGetPathParameters.PathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -157,7 +157,7 @@ a class that stores the initial request inputs ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [UserusernameGetPathParameters.@Nullable UserusernameGetPathParameters9](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparameters9) | pathParameters | +| [UserusernameGetPathParameters.@Nullable PathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -191,6 +191,6 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([UserusernameGetPathParametersUserusernameGetPathParameters9](../../paths/userusername/get/UserusernameGetPathParameters.md#userusernamegetpathparameters9) pathParameters)
sets the property | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([UserusernameGetPathParametersPathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md index 5e2f4e73812..ca9aae9c168 100644 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -105,9 +105,9 @@ User1BoxedMap requestBodyPayload = UserusernamePut.SealedRequestBody requestBody = new UserusernamePut.ApplicationjsonRequestBody(requestBodyPayload); // Map validation -UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters = +UserusernamePutPathParameters.PathParametersMap pathParameters = UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( - new UserusernamePutPathParameters.UserusernamePutPathParameters8() + new UserusernamePutPathParameters.PathParametersMapBuilder() .username("a") .build(), @@ -169,7 +169,7 @@ a class that stores the final request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | -| [UserusernamePutPathParameters.UserusernamePutPathParameters9](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparameters9) | pathParameters | +| [UserusernamePutPathParameters.PathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | | @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | @@ -182,7 +182,7 @@ a class that stores the initial request inputs | Modifier and Type | Field and Description | | ----------------- | --------------------- | | [UserusernamePutRequestBody.@Nullable SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | -| [UserusernamePutPathParameters.@Nullable UserusernamePutPathParameters9](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparameters9) | pathParameters | +| [UserusernamePutPathParameters.@Nullable PathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) | pathParameters | | [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | | @Nullable Duration | timeout | @@ -216,7 +216,7 @@ a builder for request inputs ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | pathParameters([UserusernamePutPathParametersUserusernamePutPathParameters9](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparameters9) pathParameters)
sets the property | +| [Put00RequestBuilder](#put00requestbuilder) | pathParameters([UserusernamePutPathParametersPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) pathParameters)
sets the property | ## Put10RequestBuilder public static class Put10RequestBuilder
@@ -247,6 +247,6 @@ a builder for request inputs | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | [Put01RequestBuilder](#put01requestbuilder) | requestBody([UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) requestBody)
sets the property | -| [Put10RequestBuilder](#put10requestbuilder) | pathParameters([UserusernamePutPathParametersUserusernamePutPathParameters9](../../paths/userusername/put/UserusernamePutPathParameters.md#userusernameputpathparameters9) pathParameters)
sets the property | +| [Put10RequestBuilder](#put10requestbuilder) | pathParameters([UserusernamePutPathParametersPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) pathParameters)
sets the property | [[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md index bc68c30e722..bc778942750 100644 --- a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md +++ b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed)
sealed interface for validated payloads | | record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1](#userusernamedeletepathparameters1)
schema class | -| static class | [UserusernameDeletePathParameters.UserusernameDeletePathParameters8](#userusernamedeletepathparameters8)
builder for Map payloads | -| static class | [UserusernameDeletePathParameters.UserusernameDeletePathParameters9](#userusernamedeletepathparameters9)
output class for Map payloads | -| sealed interface | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed)
sealed interface for validated payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedVoid](#userusernamedeletepathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedBoolean](#userusernamedeletepathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedNumber](#userusernamedeletepathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedString](#userusernamedeletepathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedList](#userusernamedeletepathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4BoxedMap](#userusernamedeletepathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernameDeletePathParameters.UserusernameDeletePathParameters4](#userusernamedeletepathparameters4)
schema class | +| static class | [UserusernameDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [UserusernameDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [UserusernameDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernameDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | ## UserusernameDeletePathParameters1Boxed public sealed interface UserusernameDeletePathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParameters1BoxedMap([UserusernameDeletePathParameters9](#userusernamedeletepathparameters9) data)
Creates an instance, private visibility | +| UserusernameDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameDeletePathParameters9](#userusernamedeletepathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## UserusernameDeletePathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -UserusernameDeletePathParameters.UserusernameDeletePathParameters9 validatedPayload = +UserusernameDeletePathParameters.PathParametersMap validatedPayload = UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( - new UserusernameDeletePathParameters.UserusernameDeletePathParameters8() + new UserusernameDeletePathParameters.PathParametersMapBuilder() .username("a") .build(), @@ -88,18 +88,18 @@ UserusernameDeletePathParameters.UserusernameDeletePathParameters9 validatedPayl | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| | Set | required = Set.of(
    "username"
)
| -| Class | additionalProperties = [UserusernameDeletePathParameters4.class](#userusernamedeletepathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameDeletePathParameters9](#userusernamedeletepathparameters9) | validate([Map<?, ?>](#userusernamedeletepathparameters8) arg, SchemaConfiguration configuration) | -| [UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernamedeletepathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## UserusernameDeletePathParameters10 -public class UserusernameDeletePathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## UserusernameDeletePathParameters8 -public class UserusernameDeletePathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameDeletePathParameters10](#userusernamedeletepathparameters10) | username(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | username(String value) | -## UserusernameDeletePathParameters9 -public static class UserusernameDeletePathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [UserusernameDeletePathParameters9](#userusernamedeletepathparameters9) | of([Map](#userusernamedeletepathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | username()
| -## UserusernameDeletePathParameters4Boxed -public sealed interface UserusernameDeletePathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[UserusernameDeletePathParameters4BoxedVoid](#userusernamedeletepathparameters4boxedvoid), -[UserusernameDeletePathParameters4BoxedBoolean](#userusernamedeletepathparameters4boxedboolean), -[UserusernameDeletePathParameters4BoxedNumber](#userusernamedeletepathparameters4boxednumber), -[UserusernameDeletePathParameters4BoxedString](#userusernamedeletepathparameters4boxedstring), -[UserusernameDeletePathParameters4BoxedList](#userusernamedeletepathparameters4boxedlist), -[UserusernameDeletePathParameters4BoxedMap](#userusernamedeletepathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## UserusernameDeletePathParameters4BoxedVoid -public record UserusernameDeletePathParameters4BoxedVoid
-implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeletePathParameters4BoxedBoolean -public record UserusernameDeletePathParameters4BoxedBoolean
-implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeletePathParameters4BoxedNumber -public record UserusernameDeletePathParameters4BoxedNumber
-implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeletePathParameters4BoxedString -public record UserusernameDeletePathParameters4BoxedString
-implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeletePathParameters4BoxedList -public record UserusernameDeletePathParameters4BoxedList
-implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeletePathParameters4BoxedMap -public record UserusernameDeletePathParameters4BoxedMap
-implements [UserusernameDeletePathParameters4Boxed](#userusernamedeletepathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameDeletePathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameDeletePathParameters4 -public static class UserusernameDeletePathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md index c5512409f2a..ffc84b77fe4 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [UserusernameGetPathParameters.UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed)
sealed interface for validated payloads | | record | [UserusernameGetPathParameters.UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [UserusernameGetPathParameters.UserusernameGetPathParameters1](#userusernamegetpathparameters1)
schema class | -| static class | [UserusernameGetPathParameters.UserusernameGetPathParameters8](#userusernamegetpathparameters8)
builder for Map payloads | -| static class | [UserusernameGetPathParameters.UserusernameGetPathParameters9](#userusernamegetpathparameters9)
output class for Map payloads | -| sealed interface | [UserusernameGetPathParameters.UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed)
sealed interface for validated payloads | -| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedVoid](#userusernamegetpathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedBoolean](#userusernamegetpathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedNumber](#userusernamegetpathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedString](#userusernamegetpathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedList](#userusernamegetpathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [UserusernameGetPathParameters.UserusernameGetPathParameters4BoxedMap](#userusernamegetpathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernameGetPathParameters.UserusernameGetPathParameters4](#userusernamegetpathparameters4)
schema class | +| static class | [UserusernameGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [UserusernameGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [UserusernameGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernameGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | ## UserusernameGetPathParameters1Boxed public sealed interface UserusernameGetPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParameters1BoxedMap([UserusernameGetPathParameters9](#userusernamegetpathparameters9) data)
Creates an instance, private visibility | +| UserusernameGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameGetPathParameters9](#userusernamegetpathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## UserusernameGetPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -UserusernameGetPathParameters.UserusernameGetPathParameters9 validatedPayload = +UserusernameGetPathParameters.PathParametersMap validatedPayload = UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( - new UserusernameGetPathParameters.UserusernameGetPathParameters8() + new UserusernameGetPathParameters.PathParametersMapBuilder() .username("a") .build(), @@ -88,18 +88,18 @@ UserusernameGetPathParameters.UserusernameGetPathParameters9 validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| | Set | required = Set.of(
    "username"
)
| -| Class | additionalProperties = [UserusernameGetPathParameters4.class](#userusernamegetpathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameGetPathParameters9](#userusernamegetpathparameters9) | validate([Map<?, ?>](#userusernamegetpathparameters8) arg, SchemaConfiguration configuration) | -| [UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernamegetpathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## UserusernameGetPathParameters10 -public class UserusernameGetPathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## UserusernameGetPathParameters8 -public class UserusernameGetPathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernameGetPathParameters10](#userusernamegetpathparameters10) | username(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | username(String value) | -## UserusernameGetPathParameters9 -public static class UserusernameGetPathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [UserusernameGetPathParameters9](#userusernamegetpathparameters9) | of([Map](#userusernamegetpathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | username()
| -## UserusernameGetPathParameters4Boxed -public sealed interface UserusernameGetPathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[UserusernameGetPathParameters4BoxedVoid](#userusernamegetpathparameters4boxedvoid), -[UserusernameGetPathParameters4BoxedBoolean](#userusernamegetpathparameters4boxedboolean), -[UserusernameGetPathParameters4BoxedNumber](#userusernamegetpathparameters4boxednumber), -[UserusernameGetPathParameters4BoxedString](#userusernamegetpathparameters4boxedstring), -[UserusernameGetPathParameters4BoxedList](#userusernamegetpathparameters4boxedlist), -[UserusernameGetPathParameters4BoxedMap](#userusernamegetpathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## UserusernameGetPathParameters4BoxedVoid -public record UserusernameGetPathParameters4BoxedVoid
-implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetPathParameters4BoxedBoolean -public record UserusernameGetPathParameters4BoxedBoolean
-implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetPathParameters4BoxedNumber -public record UserusernameGetPathParameters4BoxedNumber
-implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetPathParameters4BoxedString -public record UserusernameGetPathParameters4BoxedString
-implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetPathParameters4BoxedList -public record UserusernameGetPathParameters4BoxedList
-implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetPathParameters4BoxedMap -public record UserusernameGetPathParameters4BoxedMap
-implements [UserusernameGetPathParameters4Boxed](#userusernamegetpathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernameGetPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernameGetPathParameters4 -public static class UserusernameGetPathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md index 364d275a861..fbfd5bccc9b 100644 --- a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md +++ b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md @@ -14,16 +14,16 @@ A class that contains necessary nested | sealed interface | [UserusernamePutPathParameters.UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed)
sealed interface for validated payloads | | record | [UserusernamePutPathParameters.UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap)
boxed class to store validated Map payloads | | static class | [UserusernamePutPathParameters.UserusernamePutPathParameters1](#userusernameputpathparameters1)
schema class | -| static class | [UserusernamePutPathParameters.UserusernamePutPathParameters8](#userusernameputpathparameters8)
builder for Map payloads | -| static class | [UserusernamePutPathParameters.UserusernamePutPathParameters9](#userusernameputpathparameters9)
output class for Map payloads | -| sealed interface | [UserusernamePutPathParameters.UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed)
sealed interface for validated payloads | -| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedVoid](#userusernameputpathparameters4boxedvoid)
boxed class to store validated null payloads | -| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedBoolean](#userusernameputpathparameters4boxedboolean)
boxed class to store validated boolean payloads | -| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedNumber](#userusernameputpathparameters4boxednumber)
boxed class to store validated Number payloads | -| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedString](#userusernameputpathparameters4boxedstring)
boxed class to store validated String payloads | -| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedList](#userusernameputpathparameters4boxedlist)
boxed class to store validated List payloads | -| record | [UserusernamePutPathParameters.UserusernamePutPathParameters4BoxedMap](#userusernameputpathparameters4boxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernamePutPathParameters.UserusernamePutPathParameters4](#userusernameputpathparameters4)
schema class | +| static class | [UserusernamePutPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [UserusernamePutPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [UserusernamePutPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernamePutPathParameters.AdditionalProperties](#additionalproperties)
schema class | ## UserusernamePutPathParameters1Boxed public sealed interface UserusernamePutPathParameters1Boxed
@@ -41,12 +41,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParameters1BoxedMap([UserusernamePutPathParameters9](#userusernameputpathparameters9) data)
Creates an instance, private visibility | +| UserusernamePutPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernamePutPathParameters9](#userusernameputpathparameters9) | data()
validated payload | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## UserusernamePutPathParameters1 @@ -72,9 +72,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -UserusernamePutPathParameters.UserusernamePutPathParameters9 validatedPayload = +UserusernamePutPathParameters.PathParametersMap validatedPayload = UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( - new UserusernamePutPathParameters.UserusernamePutPathParameters8() + new UserusernamePutPathParameters.PathParametersMapBuilder() .username("a") .build(), @@ -88,18 +88,18 @@ UserusernamePutPathParameters.UserusernamePutPathParameters9 validatedPayload = | Set> | type = Set.of(Map.class) | | Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| | Set | required = Set.of(
    "username"
)
| -| Class | additionalProperties = [UserusernamePutPathParameters4.class](#userusernameputpathparameters4) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernamePutPathParameters9](#userusernameputpathparameters9) | validate([Map<?, ?>](#userusernameputpathparameters8) arg, SchemaConfiguration configuration) | -| [UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#userusernameputpathparameters8) arg, SchemaConfiguration configuration) | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | [UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## UserusernamePutPathParameters10 -public class UserusernamePutPathParameters10
+## PathParametersMap0Builder +public class PathParametersMap0Builder
builder for `Map` A class that builds the Map input type @@ -107,15 +107,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParameters10(Map instance)
Creates a builder that contains the passed instance | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## UserusernamePutPathParameters8 -public class UserusernamePutPathParameters8
+## PathParametersMapBuilder +public class PathParametersMapBuilder
builder for `Map` A class that builds the Map input type @@ -123,15 +123,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParameters8()
Creates a builder that contains an empty map | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserusernamePutPathParameters10](#userusernameputpathparameters10) | username(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | username(String value) | -## UserusernamePutPathParameters9 -public static class UserusernamePutPathParameters9
+## PathParametersMap +public static class PathParametersMap
extends FrozenMap A class to store validated Map payloads @@ -139,31 +139,31 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [UserusernamePutPathParameters9](#userusernameputpathparameters9) | of([Map](#userusernameputpathparameters8) arg, SchemaConfiguration configuration) | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | | String | username()
| -## UserusernamePutPathParameters4Boxed -public sealed interface UserusernamePutPathParameters4Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[UserusernamePutPathParameters4BoxedVoid](#userusernameputpathparameters4boxedvoid), -[UserusernamePutPathParameters4BoxedBoolean](#userusernameputpathparameters4boxedboolean), -[UserusernamePutPathParameters4BoxedNumber](#userusernameputpathparameters4boxednumber), -[UserusernamePutPathParameters4BoxedString](#userusernameputpathparameters4boxedstring), -[UserusernamePutPathParameters4BoxedList](#userusernameputpathparameters4boxedlist), -[UserusernamePutPathParameters4BoxedMap](#userusernameputpathparameters4boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## UserusernamePutPathParameters4BoxedVoid -public record UserusernamePutPathParameters4BoxedVoid
-implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParameters4BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -171,16 +171,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutPathParameters4BoxedBoolean -public record UserusernamePutPathParameters4BoxedBoolean
-implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParameters4BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -188,16 +188,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutPathParameters4BoxedNumber -public record UserusernamePutPathParameters4BoxedNumber
-implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParameters4BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -205,16 +205,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutPathParameters4BoxedString -public record UserusernamePutPathParameters4BoxedString
-implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParameters4BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -222,16 +222,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutPathParameters4BoxedList -public record UserusernamePutPathParameters4BoxedList
-implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParameters4BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -239,16 +239,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutPathParameters4BoxedMap -public record UserusernamePutPathParameters4BoxedMap
-implements [UserusernamePutPathParameters4Boxed](#userusernameputpathparameters4boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| UserusernamePutPathParameters4BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -256,8 +256,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## UserusernamePutPathParameters4 -public static class UserusernamePutPathParameters4
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/servers/Server0.md b/samples/client/petstore/java/docs/servers/Server0.md index a5728360a61..f6fcf83ffa7 100644 --- a/samples/client/petstore/java/docs/servers/Server0.md +++ b/samples/client/petstore/java/docs/servers/Server0.md @@ -11,12 +11,12 @@ petstore server | Constructor and Description | | --------------------------- | | Server0()
Creates a server using default values for variables | -| Server0([Server0Variables.Server0Variables14](../servers/server0/Server0Variables.md#server0variables14) variables)
Creates a server using input values for variables | +| Server0([Server0Variables.VariablesMap](../servers/server0/Server0Variables.md#variablesmap) variables)
Creates a server using input values for variables | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | | String | url = "http://{server}.swagger.io:{port}/v2" | -| [Server0Variables.Server0Variables14](../servers/server0/Server0Variables.md#server0variables14) | variables | +| [Server0Variables.VariablesMap](../servers/server0/Server0Variables.md#variablesmap) | variables | [[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/Server1.md b/samples/client/petstore/java/docs/servers/Server1.md index 72a7c497ebe..5111ff6f118 100644 --- a/samples/client/petstore/java/docs/servers/Server1.md +++ b/samples/client/petstore/java/docs/servers/Server1.md @@ -11,12 +11,12 @@ The local server | Constructor and Description | | --------------------------- | | Server1()
Creates a server using default values for variables | -| Server1([Server1Variables.Server1Variables11](../servers/server1/Server1Variables.md#server1variables11) variables)
Creates a server using input values for variables | +| Server1([Server1Variables.VariablesMap](../servers/server1/Server1Variables.md#variablesmap) variables)
Creates a server using input values for variables | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | | String | url = "https://localhost:8080/{version}" | -| [Server1Variables.Server1Variables11](../servers/server1/Server1Variables.md#server1variables11) | variables | +| [Server1Variables.VariablesMap](../servers/server1/Server1Variables.md#variablesmap) | variables | [[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/server0/Server0Variables.md b/samples/client/petstore/java/docs/servers/server0/Server0Variables.md index 5a366058383..38f1e53a380 100644 --- a/samples/client/petstore/java/docs/servers/server0/Server0Variables.md +++ b/samples/client/petstore/java/docs/servers/server0/Server0Variables.md @@ -15,24 +15,24 @@ A class that contains necessary nested | sealed interface | [Server0Variables.Server0Variables1Boxed](#server0variables1boxed)
sealed interface for validated payloads | | record | [Server0Variables.Server0Variables1BoxedMap](#server0variables1boxedmap)
boxed class to store validated Map payloads | | static class | [Server0Variables.Server0Variables1](#server0variables1)
schema class | -| static class | [Server0Variables.Server0Variables13](#server0variables13)
builder for Map payloads | -| static class | [Server0Variables.Server0Variables14](#server0variables14)
output class for Map payloads | -| sealed interface | [Server0Variables.Server0Variables5Boxed](#server0variables5boxed)
sealed interface for validated payloads | -| record | [Server0Variables.Server0Variables5BoxedString](#server0variables5boxedstring)
boxed class to store validated String payloads | -| static class | [Server0Variables.Server0Variables5](#server0variables5)
schema class | -| enum | [Server0Variables.StringServer0Variables6](#stringserver0variables6)
String enum | -| sealed interface | [Server0Variables.Server0Variables2Boxed](#server0variables2boxed)
sealed interface for validated payloads | -| record | [Server0Variables.Server0Variables2BoxedString](#server0variables2boxedstring)
boxed class to store validated String payloads | -| static class | [Server0Variables.Server0Variables2](#server0variables2)
schema class | -| enum | [Server0Variables.StringServer0Variables3](#stringserver0variables3)
String enum | -| sealed interface | [Server0Variables.Server0Variables9Boxed](#server0variables9boxed)
sealed interface for validated payloads | -| record | [Server0Variables.Server0Variables9BoxedVoid](#server0variables9boxedvoid)
boxed class to store validated null payloads | -| record | [Server0Variables.Server0Variables9BoxedBoolean](#server0variables9boxedboolean)
boxed class to store validated boolean payloads | -| record | [Server0Variables.Server0Variables9BoxedNumber](#server0variables9boxednumber)
boxed class to store validated Number payloads | -| record | [Server0Variables.Server0Variables9BoxedString](#server0variables9boxedstring)
boxed class to store validated String payloads | -| record | [Server0Variables.Server0Variables9BoxedList](#server0variables9boxedlist)
boxed class to store validated List payloads | -| record | [Server0Variables.Server0Variables9BoxedMap](#server0variables9boxedmap)
boxed class to store validated Map payloads | -| static class | [Server0Variables.Server0Variables9](#server0variables9)
schema class | +| static class | [Server0Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | +| static class | [Server0Variables.VariablesMap](#variablesmap)
output class for Map payloads | +| sealed interface | [Server0Variables.PortBoxed](#portboxed)
sealed interface for validated payloads | +| record | [Server0Variables.PortBoxedString](#portboxedstring)
boxed class to store validated String payloads | +| static class | [Server0Variables.Port](#port)
schema class | +| enum | [Server0Variables.StringPortEnums](#stringportenums)
String enum | +| sealed interface | [Server0Variables.ServerBoxed](#serverboxed)
sealed interface for validated payloads | +| record | [Server0Variables.ServerBoxedString](#serverboxedstring)
boxed class to store validated String payloads | +| static class | [Server0Variables.Server](#server)
schema class | +| enum | [Server0Variables.StringServerEnums](#stringserverenums)
String enum | +| sealed interface | [Server0Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Server0Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Server0Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Server0Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Server0Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Server0Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Server0Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Server0Variables.AdditionalProperties](#additionalproperties)
schema class | ## Server0Variables1Boxed public sealed interface Server0Variables1Boxed
@@ -50,12 +50,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables1BoxedMap([Server0Variables14](#server0variables14) data)
Creates an instance, private visibility | +| Server0Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server0Variables14](#server0variables14) | data()
validated payload | +| [VariablesMap](#variablesmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Server0Variables1 @@ -81,9 +81,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Server0Variables.Server0Variables14 validatedPayload = +Server0Variables.VariablesMap validatedPayload = Server0Variables.Server0Variables1.validate( - new Server0Variables.Server0Variables13() + new Server0Variables.VariablesMapBuilder() .port("80") .server("petstore") @@ -97,20 +97,20 @@ Server0Variables.Server0Variables14 validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("server", [Server0Variables2.class](#server0variables2))),
    new PropertyEntry("port", [Server0Variables5.class](#server0variables5)))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("server", [Server.class](#server))),
    new PropertyEntry("port", [Port.class](#port)))
)
| | Set | required = Set.of(
    "port",
    "server"
)
| -| Class | additionalProperties = [Server0Variables9.class](#server0variables9) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server0Variables14](#server0variables14) | validate([Map<?, ?>](#server0variables13) arg, SchemaConfiguration configuration) | -| [Server0Variables1BoxedMap](#server0variables1boxedmap) | validateAndBox([Map<?, ?>](#server0variables13) arg, SchemaConfiguration configuration) | +| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [Server0Variables1BoxedMap](#server0variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | | [Server0Variables1Boxed](#server0variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Server0Variables15 -public class Server0Variables15
+## VariablesMap00Builder +public class VariablesMap00Builder
builder for `Map` A class that builds the Map input type @@ -118,15 +118,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables15(Map instance)
Creates a builder that contains the passed instance | +| VariablesMap00Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## Server0Variables16 -public class Server0Variables16
+## VariablesMap01Builder +public class VariablesMap01Builder
builder for `Map` A class that builds the Map input type @@ -134,16 +134,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables16(Map instance)
Creates a builder that contains the passed instance | +| VariablesMap01Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server0Variables15](#server0variables15) | server(String value) | -| [Server0Variables15](#server0variables15) | server([StringServer0Variables3](#stringserver0variables3) value) | +| [VariablesMap00Builder](#variablesmap00builder) | server(String value) | +| [VariablesMap00Builder](#variablesmap00builder) | server([StringServerEnums](#stringserverenums) value) | -## Server0Variables17 -public class Server0Variables17
+## VariablesMap10Builder +public class VariablesMap10Builder
builder for `Map` A class that builds the Map input type @@ -151,16 +151,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables17(Map instance)
Creates a builder that contains the passed instance | +| VariablesMap10Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server0Variables15](#server0variables15) | port(String value) | -| [Server0Variables15](#server0variables15) | port([StringServer0Variables6](#stringserver0variables6) value) | +| [VariablesMap00Builder](#variablesmap00builder) | port(String value) | +| [VariablesMap00Builder](#variablesmap00builder) | port([StringPortEnums](#stringportenums) value) | -## Server0Variables13 -public class Server0Variables13
+## VariablesMapBuilder +public class VariablesMapBuilder
builder for `Map` A class that builds the Map input type @@ -168,18 +168,18 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables13()
Creates a builder that contains an empty map | +| VariablesMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server0Variables16](#server0variables16) | port(String value) | -| [Server0Variables16](#server0variables16) | port([StringServer0Variables6](#stringserver0variables6) value) | -| [Server0Variables17](#server0variables17) | server(String value) | -| [Server0Variables17](#server0variables17) | server([StringServer0Variables3](#stringserver0variables3) value) | +| [VariablesMap01Builder](#variablesmap01builder) | port(String value) | +| [VariablesMap01Builder](#variablesmap01builder) | port([StringPortEnums](#stringportenums) value) | +| [VariablesMap10Builder](#variablesmap10builder) | server(String value) | +| [VariablesMap10Builder](#variablesmap10builder) | server([StringServerEnums](#stringserverenums) value) | -## Server0Variables14 -public static class Server0Variables14
+## VariablesMap +public static class VariablesMap
extends FrozenMap A class to store validated Map payloads @@ -187,27 +187,27 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Server0Variables14](#server0variables14) | of([Map](#server0variables13) arg, SchemaConfiguration configuration) | +| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | | String | port()
must be one of ["80", "8080"] if omitted the server will use the default value of 80 | | String | server()
must be one of ["petstore", "qa-petstore", "dev-petstore"] if omitted the server will use the default value of petstore | -## Server0Variables5Boxed -public sealed interface Server0Variables5Boxed
+## PortBoxed +public sealed interface PortBoxed
permits
-[Server0Variables5BoxedString](#server0variables5boxedstring) +[PortBoxedString](#portboxedstring) sealed interface that stores validated payloads using boxed classes -## Server0Variables5BoxedString -public record Server0Variables5BoxedString
-implements [Server0Variables5Boxed](#server0variables5boxed) +## PortBoxedString +public record PortBoxedString
+implements [PortBoxed](#portboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables5BoxedString(String data)
Creates an instance, private visibility | +| PortBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -215,8 +215,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables5 -public static class Server0Variables5
+## Port +public static class Port
extends JsonSchema A schema class that validates payloads @@ -241,7 +241,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Server0Variables.Server0Variables5.validate( +String validatedPayload = Server0Variables.Port.validate( "80", configuration ); @@ -258,14 +258,14 @@ String validatedPayload = Server0Variables.Server0Variables5.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringServer0Variables6](#stringserver0variables6) arg, SchemaConfiguration configuration) | -| [Server0Variables5BoxedString](#server0variables5boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Server0Variables5Boxed](#server0variables5boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringPortEnums](#stringportenums) arg, SchemaConfiguration configuration) | +| [PortBoxedString](#portboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [PortBoxed](#portboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringServer0Variables6 -public enum StringServer0Variables6
-extends `Enum` +## StringPortEnums +public enum StringPortEnums
+extends `Enum` A class that stores String enum values @@ -275,23 +275,23 @@ A class that stores String enum values | POSITIVE_80 | value = "80" | | POSITIVE_8080 | value = "8080" | -## Server0Variables2Boxed -public sealed interface Server0Variables2Boxed
+## ServerBoxed +public sealed interface ServerBoxed
permits
-[Server0Variables2BoxedString](#server0variables2boxedstring) +[ServerBoxedString](#serverboxedstring) sealed interface that stores validated payloads using boxed classes -## Server0Variables2BoxedString -public record Server0Variables2BoxedString
-implements [Server0Variables2Boxed](#server0variables2boxed) +## ServerBoxedString +public record ServerBoxedString
+implements [ServerBoxed](#serverboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables2BoxedString(String data)
Creates an instance, private visibility | +| ServerBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -299,8 +299,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables2 -public static class Server0Variables2
+## Server +public static class Server
extends JsonSchema A schema class that validates payloads @@ -325,7 +325,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Server0Variables.Server0Variables2.validate( +String validatedPayload = Server0Variables.Server.validate( "petstore", configuration ); @@ -342,14 +342,14 @@ String validatedPayload = Server0Variables.Server0Variables2.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringServer0Variables3](#stringserver0variables3) arg, SchemaConfiguration configuration) | -| [Server0Variables2BoxedString](#server0variables2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Server0Variables2Boxed](#server0variables2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringServerEnums](#stringserverenums) arg, SchemaConfiguration configuration) | +| [ServerBoxedString](#serverboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ServerBoxed](#serverboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringServer0Variables3 -public enum StringServer0Variables3
-extends `Enum` +## StringServerEnums +public enum StringServerEnums
+extends `Enum` A class that stores String enum values @@ -360,28 +360,28 @@ A class that stores String enum values | QA_HYPHEN_MINUS_PETSTORE | value = "qa-petstore" | | DEV_HYPHEN_MINUS_PETSTORE | value = "dev-petstore" | -## Server0Variables9Boxed -public sealed interface Server0Variables9Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[Server0Variables9BoxedVoid](#server0variables9boxedvoid), -[Server0Variables9BoxedBoolean](#server0variables9boxedboolean), -[Server0Variables9BoxedNumber](#server0variables9boxednumber), -[Server0Variables9BoxedString](#server0variables9boxedstring), -[Server0Variables9BoxedList](#server0variables9boxedlist), -[Server0Variables9BoxedMap](#server0variables9boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## Server0Variables9BoxedVoid -public record Server0Variables9BoxedVoid
-implements [Server0Variables9Boxed](#server0variables9boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables9BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -389,16 +389,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables9BoxedBoolean -public record Server0Variables9BoxedBoolean
-implements [Server0Variables9Boxed](#server0variables9boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables9BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -406,16 +406,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables9BoxedNumber -public record Server0Variables9BoxedNumber
-implements [Server0Variables9Boxed](#server0variables9boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables9BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -423,16 +423,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables9BoxedString -public record Server0Variables9BoxedString
-implements [Server0Variables9Boxed](#server0variables9boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables9BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -440,16 +440,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables9BoxedList -public record Server0Variables9BoxedList
-implements [Server0Variables9Boxed](#server0variables9boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables9BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -457,16 +457,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables9BoxedMap -public record Server0Variables9BoxedMap
-implements [Server0Variables9Boxed](#server0variables9boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server0Variables9BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -474,8 +474,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server0Variables9 -public static class Server0Variables9
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/servers/server1/Server1Variables.md b/samples/client/petstore/java/docs/servers/server1/Server1Variables.md index 3a1c12f39b5..7d52e4c27a7 100644 --- a/samples/client/petstore/java/docs/servers/server1/Server1Variables.md +++ b/samples/client/petstore/java/docs/servers/server1/Server1Variables.md @@ -15,20 +15,20 @@ A class that contains necessary nested | sealed interface | [Server1Variables.Server1Variables1Boxed](#server1variables1boxed)
sealed interface for validated payloads | | record | [Server1Variables.Server1Variables1BoxedMap](#server1variables1boxedmap)
boxed class to store validated Map payloads | | static class | [Server1Variables.Server1Variables1](#server1variables1)
schema class | -| static class | [Server1Variables.Server1Variables10](#server1variables10)
builder for Map payloads | -| static class | [Server1Variables.Server1Variables11](#server1variables11)
output class for Map payloads | -| sealed interface | [Server1Variables.Server1Variables2Boxed](#server1variables2boxed)
sealed interface for validated payloads | -| record | [Server1Variables.Server1Variables2BoxedString](#server1variables2boxedstring)
boxed class to store validated String payloads | -| static class | [Server1Variables.Server1Variables2](#server1variables2)
schema class | -| enum | [Server1Variables.StringServer1Variables3](#stringserver1variables3)
String enum | -| sealed interface | [Server1Variables.Server1Variables6Boxed](#server1variables6boxed)
sealed interface for validated payloads | -| record | [Server1Variables.Server1Variables6BoxedVoid](#server1variables6boxedvoid)
boxed class to store validated null payloads | -| record | [Server1Variables.Server1Variables6BoxedBoolean](#server1variables6boxedboolean)
boxed class to store validated boolean payloads | -| record | [Server1Variables.Server1Variables6BoxedNumber](#server1variables6boxednumber)
boxed class to store validated Number payloads | -| record | [Server1Variables.Server1Variables6BoxedString](#server1variables6boxedstring)
boxed class to store validated String payloads | -| record | [Server1Variables.Server1Variables6BoxedList](#server1variables6boxedlist)
boxed class to store validated List payloads | -| record | [Server1Variables.Server1Variables6BoxedMap](#server1variables6boxedmap)
boxed class to store validated Map payloads | -| static class | [Server1Variables.Server1Variables6](#server1variables6)
schema class | +| static class | [Server1Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | +| static class | [Server1Variables.VariablesMap](#variablesmap)
output class for Map payloads | +| sealed interface | [Server1Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | +| record | [Server1Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | +| static class | [Server1Variables.Version](#version)
schema class | +| enum | [Server1Variables.StringVersionEnums](#stringversionenums)
String enum | +| sealed interface | [Server1Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Server1Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Server1Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Server1Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Server1Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Server1Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Server1Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Server1Variables.AdditionalProperties](#additionalproperties)
schema class | ## Server1Variables1Boxed public sealed interface Server1Variables1Boxed
@@ -46,12 +46,12 @@ record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables1BoxedMap([Server1Variables11](#server1variables11) data)
Creates an instance, private visibility | +| Server1Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server1Variables11](#server1variables11) | data()
validated payload | +| [VariablesMap](#variablesmap) | data()
validated payload | | @Nullable Object | getData()
validated payload | ## Server1Variables1 @@ -77,9 +77,9 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation -Server1Variables.Server1Variables11 validatedPayload = +Server1Variables.VariablesMap validatedPayload = Server1Variables.Server1Variables1.validate( - new Server1Variables.Server1Variables10() + new Server1Variables.VariablesMapBuilder() .version("v1") .build(), @@ -91,20 +91,20 @@ Server1Variables.Server1Variables11 validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Server1Variables2.class](#server1variables2)))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| | Set | required = Set.of(
    "version"
)
| -| Class | additionalProperties = [Server1Variables6.class](#server1variables6) | +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server1Variables11](#server1variables11) | validate([Map<?, ?>](#server1variables10) arg, SchemaConfiguration configuration) | -| [Server1Variables1BoxedMap](#server1variables1boxedmap) | validateAndBox([Map<?, ?>](#server1variables10) arg, SchemaConfiguration configuration) | +| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [Server1Variables1BoxedMap](#server1variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | | [Server1Variables1Boxed](#server1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Server1Variables12 -public class Server1Variables12
+## VariablesMap0Builder +public class VariablesMap0Builder
builder for `Map` A class that builds the Map input type @@ -112,15 +112,15 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables12(Map instance)
Creates a builder that contains the passed instance | +| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Map | build()
Returns map input that should be used with Schema.validate | -## Server1Variables10 -public class Server1Variables10
+## VariablesMapBuilder +public class VariablesMapBuilder
builder for `Map` A class that builds the Map input type @@ -128,16 +128,16 @@ A class that builds the Map input type ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables10()
Creates a builder that contains an empty map | +| VariablesMapBuilder()
Creates a builder that contains an empty map | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Server1Variables12](#server1variables12) | version(String value) | -| [Server1Variables12](#server1variables12) | version([StringServer1Variables3](#stringserver1variables3) value) | +| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | +| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | -## Server1Variables11 -public static class Server1Variables11
+## VariablesMap +public static class VariablesMap
extends FrozenMap A class to store validated Map payloads @@ -145,26 +145,26 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Server1Variables11](#server1variables11) | of([Map](#server1variables10) arg, SchemaConfiguration configuration) | +| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | | String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v2 | -## Server1Variables2Boxed -public sealed interface Server1Variables2Boxed
+## VersionBoxed +public sealed interface VersionBoxed
permits
-[Server1Variables2BoxedString](#server1variables2boxedstring) +[VersionBoxedString](#versionboxedstring) sealed interface that stores validated payloads using boxed classes -## Server1Variables2BoxedString -public record Server1Variables2BoxedString
-implements [Server1Variables2Boxed](#server1variables2boxed) +## VersionBoxedString +public record VersionBoxedString
+implements [VersionBoxed](#versionboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables2BoxedString(String data)
Creates an instance, private visibility | +| VersionBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -172,8 +172,8 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables2 -public static class Server1Variables2
+## Version +public static class Version
extends JsonSchema A schema class that validates payloads @@ -195,7 +195,7 @@ import java.util.AbstractMap; static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation -String validatedPayload = Server1Variables.Server1Variables2.validate( +String validatedPayload = Server1Variables.Version.validate( "v1", configuration ); @@ -212,14 +212,14 @@ String validatedPayload = Server1Variables.Server1Variables2.validate( | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringServer1Variables3](#stringserver1variables3) arg, SchemaConfiguration configuration) | -| [Server1Variables2BoxedString](#server1variables2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Server1Variables2Boxed](#server1variables2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | +| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringServer1Variables3 -public enum StringServer1Variables3
-extends `Enum` +## StringVersionEnums +public enum StringVersionEnums
+extends `Enum` A class that stores String enum values @@ -229,28 +229,28 @@ A class that stores String enum values | V1 | value = "v1" | | V2 | value = "v2" | -## Server1Variables6Boxed -public sealed interface Server1Variables6Boxed
+## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
permits
-[Server1Variables6BoxedVoid](#server1variables6boxedvoid), -[Server1Variables6BoxedBoolean](#server1variables6boxedboolean), -[Server1Variables6BoxedNumber](#server1variables6boxednumber), -[Server1Variables6BoxedString](#server1variables6boxedstring), -[Server1Variables6BoxedList](#server1variables6boxedlist), -[Server1Variables6BoxedMap](#server1variables6boxedmap) +[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) sealed interface that stores validated payloads using boxed classes -## Server1Variables6BoxedVoid -public record Server1Variables6BoxedVoid
-implements [Server1Variables6Boxed](#server1variables6boxed) +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated null payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables6BoxedVoid(Void data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -258,16 +258,16 @@ record that stores validated null payloads, sealed permits implementation | Void | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables6BoxedBoolean -public record Server1Variables6BoxedBoolean
-implements [Server1Variables6Boxed](#server1variables6boxed) +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated boolean payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables6BoxedBoolean(boolean data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -275,16 +275,16 @@ record that stores validated boolean payloads, sealed permits implementation | boolean | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables6BoxedNumber -public record Server1Variables6BoxedNumber
-implements [Server1Variables6Boxed](#server1variables6boxed) +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Number payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables6BoxedNumber(Number data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -292,16 +292,16 @@ record that stores validated Number payloads, sealed permits implementation | Number | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables6BoxedString -public record Server1Variables6BoxedString
-implements [Server1Variables6Boxed](#server1variables6boxed) +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated String payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables6BoxedString(String data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -309,16 +309,16 @@ record that stores validated String payloads, sealed permits implementation | String | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables6BoxedList -public record Server1Variables6BoxedList
-implements [Server1Variables6Boxed](#server1variables6boxed) +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated List payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables6BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -326,16 +326,16 @@ record that stores validated List payloads, sealed permits implementation | FrozenList<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables6BoxedMap -public record Server1Variables6BoxedMap
-implements [Server1Variables6Boxed](#server1variables6boxed) +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) record that stores validated Map payloads, sealed permits implementation ### Constructor Summary | Constructor and Description | | --------------------------- | -| Server1Variables6BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | ### Method Summary | Modifier and Type | Method and Description | @@ -343,8 +343,8 @@ record that stores validated Map payloads, sealed permits implementation | FrozenMap<@Nullable Object> | data()
validated payload | | @Nullable Object | getData()
validated payload | -## Server1Variables6 -public static class Server1Variables6
+## AdditionalProperties +public static class AdditionalProperties
extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 A schema class that validates payloads diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java index 2112d55ae56..e0d5da9fe6b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java @@ -86,14 +86,14 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters; - public CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParameters9 headerParameters; + public CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters; + public CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters, - CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParameters9 headerParameters, + CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters, + CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -105,8 +105,8 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public CommonparamsubdirDeletePathParameters.@Nullable CommonparamsubdirDeletePathParameters9 pathParameters; - public CommonparamsubdirDeleteHeaderParameters.@Nullable CommonparamsubdirDeleteHeaderParameters9 headerParameters; + public CommonparamsubdirDeletePathParameters.@Nullable PathParametersMap pathParameters; + public CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -114,7 +114,7 @@ public static class DeleteNullableRequest { public interface SetterForHeaderParameters { DeleteNullableRequest getInstance(); T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); - default T headerParameters(CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters9 headerParameters) { + default T headerParameters(CommonparamsubdirDeleteHeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -144,7 +144,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters9 pathParameters) { + default T pathParameters(CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java index 55b05ab984b..81a2dc03ac3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java @@ -87,14 +87,14 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters; - public CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParameters9 queryParameters; + public CommonparamsubdirGetPathParameters.PathParametersMap pathParameters; + public CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters, - CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParameters9 queryParameters, + CommonparamsubdirGetPathParameters.PathParametersMap pathParameters, + CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -106,8 +106,8 @@ public GetRequest( } public static class GetNullableRequest { - public CommonparamsubdirGetPathParameters.@Nullable CommonparamsubdirGetPathParameters9 pathParameters; - public CommonparamsubdirGetQueryParameters.@Nullable CommonparamsubdirGetQueryParameters9 queryParameters; + public CommonparamsubdirGetPathParameters.@Nullable PathParametersMap pathParameters; + public CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -115,7 +115,7 @@ public static class GetNullableRequest { public interface SetterForQueryParameters { GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters9 queryParameters) { + default T queryParameters(CommonparamsubdirGetQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); @@ -145,7 +145,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters9 pathParameters) { + default T pathParameters(CommonparamsubdirGetPathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java index 303ccb65ef0..f5a5a34d431 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java @@ -86,14 +86,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters; - public CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParameters9 headerParameters; + public CommonparamsubdirPostPathParameters.PathParametersMap pathParameters; + public CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters, - CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParameters9 headerParameters, + CommonparamsubdirPostPathParameters.PathParametersMap pathParameters, + CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap headerParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -105,8 +105,8 @@ public PostRequest( } public static class PostNullableRequest { - public CommonparamsubdirPostPathParameters.@Nullable CommonparamsubdirPostPathParameters9 pathParameters; - public CommonparamsubdirPostHeaderParameters.@Nullable CommonparamsubdirPostHeaderParameters9 headerParameters; + public CommonparamsubdirPostPathParameters.@Nullable PathParametersMap pathParameters; + public CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -114,7 +114,7 @@ public static class PostNullableRequest { public interface SetterForHeaderParameters { PostNullableRequest getInstance(); T getBuilderAfterHeaderParameters(PostNullableRequest instance); - default T headerParameters(CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters9 headerParameters) { + default T headerParameters(CommonparamsubdirPostHeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -144,7 +144,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters9 pathParameters) { + default T pathParameters(CommonparamsubdirPostPathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java index a59df5da7f7..c54c33bc4bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirDeleteHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirDeleteHeaderParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirDeleteHeaderParameters4 instance = null; - public static CommonparamsubdirDeleteHeaderParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new CommonparamsubdirDeleteHeaderParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class CommonparamsubdirDeleteHeaderParameters9 extends FrozenMap { - protected CommonparamsubdirDeleteHeaderParameters9(FrozenMap m) { + public static class HeaderParametersMap extends FrozenMap { + protected HeaderParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "someHeader" ); - public static CommonparamsubdirDeleteHeaderParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirDeleteHeaderParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public String someHeader() throws UnsetPropertyException { } } - public interface SetterForCommonparamsubdirDeleteHeaderParameters2 { + public interface SetterForSomeHeader { Map getInstance(); - T getBuilderAfterCommonparamsubdirDeleteHeaderParameters2(Map instance); + T getBuilderAfterSomeHeader(Map instance); default T someHeader(String value) { var instance = getInstance(); instance.put("someHeader", value); - return getBuilderAfterCommonparamsubdirDeleteHeaderParameters2(instance); + return getBuilderAfterSomeHeader(instance); } } - public static class CommonparamsubdirDeleteHeaderParameters8 implements GenericBuilder>, SetterForCommonparamsubdirDeleteHeaderParameters2 { + public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSomeHeader { private final Map instance; private static final Set knownKeys = Set.of( "someHeader" @@ -77,7 +77,7 @@ public static class CommonparamsubdirDeleteHeaderParameters8 implements GenericB public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirDeleteHeaderParameters8() { + public HeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,7 +86,7 @@ public Map build() { public Map getInstance() { return instance; } - public CommonparamsubdirDeleteHeaderParameters8 getBuilderAfterCommonparamsubdirDeleteHeaderParameters2(Map instance) { + public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface CommonparamsubdirDeleteHeaderParameters1Boxed permits Co @Nullable Object getData(); } - public record CommonparamsubdirDeleteHeaderParameters1BoxedMap(CommonparamsubdirDeleteHeaderParameters9 data) implements CommonparamsubdirDeleteHeaderParameters1Boxed { + public record CommonparamsubdirDeleteHeaderParameters1BoxedMap(HeaderParametersMap data) implements CommonparamsubdirDeleteHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record CommonparamsubdirDeleteHeaderParameters1BoxedMap(Commonparamsubdir } - public static class CommonparamsubdirDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirDeleteHeaderParameters1 instance = null; protected CommonparamsubdirDeleteHeaderParameters1() { @@ -113,7 +113,7 @@ protected CommonparamsubdirDeleteHeaderParameters1() { .properties(Map.ofEntries( new PropertyEntry("someHeader", Schema0.Schema01.class) )) - .additionalProperties(CommonparamsubdirDeleteHeaderParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -124,7 +124,7 @@ public static CommonparamsubdirDeleteHeaderParameters1 getInstance() { return instance; } - public CommonparamsubdirDeleteHeaderParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public CommonparamsubdirDeleteHeaderParameters9 getNewInstance(Map arg, Li properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirDeleteHeaderParameters9(castProperties); + return new HeaderParametersMap(castProperties); } - public CommonparamsubdirDeleteHeaderParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java index 8ae86708b55..e45331271e1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirDeletePathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirDeletePathParameters4 instance = null; - public static CommonparamsubdirDeletePathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new CommonparamsubdirDeletePathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class CommonparamsubdirDeletePathParameters9 extends FrozenMap { - protected CommonparamsubdirDeletePathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "subDir" ); public static final Set optionalKeys = Set.of(); - public static CommonparamsubdirDeletePathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirDeletePathParameters1.getInstance().validate(arg, configuration); } @@ -62,24 +62,24 @@ public String subDir() { } } - public interface SetterForCommonparamsubdirDeletePathParameters2 { + public interface SetterForSubDir { Map getInstance(); - T getBuilderAfterCommonparamsubdirDeletePathParameters2(Map instance); + T getBuilderAfterSubDir(Map instance); default T subDir(String value) { var instance = getInstance(); instance.put("subDir", value); - return getBuilderAfterCommonparamsubdirDeletePathParameters2(instance); + return getBuilderAfterSubDir(instance); } default T subDir(Schema1.StringSchemaEnums1 value) { var instance = getInstance(); instance.put("subDir", value.value()); - return getBuilderAfterCommonparamsubdirDeletePathParameters2(instance); + return getBuilderAfterSubDir(instance); } } - public static class CommonparamsubdirDeletePathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "subDir" @@ -87,7 +87,7 @@ public static class CommonparamsubdirDeletePathParameters10 implements GenericBu public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirDeletePathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -95,16 +95,16 @@ public Map build() { } } - public static class CommonparamsubdirDeletePathParameters8 implements SetterForCommonparamsubdirDeletePathParameters2 { + public static class PathParametersMapBuilder implements SetterForSubDir { private final Map instance; - public CommonparamsubdirDeletePathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public CommonparamsubdirDeletePathParameters10 getBuilderAfterCommonparamsubdirDeletePathParameters2(Map instance) { - return new CommonparamsubdirDeletePathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -113,7 +113,7 @@ public sealed interface CommonparamsubdirDeletePathParameters1Boxed permits Comm @Nullable Object getData(); } - public record CommonparamsubdirDeletePathParameters1BoxedMap(CommonparamsubdirDeletePathParameters9 data) implements CommonparamsubdirDeletePathParameters1Boxed { + public record CommonparamsubdirDeletePathParameters1BoxedMap(PathParametersMap data) implements CommonparamsubdirDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -121,7 +121,7 @@ public record CommonparamsubdirDeletePathParameters1BoxedMap(CommonparamsubdirDe } - public static class CommonparamsubdirDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirDeletePathParameters1 instance = null; protected CommonparamsubdirDeletePathParameters1() { @@ -133,7 +133,7 @@ protected CommonparamsubdirDeletePathParameters1() { .required(Set.of( "subDir" )) - .additionalProperties(CommonparamsubdirDeletePathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -144,7 +144,7 @@ public static CommonparamsubdirDeletePathParameters1 getInstance() { return instance; } - public CommonparamsubdirDeletePathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -167,10 +167,10 @@ public CommonparamsubdirDeletePathParameters9 getNewInstance(Map arg, List properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirDeletePathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public CommonparamsubdirDeletePathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java index 97ddfefa77f..6f36aeb9763 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirGetPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirGetPathParameters4 instance = null; - public static CommonparamsubdirGetPathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new CommonparamsubdirGetPathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class CommonparamsubdirGetPathParameters9 extends FrozenMap { - protected CommonparamsubdirGetPathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "subDir" ); public static final Set optionalKeys = Set.of(); - public static CommonparamsubdirGetPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirGetPathParameters1.getInstance().validate(arg, configuration); } @@ -62,24 +62,24 @@ public String subDir() { } } - public interface SetterForCommonparamsubdirGetPathParameters2 { + public interface SetterForSubDir { Map getInstance(); - T getBuilderAfterCommonparamsubdirGetPathParameters2(Map instance); + T getBuilderAfterSubDir(Map instance); default T subDir(String value) { var instance = getInstance(); instance.put("subDir", value); - return getBuilderAfterCommonparamsubdirGetPathParameters2(instance); + return getBuilderAfterSubDir(instance); } default T subDir(RouteParamSchema0.StringRouteParamSchemaEnums0 value) { var instance = getInstance(); instance.put("subDir", value.value()); - return getBuilderAfterCommonparamsubdirGetPathParameters2(instance); + return getBuilderAfterSubDir(instance); } } - public static class CommonparamsubdirGetPathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "subDir" @@ -87,7 +87,7 @@ public static class CommonparamsubdirGetPathParameters10 implements GenericBuild public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirGetPathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -95,16 +95,16 @@ public Map build() { } } - public static class CommonparamsubdirGetPathParameters8 implements SetterForCommonparamsubdirGetPathParameters2 { + public static class PathParametersMapBuilder implements SetterForSubDir { private final Map instance; - public CommonparamsubdirGetPathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public CommonparamsubdirGetPathParameters10 getBuilderAfterCommonparamsubdirGetPathParameters2(Map instance) { - return new CommonparamsubdirGetPathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -113,7 +113,7 @@ public sealed interface CommonparamsubdirGetPathParameters1Boxed permits Commonp @Nullable Object getData(); } - public record CommonparamsubdirGetPathParameters1BoxedMap(CommonparamsubdirGetPathParameters9 data) implements CommonparamsubdirGetPathParameters1Boxed { + public record CommonparamsubdirGetPathParameters1BoxedMap(PathParametersMap data) implements CommonparamsubdirGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -121,7 +121,7 @@ public record CommonparamsubdirGetPathParameters1BoxedMap(CommonparamsubdirGetPa } - public static class CommonparamsubdirGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirGetPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirGetPathParameters1 instance = null; protected CommonparamsubdirGetPathParameters1() { @@ -133,7 +133,7 @@ protected CommonparamsubdirGetPathParameters1() { .required(Set.of( "subDir" )) - .additionalProperties(CommonparamsubdirGetPathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -144,7 +144,7 @@ public static CommonparamsubdirGetPathParameters1 getInstance() { return instance; } - public CommonparamsubdirGetPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -167,10 +167,10 @@ public CommonparamsubdirGetPathParameters9 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirGetPathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public CommonparamsubdirGetPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java index 2d2e77f2195..23c81934321 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirGetQueryParameters4 instance = null; - public static CommonparamsubdirGetQueryParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new CommonparamsubdirGetQueryParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class CommonparamsubdirGetQueryParameters9 extends FrozenMap { - protected CommonparamsubdirGetQueryParameters9(FrozenMap m) { + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "searchStr" ); - public static CommonparamsubdirGetQueryParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public String searchStr() throws UnsetPropertyException { } } - public interface SetterForCommonparamsubdirGetQueryParameters2 { + public interface SetterForSearchStr { Map getInstance(); - T getBuilderAfterCommonparamsubdirGetQueryParameters2(Map instance); + T getBuilderAfterSearchStr(Map instance); default T searchStr(String value) { var instance = getInstance(); instance.put("searchStr", value); - return getBuilderAfterCommonparamsubdirGetQueryParameters2(instance); + return getBuilderAfterSearchStr(instance); } } - public static class CommonparamsubdirGetQueryParameters8 implements GenericBuilder>, SetterForCommonparamsubdirGetQueryParameters2 { + public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForSearchStr { private final Map instance; private static final Set knownKeys = Set.of( "searchStr" @@ -77,7 +77,7 @@ public static class CommonparamsubdirGetQueryParameters8 implements GenericBuild public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirGetQueryParameters8() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,7 +86,7 @@ public Map build() { public Map getInstance() { return instance; } - public CommonparamsubdirGetQueryParameters8 getBuilderAfterCommonparamsubdirGetQueryParameters2(Map instance) { + public QueryParametersMapBuilder getBuilderAfterSearchStr(Map instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface CommonparamsubdirGetQueryParameters1Boxed permits Common @Nullable Object getData(); } - public record CommonparamsubdirGetQueryParameters1BoxedMap(CommonparamsubdirGetQueryParameters9 data) implements CommonparamsubdirGetQueryParameters1Boxed { + public record CommonparamsubdirGetQueryParameters1BoxedMap(QueryParametersMap data) implements CommonparamsubdirGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record CommonparamsubdirGetQueryParameters1BoxedMap(CommonparamsubdirGetQ } - public static class CommonparamsubdirGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirGetQueryParameters1 instance = null; protected CommonparamsubdirGetQueryParameters1() { @@ -113,7 +113,7 @@ protected CommonparamsubdirGetQueryParameters1() { .properties(Map.ofEntries( new PropertyEntry("searchStr", Schema0.Schema01.class) )) - .additionalProperties(CommonparamsubdirGetQueryParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -124,7 +124,7 @@ public static CommonparamsubdirGetQueryParameters1 getInstance() { return instance; } - public CommonparamsubdirGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public CommonparamsubdirGetQueryParameters9 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirGetQueryParameters9(castProperties); + return new QueryParametersMap(castProperties); } - public CommonparamsubdirGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java index 373514519b6..d800414c7de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirPostHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirPostHeaderParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirPostHeaderParameters4 instance = null; - public static CommonparamsubdirPostHeaderParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new CommonparamsubdirPostHeaderParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class CommonparamsubdirPostHeaderParameters9 extends FrozenMap { - protected CommonparamsubdirPostHeaderParameters9(FrozenMap m) { + public static class HeaderParametersMap extends FrozenMap { + protected HeaderParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "someHeader" ); - public static CommonparamsubdirPostHeaderParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirPostHeaderParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public String someHeader() throws UnsetPropertyException { } } - public interface SetterForCommonparamsubdirPostHeaderParameters2 { + public interface SetterForSomeHeader { Map getInstance(); - T getBuilderAfterCommonparamsubdirPostHeaderParameters2(Map instance); + T getBuilderAfterSomeHeader(Map instance); default T someHeader(String value) { var instance = getInstance(); instance.put("someHeader", value); - return getBuilderAfterCommonparamsubdirPostHeaderParameters2(instance); + return getBuilderAfterSomeHeader(instance); } } - public static class CommonparamsubdirPostHeaderParameters8 implements GenericBuilder>, SetterForCommonparamsubdirPostHeaderParameters2 { + public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSomeHeader { private final Map instance; private static final Set knownKeys = Set.of( "someHeader" @@ -77,7 +77,7 @@ public static class CommonparamsubdirPostHeaderParameters8 implements GenericBui public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirPostHeaderParameters8() { + public HeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,7 +86,7 @@ public Map build() { public Map getInstance() { return instance; } - public CommonparamsubdirPostHeaderParameters8 getBuilderAfterCommonparamsubdirPostHeaderParameters2(Map instance) { + public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface CommonparamsubdirPostHeaderParameters1Boxed permits Comm @Nullable Object getData(); } - public record CommonparamsubdirPostHeaderParameters1BoxedMap(CommonparamsubdirPostHeaderParameters9 data) implements CommonparamsubdirPostHeaderParameters1Boxed { + public record CommonparamsubdirPostHeaderParameters1BoxedMap(HeaderParametersMap data) implements CommonparamsubdirPostHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record CommonparamsubdirPostHeaderParameters1BoxedMap(CommonparamsubdirPo } - public static class CommonparamsubdirPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirPostHeaderParameters1 instance = null; protected CommonparamsubdirPostHeaderParameters1() { @@ -113,7 +113,7 @@ protected CommonparamsubdirPostHeaderParameters1() { .properties(Map.ofEntries( new PropertyEntry("someHeader", Schema0.Schema01.class) )) - .additionalProperties(CommonparamsubdirPostHeaderParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -124,7 +124,7 @@ public static CommonparamsubdirPostHeaderParameters1 getInstance() { return instance; } - public CommonparamsubdirPostHeaderParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public CommonparamsubdirPostHeaderParameters9 getNewInstance(Map arg, List properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirPostHeaderParameters9(castProperties); + return new HeaderParametersMap(castProperties); } - public CommonparamsubdirPostHeaderParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java index 29f45bc819c..def8072055c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java @@ -29,27 +29,27 @@ public class CommonparamsubdirPostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class CommonparamsubdirPostPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable CommonparamsubdirPostPathParameters4 instance = null; - public static CommonparamsubdirPostPathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new CommonparamsubdirPostPathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class CommonparamsubdirPostPathParameters9 extends FrozenMap { - protected CommonparamsubdirPostPathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "subDir" ); public static final Set optionalKeys = Set.of(); - public static CommonparamsubdirPostPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return CommonparamsubdirPostPathParameters1.getInstance().validate(arg, configuration); } @@ -62,24 +62,24 @@ public String subDir() { } } - public interface SetterForCommonparamsubdirPostPathParameters2 { + public interface SetterForSubDir { Map getInstance(); - T getBuilderAfterCommonparamsubdirPostPathParameters2(Map instance); + T getBuilderAfterSubDir(Map instance); default T subDir(String value) { var instance = getInstance(); instance.put("subDir", value); - return getBuilderAfterCommonparamsubdirPostPathParameters2(instance); + return getBuilderAfterSubDir(instance); } default T subDir(RouteParamSchema0.StringRouteParamSchemaEnums0 value) { var instance = getInstance(); instance.put("subDir", value.value()); - return getBuilderAfterCommonparamsubdirPostPathParameters2(instance); + return getBuilderAfterSubDir(instance); } } - public static class CommonparamsubdirPostPathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "subDir" @@ -87,7 +87,7 @@ public static class CommonparamsubdirPostPathParameters10 implements GenericBuil public Set getKnownKeys() { return knownKeys; } - public CommonparamsubdirPostPathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -95,16 +95,16 @@ public Map build() { } } - public static class CommonparamsubdirPostPathParameters8 implements SetterForCommonparamsubdirPostPathParameters2 { + public static class PathParametersMapBuilder implements SetterForSubDir { private final Map instance; - public CommonparamsubdirPostPathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public CommonparamsubdirPostPathParameters10 getBuilderAfterCommonparamsubdirPostPathParameters2(Map instance) { - return new CommonparamsubdirPostPathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -113,7 +113,7 @@ public sealed interface CommonparamsubdirPostPathParameters1Boxed permits Common @Nullable Object getData(); } - public record CommonparamsubdirPostPathParameters1BoxedMap(CommonparamsubdirPostPathParameters9 data) implements CommonparamsubdirPostPathParameters1Boxed { + public record CommonparamsubdirPostPathParameters1BoxedMap(PathParametersMap data) implements CommonparamsubdirPostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -121,7 +121,7 @@ public record CommonparamsubdirPostPathParameters1BoxedMap(CommonparamsubdirPost } - public static class CommonparamsubdirPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class CommonparamsubdirPostPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable CommonparamsubdirPostPathParameters1 instance = null; protected CommonparamsubdirPostPathParameters1() { @@ -133,7 +133,7 @@ protected CommonparamsubdirPostPathParameters1() { .required(Set.of( "subDir" )) - .additionalProperties(CommonparamsubdirPostPathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -144,7 +144,7 @@ public static CommonparamsubdirPostPathParameters1 getInstance() { return instance; } - public CommonparamsubdirPostPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -167,10 +167,10 @@ public CommonparamsubdirPostPathParameters9 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new CommonparamsubdirPostPathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public CommonparamsubdirPostPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java index 57b71af45b1..d0d95d5e9ca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java @@ -98,15 +98,15 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters; - public FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters; + public FakeDeleteHeaderParameters.HeaderParametersMap headerParameters; + public FakeDeleteQueryParameters.QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public DeleteRequest( - FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters, - FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters, + FakeDeleteHeaderParameters.HeaderParametersMap headerParameters, + FakeDeleteQueryParameters.QueryParametersMap queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -120,8 +120,8 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public FakeDeleteHeaderParameters.@Nullable FakeDeleteHeaderParameters12 headerParameters; - public FakeDeleteQueryParameters.@Nullable FakeDeleteQueryParameters14 queryParameters; + public FakeDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public FakeDeleteQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; @@ -160,7 +160,7 @@ default T timeout(Duration timeout) { public interface SetterForHeaderParameters { DeleteNullableRequest getInstance(); T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); - default T headerParameters(FakeDeleteHeaderParameters.FakeDeleteHeaderParameters12 headerParameters) { + default T headerParameters(FakeDeleteHeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -170,7 +170,7 @@ default T headerParameters(FakeDeleteHeaderParameters.FakeDeleteHeaderParameters public interface SetterForQueryParameters { DeleteNullableRequest getInstance(); T getBuilderAfterQueryParameters(DeleteNullableRequest instance); - default T queryParameters(FakeDeleteQueryParameters.FakeDeleteQueryParameters14 queryParameters) { + default T queryParameters(FakeDeleteQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java index 2458cd305e5..d73006c3584 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java @@ -104,8 +104,8 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class GetRequest { public FakeGetRequestBody.@Nullable SealedRequestBody requestBody; - public FakeGetHeaderParameters.@Nullable FakeGetHeaderParameters10 headerParameters; - public FakeGetQueryParameters.@Nullable FakeGetQueryParameters12 queryParameters; + public FakeGetHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public FakeGetQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ default T requestBody(FakeGetRequestBody.SealedRequestBody requestBody) { public interface SetterForHeaderParameters { GetRequest getInstance(); T getBuilderAfterHeaderParameters(GetRequest instance); - default T headerParameters(FakeGetHeaderParameters.FakeGetHeaderParameters10 headerParameters) { + default T headerParameters(FakeGetHeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -133,7 +133,7 @@ default T headerParameters(FakeGetHeaderParameters.FakeGetHeaderParameters10 hea public interface SetterForQueryParameters { GetRequest getInstance(); T getBuilderAfterQueryParameters(GetRequest instance); - default T queryParameters(FakeGetQueryParameters.FakeGetQueryParameters12 queryParameters) { + default T queryParameters(FakeGetQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java index f834967067b..e9bde480d1f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java @@ -30,20 +30,20 @@ public class FakeDeleteHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeDeleteHeaderParameters5 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeDeleteHeaderParameters5 instance = null; - public static FakeDeleteHeaderParameters5 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakeDeleteHeaderParameters5(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakeDeleteHeaderParameters12 extends FrozenMap<@Nullable Object> { - protected FakeDeleteHeaderParameters12(FrozenMap<@Nullable Object> m) { + public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { + protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -52,7 +52,7 @@ protected FakeDeleteHeaderParameters12(FrozenMap<@Nullable Object> m) { public static final Set optionalKeys = Set.of( "boolean_group" ); - public static FakeDeleteHeaderParameters12 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakeDeleteHeaderParameters1.getInstance().validate(arg, configuration); } @@ -75,41 +75,41 @@ public String boolean_group() throws UnsetPropertyException { } } - public interface SetterForFakeDeleteHeaderParameters2 { + public interface SetterForRequiredBooleanGroup { Map getInstance(); - T getBuilderAfterFakeDeleteHeaderParameters2(Map instance); + T getBuilderAfterRequiredBooleanGroup(Map instance); default T required_boolean_group(String value) { var instance = getInstance(); instance.put("required_boolean_group", value); - return getBuilderAfterFakeDeleteHeaderParameters2(instance); + return getBuilderAfterRequiredBooleanGroup(instance); } default T required_boolean_group(Schema1.StringSchemaEnums1 value) { var instance = getInstance(); instance.put("required_boolean_group", value.value()); - return getBuilderAfterFakeDeleteHeaderParameters2(instance); + return getBuilderAfterRequiredBooleanGroup(instance); } } - public interface SetterForFakeDeleteHeaderParameters3 { + public interface SetterForBooleanGroup { Map getInstance(); - T getBuilderAfterFakeDeleteHeaderParameters3(Map instance); + T getBuilderAfterBooleanGroup(Map instance); default T boolean_group(String value) { var instance = getInstance(); instance.put("boolean_group", value); - return getBuilderAfterFakeDeleteHeaderParameters3(instance); + return getBuilderAfterBooleanGroup(instance); } default T boolean_group(Schema4.StringSchemaEnums4 value) { var instance = getInstance(); instance.put("boolean_group", value.value()); - return getBuilderAfterFakeDeleteHeaderParameters3(instance); + return getBuilderAfterBooleanGroup(instance); } } - public static class FakeDeleteHeaderParameters13 implements GenericBuilder>, SetterForFakeDeleteHeaderParameters3 { + public static class HeaderParametersMap0Builder implements GenericBuilder>, SetterForBooleanGroup { private final Map instance; private static final Set knownKeys = Set.of( "required_boolean_group", @@ -118,7 +118,7 @@ public static class FakeDeleteHeaderParameters13 implements GenericBuilder getKnownKeys() { return knownKeys; } - public FakeDeleteHeaderParameters13(Map instance) { + public HeaderParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -127,21 +127,21 @@ public FakeDeleteHeaderParameters13(Map instance) { public Map getInstance() { return instance; } - public FakeDeleteHeaderParameters13 getBuilderAfterFakeDeleteHeaderParameters3(Map instance) { + public HeaderParametersMap0Builder getBuilderAfterBooleanGroup(Map instance) { return this; } } - public static class FakeDeleteHeaderParameters11 implements SetterForFakeDeleteHeaderParameters2 { + public static class HeaderParametersMapBuilder implements SetterForRequiredBooleanGroup { private final Map instance; - public FakeDeleteHeaderParameters11() { + public HeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakeDeleteHeaderParameters13 getBuilderAfterFakeDeleteHeaderParameters2(Map instance) { - return new FakeDeleteHeaderParameters13(instance); + public HeaderParametersMap0Builder getBuilderAfterRequiredBooleanGroup(Map instance) { + return new HeaderParametersMap0Builder(instance); } } @@ -150,7 +150,7 @@ public sealed interface FakeDeleteHeaderParameters1Boxed permits FakeDeleteHeade @Nullable Object getData(); } - public record FakeDeleteHeaderParameters1BoxedMap(FakeDeleteHeaderParameters12 data) implements FakeDeleteHeaderParameters1Boxed { + public record FakeDeleteHeaderParameters1BoxedMap(HeaderParametersMap data) implements FakeDeleteHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -158,7 +158,7 @@ public record FakeDeleteHeaderParameters1BoxedMap(FakeDeleteHeaderParameters12 d } - public static class FakeDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeDeleteHeaderParameters1 instance = null; protected FakeDeleteHeaderParameters1() { @@ -171,7 +171,7 @@ protected FakeDeleteHeaderParameters1() { .required(Set.of( "required_boolean_group" )) - .additionalProperties(FakeDeleteHeaderParameters5.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -182,7 +182,7 @@ public static FakeDeleteHeaderParameters1 getInstance() { return instance; } - public FakeDeleteHeaderParameters12 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -202,10 +202,10 @@ public FakeDeleteHeaderParameters12 getNewInstance(Map arg, List p properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakeDeleteHeaderParameters12(castProperties); + return new HeaderParametersMap(castProperties); } - public FakeDeleteHeaderParameters12 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java index e9a525aab8e..f5036456013 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java @@ -32,20 +32,20 @@ public class FakeDeleteQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeDeleteQueryParameters7 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeDeleteQueryParameters7 instance = null; - public static FakeDeleteQueryParameters7 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakeDeleteQueryParameters7(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakeDeleteQueryParameters14 extends FrozenMap<@Nullable Object> { - protected FakeDeleteQueryParameters14(FrozenMap<@Nullable Object> m) { + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -56,7 +56,7 @@ protected FakeDeleteQueryParameters14(FrozenMap<@Nullable Object> m) { "int64_group", "string_group" ); - public static FakeDeleteQueryParameters14 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakeDeleteQueryParameters1.getInstance().validate(arg, configuration); } @@ -97,87 +97,87 @@ public String string_group() throws UnsetPropertyException { } } - public interface SetterForFakeDeleteQueryParameters5 { + public interface SetterForRequiredInt64Group { Map getInstance(); - T getBuilderAfterFakeDeleteQueryParameters5(Map instance); + T getBuilderAfterRequiredInt64Group(Map instance); default T required_int64_group(int value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterFakeDeleteQueryParameters5(instance); + return getBuilderAfterRequiredInt64Group(instance); } default T required_int64_group(float value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterFakeDeleteQueryParameters5(instance); + return getBuilderAfterRequiredInt64Group(instance); } default T required_int64_group(long value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterFakeDeleteQueryParameters5(instance); + return getBuilderAfterRequiredInt64Group(instance); } default T required_int64_group(double value) { var instance = getInstance(); instance.put("required_int64_group", value); - return getBuilderAfterFakeDeleteQueryParameters5(instance); + return getBuilderAfterRequiredInt64Group(instance); } } - public interface SetterForFakeDeleteQueryParameters2 { + public interface SetterForRequiredStringGroup { Map getInstance(); - T getBuilderAfterFakeDeleteQueryParameters2(Map instance); + T getBuilderAfterRequiredStringGroup(Map instance); default T required_string_group(String value) { var instance = getInstance(); instance.put("required_string_group", value); - return getBuilderAfterFakeDeleteQueryParameters2(instance); + return getBuilderAfterRequiredStringGroup(instance); } } - public interface SetterForFakeDeleteQueryParameters3 { + public interface SetterForInt64Group { Map getInstance(); - T getBuilderAfterFakeDeleteQueryParameters3(Map instance); + T getBuilderAfterInt64Group(Map instance); default T int64_group(int value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterFakeDeleteQueryParameters3(instance); + return getBuilderAfterInt64Group(instance); } default T int64_group(float value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterFakeDeleteQueryParameters3(instance); + return getBuilderAfterInt64Group(instance); } default T int64_group(long value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterFakeDeleteQueryParameters3(instance); + return getBuilderAfterInt64Group(instance); } default T int64_group(double value) { var instance = getInstance(); instance.put("int64_group", value); - return getBuilderAfterFakeDeleteQueryParameters3(instance); + return getBuilderAfterInt64Group(instance); } } - public interface SetterForFakeDeleteQueryParameters4 { + public interface SetterForStringGroup { Map getInstance(); - T getBuilderAfterFakeDeleteQueryParameters4(Map instance); + T getBuilderAfterStringGroup(Map instance); default T string_group(String value) { var instance = getInstance(); instance.put("string_group", value); - return getBuilderAfterFakeDeleteQueryParameters4(instance); + return getBuilderAfterStringGroup(instance); } } - public static class FakeDeleteQueryParameters15 implements GenericBuilder>, SetterForFakeDeleteQueryParameters3, SetterForFakeDeleteQueryParameters4 { + public static class QueryParametersMap00Builder implements GenericBuilder>, SetterForInt64Group, SetterForStringGroup { private final Map instance; private static final Set knownKeys = Set.of( "required_int64_group", @@ -188,7 +188,7 @@ public static class FakeDeleteQueryParameters15 implements GenericBuilder getKnownKeys() { return knownKeys; } - public FakeDeleteQueryParameters15(Map instance) { + public QueryParametersMap00Builder(Map instance) { this.instance = instance; } public Map build() { @@ -197,53 +197,53 @@ public FakeDeleteQueryParameters15(Map instance) { public Map getInstance() { return instance; } - public FakeDeleteQueryParameters15 getBuilderAfterFakeDeleteQueryParameters3(Map instance) { + public QueryParametersMap00Builder getBuilderAfterInt64Group(Map instance) { return this; } - public FakeDeleteQueryParameters15 getBuilderAfterFakeDeleteQueryParameters4(Map instance) { + public QueryParametersMap00Builder getBuilderAfterStringGroup(Map instance) { return this; } } - public static class FakeDeleteQueryParameters16 implements SetterForFakeDeleteQueryParameters2 { + public static class QueryParametersMap01Builder implements SetterForRequiredStringGroup { private final Map instance; - public FakeDeleteQueryParameters16(Map instance) { + public QueryParametersMap01Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakeDeleteQueryParameters15 getBuilderAfterFakeDeleteQueryParameters2(Map instance) { - return new FakeDeleteQueryParameters15(instance); + public QueryParametersMap00Builder getBuilderAfterRequiredStringGroup(Map instance) { + return new QueryParametersMap00Builder(instance); } } - public static class FakeDeleteQueryParameters17 implements SetterForFakeDeleteQueryParameters5 { + public static class QueryParametersMap10Builder implements SetterForRequiredInt64Group { private final Map instance; - public FakeDeleteQueryParameters17(Map instance) { + public QueryParametersMap10Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakeDeleteQueryParameters15 getBuilderAfterFakeDeleteQueryParameters5(Map instance) { - return new FakeDeleteQueryParameters15(instance); + public QueryParametersMap00Builder getBuilderAfterRequiredInt64Group(Map instance) { + return new QueryParametersMap00Builder(instance); } } - public static class FakeDeleteQueryParameters13 implements SetterForFakeDeleteQueryParameters5, SetterForFakeDeleteQueryParameters2 { + public static class QueryParametersMapBuilder implements SetterForRequiredInt64Group, SetterForRequiredStringGroup { private final Map instance; - public FakeDeleteQueryParameters13() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakeDeleteQueryParameters16 getBuilderAfterFakeDeleteQueryParameters5(Map instance) { - return new FakeDeleteQueryParameters16(instance); + public QueryParametersMap01Builder getBuilderAfterRequiredInt64Group(Map instance) { + return new QueryParametersMap01Builder(instance); } - public FakeDeleteQueryParameters17 getBuilderAfterFakeDeleteQueryParameters2(Map instance) { - return new FakeDeleteQueryParameters17(instance); + public QueryParametersMap10Builder getBuilderAfterRequiredStringGroup(Map instance) { + return new QueryParametersMap10Builder(instance); } } @@ -252,7 +252,7 @@ public sealed interface FakeDeleteQueryParameters1Boxed permits FakeDeleteQueryP @Nullable Object getData(); } - public record FakeDeleteQueryParameters1BoxedMap(FakeDeleteQueryParameters14 data) implements FakeDeleteQueryParameters1Boxed { + public record FakeDeleteQueryParameters1BoxedMap(QueryParametersMap data) implements FakeDeleteQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -260,7 +260,7 @@ public record FakeDeleteQueryParameters1BoxedMap(FakeDeleteQueryParameters14 dat } - public static class FakeDeleteQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeDeleteQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeDeleteQueryParameters1 instance = null; protected FakeDeleteQueryParameters1() { @@ -276,7 +276,7 @@ protected FakeDeleteQueryParameters1() { "required_int64_group", "required_string_group" )) - .additionalProperties(FakeDeleteQueryParameters7.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -287,7 +287,7 @@ public static FakeDeleteQueryParameters1 getInstance() { return instance; } - public FakeDeleteQueryParameters14 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -307,10 +307,10 @@ public FakeDeleteQueryParameters14 getNewInstance(Map arg, List pa properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakeDeleteQueryParameters14(castProperties); + return new QueryParametersMap(castProperties); } - public FakeDeleteQueryParameters14 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java index b485f020421..4ac48925b27 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java @@ -30,20 +30,20 @@ public class FakeGetHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeGetHeaderParameters5 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeGetHeaderParameters5 instance = null; - public static FakeGetHeaderParameters5 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakeGetHeaderParameters5(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakeGetHeaderParameters10 extends FrozenMap<@Nullable Object> { - protected FakeGetHeaderParameters10(FrozenMap<@Nullable Object> m) { + public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { + protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -51,7 +51,7 @@ protected FakeGetHeaderParameters10(FrozenMap<@Nullable Object> m) { "enum_header_string", "enum_header_string_array" ); - public static FakeGetHeaderParameters10 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakeGetHeaderParameters1.getInstance().validate(arg, configuration); } @@ -76,35 +76,35 @@ public Schema0.SchemaList0 enum_header_string_array() throws UnsetPropertyExcept } } - public interface SetterForFakeGetHeaderParameters2 { + public interface SetterForEnumHeaderString { Map getInstance(); - T getBuilderAfterFakeGetHeaderParameters2(Map instance); + T getBuilderAfterEnumHeaderString(Map instance); default T enum_header_string(String value) { var instance = getInstance(); instance.put("enum_header_string", value); - return getBuilderAfterFakeGetHeaderParameters2(instance); + return getBuilderAfterEnumHeaderString(instance); } default T enum_header_string(Schema1.StringSchemaEnums1 value) { var instance = getInstance(); instance.put("enum_header_string", value.value()); - return getBuilderAfterFakeGetHeaderParameters2(instance); + return getBuilderAfterEnumHeaderString(instance); } } - public interface SetterForFakeGetHeaderParameters3 { + public interface SetterForEnumHeaderStringArray { Map getInstance(); - T getBuilderAfterFakeGetHeaderParameters3(Map instance); + T getBuilderAfterEnumHeaderStringArray(Map instance); default T enum_header_string_array(List value) { var instance = getInstance(); instance.put("enum_header_string_array", value); - return getBuilderAfterFakeGetHeaderParameters3(instance); + return getBuilderAfterEnumHeaderStringArray(instance); } } - public static class FakeGetHeaderParameters9 implements GenericBuilder>, SetterForFakeGetHeaderParameters2, SetterForFakeGetHeaderParameters3 { + public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForEnumHeaderString, SetterForEnumHeaderStringArray { private final Map instance; private static final Set knownKeys = Set.of( "enum_header_string", @@ -113,7 +113,7 @@ public static class FakeGetHeaderParameters9 implements GenericBuilder getKnownKeys() { return knownKeys; } - public FakeGetHeaderParameters9() { + public HeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -122,10 +122,10 @@ public FakeGetHeaderParameters9() { public Map getInstance() { return instance; } - public FakeGetHeaderParameters9 getBuilderAfterFakeGetHeaderParameters2(Map instance) { + public HeaderParametersMapBuilder getBuilderAfterEnumHeaderString(Map instance) { return this; } - public FakeGetHeaderParameters9 getBuilderAfterFakeGetHeaderParameters3(Map instance) { + public HeaderParametersMapBuilder getBuilderAfterEnumHeaderStringArray(Map instance) { return this; } } @@ -135,7 +135,7 @@ public sealed interface FakeGetHeaderParameters1Boxed permits FakeGetHeaderParam @Nullable Object getData(); } - public record FakeGetHeaderParameters1BoxedMap(FakeGetHeaderParameters10 data) implements FakeGetHeaderParameters1Boxed { + public record FakeGetHeaderParameters1BoxedMap(HeaderParametersMap data) implements FakeGetHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -143,7 +143,7 @@ public record FakeGetHeaderParameters1BoxedMap(FakeGetHeaderParameters10 data) i } - public static class FakeGetHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeGetHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeGetHeaderParameters1 instance = null; protected FakeGetHeaderParameters1() { @@ -153,7 +153,7 @@ protected FakeGetHeaderParameters1() { new PropertyEntry("enum_header_string", Schema1.Schema11.class), new PropertyEntry("enum_header_string_array", Schema0.Schema01.class) )) - .additionalProperties(FakeGetHeaderParameters5.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -164,7 +164,7 @@ public static FakeGetHeaderParameters1 getInstance() { return instance; } - public FakeGetHeaderParameters10 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -184,10 +184,10 @@ public FakeGetHeaderParameters10 getNewInstance(Map arg, List path properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakeGetHeaderParameters10(castProperties); + return new HeaderParametersMap(castProperties); } - public FakeGetHeaderParameters10 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java index 188a0cbbf04..90bb2fbb2a0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java @@ -32,20 +32,20 @@ public class FakeGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeGetQueryParameters7 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeGetQueryParameters7 instance = null; - public static FakeGetQueryParameters7 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakeGetQueryParameters7(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakeGetQueryParameters12 extends FrozenMap<@Nullable Object> { - protected FakeGetQueryParameters12(FrozenMap<@Nullable Object> m) { + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -55,7 +55,7 @@ protected FakeGetQueryParameters12(FrozenMap<@Nullable Object> m) { "enum_query_integer", "enum_query_string_array" ); - public static FakeGetQueryParameters12 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakeGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -100,117 +100,117 @@ public Schema2.SchemaList2 enum_query_string_array() throws UnsetPropertyExcepti } } - public interface SetterForFakeGetQueryParameters2 { + public interface SetterForEnumQueryDouble { Map getInstance(); - T getBuilderAfterFakeGetQueryParameters2(Map instance); + T getBuilderAfterEnumQueryDouble(Map instance); default T enum_query_double(int value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterFakeGetQueryParameters2(instance); + return getBuilderAfterEnumQueryDouble(instance); } default T enum_query_double(float value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterFakeGetQueryParameters2(instance); + return getBuilderAfterEnumQueryDouble(instance); } default T enum_query_double(long value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterFakeGetQueryParameters2(instance); + return getBuilderAfterEnumQueryDouble(instance); } default T enum_query_double(double value) { var instance = getInstance(); instance.put("enum_query_double", value); - return getBuilderAfterFakeGetQueryParameters2(instance); + return getBuilderAfterEnumQueryDouble(instance); } default T enum_query_double(Schema5.DoubleSchemaEnums5 value) { var instance = getInstance(); instance.put("enum_query_double", value.value()); - return getBuilderAfterFakeGetQueryParameters2(instance); + return getBuilderAfterEnumQueryDouble(instance); } default T enum_query_double(Schema5.FloatSchemaEnums5 value) { var instance = getInstance(); instance.put("enum_query_double", value.value()); - return getBuilderAfterFakeGetQueryParameters2(instance); + return getBuilderAfterEnumQueryDouble(instance); } } - public interface SetterForFakeGetQueryParameters3 { + public interface SetterForEnumQueryString { Map getInstance(); - T getBuilderAfterFakeGetQueryParameters3(Map instance); + T getBuilderAfterEnumQueryString(Map instance); default T enum_query_string(String value) { var instance = getInstance(); instance.put("enum_query_string", value); - return getBuilderAfterFakeGetQueryParameters3(instance); + return getBuilderAfterEnumQueryString(instance); } default T enum_query_string(Schema3.StringSchemaEnums3 value) { var instance = getInstance(); instance.put("enum_query_string", value.value()); - return getBuilderAfterFakeGetQueryParameters3(instance); + return getBuilderAfterEnumQueryString(instance); } } - public interface SetterForFakeGetQueryParameters4 { + public interface SetterForEnumQueryInteger { Map getInstance(); - T getBuilderAfterFakeGetQueryParameters4(Map instance); + T getBuilderAfterEnumQueryInteger(Map instance); default T enum_query_integer(int value) { var instance = getInstance(); instance.put("enum_query_integer", value); - return getBuilderAfterFakeGetQueryParameters4(instance); + return getBuilderAfterEnumQueryInteger(instance); } default T enum_query_integer(float value) { var instance = getInstance(); instance.put("enum_query_integer", value); - return getBuilderAfterFakeGetQueryParameters4(instance); + return getBuilderAfterEnumQueryInteger(instance); } default T enum_query_integer(Schema4.IntegerSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterFakeGetQueryParameters4(instance); + return getBuilderAfterEnumQueryInteger(instance); } default T enum_query_integer(Schema4.LongSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterFakeGetQueryParameters4(instance); + return getBuilderAfterEnumQueryInteger(instance); } default T enum_query_integer(Schema4.FloatSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterFakeGetQueryParameters4(instance); + return getBuilderAfterEnumQueryInteger(instance); } default T enum_query_integer(Schema4.DoubleSchemaEnums4 value) { var instance = getInstance(); instance.put("enum_query_integer", value.value()); - return getBuilderAfterFakeGetQueryParameters4(instance); + return getBuilderAfterEnumQueryInteger(instance); } } - public interface SetterForFakeGetQueryParameters5 { + public interface SetterForEnumQueryStringArray { Map getInstance(); - T getBuilderAfterFakeGetQueryParameters5(Map instance); + T getBuilderAfterEnumQueryStringArray(Map instance); default T enum_query_string_array(List value) { var instance = getInstance(); instance.put("enum_query_string_array", value); - return getBuilderAfterFakeGetQueryParameters5(instance); + return getBuilderAfterEnumQueryStringArray(instance); } } - public static class FakeGetQueryParameters11 implements GenericBuilder>, SetterForFakeGetQueryParameters2, SetterForFakeGetQueryParameters3, SetterForFakeGetQueryParameters4, SetterForFakeGetQueryParameters5 { + public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForEnumQueryDouble, SetterForEnumQueryString, SetterForEnumQueryInteger, SetterForEnumQueryStringArray { private final Map instance; private static final Set knownKeys = Set.of( "enum_query_double", @@ -221,7 +221,7 @@ public static class FakeGetQueryParameters11 implements GenericBuilder getKnownKeys() { return knownKeys; } - public FakeGetQueryParameters11() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -230,16 +230,16 @@ public FakeGetQueryParameters11() { public Map getInstance() { return instance; } - public FakeGetQueryParameters11 getBuilderAfterFakeGetQueryParameters2(Map instance) { + public QueryParametersMapBuilder getBuilderAfterEnumQueryDouble(Map instance) { return this; } - public FakeGetQueryParameters11 getBuilderAfterFakeGetQueryParameters3(Map instance) { + public QueryParametersMapBuilder getBuilderAfterEnumQueryString(Map instance) { return this; } - public FakeGetQueryParameters11 getBuilderAfterFakeGetQueryParameters4(Map instance) { + public QueryParametersMapBuilder getBuilderAfterEnumQueryInteger(Map instance) { return this; } - public FakeGetQueryParameters11 getBuilderAfterFakeGetQueryParameters5(Map instance) { + public QueryParametersMapBuilder getBuilderAfterEnumQueryStringArray(Map instance) { return this; } } @@ -249,7 +249,7 @@ public sealed interface FakeGetQueryParameters1Boxed permits FakeGetQueryParamet @Nullable Object getData(); } - public record FakeGetQueryParameters1BoxedMap(FakeGetQueryParameters12 data) implements FakeGetQueryParameters1Boxed { + public record FakeGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakeGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -257,7 +257,7 @@ public record FakeGetQueryParameters1BoxedMap(FakeGetQueryParameters12 data) imp } - public static class FakeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeGetQueryParameters1 instance = null; protected FakeGetQueryParameters1() { @@ -269,7 +269,7 @@ protected FakeGetQueryParameters1() { new PropertyEntry("enum_query_integer", Schema4.Schema41.class), new PropertyEntry("enum_query_string_array", Schema2.Schema21.class) )) - .additionalProperties(FakeGetQueryParameters7.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -280,7 +280,7 @@ public static FakeGetQueryParameters1 getInstance() { return instance; } - public FakeGetQueryParameters12 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -300,10 +300,10 @@ public FakeGetQueryParameters12 getNewInstance(Map arg, List pathT properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakeGetQueryParameters12(castProperties); + return new QueryParametersMap(castProperties); } - public FakeGetQueryParameters12 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java index ba25f289cf6..c8a63ea1dd6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java @@ -90,13 +90,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody; - public FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters; + public FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody, - FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters, + FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -109,7 +109,7 @@ public PutRequest( public static class PutNullableRequest { public FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody requestBody; - public FakebodywithqueryparamsPutQueryParameters.@Nullable FakebodywithqueryparamsPutQueryParameters9 queryParameters; + public FakebodywithqueryparamsPutQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -147,7 +147,7 @@ default T requestBody(FakebodywithqueryparamsPutRequestBody.SealedRequestBody re public interface SetterForQueryParameters { PutNullableRequest getInstance(); T getBuilderAfterQueryParameters(PutNullableRequest instance); - default T queryParameters(FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters9 queryParameters) { + default T queryParameters(FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java index c8fc838f223..e2e28ed10d7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java @@ -29,27 +29,27 @@ public class FakebodywithqueryparamsPutQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakebodywithqueryparamsPutQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakebodywithqueryparamsPutQueryParameters4 instance = null; - public static FakebodywithqueryparamsPutQueryParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakebodywithqueryparamsPutQueryParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakebodywithqueryparamsPutQueryParameters9 extends FrozenMap { - protected FakebodywithqueryparamsPutQueryParameters9(FrozenMap m) { + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "query" ); public static final Set optionalKeys = Set.of(); - public static FakebodywithqueryparamsPutQueryParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakebodywithqueryparamsPutQueryParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String query() { } } - public interface SetterForFakebodywithqueryparamsPutQueryParameters2 { + public interface SetterForQuery { Map getInstance(); - T getBuilderAfterFakebodywithqueryparamsPutQueryParameters2(Map instance); + T getBuilderAfterQuery(Map instance); default T query(String value) { var instance = getInstance(); instance.put("query", value); - return getBuilderAfterFakebodywithqueryparamsPutQueryParameters2(instance); + return getBuilderAfterQuery(instance); } } - public static class FakebodywithqueryparamsPutQueryParameters10 implements GenericBuilder> { + public static class QueryParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "query" @@ -81,7 +81,7 @@ public static class FakebodywithqueryparamsPutQueryParameters10 implements Gener public Set getKnownKeys() { return knownKeys; } - public FakebodywithqueryparamsPutQueryParameters10(Map instance) { + public QueryParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class FakebodywithqueryparamsPutQueryParameters8 implements SetterForFakebodywithqueryparamsPutQueryParameters2 { + public static class QueryParametersMapBuilder implements SetterForQuery { private final Map instance; - public FakebodywithqueryparamsPutQueryParameters8() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakebodywithqueryparamsPutQueryParameters10 getBuilderAfterFakebodywithqueryparamsPutQueryParameters2(Map instance) { - return new FakebodywithqueryparamsPutQueryParameters10(instance); + public QueryParametersMap0Builder getBuilderAfterQuery(Map instance) { + return new QueryParametersMap0Builder(instance); } } @@ -107,7 +107,7 @@ public sealed interface FakebodywithqueryparamsPutQueryParameters1Boxed permits @Nullable Object getData(); } - public record FakebodywithqueryparamsPutQueryParameters1BoxedMap(FakebodywithqueryparamsPutQueryParameters9 data) implements FakebodywithqueryparamsPutQueryParameters1Boxed { + public record FakebodywithqueryparamsPutQueryParameters1BoxedMap(QueryParametersMap data) implements FakebodywithqueryparamsPutQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record FakebodywithqueryparamsPutQueryParameters1BoxedMap(Fakebodywithque } - public static class FakebodywithqueryparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakebodywithqueryparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakebodywithqueryparamsPutQueryParameters1 instance = null; protected FakebodywithqueryparamsPutQueryParameters1() { @@ -127,7 +127,7 @@ protected FakebodywithqueryparamsPutQueryParameters1() { .required(Set.of( "query" )) - .additionalProperties(FakebodywithqueryparamsPutQueryParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -138,7 +138,7 @@ public static FakebodywithqueryparamsPutQueryParameters1 getInstance() { return instance; } - public FakebodywithqueryparamsPutQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public FakebodywithqueryparamsPutQueryParameters9 getNewInstance(Map arg, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new FakebodywithqueryparamsPutQueryParameters9(castProperties); + return new QueryParametersMap(castProperties); } - public FakebodywithqueryparamsPutQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java index d6f4b0a02d8..98b63c2cec9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java @@ -80,12 +80,12 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class PutRequest { - public FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters; + public FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( - FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters, + FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public PutRequest( } public static class PutNullableRequest { - public FakecasesensitiveparamsPutQueryParameters.@Nullable FakecasesensitiveparamsPutQueryParameters11 queryParameters; + public FakecasesensitiveparamsPutQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { PutNullableRequest getInstance(); T getBuilderAfterQueryParameters(PutNullableRequest instance); - default T queryParameters(FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters11 queryParameters) { + default T queryParameters(FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java index 8505515d5fb..67958cf44dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java @@ -31,20 +31,20 @@ public class FakecasesensitiveparamsPutQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakecasesensitiveparamsPutQueryParameters6 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakecasesensitiveparamsPutQueryParameters6 instance = null; - public static FakecasesensitiveparamsPutQueryParameters6 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakecasesensitiveparamsPutQueryParameters6(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakecasesensitiveparamsPutQueryParameters11 extends FrozenMap<@Nullable Object> { - protected FakecasesensitiveparamsPutQueryParameters11(FrozenMap<@Nullable Object> m) { + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -53,7 +53,7 @@ protected FakecasesensitiveparamsPutQueryParameters11(FrozenMap<@Nullable Object "some_var" ); public static final Set optionalKeys = Set.of(); - public static FakecasesensitiveparamsPutQueryParameters11 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakecasesensitiveparamsPutQueryParameters1.getInstance().validate(arg, configuration); } @@ -82,40 +82,40 @@ public String some_var() { } } - public interface SetterForFakecasesensitiveparamsPutQueryParameters4 { + public interface SetterForSomeVar2 { Map getInstance(); - T getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(Map instance); + T getBuilderAfterSomeVar2(Map instance); default T SomeVar(String value) { var instance = getInstance(); instance.put("SomeVar", value); - return getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(instance); + return getBuilderAfterSomeVar2(instance); } } - public interface SetterForFakecasesensitiveparamsPutQueryParameters2 { + public interface SetterForSomeVar { Map getInstance(); - T getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(Map instance); + T getBuilderAfterSomeVar(Map instance); default T someVar(String value) { var instance = getInstance(); instance.put("someVar", value); - return getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(instance); + return getBuilderAfterSomeVar(instance); } } - public interface SetterForFakecasesensitiveparamsPutQueryParameters3 { + public interface SetterForSomeVar1 { Map getInstance(); - T getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(Map instance); + T getBuilderAfterSomeVar1(Map instance); default T some_var(String value) { var instance = getInstance(); instance.put("some_var", value); - return getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(instance); + return getBuilderAfterSomeVar1(instance); } } - public static class FakecasesensitiveparamsPutQueryParameters12 implements GenericBuilder> { + public static class QueryParametersMap000Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "SomeVar", @@ -125,7 +125,7 @@ public static class FakecasesensitiveparamsPutQueryParameters12 implements Gener public Set getKnownKeys() { return knownKeys; } - public FakecasesensitiveparamsPutQueryParameters12(Map instance) { + public QueryParametersMap000Builder(Map instance) { this.instance = instance; } public Map build() { @@ -133,109 +133,109 @@ public FakecasesensitiveparamsPutQueryParameters12(Map } } - public static class FakecasesensitiveparamsPutQueryParameters13 implements SetterForFakecasesensitiveparamsPutQueryParameters3 { + public static class QueryParametersMap001Builder implements SetterForSomeVar1 { private final Map instance; - public FakecasesensitiveparamsPutQueryParameters13(Map instance) { + public QueryParametersMap001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParameters12 getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters12(instance); + public QueryParametersMap000Builder getBuilderAfterSomeVar1(Map instance) { + return new QueryParametersMap000Builder(instance); } } - public static class FakecasesensitiveparamsPutQueryParameters14 implements SetterForFakecasesensitiveparamsPutQueryParameters2 { + public static class QueryParametersMap010Builder implements SetterForSomeVar { private final Map instance; - public FakecasesensitiveparamsPutQueryParameters14(Map instance) { + public QueryParametersMap010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParameters12 getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters12(instance); + public QueryParametersMap000Builder getBuilderAfterSomeVar(Map instance) { + return new QueryParametersMap000Builder(instance); } } - public static class FakecasesensitiveparamsPutQueryParameters15 implements SetterForFakecasesensitiveparamsPutQueryParameters2, SetterForFakecasesensitiveparamsPutQueryParameters3 { + public static class QueryParametersMap011Builder implements SetterForSomeVar, SetterForSomeVar1 { private final Map instance; - public FakecasesensitiveparamsPutQueryParameters15(Map instance) { + public QueryParametersMap011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParameters13 getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters13(instance); + public QueryParametersMap001Builder getBuilderAfterSomeVar(Map instance) { + return new QueryParametersMap001Builder(instance); } - public FakecasesensitiveparamsPutQueryParameters14 getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters14(instance); + public QueryParametersMap010Builder getBuilderAfterSomeVar1(Map instance) { + return new QueryParametersMap010Builder(instance); } } - public static class FakecasesensitiveparamsPutQueryParameters16 implements SetterForFakecasesensitiveparamsPutQueryParameters4 { + public static class QueryParametersMap100Builder implements SetterForSomeVar2 { private final Map instance; - public FakecasesensitiveparamsPutQueryParameters16(Map instance) { + public QueryParametersMap100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParameters12 getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters12(instance); + public QueryParametersMap000Builder getBuilderAfterSomeVar2(Map instance) { + return new QueryParametersMap000Builder(instance); } } - public static class FakecasesensitiveparamsPutQueryParameters17 implements SetterForFakecasesensitiveparamsPutQueryParameters4, SetterForFakecasesensitiveparamsPutQueryParameters3 { + public static class QueryParametersMap101Builder implements SetterForSomeVar2, SetterForSomeVar1 { private final Map instance; - public FakecasesensitiveparamsPutQueryParameters17(Map instance) { + public QueryParametersMap101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParameters13 getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters13(instance); + public QueryParametersMap001Builder getBuilderAfterSomeVar2(Map instance) { + return new QueryParametersMap001Builder(instance); } - public FakecasesensitiveparamsPutQueryParameters16 getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters16(instance); + public QueryParametersMap100Builder getBuilderAfterSomeVar1(Map instance) { + return new QueryParametersMap100Builder(instance); } } - public static class FakecasesensitiveparamsPutQueryParameters18 implements SetterForFakecasesensitiveparamsPutQueryParameters4, SetterForFakecasesensitiveparamsPutQueryParameters2 { + public static class QueryParametersMap110Builder implements SetterForSomeVar2, SetterForSomeVar { private final Map instance; - public FakecasesensitiveparamsPutQueryParameters18(Map instance) { + public QueryParametersMap110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParameters14 getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters14(instance); + public QueryParametersMap010Builder getBuilderAfterSomeVar2(Map instance) { + return new QueryParametersMap010Builder(instance); } - public FakecasesensitiveparamsPutQueryParameters16 getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters16(instance); + public QueryParametersMap100Builder getBuilderAfterSomeVar(Map instance) { + return new QueryParametersMap100Builder(instance); } } - public static class FakecasesensitiveparamsPutQueryParameters10 implements SetterForFakecasesensitiveparamsPutQueryParameters4, SetterForFakecasesensitiveparamsPutQueryParameters2, SetterForFakecasesensitiveparamsPutQueryParameters3 { + public static class QueryParametersMapBuilder implements SetterForSomeVar2, SetterForSomeVar, SetterForSomeVar1 { private final Map instance; - public FakecasesensitiveparamsPutQueryParameters10() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParameters15 getBuilderAfterFakecasesensitiveparamsPutQueryParameters4(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters15(instance); + public QueryParametersMap011Builder getBuilderAfterSomeVar2(Map instance) { + return new QueryParametersMap011Builder(instance); } - public FakecasesensitiveparamsPutQueryParameters17 getBuilderAfterFakecasesensitiveparamsPutQueryParameters2(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters17(instance); + public QueryParametersMap101Builder getBuilderAfterSomeVar(Map instance) { + return new QueryParametersMap101Builder(instance); } - public FakecasesensitiveparamsPutQueryParameters18 getBuilderAfterFakecasesensitiveparamsPutQueryParameters3(Map instance) { - return new FakecasesensitiveparamsPutQueryParameters18(instance); + public QueryParametersMap110Builder getBuilderAfterSomeVar1(Map instance) { + return new QueryParametersMap110Builder(instance); } } @@ -244,7 +244,7 @@ public sealed interface FakecasesensitiveparamsPutQueryParameters1Boxed permits @Nullable Object getData(); } - public record FakecasesensitiveparamsPutQueryParameters1BoxedMap(FakecasesensitiveparamsPutQueryParameters11 data) implements FakecasesensitiveparamsPutQueryParameters1Boxed { + public record FakecasesensitiveparamsPutQueryParameters1BoxedMap(QueryParametersMap data) implements FakecasesensitiveparamsPutQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -252,7 +252,7 @@ public record FakecasesensitiveparamsPutQueryParameters1BoxedMap(Fakecasesensiti } - public static class FakecasesensitiveparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakecasesensitiveparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakecasesensitiveparamsPutQueryParameters1 instance = null; protected FakecasesensitiveparamsPutQueryParameters1() { @@ -268,7 +268,7 @@ protected FakecasesensitiveparamsPutQueryParameters1() { "someVar", "some_var" )) - .additionalProperties(FakecasesensitiveparamsPutQueryParameters6.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -279,7 +279,7 @@ public static FakecasesensitiveparamsPutQueryParameters1 getInstance() { return instance; } - public FakecasesensitiveparamsPutQueryParameters11 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -299,10 +299,10 @@ public FakecasesensitiveparamsPutQueryParameters11 getNewInstance(Map arg, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakecasesensitiveparamsPutQueryParameters11(castProperties); + return new QueryParametersMap(castProperties); } - public FakecasesensitiveparamsPutQueryParameters11 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java index adfe3c6eef7..bef6f75649a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java @@ -79,12 +79,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters; + public FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters, + FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public FakedeletecoffeeidDeletePathParameters.@Nullable FakedeletecoffeeidDeletePathParameters9 pathParameters; + public FakedeletecoffeeidDeletePathParameters.@Nullable PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters9 pathParameters) { + default T pathParameters(FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java index 088955d7d11..b2171bdfaf0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java @@ -29,27 +29,27 @@ public class FakedeletecoffeeidDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class FakedeletecoffeeidDeletePathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakedeletecoffeeidDeletePathParameters4 instance = null; - public static FakedeletecoffeeidDeletePathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakedeletecoffeeidDeletePathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakedeletecoffeeidDeletePathParameters9 extends FrozenMap { - protected FakedeletecoffeeidDeletePathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "id" ); public static final Set optionalKeys = Set.of(); - public static FakedeletecoffeeidDeletePathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakedeletecoffeeidDeletePathParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String id() { } } - public interface SetterForFakedeletecoffeeidDeletePathParameters2 { + public interface SetterForId { Map getInstance(); - T getBuilderAfterFakedeletecoffeeidDeletePathParameters2(Map instance); + T getBuilderAfterId(Map instance); default T id(String value) { var instance = getInstance(); instance.put("id", value); - return getBuilderAfterFakedeletecoffeeidDeletePathParameters2(instance); + return getBuilderAfterId(instance); } } - public static class FakedeletecoffeeidDeletePathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "id" @@ -81,7 +81,7 @@ public static class FakedeletecoffeeidDeletePathParameters10 implements GenericB public Set getKnownKeys() { return knownKeys; } - public FakedeletecoffeeidDeletePathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class FakedeletecoffeeidDeletePathParameters8 implements SetterForFakedeletecoffeeidDeletePathParameters2 { + public static class PathParametersMapBuilder implements SetterForId { private final Map instance; - public FakedeletecoffeeidDeletePathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakedeletecoffeeidDeletePathParameters10 getBuilderAfterFakedeletecoffeeidDeletePathParameters2(Map instance) { - return new FakedeletecoffeeidDeletePathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterId(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -107,7 +107,7 @@ public sealed interface FakedeletecoffeeidDeletePathParameters1Boxed permits Fak @Nullable Object getData(); } - public record FakedeletecoffeeidDeletePathParameters1BoxedMap(FakedeletecoffeeidDeletePathParameters9 data) implements FakedeletecoffeeidDeletePathParameters1Boxed { + public record FakedeletecoffeeidDeletePathParameters1BoxedMap(PathParametersMap data) implements FakedeletecoffeeidDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record FakedeletecoffeeidDeletePathParameters1BoxedMap(Fakedeletecoffeeid } - public static class FakedeletecoffeeidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakedeletecoffeeidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakedeletecoffeeidDeletePathParameters1 instance = null; protected FakedeletecoffeeidDeletePathParameters1() { @@ -127,7 +127,7 @@ protected FakedeletecoffeeidDeletePathParameters1() { .required(Set.of( "id" )) - .additionalProperties(FakedeletecoffeeidDeletePathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -138,7 +138,7 @@ public static FakedeletecoffeeidDeletePathParameters1 getInstance() { return instance; } - public FakedeletecoffeeidDeletePathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public FakedeletecoffeeidDeletePathParameters9 getNewInstance(Map arg, Lis properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new FakedeletecoffeeidDeletePathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public FakedeletecoffeeidDeletePathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java index 528a6a4ce3b..45e5eefb2a3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java @@ -97,7 +97,7 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu public static class PostRequest { public FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody requestBody; - public FakeinlinecompositionPostQueryParameters.@Nullable FakeinlinecompositionPostQueryParameters10 queryParameters; + public FakeinlinecompositionPostQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -115,7 +115,7 @@ default T requestBody(FakeinlinecompositionPostRequestBody.SealedRequestBody req public interface SetterForQueryParameters { PostRequest getInstance(); T getBuilderAfterQueryParameters(PostRequest instance); - default T queryParameters(FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters10 queryParameters) { + default T queryParameters(FakeinlinecompositionPostQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java index 3ddf1e81943..c4529070458 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java @@ -30,20 +30,20 @@ public class FakeinlinecompositionPostQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeinlinecompositionPostQueryParameters5 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeinlinecompositionPostQueryParameters5 instance = null; - public static FakeinlinecompositionPostQueryParameters5 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakeinlinecompositionPostQueryParameters5(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakeinlinecompositionPostQueryParameters10 extends FrozenMap<@Nullable Object> { - protected FakeinlinecompositionPostQueryParameters10(FrozenMap<@Nullable Object> m) { + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -51,7 +51,7 @@ protected FakeinlinecompositionPostQueryParameters10(FrozenMap<@Nullable Object> "compositionAtRoot", "compositionInProperty" ); - public static FakeinlinecompositionPostQueryParameters10 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakeinlinecompositionPostQueryParameters1.getInstance().validate(arg, configuration); } @@ -76,77 +76,77 @@ public Schema1.SchemaMap1 compositionInProperty() throws UnsetPropertyException } } - public interface SetterForFakeinlinecompositionPostQueryParameters2 { + public interface SetterForCompositionAtRoot { Map getInstance(); - T getBuilderAfterFakeinlinecompositionPostQueryParameters2(Map instance); + T getBuilderAfterCompositionAtRoot(Map instance); default T compositionAtRoot(Void value) { var instance = getInstance(); instance.put("compositionAtRoot", null); - return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); + return getBuilderAfterCompositionAtRoot(instance); } default T compositionAtRoot(boolean value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); + return getBuilderAfterCompositionAtRoot(instance); } default T compositionAtRoot(String value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); + return getBuilderAfterCompositionAtRoot(instance); } default T compositionAtRoot(int value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); + return getBuilderAfterCompositionAtRoot(instance); } default T compositionAtRoot(float value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); + return getBuilderAfterCompositionAtRoot(instance); } default T compositionAtRoot(long value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); + return getBuilderAfterCompositionAtRoot(instance); } default T compositionAtRoot(double value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); + return getBuilderAfterCompositionAtRoot(instance); } default T compositionAtRoot(List value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); + return getBuilderAfterCompositionAtRoot(instance); } default T compositionAtRoot(Map value) { var instance = getInstance(); instance.put("compositionAtRoot", value); - return getBuilderAfterFakeinlinecompositionPostQueryParameters2(instance); + return getBuilderAfterCompositionAtRoot(instance); } } - public interface SetterForFakeinlinecompositionPostQueryParameters3 { + public interface SetterForCompositionInProperty { Map getInstance(); - T getBuilderAfterFakeinlinecompositionPostQueryParameters3(Map instance); + T getBuilderAfterCompositionInProperty(Map instance); default T compositionInProperty(Map value) { var instance = getInstance(); instance.put("compositionInProperty", value); - return getBuilderAfterFakeinlinecompositionPostQueryParameters3(instance); + return getBuilderAfterCompositionInProperty(instance); } } - public static class FakeinlinecompositionPostQueryParameters9 implements GenericBuilder>, SetterForFakeinlinecompositionPostQueryParameters2, SetterForFakeinlinecompositionPostQueryParameters3 { + public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForCompositionAtRoot, SetterForCompositionInProperty { private final Map instance; private static final Set knownKeys = Set.of( "compositionAtRoot", @@ -155,7 +155,7 @@ public static class FakeinlinecompositionPostQueryParameters9 implements Generic public Set getKnownKeys() { return knownKeys; } - public FakeinlinecompositionPostQueryParameters9() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -164,10 +164,10 @@ public FakeinlinecompositionPostQueryParameters9() { public Map getInstance() { return instance; } - public FakeinlinecompositionPostQueryParameters9 getBuilderAfterFakeinlinecompositionPostQueryParameters2(Map instance) { + public QueryParametersMapBuilder getBuilderAfterCompositionAtRoot(Map instance) { return this; } - public FakeinlinecompositionPostQueryParameters9 getBuilderAfterFakeinlinecompositionPostQueryParameters3(Map instance) { + public QueryParametersMapBuilder getBuilderAfterCompositionInProperty(Map instance) { return this; } } @@ -177,7 +177,7 @@ public sealed interface FakeinlinecompositionPostQueryParameters1Boxed permits F @Nullable Object getData(); } - public record FakeinlinecompositionPostQueryParameters1BoxedMap(FakeinlinecompositionPostQueryParameters10 data) implements FakeinlinecompositionPostQueryParameters1Boxed { + public record FakeinlinecompositionPostQueryParameters1BoxedMap(QueryParametersMap data) implements FakeinlinecompositionPostQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -185,7 +185,7 @@ public record FakeinlinecompositionPostQueryParameters1BoxedMap(Fakeinlinecompos } - public static class FakeinlinecompositionPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeinlinecompositionPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeinlinecompositionPostQueryParameters1 instance = null; protected FakeinlinecompositionPostQueryParameters1() { @@ -195,7 +195,7 @@ protected FakeinlinecompositionPostQueryParameters1() { new PropertyEntry("compositionAtRoot", Schema0.Schema01.class), new PropertyEntry("compositionInProperty", Schema1.Schema11.class) )) - .additionalProperties(FakeinlinecompositionPostQueryParameters5.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -206,7 +206,7 @@ public static FakeinlinecompositionPostQueryParameters1 getInstance() { return instance; } - public FakeinlinecompositionPostQueryParameters10 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -226,10 +226,10 @@ public FakeinlinecompositionPostQueryParameters10 getNewInstance(Map arg, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FakeinlinecompositionPostQueryParameters10(castProperties); + return new QueryParametersMap(castProperties); } - public FakeinlinecompositionPostQueryParameters10 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java index dab57c384fb..f704c6dd01c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java @@ -83,7 +83,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public FakeobjinqueryGetQueryParameters.@Nullable FakeobjinqueryGetQueryParameters9 queryParameters; + public FakeobjinqueryGetQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -91,7 +91,7 @@ public static class GetRequest { public interface SetterForQueryParameters { GetRequest getInstance(); T getBuilderAfterQueryParameters(GetRequest instance); - default T queryParameters(FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters9 queryParameters) { + default T queryParameters(FakeobjinqueryGetQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java index 219949d993a..bd8b2045e9c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java @@ -29,27 +29,27 @@ public class FakeobjinqueryGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakeobjinqueryGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakeobjinqueryGetQueryParameters4 instance = null; - public static FakeobjinqueryGetQueryParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakeobjinqueryGetQueryParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakeobjinqueryGetQueryParameters9 extends FrozenMap { - protected FakeobjinqueryGetQueryParameters9(FrozenMap m) { + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "mapBean" ); - public static FakeobjinqueryGetQueryParameters9 of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { return FakeobjinqueryGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public Schema0.SchemaMap0 mapBean() throws UnsetPropertyException { } } - public interface SetterForFakeobjinqueryGetQueryParameters2 { + public interface SetterForMapBean { Map> getInstance(); - T getBuilderAfterFakeobjinqueryGetQueryParameters2(Map> instance); + T getBuilderAfterMapBean(Map> instance); default T mapBean(Map value) { var instance = getInstance(); instance.put("mapBean", value); - return getBuilderAfterFakeobjinqueryGetQueryParameters2(instance); + return getBuilderAfterMapBean(instance); } } - public static class FakeobjinqueryGetQueryParameters8 implements GenericBuilder>>, SetterForFakeobjinqueryGetQueryParameters2 { + public static class QueryParametersMapBuilder implements GenericBuilder>>, SetterForMapBean { private final Map> instance; private static final Set knownKeys = Set.of( "mapBean" @@ -77,7 +77,7 @@ public static class FakeobjinqueryGetQueryParameters8 implements GenericBuilder< public Set getKnownKeys() { return knownKeys; } - public FakeobjinqueryGetQueryParameters8() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map> build() { @@ -86,7 +86,7 @@ public FakeobjinqueryGetQueryParameters8() { public Map> getInstance() { return instance; } - public FakeobjinqueryGetQueryParameters8 getBuilderAfterFakeobjinqueryGetQueryParameters2(Map> instance) { + public QueryParametersMapBuilder getBuilderAfterMapBean(Map> instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface FakeobjinqueryGetQueryParameters1Boxed permits Fakeobjin @Nullable Object getData(); } - public record FakeobjinqueryGetQueryParameters1BoxedMap(FakeobjinqueryGetQueryParameters9 data) implements FakeobjinqueryGetQueryParameters1Boxed { + public record FakeobjinqueryGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakeobjinqueryGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record FakeobjinqueryGetQueryParameters1BoxedMap(FakeobjinqueryGetQueryPa } - public static class FakeobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakeobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakeobjinqueryGetQueryParameters1 instance = null; protected FakeobjinqueryGetQueryParameters1() { @@ -113,7 +113,7 @@ protected FakeobjinqueryGetQueryParameters1() { .properties(Map.ofEntries( new PropertyEntry("mapBean", Schema0.Schema01.class) )) - .additionalProperties(FakeobjinqueryGetQueryParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -124,7 +124,7 @@ public static FakeobjinqueryGetQueryParameters1 getInstance() { return instance; } - public FakeobjinqueryGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public FakeobjinqueryGetQueryParameters9 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new FakeobjinqueryGetQueryParameters9(castProperties); + return new QueryParametersMap(castProperties); } - public FakeobjinqueryGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java index 28375de3966..563a0808117 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java @@ -115,20 +115,20 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters; + public Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters; public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; - public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParameters12 headerParameters; - public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParameters13 queryParameters; - public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParameters13 cookieParameters; + public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap queryParameters; + public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap cookieParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PostRequest( - Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters, + Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters, Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody, - Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParameters12 headerParameters, - Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParameters13 queryParameters, - Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParameters13 cookieParameters, + Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap headerParameters, + Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap queryParameters, + Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap cookieParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -143,11 +143,11 @@ public PostRequest( } public static class PostNullableRequest { - public Fakeparametercollisions1ababselfabPostPathParameters.@Nullable Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters; + public Fakeparametercollisions1ababselfabPostPathParameters.@Nullable PathParametersMap pathParameters; public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; - public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable Fakeparametercollisions1ababselfabPostHeaderParameters12 headerParameters; - public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable Fakeparametercollisions1ababselfabPostQueryParameters13 queryParameters; - public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable Fakeparametercollisions1ababselfabPostCookieParameters13 cookieParameters; + public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap queryParameters; + public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap cookieParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -165,7 +165,7 @@ default T requestBody(Fakeparametercollisions1ababselfabPostRequestBody.SealedRe public interface SetterForHeaderParameters { PostNullableRequest getInstance(); T getBuilderAfterHeaderParameters(PostNullableRequest instance); - default T headerParameters(Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters12 headerParameters) { + default T headerParameters(Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -175,7 +175,7 @@ default T headerParameters(Fakeparametercollisions1ababselfabPostHeaderParameter public interface SetterForQueryParameters { PostNullableRequest getInstance(); T getBuilderAfterQueryParameters(PostNullableRequest instance); - default T queryParameters(Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters13 queryParameters) { + default T queryParameters(Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); @@ -185,7 +185,7 @@ default T queryParameters(Fakeparametercollisions1ababselfabPostQueryParameters. public interface SetterForCookieParameters { PostNullableRequest getInstance(); T getBuilderAfterCookieParameters(PostNullableRequest instance); - default T cookieParameters(Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters13 cookieParameters) { + default T cookieParameters(Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMap cookieParameters) { var instance = getInstance(); instance.cookieParameters = cookieParameters; return getBuilderAfterCookieParameters(instance); @@ -215,7 +215,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters13 pathParameters) { + default T pathParameters(Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java index ca779a77c3e..1fde72f7396 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java @@ -33,20 +33,20 @@ public class Fakeparametercollisions1ababselfabPostCookieParameters { // nest classes so all schemas and input/output classes can be public - public static class Fakeparametercollisions1ababselfabPostCookieParameters8 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Fakeparametercollisions1ababselfabPostCookieParameters8 instance = null; - public static Fakeparametercollisions1ababselfabPostCookieParameters8 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostCookieParameters8(); + instance = new AdditionalProperties(); } return instance; } } - public static class Fakeparametercollisions1ababselfabPostCookieParameters13 extends FrozenMap<@Nullable Object> { - protected Fakeparametercollisions1ababselfabPostCookieParameters13(FrozenMap<@Nullable Object> m) { + public static class CookieParametersMap extends FrozenMap<@Nullable Object> { + protected CookieParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -57,7 +57,7 @@ protected Fakeparametercollisions1ababselfabPostCookieParameters13(FrozenMap<@Nu "A-B", "self" ); - public static Fakeparametercollisions1ababselfabPostCookieParameters13 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static CookieParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Fakeparametercollisions1ababselfabPostCookieParameters1.getInstance().validate(arg, configuration); } @@ -92,62 +92,62 @@ public String self() throws UnsetPropertyException { } } - public interface SetterForFakeparametercollisions1ababselfabPostCookieParameters2 { + public interface SetterForSchema1 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters2(Map instance); + T getBuilderAfterSchema1(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters2(instance); + return getBuilderAfterSchema1(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostCookieParameters3 { + public interface SetterForAB { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters3(Map instance); + T getBuilderAfterAB(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters3(instance); + return getBuilderAfterAB(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostCookieParameters4 { + public interface SetterForAb { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters4(Map instance); + T getBuilderAfterAb(Map instance); default T Ab(String value) { var instance = getInstance(); instance.put("Ab", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters4(instance); + return getBuilderAfterAb(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostCookieParameters5 { + public interface SetterForAB1 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters5(Map instance); + T getBuilderAfterAB1(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters5(instance); + return getBuilderAfterAB1(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostCookieParameters6 { + public interface SetterForSelf { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters6(Map instance); + T getBuilderAfterSelf(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters6(instance); + return getBuilderAfterSelf(instance); } } - public static class Fakeparametercollisions1ababselfabPostCookieParameters12 implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPostCookieParameters2, SetterForFakeparametercollisions1ababselfabPostCookieParameters3, SetterForFakeparametercollisions1ababselfabPostCookieParameters4, SetterForFakeparametercollisions1ababselfabPostCookieParameters5, SetterForFakeparametercollisions1ababselfabPostCookieParameters6 { + public static class CookieParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAb, SetterForAB1, SetterForSelf { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -159,7 +159,7 @@ public static class Fakeparametercollisions1ababselfabPostCookieParameters12 imp public Set getKnownKeys() { return knownKeys; } - public Fakeparametercollisions1ababselfabPostCookieParameters12() { + public CookieParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -168,19 +168,19 @@ public Fakeparametercollisions1ababselfabPostCookieParameters12() { public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostCookieParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters2(Map instance) { + public CookieParametersMapBuilder getBuilderAfterSchema1(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostCookieParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters3(Map instance) { + public CookieParametersMapBuilder getBuilderAfterAB(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostCookieParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters4(Map instance) { + public CookieParametersMapBuilder getBuilderAfterAb(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostCookieParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters5(Map instance) { + public CookieParametersMapBuilder getBuilderAfterAB1(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostCookieParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostCookieParameters6(Map instance) { + public CookieParametersMapBuilder getBuilderAfterSelf(Map instance) { return this; } } @@ -190,7 +190,7 @@ public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters1B @Nullable Object getData(); } - public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(Fakeparametercollisions1ababselfabPostCookieParameters13 data) implements Fakeparametercollisions1ababselfabPostCookieParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(CookieParametersMap data) implements Fakeparametercollisions1ababselfabPostCookieParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -198,7 +198,7 @@ public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(Fa } - public static class Fakeparametercollisions1ababselfabPostCookieParameters1 extends JsonSchema implements MapSchemaValidator { + public static class Fakeparametercollisions1ababselfabPostCookieParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Fakeparametercollisions1ababselfabPostCookieParameters1 instance = null; protected Fakeparametercollisions1ababselfabPostCookieParameters1() { @@ -211,7 +211,7 @@ protected Fakeparametercollisions1ababselfabPostCookieParameters1() { new PropertyEntry("A-B", Schema18.Schema181.class), new PropertyEntry("self", Schema17.Schema171.class) )) - .additionalProperties(Fakeparametercollisions1ababselfabPostCookieParameters8.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -222,7 +222,7 @@ public static Fakeparametercollisions1ababselfabPostCookieParameters1 getInstanc return instance; } - public Fakeparametercollisions1ababselfabPostCookieParameters13 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public CookieParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -242,10 +242,10 @@ public Fakeparametercollisions1ababselfabPostCookieParameters13 getNewInstance(M properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new Fakeparametercollisions1ababselfabPostCookieParameters13(castProperties); + return new CookieParametersMap(castProperties); } - public Fakeparametercollisions1ababselfabPostCookieParameters13 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public CookieParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java index ad0b319a1dd..ab6e94846b2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java @@ -32,20 +32,20 @@ public class Fakeparametercollisions1ababselfabPostHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class Fakeparametercollisions1ababselfabPostHeaderParameters7 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Fakeparametercollisions1ababselfabPostHeaderParameters7 instance = null; - public static Fakeparametercollisions1ababselfabPostHeaderParameters7 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostHeaderParameters7(); + instance = new AdditionalProperties(); } return instance; } } - public static class Fakeparametercollisions1ababselfabPostHeaderParameters12 extends FrozenMap<@Nullable Object> { - protected Fakeparametercollisions1ababselfabPostHeaderParameters12(FrozenMap<@Nullable Object> m) { + public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { + protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -55,7 +55,7 @@ protected Fakeparametercollisions1ababselfabPostHeaderParameters12(FrozenMap<@Nu "A-B", "self" ); - public static Fakeparametercollisions1ababselfabPostHeaderParameters12 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Fakeparametercollisions1ababselfabPostHeaderParameters1.getInstance().validate(arg, configuration); } @@ -80,51 +80,51 @@ public String self() throws UnsetPropertyException { } } - public interface SetterForFakeparametercollisions1ababselfabPostHeaderParameters2 { + public interface SetterForSchema1 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters2(Map instance); + T getBuilderAfterSchema1(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters2(instance); + return getBuilderAfterSchema1(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostHeaderParameters3 { + public interface SetterForAB { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters3(Map instance); + T getBuilderAfterAB(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters3(instance); + return getBuilderAfterAB(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostHeaderParameters4 { + public interface SetterForAB1 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters4(Map instance); + T getBuilderAfterAB1(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters4(instance); + return getBuilderAfterAB1(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostHeaderParameters5 { + public interface SetterForSelf { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters5(Map instance); + T getBuilderAfterSelf(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters5(instance); + return getBuilderAfterSelf(instance); } } - public static class Fakeparametercollisions1ababselfabPostHeaderParameters11 implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPostHeaderParameters2, SetterForFakeparametercollisions1ababselfabPostHeaderParameters3, SetterForFakeparametercollisions1ababselfabPostHeaderParameters4, SetterForFakeparametercollisions1ababselfabPostHeaderParameters5 { + public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAB1, SetterForSelf { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -135,7 +135,7 @@ public static class Fakeparametercollisions1ababselfabPostHeaderParameters11 imp public Set getKnownKeys() { return knownKeys; } - public Fakeparametercollisions1ababselfabPostHeaderParameters11() { + public HeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -144,16 +144,16 @@ public Fakeparametercollisions1ababselfabPostHeaderParameters11() { public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostHeaderParameters11 getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters2(Map instance) { + public HeaderParametersMapBuilder getBuilderAfterSchema1(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostHeaderParameters11 getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters3(Map instance) { + public HeaderParametersMapBuilder getBuilderAfterAB(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostHeaderParameters11 getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters4(Map instance) { + public HeaderParametersMapBuilder getBuilderAfterAB1(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostHeaderParameters11 getBuilderAfterFakeparametercollisions1ababselfabPostHeaderParameters5(Map instance) { + public HeaderParametersMapBuilder getBuilderAfterSelf(Map instance) { return this; } } @@ -163,7 +163,7 @@ public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters1B @Nullable Object getData(); } - public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(Fakeparametercollisions1ababselfabPostHeaderParameters12 data) implements Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(HeaderParametersMap data) implements Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -171,7 +171,7 @@ public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(Fa } - public static class Fakeparametercollisions1ababselfabPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class Fakeparametercollisions1ababselfabPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Fakeparametercollisions1ababselfabPostHeaderParameters1 instance = null; protected Fakeparametercollisions1ababselfabPostHeaderParameters1() { @@ -183,7 +183,7 @@ protected Fakeparametercollisions1ababselfabPostHeaderParameters1() { new PropertyEntry("A-B", Schema8.Schema81.class), new PropertyEntry("self", Schema7.Schema71.class) )) - .additionalProperties(Fakeparametercollisions1ababselfabPostHeaderParameters7.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -194,7 +194,7 @@ public static Fakeparametercollisions1ababselfabPostHeaderParameters1 getInstanc return instance; } - public Fakeparametercollisions1ababselfabPostHeaderParameters12 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -214,10 +214,10 @@ public Fakeparametercollisions1ababselfabPostHeaderParameters12 getNewInstance(M properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new Fakeparametercollisions1ababselfabPostHeaderParameters12(castProperties); + return new HeaderParametersMap(castProperties); } - public Fakeparametercollisions1ababselfabPostHeaderParameters12 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java index a2d39b44b2e..15c92f81def 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java @@ -33,20 +33,20 @@ public class Fakeparametercollisions1ababselfabPostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class Fakeparametercollisions1ababselfabPostPathParameters8 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Fakeparametercollisions1ababselfabPostPathParameters8 instance = null; - public static Fakeparametercollisions1ababselfabPostPathParameters8 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostPathParameters8(); + instance = new AdditionalProperties(); } return instance; } } - public static class Fakeparametercollisions1ababselfabPostPathParameters13 extends FrozenMap<@Nullable Object> { - protected Fakeparametercollisions1ababselfabPostPathParameters13(FrozenMap<@Nullable Object> m) { + public static class PathParametersMap extends FrozenMap<@Nullable Object> { + protected PathParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -57,7 +57,7 @@ protected Fakeparametercollisions1ababselfabPostPathParameters13(FrozenMap<@Null "self" ); public static final Set optionalKeys = Set.of(); - public static Fakeparametercollisions1ababselfabPostPathParameters13 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Fakeparametercollisions1ababselfabPostPathParameters1.getInstance().validate(arg, configuration); } @@ -86,62 +86,62 @@ public String self() { } } - public interface SetterForFakeparametercollisions1ababselfabPostPathParameters2 { + public interface SetterForSchema1 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance); + T getBuilderAfterSchema1(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(instance); + return getBuilderAfterSchema1(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostPathParameters5 { + public interface SetterForAB1 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance); + T getBuilderAfterAB1(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(instance); + return getBuilderAfterAB1(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostPathParameters4 { + public interface SetterForAb { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance); + T getBuilderAfterAb(Map instance); default T Ab(String value) { var instance = getInstance(); instance.put("Ab", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(instance); + return getBuilderAfterAb(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostPathParameters3 { + public interface SetterForAB { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance); + T getBuilderAfterAB(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(instance); + return getBuilderAfterAB(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public interface SetterForSelf { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance); + T getBuilderAfterSelf(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(instance); + return getBuilderAfterSelf(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters14 implements GenericBuilder> { + public static class PathParametersMap00000Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -153,7 +153,7 @@ public static class Fakeparametercollisions1ababselfabPostPathParameters14 imple public Set getKnownKeys() { return knownKeys; } - public Fakeparametercollisions1ababselfabPostPathParameters14(Map instance) { + public PathParametersMap00000Builder(Map instance) { this.instance = instance; } public Map build() { @@ -161,553 +161,553 @@ public Fakeparametercollisions1ababselfabPostPathParameters14(Map { + public static class PathParametersMap00001Builder implements SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters15(Map instance) { + public PathParametersMap00001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters14 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters14(instance); + public PathParametersMap00000Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap00000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters16 implements SetterForFakeparametercollisions1ababselfabPostPathParameters3 { + public static class PathParametersMap00010Builder implements SetterForAB { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters16(Map instance) { + public PathParametersMap00010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters14 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters14(instance); + public PathParametersMap00000Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap00000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters17 implements SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap00011Builder implements SetterForAB, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters17(Map instance) { + public PathParametersMap00011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters15 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters15(instance); + public PathParametersMap00001Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap00001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters16 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters16(instance); + public PathParametersMap00010Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap00010Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters18 implements SetterForFakeparametercollisions1ababselfabPostPathParameters4 { + public static class PathParametersMap00100Builder implements SetterForAb { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters18(Map instance) { + public PathParametersMap00100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters14 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters14(instance); + public PathParametersMap00000Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap00000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters19 implements SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap00101Builder implements SetterForAb, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters19(Map instance) { + public PathParametersMap00101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters15 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters15(instance); + public PathParametersMap00001Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap00001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters18 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters18(instance); + public PathParametersMap00100Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap00100Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters20 implements SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { + public static class PathParametersMap00110Builder implements SetterForAb, SetterForAB { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters20(Map instance) { + public PathParametersMap00110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters16 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters16(instance); + public PathParametersMap00010Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap00010Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters18 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters18(instance); + public PathParametersMap00100Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap00100Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters21 implements SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap00111Builder implements SetterForAb, SetterForAB, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters21(Map instance) { + public PathParametersMap00111Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters17 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters17(instance); + public PathParametersMap00011Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap00011Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters19 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters19(instance); + public PathParametersMap00101Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap00101Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters20 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters20(instance); + public PathParametersMap00110Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap00110Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters22 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5 { + public static class PathParametersMap01000Builder implements SetterForAB1 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters22(Map instance) { + public PathParametersMap01000Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters14 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters14(instance); + public PathParametersMap00000Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters23 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap01001Builder implements SetterForAB1, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters23(Map instance) { + public PathParametersMap01001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters15 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters15(instance); + public PathParametersMap00001Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters22 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters22(instance); + public PathParametersMap01000Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap01000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters24 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { + public static class PathParametersMap01010Builder implements SetterForAB1, SetterForAB { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters24(Map instance) { + public PathParametersMap01010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters16 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters16(instance); + public PathParametersMap00010Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00010Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters22 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters22(instance); + public PathParametersMap01000Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap01000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters25 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap01011Builder implements SetterForAB1, SetterForAB, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters25(Map instance) { + public PathParametersMap01011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters17 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters17(instance); + public PathParametersMap00011Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00011Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters23 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters23(instance); + public PathParametersMap01001Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap01001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters24 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters24(instance); + public PathParametersMap01010Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap01010Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters26 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4 { + public static class PathParametersMap01100Builder implements SetterForAB1, SetterForAb { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters26(Map instance) { + public PathParametersMap01100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters18 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters18(instance); + public PathParametersMap00100Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00100Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters22 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters22(instance); + public PathParametersMap01000Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap01000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters27 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap01101Builder implements SetterForAB1, SetterForAb, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters27(Map instance) { + public PathParametersMap01101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters19 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters19(instance); + public PathParametersMap00101Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00101Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters23 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters23(instance); + public PathParametersMap01001Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap01001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters26 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters26(instance); + public PathParametersMap01100Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap01100Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters28 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { + public static class PathParametersMap01110Builder implements SetterForAB1, SetterForAb, SetterForAB { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters28(Map instance) { + public PathParametersMap01110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters20 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters20(instance); + public PathParametersMap00110Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00110Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters24 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters24(instance); + public PathParametersMap01010Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap01010Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters26 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters26(instance); + public PathParametersMap01100Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap01100Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters29 implements SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap01111Builder implements SetterForAB1, SetterForAb, SetterForAB, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters29(Map instance) { + public PathParametersMap01111Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters21 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters21(instance); + public PathParametersMap00111Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00111Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters25 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters25(instance); + public PathParametersMap01011Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap01011Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters27 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters27(instance); + public PathParametersMap01101Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap01101Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters28 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters28(instance); + public PathParametersMap01110Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap01110Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters30 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2 { + public static class PathParametersMap10000Builder implements SetterForSchema1 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters30(Map instance) { + public PathParametersMap10000Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters14 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters14(instance); + public PathParametersMap00000Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters31 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap10001Builder implements SetterForSchema1, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters31(Map instance) { + public PathParametersMap10001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters15 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters15(instance); + public PathParametersMap00001Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters30 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters30(instance); + public PathParametersMap10000Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap10000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters32 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { + public static class PathParametersMap10010Builder implements SetterForSchema1, SetterForAB { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters32(Map instance) { + public PathParametersMap10010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters16 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters16(instance); + public PathParametersMap00010Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00010Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters30 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters30(instance); + public PathParametersMap10000Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap10000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters33 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap10011Builder implements SetterForSchema1, SetterForAB, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters33(Map instance) { + public PathParametersMap10011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters17 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters17(instance); + public PathParametersMap00011Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00011Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters31 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters31(instance); + public PathParametersMap10001Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap10001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters32 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters32(instance); + public PathParametersMap10010Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap10010Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters34 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters4 { + public static class PathParametersMap10100Builder implements SetterForSchema1, SetterForAb { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters34(Map instance) { + public PathParametersMap10100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters18 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters18(instance); + public PathParametersMap00100Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00100Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters30 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters30(instance); + public PathParametersMap10000Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap10000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters35 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap10101Builder implements SetterForSchema1, SetterForAb, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters35(Map instance) { + public PathParametersMap10101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters19 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters19(instance); + public PathParametersMap00101Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00101Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters31 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters31(instance); + public PathParametersMap10001Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap10001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters34 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters34(instance); + public PathParametersMap10100Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap10100Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters36 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { + public static class PathParametersMap10110Builder implements SetterForSchema1, SetterForAb, SetterForAB { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters36(Map instance) { + public PathParametersMap10110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters20 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters20(instance); + public PathParametersMap00110Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00110Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters32 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters32(instance); + public PathParametersMap10010Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap10010Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters34 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters34(instance); + public PathParametersMap10100Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap10100Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters37 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap10111Builder implements SetterForSchema1, SetterForAb, SetterForAB, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters37(Map instance) { + public PathParametersMap10111Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters21 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters21(instance); + public PathParametersMap00111Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00111Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters33 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters33(instance); + public PathParametersMap10011Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap10011Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters35 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters35(instance); + public PathParametersMap10101Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap10101Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters36 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters36(instance); + public PathParametersMap10110Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap10110Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters38 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5 { + public static class PathParametersMap11000Builder implements SetterForSchema1, SetterForAB1 { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters38(Map instance) { + public PathParametersMap11000Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters22 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters22(instance); + public PathParametersMap01000Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01000Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters30 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters30(instance); + public PathParametersMap10000Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters39 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap11001Builder implements SetterForSchema1, SetterForAB1, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters39(Map instance) { + public PathParametersMap11001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters23 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters23(instance); + public PathParametersMap01001Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters31 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters31(instance); + public PathParametersMap10001Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters38 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters38(instance); + public PathParametersMap11000Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap11000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters40 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { + public static class PathParametersMap11010Builder implements SetterForSchema1, SetterForAB1, SetterForAB { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters40(Map instance) { + public PathParametersMap11010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters24 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters24(instance); + public PathParametersMap01010Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01010Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters32 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters32(instance); + public PathParametersMap10010Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10010Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters38 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters38(instance); + public PathParametersMap11000Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap11000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters41 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap11011Builder implements SetterForSchema1, SetterForAB1, SetterForAB, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters41(Map instance) { + public PathParametersMap11011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters25 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters25(instance); + public PathParametersMap01011Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01011Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters33 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters33(instance); + public PathParametersMap10011Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10011Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters39 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters39(instance); + public PathParametersMap11001Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap11001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters40 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters40(instance); + public PathParametersMap11010Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap11010Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters42 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4 { + public static class PathParametersMap11100Builder implements SetterForSchema1, SetterForAB1, SetterForAb { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters42(Map instance) { + public PathParametersMap11100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters26 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters26(instance); + public PathParametersMap01100Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01100Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters34 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters34(instance); + public PathParametersMap10100Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10100Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters38 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters38(instance); + public PathParametersMap11000Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap11000Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters43 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMap11101Builder implements SetterForSchema1, SetterForAB1, SetterForAb, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters43(Map instance) { + public PathParametersMap11101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters27 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters27(instance); + public PathParametersMap01101Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01101Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters35 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters35(instance); + public PathParametersMap10101Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10101Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters39 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters39(instance); + public PathParametersMap11001Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap11001Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters42 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters42(instance); + public PathParametersMap11100Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap11100Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters44 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3 { + public static class PathParametersMap11110Builder implements SetterForSchema1, SetterForAB1, SetterForAb, SetterForAB { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters44(Map instance) { + public PathParametersMap11110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters28 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters28(instance); + public PathParametersMap01110Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01110Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters36 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters36(instance); + public PathParametersMap10110Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10110Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters40 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters40(instance); + public PathParametersMap11010Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap11010Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters42 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters42(instance); + public PathParametersMap11100Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap11100Builder(instance); } } - public static class Fakeparametercollisions1ababselfabPostPathParameters12 implements SetterForFakeparametercollisions1ababselfabPostPathParameters2, SetterForFakeparametercollisions1ababselfabPostPathParameters5, SetterForFakeparametercollisions1ababselfabPostPathParameters4, SetterForFakeparametercollisions1ababselfabPostPathParameters3, SetterForFakeparametercollisions1ababselfabPostPathParameters6 { + public static class PathParametersMapBuilder implements SetterForSchema1, SetterForAB1, SetterForAb, SetterForAB, SetterForSelf { private final Map instance; - public Fakeparametercollisions1ababselfabPostPathParameters12() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters29 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters2(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters29(instance); + public PathParametersMap01111Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01111Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters37 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters5(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters37(instance); + public PathParametersMap10111Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10111Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters41 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters4(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters41(instance); + public PathParametersMap11011Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap11011Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters43 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters3(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters43(instance); + public PathParametersMap11101Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap11101Builder(instance); } - public Fakeparametercollisions1ababselfabPostPathParameters44 getBuilderAfterFakeparametercollisions1ababselfabPostPathParameters6(Map instance) { - return new Fakeparametercollisions1ababselfabPostPathParameters44(instance); + public PathParametersMap11110Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap11110Builder(instance); } } @@ -716,7 +716,7 @@ public sealed interface Fakeparametercollisions1ababselfabPostPathParameters1Box @Nullable Object getData(); } - public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(Fakeparametercollisions1ababselfabPostPathParameters13 data) implements Fakeparametercollisions1ababselfabPostPathParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(PathParametersMap data) implements Fakeparametercollisions1ababselfabPostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -724,7 +724,7 @@ public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(Fake } - public static class Fakeparametercollisions1ababselfabPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class Fakeparametercollisions1ababselfabPostPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Fakeparametercollisions1ababselfabPostPathParameters1 instance = null; protected Fakeparametercollisions1ababselfabPostPathParameters1() { @@ -744,7 +744,7 @@ protected Fakeparametercollisions1ababselfabPostPathParameters1() { "aB", "self" )) - .additionalProperties(Fakeparametercollisions1ababselfabPostPathParameters8.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -755,7 +755,7 @@ public static Fakeparametercollisions1ababselfabPostPathParameters1 getInstance( return instance; } - public Fakeparametercollisions1ababselfabPostPathParameters13 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -775,10 +775,10 @@ public Fakeparametercollisions1ababselfabPostPathParameters13 getNewInstance(Map properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new Fakeparametercollisions1ababselfabPostPathParameters13(castProperties); + return new PathParametersMap(castProperties); } - public Fakeparametercollisions1ababselfabPostPathParameters13 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java index ec86bc0ac2f..2336817442d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java @@ -33,20 +33,20 @@ public class Fakeparametercollisions1ababselfabPostQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class Fakeparametercollisions1ababselfabPostQueryParameters8 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Fakeparametercollisions1ababselfabPostQueryParameters8 instance = null; - public static Fakeparametercollisions1ababselfabPostQueryParameters8 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostQueryParameters8(); + instance = new AdditionalProperties(); } return instance; } } - public static class Fakeparametercollisions1ababselfabPostQueryParameters13 extends FrozenMap<@Nullable Object> { - protected Fakeparametercollisions1ababselfabPostQueryParameters13(FrozenMap<@Nullable Object> m) { + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of(); @@ -57,7 +57,7 @@ protected Fakeparametercollisions1ababselfabPostQueryParameters13(FrozenMap<@Nul "A-B", "self" ); - public static Fakeparametercollisions1ababselfabPostQueryParameters13 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Fakeparametercollisions1ababselfabPostQueryParameters1.getInstance().validate(arg, configuration); } @@ -92,62 +92,62 @@ public String self() throws UnsetPropertyException { } } - public interface SetterForFakeparametercollisions1ababselfabPostQueryParameters2 { + public interface SetterForSchema1 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters2(Map instance); + T getBuilderAfterSchema1(Map instance); default T positive1(String value) { var instance = getInstance(); instance.put("1", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters2(instance); + return getBuilderAfterSchema1(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostQueryParameters3 { + public interface SetterForAB { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters3(Map instance); + T getBuilderAfterAB(Map instance); default T aB(String value) { var instance = getInstance(); instance.put("aB", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters3(instance); + return getBuilderAfterAB(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostQueryParameters4 { + public interface SetterForAb { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters4(Map instance); + T getBuilderAfterAb(Map instance); default T Ab(String value) { var instance = getInstance(); instance.put("Ab", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters4(instance); + return getBuilderAfterAb(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostQueryParameters5 { + public interface SetterForAB1 { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters5(Map instance); + T getBuilderAfterAB1(Map instance); default T aHyphenMinusB(String value) { var instance = getInstance(); instance.put("A-B", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters5(instance); + return getBuilderAfterAB1(instance); } } - public interface SetterForFakeparametercollisions1ababselfabPostQueryParameters6 { + public interface SetterForSelf { Map getInstance(); - T getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters6(Map instance); + T getBuilderAfterSelf(Map instance); default T self(String value) { var instance = getInstance(); instance.put("self", value); - return getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters6(instance); + return getBuilderAfterSelf(instance); } } - public static class Fakeparametercollisions1ababselfabPostQueryParameters12 implements GenericBuilder>, SetterForFakeparametercollisions1ababselfabPostQueryParameters2, SetterForFakeparametercollisions1ababselfabPostQueryParameters3, SetterForFakeparametercollisions1ababselfabPostQueryParameters4, SetterForFakeparametercollisions1ababselfabPostQueryParameters5, SetterForFakeparametercollisions1ababselfabPostQueryParameters6 { + public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAb, SetterForAB1, SetterForSelf { private final Map instance; private static final Set knownKeys = Set.of( "1", @@ -159,7 +159,7 @@ public static class Fakeparametercollisions1ababselfabPostQueryParameters12 impl public Set getKnownKeys() { return knownKeys; } - public Fakeparametercollisions1ababselfabPostQueryParameters12() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -168,19 +168,19 @@ public Fakeparametercollisions1ababselfabPostQueryParameters12() { public Map getInstance() { return instance; } - public Fakeparametercollisions1ababselfabPostQueryParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters2(Map instance) { + public QueryParametersMapBuilder getBuilderAfterSchema1(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostQueryParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters3(Map instance) { + public QueryParametersMapBuilder getBuilderAfterAB(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostQueryParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters4(Map instance) { + public QueryParametersMapBuilder getBuilderAfterAb(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostQueryParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters5(Map instance) { + public QueryParametersMapBuilder getBuilderAfterAB1(Map instance) { return this; } - public Fakeparametercollisions1ababselfabPostQueryParameters12 getBuilderAfterFakeparametercollisions1ababselfabPostQueryParameters6(Map instance) { + public QueryParametersMapBuilder getBuilderAfterSelf(Map instance) { return this; } } @@ -190,7 +190,7 @@ public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters1Bo @Nullable Object getData(); } - public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(Fakeparametercollisions1ababselfabPostQueryParameters13 data) implements Fakeparametercollisions1ababselfabPostQueryParameters1Boxed { + public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(QueryParametersMap data) implements Fakeparametercollisions1ababselfabPostQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -198,7 +198,7 @@ public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(Fak } - public static class Fakeparametercollisions1ababselfabPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class Fakeparametercollisions1ababselfabPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Fakeparametercollisions1ababselfabPostQueryParameters1 instance = null; protected Fakeparametercollisions1ababselfabPostQueryParameters1() { @@ -211,7 +211,7 @@ protected Fakeparametercollisions1ababselfabPostQueryParameters1() { new PropertyEntry("A-B", Schema4.Schema41.class), new PropertyEntry("self", Schema3.Schema31.class) )) - .additionalProperties(Fakeparametercollisions1ababselfabPostQueryParameters8.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -222,7 +222,7 @@ public static Fakeparametercollisions1ababselfabPostQueryParameters1 getInstance return instance; } - public Fakeparametercollisions1ababselfabPostQueryParameters13 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -242,10 +242,10 @@ public Fakeparametercollisions1ababselfabPostQueryParameters13 getNewInstance(Ma properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new Fakeparametercollisions1ababselfabPostQueryParameters13(castProperties); + return new QueryParametersMap(castProperties); } - public Fakeparametercollisions1ababselfabPostQueryParameters13 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java index 5867949c800..fd6b7ef0c56 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java @@ -105,14 +105,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters; + public FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters; public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( - FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters, + FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters, FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody, ServerInfo.@Nullable ServerIndex serverIndex, FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -127,7 +127,7 @@ public PostRequest( } public static class PostNullableRequest { - public FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters; + public FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable PathParametersMap pathParameters; public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -177,7 +177,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters9 pathParameters) { + default T pathParameters(FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java index daf4fbf7ecf..caf128e85f0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java @@ -29,27 +29,27 @@ public class FakepetiduploadimagewithrequiredfilePostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class FakepetiduploadimagewithrequiredfilePostPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakepetiduploadimagewithrequiredfilePostPathParameters4 instance = null; - public static FakepetiduploadimagewithrequiredfilePostPathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakepetiduploadimagewithrequiredfilePostPathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakepetiduploadimagewithrequiredfilePostPathParameters9 extends FrozenMap { - protected FakepetiduploadimagewithrequiredfilePostPathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static FakepetiduploadimagewithrequiredfilePostPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakepetiduploadimagewithrequiredfilePostPathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForFakepetiduploadimagewithrequiredfilePostPathParameters2 { + public interface SetterForPetId { Map getInstance(); - T getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(Map instance); + T getBuilderAfterPetId(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(instance); + return getBuilderAfterPetId(instance); } } - public static class FakepetiduploadimagewithrequiredfilePostPathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class FakepetiduploadimagewithrequiredfilePostPathParameters10 imp public Set getKnownKeys() { return knownKeys; } - public FakepetiduploadimagewithrequiredfilePostPathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class FakepetiduploadimagewithrequiredfilePostPathParameters8 implements SetterForFakepetiduploadimagewithrequiredfilePostPathParameters2 { + public static class PathParametersMapBuilder implements SetterForPetId { private final Map instance; - public FakepetiduploadimagewithrequiredfilePostPathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakepetiduploadimagewithrequiredfilePostPathParameters10 getBuilderAfterFakepetiduploadimagewithrequiredfilePostPathParameters2(Map instance) { - return new FakepetiduploadimagewithrequiredfilePostPathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -125,7 +125,7 @@ public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters1B @Nullable Object getData(); } - public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(FakepetiduploadimagewithrequiredfilePostPathParameters9 data) implements FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed { + public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(PathParametersMap data) implements FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(Fa } - public static class FakepetiduploadimagewithrequiredfilePostPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakepetiduploadimagewithrequiredfilePostPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakepetiduploadimagewithrequiredfilePostPathParameters1 instance = null; protected FakepetiduploadimagewithrequiredfilePostPathParameters1() { @@ -145,7 +145,7 @@ protected FakepetiduploadimagewithrequiredfilePostPathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(FakepetiduploadimagewithrequiredfilePostPathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -156,7 +156,7 @@ public static FakepetiduploadimagewithrequiredfilePostPathParameters1 getInstanc return instance; } - public FakepetiduploadimagewithrequiredfilePostPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public FakepetiduploadimagewithrequiredfilePostPathParameters9 getNewInstance(Ma properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new FakepetiduploadimagewithrequiredfilePostPathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public FakepetiduploadimagewithrequiredfilePostPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java index a30275e8737..8bdb49fe044 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java @@ -80,12 +80,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters; + public FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters, + FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public GetRequest( } public static class GetNullableRequest { - public FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters; + public FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters9 queryParameters) { + default T queryParameters(FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java index 5d3e868be18..e9336753ff1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java @@ -29,27 +29,27 @@ public class FakequeryparamwithjsoncontenttypeGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakequeryparamwithjsoncontenttypeGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters4 instance = null; - public static FakequeryparamwithjsoncontenttypeGetQueryParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakequeryparamwithjsoncontenttypeGetQueryParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakequeryparamwithjsoncontenttypeGetQueryParameters9 extends FrozenMap<@Nullable Object> { - protected FakequeryparamwithjsoncontenttypeGetQueryParameters9(FrozenMap<@Nullable Object> m) { + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( "someParam" ); public static final Set optionalKeys = Set.of(); - public static FakequeryparamwithjsoncontenttypeGetQueryParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FakequeryparamwithjsoncontenttypeGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -62,66 +62,66 @@ public static FakequeryparamwithjsoncontenttypeGetQueryParameters9 of(Map { + public interface SetterForSomeParam { Map getInstance(); - T getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(Map instance); + T getBuilderAfterSomeParam(Map instance); default T someParam(Void value) { var instance = getInstance(); instance.put("someParam", null); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); + return getBuilderAfterSomeParam(instance); } default T someParam(boolean value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); + return getBuilderAfterSomeParam(instance); } default T someParam(String value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); + return getBuilderAfterSomeParam(instance); } default T someParam(int value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); + return getBuilderAfterSomeParam(instance); } default T someParam(float value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); + return getBuilderAfterSomeParam(instance); } default T someParam(long value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); + return getBuilderAfterSomeParam(instance); } default T someParam(double value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); + return getBuilderAfterSomeParam(instance); } default T someParam(List value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); + return getBuilderAfterSomeParam(instance); } default T someParam(Map value) { var instance = getInstance(); instance.put("someParam", value); - return getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(instance); + return getBuilderAfterSomeParam(instance); } } - public static class FakequeryparamwithjsoncontenttypeGetQueryParameters10 implements GenericBuilder> { + public static class QueryParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "someParam" @@ -129,7 +129,7 @@ public static class FakequeryparamwithjsoncontenttypeGetQueryParameters10 implem public Set getKnownKeys() { return knownKeys; } - public FakequeryparamwithjsoncontenttypeGetQueryParameters10(Map instance) { + public QueryParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -137,16 +137,16 @@ public FakequeryparamwithjsoncontenttypeGetQueryParameters10(Map { + public static class QueryParametersMapBuilder implements SetterForSomeParam { private final Map instance; - public FakequeryparamwithjsoncontenttypeGetQueryParameters8() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FakequeryparamwithjsoncontenttypeGetQueryParameters10 getBuilderAfterFakequeryparamwithjsoncontenttypeGetQueryParameters2(Map instance) { - return new FakequeryparamwithjsoncontenttypeGetQueryParameters10(instance); + public QueryParametersMap0Builder getBuilderAfterSomeParam(Map instance) { + return new QueryParametersMap0Builder(instance); } } @@ -155,7 +155,7 @@ public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxe @Nullable Object getData(); } - public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(FakequeryparamwithjsoncontenttypeGetQueryParameters9 data) implements FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed { + public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -163,7 +163,7 @@ public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(Fakeq } - public static class FakequeryparamwithjsoncontenttypeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakequeryparamwithjsoncontenttypeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters1 instance = null; protected FakequeryparamwithjsoncontenttypeGetQueryParameters1() { @@ -175,7 +175,7 @@ protected FakequeryparamwithjsoncontenttypeGetQueryParameters1() { .required(Set.of( "someParam" )) - .additionalProperties(FakequeryparamwithjsoncontenttypeGetQueryParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -186,7 +186,7 @@ public static FakequeryparamwithjsoncontenttypeGetQueryParameters1 getInstance() return instance; } - public FakequeryparamwithjsoncontenttypeGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -209,10 +209,10 @@ public FakequeryparamwithjsoncontenttypeGetQueryParameters9 getNewInstance(Map castProperties = new FrozenMap<>(properties); - return new FakequeryparamwithjsoncontenttypeGetQueryParameters9(castProperties); + return new QueryParametersMap(castProperties); } - public FakequeryparamwithjsoncontenttypeGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java index 3c4270e9cd3..bfeb63f2c6e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java @@ -83,7 +83,7 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public FakerefobjinqueryGetQueryParameters.@Nullable FakerefobjinqueryGetQueryParameters9 queryParameters; + public FakerefobjinqueryGetQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -91,7 +91,7 @@ public static class GetRequest { public interface SetterForQueryParameters { GetRequest getInstance(); T getBuilderAfterQueryParameters(GetRequest instance); - default T queryParameters(FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters9 queryParameters) { + default T queryParameters(FakerefobjinqueryGetQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java index 3077f7bc561..8fd0df37aa2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java @@ -29,27 +29,27 @@ public class FakerefobjinqueryGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FakerefobjinqueryGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FakerefobjinqueryGetQueryParameters4 instance = null; - public static FakerefobjinqueryGetQueryParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FakerefobjinqueryGetQueryParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class FakerefobjinqueryGetQueryParameters9 extends FrozenMap { - protected FakerefobjinqueryGetQueryParameters9(FrozenMap m) { + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "mapBean" ); - public static FakerefobjinqueryGetQueryParameters9 of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { return FakerefobjinqueryGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public Foo.FooMap mapBean() throws UnsetPropertyException { } } - public interface SetterForFakerefobjinqueryGetQueryParameters2 { + public interface SetterForMapBean { Map> getInstance(); - T getBuilderAfterFakerefobjinqueryGetQueryParameters2(Map> instance); + T getBuilderAfterMapBean(Map> instance); default T mapBean(Map value) { var instance = getInstance(); instance.put("mapBean", value); - return getBuilderAfterFakerefobjinqueryGetQueryParameters2(instance); + return getBuilderAfterMapBean(instance); } } - public static class FakerefobjinqueryGetQueryParameters8 implements GenericBuilder>>, SetterForFakerefobjinqueryGetQueryParameters2 { + public static class QueryParametersMapBuilder implements GenericBuilder>>, SetterForMapBean { private final Map> instance; private static final Set knownKeys = Set.of( "mapBean" @@ -77,7 +77,7 @@ public static class FakerefobjinqueryGetQueryParameters8 implements GenericBuild public Set getKnownKeys() { return knownKeys; } - public FakerefobjinqueryGetQueryParameters8() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map> build() { @@ -86,7 +86,7 @@ public FakerefobjinqueryGetQueryParameters8() { public Map> getInstance() { return instance; } - public FakerefobjinqueryGetQueryParameters8 getBuilderAfterFakerefobjinqueryGetQueryParameters2(Map> instance) { + public QueryParametersMapBuilder getBuilderAfterMapBean(Map> instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface FakerefobjinqueryGetQueryParameters1Boxed permits Fakere @Nullable Object getData(); } - public record FakerefobjinqueryGetQueryParameters1BoxedMap(FakerefobjinqueryGetQueryParameters9 data) implements FakerefobjinqueryGetQueryParameters1Boxed { + public record FakerefobjinqueryGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakerefobjinqueryGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record FakerefobjinqueryGetQueryParameters1BoxedMap(FakerefobjinqueryGetQ } - public static class FakerefobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FakerefobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FakerefobjinqueryGetQueryParameters1 instance = null; protected FakerefobjinqueryGetQueryParameters1() { @@ -113,7 +113,7 @@ protected FakerefobjinqueryGetQueryParameters1() { .properties(Map.ofEntries( new PropertyEntry("mapBean", Foo.Foo1.class) )) - .additionalProperties(FakerefobjinqueryGetQueryParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -124,7 +124,7 @@ public static FakerefobjinqueryGetQueryParameters1 getInstance() { return instance; } - public FakerefobjinqueryGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public FakerefobjinqueryGetQueryParameters9 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new FakerefobjinqueryGetQueryParameters9(castProperties); + return new QueryParametersMap(castProperties); } - public FakerefobjinqueryGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java index db1c7e3473c..96c3e8d5b4d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java @@ -80,12 +80,12 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class PutRequest { - public FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters; + public FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( - FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters, + FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public PutRequest( } public static class PutNullableRequest { - public FaketestqueryparamtersPutQueryParameters.@Nullable FaketestqueryparamtersPutQueryParameters14 queryParameters; + public FaketestqueryparamtersPutQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { PutNullableRequest getInstance(); T getBuilderAfterQueryParameters(PutNullableRequest instance); - default T queryParameters(FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters14 queryParameters) { + default T queryParameters(FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java index 2073d38490d..91dbcc45d71 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java @@ -34,20 +34,20 @@ public class FaketestqueryparamtersPutQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class FaketestqueryparamtersPutQueryParameters9 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FaketestqueryparamtersPutQueryParameters9 instance = null; - public static FaketestqueryparamtersPutQueryParameters9 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FaketestqueryparamtersPutQueryParameters9(); + instance = new AdditionalProperties(); } return instance; } } - public static class FaketestqueryparamtersPutQueryParameters14 extends FrozenMap<@Nullable Object> { - protected FaketestqueryparamtersPutQueryParameters14(FrozenMap<@Nullable Object> m) { + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -59,7 +59,7 @@ protected FaketestqueryparamtersPutQueryParameters14(FrozenMap<@Nullable Object> "url" ); public static final Set optionalKeys = Set.of(); - public static FaketestqueryparamtersPutQueryParameters14 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FaketestqueryparamtersPutQueryParameters1.getInstance().validate(arg, configuration); } @@ -112,73 +112,73 @@ public Schema3.SchemaList3 url() { } } - public interface SetterForFaketestqueryparamtersPutQueryParameters4 { + public interface SetterForContext { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance); + T getBuilderAfterContext(Map instance); default T context(List value) { var instance = getInstance(); instance.put("context", value); - return getBuilderAfterFaketestqueryparamtersPutQueryParameters4(instance); + return getBuilderAfterContext(instance); } } - public interface SetterForFaketestqueryparamtersPutQueryParameters5 { + public interface SetterForHttp { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance); + T getBuilderAfterHttp(Map instance); default T http(List value) { var instance = getInstance(); instance.put("http", value); - return getBuilderAfterFaketestqueryparamtersPutQueryParameters5(instance); + return getBuilderAfterHttp(instance); } } - public interface SetterForFaketestqueryparamtersPutQueryParameters3 { + public interface SetterForIoutil { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance); + T getBuilderAfterIoutil(Map instance); default T ioutil(List value) { var instance = getInstance(); instance.put("ioutil", value); - return getBuilderAfterFaketestqueryparamtersPutQueryParameters3(instance); + return getBuilderAfterIoutil(instance); } } - public interface SetterForFaketestqueryparamtersPutQueryParameters6 { + public interface SetterForPipe { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance); + T getBuilderAfterPipe(Map instance); default T pipe(List value) { var instance = getInstance(); instance.put("pipe", value); - return getBuilderAfterFaketestqueryparamtersPutQueryParameters6(instance); + return getBuilderAfterPipe(instance); } } - public interface SetterForFaketestqueryparamtersPutQueryParameters2 { + public interface SetterForRefParam { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance); + T getBuilderAfterRefParam(Map instance); default T refParam(String value) { var instance = getInstance(); instance.put("refParam", value); - return getBuilderAfterFaketestqueryparamtersPutQueryParameters2(instance); + return getBuilderAfterRefParam(instance); } } - public interface SetterForFaketestqueryparamtersPutQueryParameters7 { + public interface SetterForUrl { Map getInstance(); - T getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance); + T getBuilderAfterUrl(Map instance); default T url(List value) { var instance = getInstance(); instance.put("url", value); - return getBuilderAfterFaketestqueryparamtersPutQueryParameters7(instance); + return getBuilderAfterUrl(instance); } } - public static class FaketestqueryparamtersPutQueryParameters15 implements GenericBuilder> { + public static class QueryParametersMap000000Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "context", @@ -191,7 +191,7 @@ public static class FaketestqueryparamtersPutQueryParameters15 implements Generi public Set getKnownKeys() { return knownKeys; } - public FaketestqueryparamtersPutQueryParameters15(Map instance) { + public QueryParametersMap000000Builder(Map instance) { this.instance = instance; } public Map build() { @@ -199,1209 +199,1209 @@ public FaketestqueryparamtersPutQueryParameters15(Map } } - public static class FaketestqueryparamtersPutQueryParameters16 implements SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap000001Builder implements SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters16(Map instance) { + public QueryParametersMap000001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters15(instance); + public QueryParametersMap000000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap000000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters17 implements SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap000010Builder implements SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters17(Map instance) { + public QueryParametersMap000010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters15(instance); + public QueryParametersMap000000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap000000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters18 implements SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap000011Builder implements SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters18(Map instance) { + public QueryParametersMap000011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters16 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters16(instance); + public QueryParametersMap000001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap000001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters17 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters17(instance); + public QueryParametersMap000010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap000010Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters19 implements SetterForFaketestqueryparamtersPutQueryParameters6 { + public static class QueryParametersMap000100Builder implements SetterForPipe { private final Map instance; - public FaketestqueryparamtersPutQueryParameters19(Map instance) { + public QueryParametersMap000100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters15(instance); + public QueryParametersMap000000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap000000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters20 implements SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap000101Builder implements SetterForPipe, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters20(Map instance) { + public QueryParametersMap000101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters16 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters16(instance); + public QueryParametersMap000001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap000001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters19 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters19(instance); + public QueryParametersMap000100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap000100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters21 implements SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap000110Builder implements SetterForPipe, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters21(Map instance) { + public QueryParametersMap000110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters17 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters17(instance); + public QueryParametersMap000010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap000010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters19 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters19(instance); + public QueryParametersMap000100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap000100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters22 implements SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap000111Builder implements SetterForPipe, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters22(Map instance) { + public QueryParametersMap000111Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters18 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters18(instance); + public QueryParametersMap000011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap000011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters20 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters20(instance); + public QueryParametersMap000101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap000101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters21 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters21(instance); + public QueryParametersMap000110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap000110Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters23 implements SetterForFaketestqueryparamtersPutQueryParameters3 { + public static class QueryParametersMap001000Builder implements SetterForIoutil { private final Map instance; - public FaketestqueryparamtersPutQueryParameters23(Map instance) { + public QueryParametersMap001000Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters15(instance); + public QueryParametersMap000000Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters24 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap001001Builder implements SetterForIoutil, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters24(Map instance) { + public QueryParametersMap001001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters16 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters16(instance); + public QueryParametersMap000001Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters23 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters23(instance); + public QueryParametersMap001000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap001000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters25 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap001010Builder implements SetterForIoutil, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters25(Map instance) { + public QueryParametersMap001010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters17 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters17(instance); + public QueryParametersMap000010Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters23 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters23(instance); + public QueryParametersMap001000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap001000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters26 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap001011Builder implements SetterForIoutil, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters26(Map instance) { + public QueryParametersMap001011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters18 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters18(instance); + public QueryParametersMap000011Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters24 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters24(instance); + public QueryParametersMap001001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap001001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters25 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters25(instance); + public QueryParametersMap001010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap001010Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters27 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6 { + public static class QueryParametersMap001100Builder implements SetterForIoutil, SetterForPipe { private final Map instance; - public FaketestqueryparamtersPutQueryParameters27(Map instance) { + public QueryParametersMap001100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters19 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters19(instance); + public QueryParametersMap000100Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters23 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters23(instance); + public QueryParametersMap001000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap001000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters28 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap001101Builder implements SetterForIoutil, SetterForPipe, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters28(Map instance) { + public QueryParametersMap001101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters20 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters20(instance); + public QueryParametersMap000101Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters24 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters24(instance); + public QueryParametersMap001001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap001001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters27 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters27(instance); + public QueryParametersMap001100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap001100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters29 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap001110Builder implements SetterForIoutil, SetterForPipe, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters29(Map instance) { + public QueryParametersMap001110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters21 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters21(instance); + public QueryParametersMap000110Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters25 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters25(instance); + public QueryParametersMap001010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap001010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters27 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters27(instance); + public QueryParametersMap001100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap001100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters30 implements SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap001111Builder implements SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters30(Map instance) { + public QueryParametersMap001111Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters22 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters22(instance); + public QueryParametersMap000111Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters26 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters26(instance); + public QueryParametersMap001011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap001011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters28 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters28(instance); + public QueryParametersMap001101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap001101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters29 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters29(instance); + public QueryParametersMap001110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap001110Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters31 implements SetterForFaketestqueryparamtersPutQueryParameters5 { + public static class QueryParametersMap010000Builder implements SetterForHttp { private final Map instance; - public FaketestqueryparamtersPutQueryParameters31(Map instance) { + public QueryParametersMap010000Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters15(instance); + public QueryParametersMap000000Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters32 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap010001Builder implements SetterForHttp, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters32(Map instance) { + public QueryParametersMap010001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters16 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters16(instance); + public QueryParametersMap000001Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters31 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters31(instance); + public QueryParametersMap010000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap010000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters33 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap010010Builder implements SetterForHttp, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters33(Map instance) { + public QueryParametersMap010010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters17 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters17(instance); + public QueryParametersMap000010Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters31 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters31(instance); + public QueryParametersMap010000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap010000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters34 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap010011Builder implements SetterForHttp, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters34(Map instance) { + public QueryParametersMap010011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters18 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters18(instance); + public QueryParametersMap000011Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters32 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters32(instance); + public QueryParametersMap010001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap010001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters33 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters33(instance); + public QueryParametersMap010010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap010010Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters35 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6 { + public static class QueryParametersMap010100Builder implements SetterForHttp, SetterForPipe { private final Map instance; - public FaketestqueryparamtersPutQueryParameters35(Map instance) { + public QueryParametersMap010100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters19 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters19(instance); + public QueryParametersMap000100Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters31 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters31(instance); + public QueryParametersMap010000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap010000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters36 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap010101Builder implements SetterForHttp, SetterForPipe, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters36(Map instance) { + public QueryParametersMap010101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters20 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters20(instance); + public QueryParametersMap000101Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters32 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters32(instance); + public QueryParametersMap010001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap010001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters35 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters35(instance); + public QueryParametersMap010100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap010100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters37 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap010110Builder implements SetterForHttp, SetterForPipe, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters37(Map instance) { + public QueryParametersMap010110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters21 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters21(instance); + public QueryParametersMap000110Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters33 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters33(instance); + public QueryParametersMap010010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap010010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters35 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters35(instance); + public QueryParametersMap010100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap010100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters38 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap010111Builder implements SetterForHttp, SetterForPipe, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters38(Map instance) { + public QueryParametersMap010111Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters22 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters22(instance); + public QueryParametersMap000111Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters34 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters34(instance); + public QueryParametersMap010011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap010011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters36 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters36(instance); + public QueryParametersMap010101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap010101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters37 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters37(instance); + public QueryParametersMap010110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap010110Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters39 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3 { + public static class QueryParametersMap011000Builder implements SetterForHttp, SetterForIoutil { private final Map instance; - public FaketestqueryparamtersPutQueryParameters39(Map instance) { + public QueryParametersMap011000Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters23 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters23(instance); + public QueryParametersMap001000Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001000Builder(instance); } - public FaketestqueryparamtersPutQueryParameters31 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters31(instance); + public QueryParametersMap010000Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters40 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap011001Builder implements SetterForHttp, SetterForIoutil, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters40(Map instance) { + public QueryParametersMap011001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters24 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters24(instance); + public QueryParametersMap001001Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters32 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters32(instance); + public QueryParametersMap010001Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters39 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters39(instance); + public QueryParametersMap011000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap011000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters41 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap011010Builder implements SetterForHttp, SetterForIoutil, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters41(Map instance) { + public QueryParametersMap011010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters25 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters25(instance); + public QueryParametersMap001010Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters33 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters33(instance); + public QueryParametersMap010010Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters39 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters39(instance); + public QueryParametersMap011000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap011000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters42 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap011011Builder implements SetterForHttp, SetterForIoutil, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters42(Map instance) { + public QueryParametersMap011011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters26 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters26(instance); + public QueryParametersMap001011Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters34 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters34(instance); + public QueryParametersMap010011Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters40 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters40(instance); + public QueryParametersMap011001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap011001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters41 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters41(instance); + public QueryParametersMap011010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap011010Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters43 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6 { + public static class QueryParametersMap011100Builder implements SetterForHttp, SetterForIoutil, SetterForPipe { private final Map instance; - public FaketestqueryparamtersPutQueryParameters43(Map instance) { + public QueryParametersMap011100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters27 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters27(instance); + public QueryParametersMap001100Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters35 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters35(instance); + public QueryParametersMap010100Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters39 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters39(instance); + public QueryParametersMap011000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap011000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters44 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap011101Builder implements SetterForHttp, SetterForIoutil, SetterForPipe, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters44(Map instance) { + public QueryParametersMap011101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters28 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters28(instance); + public QueryParametersMap001101Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters36 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters36(instance); + public QueryParametersMap010101Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters40 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters40(instance); + public QueryParametersMap011001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap011001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters43 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters43(instance); + public QueryParametersMap011100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap011100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters45 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap011110Builder implements SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters45(Map instance) { + public QueryParametersMap011110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters29 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters29(instance); + public QueryParametersMap001110Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters37 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters37(instance); + public QueryParametersMap010110Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters41 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters41(instance); + public QueryParametersMap011010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap011010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters43 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters43(instance); + public QueryParametersMap011100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap011100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters46 implements SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap011111Builder implements SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters46(Map instance) { + public QueryParametersMap011111Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters30 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters30(instance); + public QueryParametersMap001111Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters38 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters38(instance); + public QueryParametersMap010111Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters42 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters42(instance); + public QueryParametersMap011011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap011011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters44 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters44(instance); + public QueryParametersMap011101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap011101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters45 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters45(instance); + public QueryParametersMap011110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap011110Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters47 implements SetterForFaketestqueryparamtersPutQueryParameters4 { + public static class QueryParametersMap100000Builder implements SetterForContext { private final Map instance; - public FaketestqueryparamtersPutQueryParameters47(Map instance) { + public QueryParametersMap100000Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters15 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters15(instance); + public QueryParametersMap000000Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters48 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap100001Builder implements SetterForContext, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters48(Map instance) { + public QueryParametersMap100001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters16 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters16(instance); + public QueryParametersMap000001Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters47 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters47(instance); + public QueryParametersMap100000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap100000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters49 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap100010Builder implements SetterForContext, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters49(Map instance) { + public QueryParametersMap100010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters17 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters17(instance); + public QueryParametersMap000010Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters47 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters47(instance); + public QueryParametersMap100000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap100000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters50 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap100011Builder implements SetterForContext, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters50(Map instance) { + public QueryParametersMap100011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters18 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters18(instance); + public QueryParametersMap000011Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters48 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters48(instance); + public QueryParametersMap100001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap100001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters49 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters49(instance); + public QueryParametersMap100010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap100010Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters51 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters6 { + public static class QueryParametersMap100100Builder implements SetterForContext, SetterForPipe { private final Map instance; - public FaketestqueryparamtersPutQueryParameters51(Map instance) { + public QueryParametersMap100100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters19 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters19(instance); + public QueryParametersMap000100Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters47 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters47(instance); + public QueryParametersMap100000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap100000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters52 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap100101Builder implements SetterForContext, SetterForPipe, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters52(Map instance) { + public QueryParametersMap100101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters20 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters20(instance); + public QueryParametersMap000101Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters48 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters48(instance); + public QueryParametersMap100001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap100001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters51 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters51(instance); + public QueryParametersMap100100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap100100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters53 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap100110Builder implements SetterForContext, SetterForPipe, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters53(Map instance) { + public QueryParametersMap100110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters21 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters21(instance); + public QueryParametersMap000110Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters49 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters49(instance); + public QueryParametersMap100010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap100010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters51 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters51(instance); + public QueryParametersMap100100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap100100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters54 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap100111Builder implements SetterForContext, SetterForPipe, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters54(Map instance) { + public QueryParametersMap100111Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters22 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters22(instance); + public QueryParametersMap000111Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters50 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters50(instance); + public QueryParametersMap100011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap100011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters52 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters52(instance); + public QueryParametersMap100101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap100101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters53 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters53(instance); + public QueryParametersMap100110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap100110Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters55 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3 { + public static class QueryParametersMap101000Builder implements SetterForContext, SetterForIoutil { private final Map instance; - public FaketestqueryparamtersPutQueryParameters55(Map instance) { + public QueryParametersMap101000Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters23 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters23(instance); + public QueryParametersMap001000Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001000Builder(instance); } - public FaketestqueryparamtersPutQueryParameters47 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters47(instance); + public QueryParametersMap100000Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters56 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap101001Builder implements SetterForContext, SetterForIoutil, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters56(Map instance) { + public QueryParametersMap101001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters24 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters24(instance); + public QueryParametersMap001001Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters48 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters48(instance); + public QueryParametersMap100001Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters55 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters55(instance); + public QueryParametersMap101000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap101000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters57 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap101010Builder implements SetterForContext, SetterForIoutil, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters57(Map instance) { + public QueryParametersMap101010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters25 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters25(instance); + public QueryParametersMap001010Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters49 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters49(instance); + public QueryParametersMap100010Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters55 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters55(instance); + public QueryParametersMap101000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap101000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters58 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap101011Builder implements SetterForContext, SetterForIoutil, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters58(Map instance) { + public QueryParametersMap101011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters26 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters26(instance); + public QueryParametersMap001011Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters50 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters50(instance); + public QueryParametersMap100011Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters56 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters56(instance); + public QueryParametersMap101001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap101001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters57 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters57(instance); + public QueryParametersMap101010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap101010Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters59 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6 { + public static class QueryParametersMap101100Builder implements SetterForContext, SetterForIoutil, SetterForPipe { private final Map instance; - public FaketestqueryparamtersPutQueryParameters59(Map instance) { + public QueryParametersMap101100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters27 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters27(instance); + public QueryParametersMap001100Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters51 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters51(instance); + public QueryParametersMap100100Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters55 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters55(instance); + public QueryParametersMap101000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap101000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters60 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap101101Builder implements SetterForContext, SetterForIoutil, SetterForPipe, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters60(Map instance) { + public QueryParametersMap101101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters28 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters28(instance); + public QueryParametersMap001101Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters52 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters52(instance); + public QueryParametersMap100101Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters56 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters56(instance); + public QueryParametersMap101001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap101001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters59 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters59(instance); + public QueryParametersMap101100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap101100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters61 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap101110Builder implements SetterForContext, SetterForIoutil, SetterForPipe, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters61(Map instance) { + public QueryParametersMap101110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters29 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters29(instance); + public QueryParametersMap001110Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters53 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters53(instance); + public QueryParametersMap100110Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters57 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters57(instance); + public QueryParametersMap101010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap101010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters59 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters59(instance); + public QueryParametersMap101100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap101100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters62 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap101111Builder implements SetterForContext, SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters62(Map instance) { + public QueryParametersMap101111Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters30 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters30(instance); + public QueryParametersMap001111Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters54 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters54(instance); + public QueryParametersMap100111Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters58 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters58(instance); + public QueryParametersMap101011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap101011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters60 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters60(instance); + public QueryParametersMap101101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap101101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters61 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters61(instance); + public QueryParametersMap101110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap101110Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters63 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5 { + public static class QueryParametersMap110000Builder implements SetterForContext, SetterForHttp { private final Map instance; - public FaketestqueryparamtersPutQueryParameters63(Map instance) { + public QueryParametersMap110000Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters31 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters31(instance); + public QueryParametersMap010000Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010000Builder(instance); } - public FaketestqueryparamtersPutQueryParameters47 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters47(instance); + public QueryParametersMap100000Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters64 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap110001Builder implements SetterForContext, SetterForHttp, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters64(Map instance) { + public QueryParametersMap110001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters32 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters32(instance); + public QueryParametersMap010001Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters48 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters48(instance); + public QueryParametersMap100001Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters63 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters63(instance); + public QueryParametersMap110000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap110000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters65 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap110010Builder implements SetterForContext, SetterForHttp, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters65(Map instance) { + public QueryParametersMap110010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters33 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters33(instance); + public QueryParametersMap010010Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters49 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters49(instance); + public QueryParametersMap100010Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters63 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters63(instance); + public QueryParametersMap110000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap110000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters66 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap110011Builder implements SetterForContext, SetterForHttp, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters66(Map instance) { + public QueryParametersMap110011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters34 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters34(instance); + public QueryParametersMap010011Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters50 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters50(instance); + public QueryParametersMap100011Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters64 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters64(instance); + public QueryParametersMap110001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap110001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters65 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters65(instance); + public QueryParametersMap110010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap110010Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters67 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6 { + public static class QueryParametersMap110100Builder implements SetterForContext, SetterForHttp, SetterForPipe { private final Map instance; - public FaketestqueryparamtersPutQueryParameters67(Map instance) { + public QueryParametersMap110100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters35 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters35(instance); + public QueryParametersMap010100Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters51 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters51(instance); + public QueryParametersMap100100Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters63 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters63(instance); + public QueryParametersMap110000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap110000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters68 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap110101Builder implements SetterForContext, SetterForHttp, SetterForPipe, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters68(Map instance) { + public QueryParametersMap110101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters36 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters36(instance); + public QueryParametersMap010101Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters52 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters52(instance); + public QueryParametersMap100101Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters64 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters64(instance); + public QueryParametersMap110001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap110001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters67 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters67(instance); + public QueryParametersMap110100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap110100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters69 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap110110Builder implements SetterForContext, SetterForHttp, SetterForPipe, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters69(Map instance) { + public QueryParametersMap110110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters37 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters37(instance); + public QueryParametersMap010110Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters53 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters53(instance); + public QueryParametersMap100110Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters65 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters65(instance); + public QueryParametersMap110010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap110010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters67 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters67(instance); + public QueryParametersMap110100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap110100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters70 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap110111Builder implements SetterForContext, SetterForHttp, SetterForPipe, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters70(Map instance) { + public QueryParametersMap110111Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters38 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters38(instance); + public QueryParametersMap010111Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters54 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters54(instance); + public QueryParametersMap100111Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters66 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters66(instance); + public QueryParametersMap110011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap110011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters68 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters68(instance); + public QueryParametersMap110101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap110101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters69 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters69(instance); + public QueryParametersMap110110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap110110Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters71 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3 { + public static class QueryParametersMap111000Builder implements SetterForContext, SetterForHttp, SetterForIoutil { private final Map instance; - public FaketestqueryparamtersPutQueryParameters71(Map instance) { + public QueryParametersMap111000Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters39 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters39(instance); + public QueryParametersMap011000Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011000Builder(instance); } - public FaketestqueryparamtersPutQueryParameters55 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters55(instance); + public QueryParametersMap101000Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101000Builder(instance); } - public FaketestqueryparamtersPutQueryParameters63 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters63(instance); + public QueryParametersMap110000Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters72 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap111001Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters72(Map instance) { + public QueryParametersMap111001Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters40 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters40(instance); + public QueryParametersMap011001Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters56 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters56(instance); + public QueryParametersMap101001Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters64 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters64(instance); + public QueryParametersMap110001Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters71 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters71(instance); + public QueryParametersMap111000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap111000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters73 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap111010Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters73(Map instance) { + public QueryParametersMap111010Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters41 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters41(instance); + public QueryParametersMap011010Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters57 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters57(instance); + public QueryParametersMap101010Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters65 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters65(instance); + public QueryParametersMap110010Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters71 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters71(instance); + public QueryParametersMap111000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap111000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters74 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap111011Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters74(Map instance) { + public QueryParametersMap111011Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters42 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters42(instance); + public QueryParametersMap011011Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters58 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters58(instance); + public QueryParametersMap101011Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters66 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters66(instance); + public QueryParametersMap110011Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters72 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters72(instance); + public QueryParametersMap111001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap111001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters73 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters73(instance); + public QueryParametersMap111010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap111010Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters75 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6 { + public static class QueryParametersMap111100Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe { private final Map instance; - public FaketestqueryparamtersPutQueryParameters75(Map instance) { + public QueryParametersMap111100Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters43 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters43(instance); + public QueryParametersMap011100Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters59 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters59(instance); + public QueryParametersMap101100Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters67 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters67(instance); + public QueryParametersMap110100Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110100Builder(instance); } - public FaketestqueryparamtersPutQueryParameters71 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters71(instance); + public QueryParametersMap111000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap111000Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters76 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMap111101Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters76(Map instance) { + public QueryParametersMap111101Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters44 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters44(instance); + public QueryParametersMap011101Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters60 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters60(instance); + public QueryParametersMap101101Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters68 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters68(instance); + public QueryParametersMap110101Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters72 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters72(instance); + public QueryParametersMap111001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap111001Builder(instance); } - public FaketestqueryparamtersPutQueryParameters75 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters75(instance); + public QueryParametersMap111100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap111100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters77 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2 { + public static class QueryParametersMap111110Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam { private final Map instance; - public FaketestqueryparamtersPutQueryParameters77(Map instance) { + public QueryParametersMap111110Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters45 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters45(instance); + public QueryParametersMap011110Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters61 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters61(instance); + public QueryParametersMap101110Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters69 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters69(instance); + public QueryParametersMap110110Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110110Builder(instance); } - public FaketestqueryparamtersPutQueryParameters73 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters73(instance); + public QueryParametersMap111010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap111010Builder(instance); } - public FaketestqueryparamtersPutQueryParameters75 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters75(instance); + public QueryParametersMap111100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap111100Builder(instance); } } - public static class FaketestqueryparamtersPutQueryParameters13 implements SetterForFaketestqueryparamtersPutQueryParameters4, SetterForFaketestqueryparamtersPutQueryParameters5, SetterForFaketestqueryparamtersPutQueryParameters3, SetterForFaketestqueryparamtersPutQueryParameters6, SetterForFaketestqueryparamtersPutQueryParameters2, SetterForFaketestqueryparamtersPutQueryParameters7 { + public static class QueryParametersMapBuilder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { private final Map instance; - public FaketestqueryparamtersPutQueryParameters13() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters46 getBuilderAfterFaketestqueryparamtersPutQueryParameters4(Map instance) { - return new FaketestqueryparamtersPutQueryParameters46(instance); + public QueryParametersMap011111Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters62 getBuilderAfterFaketestqueryparamtersPutQueryParameters5(Map instance) { - return new FaketestqueryparamtersPutQueryParameters62(instance); + public QueryParametersMap101111Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters70 getBuilderAfterFaketestqueryparamtersPutQueryParameters3(Map instance) { - return new FaketestqueryparamtersPutQueryParameters70(instance); + public QueryParametersMap110111Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110111Builder(instance); } - public FaketestqueryparamtersPutQueryParameters74 getBuilderAfterFaketestqueryparamtersPutQueryParameters6(Map instance) { - return new FaketestqueryparamtersPutQueryParameters74(instance); + public QueryParametersMap111011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap111011Builder(instance); } - public FaketestqueryparamtersPutQueryParameters76 getBuilderAfterFaketestqueryparamtersPutQueryParameters2(Map instance) { - return new FaketestqueryparamtersPutQueryParameters76(instance); + public QueryParametersMap111101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap111101Builder(instance); } - public FaketestqueryparamtersPutQueryParameters77 getBuilderAfterFaketestqueryparamtersPutQueryParameters7(Map instance) { - return new FaketestqueryparamtersPutQueryParameters77(instance); + public QueryParametersMap111110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap111110Builder(instance); } } @@ -1410,7 +1410,7 @@ public sealed interface FaketestqueryparamtersPutQueryParameters1Boxed permits F @Nullable Object getData(); } - public record FaketestqueryparamtersPutQueryParameters1BoxedMap(FaketestqueryparamtersPutQueryParameters14 data) implements FaketestqueryparamtersPutQueryParameters1Boxed { + public record FaketestqueryparamtersPutQueryParameters1BoxedMap(QueryParametersMap data) implements FaketestqueryparamtersPutQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -1418,7 +1418,7 @@ public record FaketestqueryparamtersPutQueryParameters1BoxedMap(Faketestquerypar } - public static class FaketestqueryparamtersPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class FaketestqueryparamtersPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FaketestqueryparamtersPutQueryParameters1 instance = null; protected FaketestqueryparamtersPutQueryParameters1() { @@ -1440,7 +1440,7 @@ protected FaketestqueryparamtersPutQueryParameters1() { "refParam", "url" )) - .additionalProperties(FaketestqueryparamtersPutQueryParameters9.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -1451,7 +1451,7 @@ public static FaketestqueryparamtersPutQueryParameters1 getInstance() { return instance; } - public FaketestqueryparamtersPutQueryParameters14 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -1471,10 +1471,10 @@ public FaketestqueryparamtersPutQueryParameters14 getNewInstance(Map arg, properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new FaketestqueryparamtersPutQueryParameters14(castProperties); + return new QueryParametersMap(castProperties); } - public FaketestqueryparamtersPutQueryParameters14 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java index a00fa8864f7..06657dc917f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java @@ -9,12 +9,12 @@ import java.util.AbstractMap; -public class FooGetServer1 extends ServerWithVariables { - private static FooGetServer1Variables.FooGetServer1Variables11 getVariables() { +public class FooGetServer1 extends ServerWithVariables { + private static FooGetServer1Variables.VariablesMap getVariables() { try { return FooGetServer1Variables.FooGetServer1Variables1.getInstance().validate( MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("version", FooGetServer1Variables.FooGetServer1Variables2.getInstance().defaultValue()) + new AbstractMap.SimpleEntry<>("version", FooGetServer1Variables.Version.getInstance().defaultValue()) ), new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); @@ -29,7 +29,7 @@ public FooGetServer1() { getVariables() ); } - public FooGetServer1(FooGetServer1Variables.FooGetServer1Variables11 variables) { + public FooGetServer1(FooGetServer1Variables.VariablesMap variables) { super("https://petstore.swagger.io/{version}", variables); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java index 09228a0d0a0..35368a77bd1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java @@ -33,23 +33,23 @@ public class FooGetServer1Variables { // nest classes so all schemas and input/output classes can be public - public static class FooGetServer1Variables6 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable FooGetServer1Variables6 instance = null; - public static FooGetServer1Variables6 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new FooGetServer1Variables6(); + instance = new AdditionalProperties(); } return instance; } } - public enum StringFooGetServer1Variables3 implements StringValueMethod { + public enum StringVersionEnums implements StringValueMethod { V1("v1"), V2("v2"); private final String value; - StringFooGetServer1Variables3(String value) { + StringVersionEnums(String value) { this.value = value; } public String value() { @@ -58,11 +58,11 @@ public String value() { } - public sealed interface FooGetServer1Variables2Boxed permits FooGetServer1Variables2BoxedString { + public sealed interface VersionBoxed permits VersionBoxedString { @Nullable Object getData(); } - public record FooGetServer1Variables2BoxedString(String data) implements FooGetServer1Variables2Boxed { + public record VersionBoxedString(String data) implements VersionBoxed { @Override public @Nullable Object getData() { return data; @@ -71,10 +71,10 @@ public record FooGetServer1Variables2BoxedString(String data) implements FooGetS - public static class FooGetServer1Variables2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable FooGetServer1Variables2 instance = null; + public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Version instance = null; - protected FooGetServer1Variables2() { + protected Version() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -87,9 +87,9 @@ protected FooGetServer1Variables2() { ); } - public static FooGetServer1Variables2 getInstance() { + public static Version getInstance() { if (instance == null) { - instance = new FooGetServer1Variables2(); + instance = new Version(); } return instance; } @@ -106,7 +106,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringFooGetServer1Variables3 arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -131,11 +131,11 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public FooGetServer1Variables2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new FooGetServer1Variables2BoxedString(validate(arg, configuration)); + public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new VersionBoxedString(validate(arg, configuration)); } @Override - public FooGetServer1Variables2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } @@ -143,15 +143,15 @@ public FooGetServer1Variables2Boxed validateAndBox(@Nullable Object arg, SchemaC } } - public static class FooGetServer1Variables11 extends FrozenMap { - protected FooGetServer1Variables11(FrozenMap m) { + public static class VariablesMap extends FrozenMap { + protected VariablesMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "version" ); public static final Set optionalKeys = Set.of(); - public static FooGetServer1Variables11 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return FooGetServer1Variables1.getInstance().validate(arg, configuration); } @@ -164,24 +164,24 @@ public String version() { } } - public interface SetterForFooGetServer1Variables2 { + public interface SetterForVersion { Map getInstance(); - T getBuilderAfterFooGetServer1Variables2(Map instance); + T getBuilderAfterVersion(Map instance); default T version(String value) { var instance = getInstance(); instance.put("version", value); - return getBuilderAfterFooGetServer1Variables2(instance); + return getBuilderAfterVersion(instance); } - default T version(StringFooGetServer1Variables3 value) { + default T version(StringVersionEnums value) { var instance = getInstance(); instance.put("version", value.value()); - return getBuilderAfterFooGetServer1Variables2(instance); + return getBuilderAfterVersion(instance); } } - public static class FooGetServer1Variables12 implements GenericBuilder> { + public static class VariablesMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "version" @@ -189,7 +189,7 @@ public static class FooGetServer1Variables12 implements GenericBuilder getKnownKeys() { return knownKeys; } - public FooGetServer1Variables12(Map instance) { + public VariablesMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -197,16 +197,16 @@ public Map build() { } } - public static class FooGetServer1Variables10 implements SetterForFooGetServer1Variables2 { + public static class VariablesMapBuilder implements SetterForVersion { private final Map instance; - public FooGetServer1Variables10() { + public VariablesMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public FooGetServer1Variables12 getBuilderAfterFooGetServer1Variables2(Map instance) { - return new FooGetServer1Variables12(instance); + public VariablesMap0Builder getBuilderAfterVersion(Map instance) { + return new VariablesMap0Builder(instance); } } @@ -215,7 +215,7 @@ public sealed interface FooGetServer1Variables1Boxed permits FooGetServer1Variab @Nullable Object getData(); } - public record FooGetServer1Variables1BoxedMap(FooGetServer1Variables11 data) implements FooGetServer1Variables1Boxed { + public record FooGetServer1Variables1BoxedMap(VariablesMap data) implements FooGetServer1Variables1Boxed { @Override public @Nullable Object getData() { return data; @@ -223,19 +223,19 @@ public record FooGetServer1Variables1BoxedMap(FooGetServer1Variables11 data) imp } - public static class FooGetServer1Variables1 extends JsonSchema implements MapSchemaValidator { + public static class FooGetServer1Variables1 extends JsonSchema implements MapSchemaValidator { private static @Nullable FooGetServer1Variables1 instance = null; protected FooGetServer1Variables1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( - new PropertyEntry("version", FooGetServer1Variables2.class) + new PropertyEntry("version", Version.class) )) .required(Set.of( "version" )) - .additionalProperties(FooGetServer1Variables6.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -246,7 +246,7 @@ public static FooGetServer1Variables1 getInstance() { return instance; } - public FooGetServer1Variables11 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -269,10 +269,10 @@ public FooGetServer1Variables11 getNewInstance(Map arg, List pathT properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new FooGetServer1Variables11(castProperties); + return new VariablesMap(castProperties); } - public FooGetServer1Variables11 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java index 9fed73d9e4b..d4b8b02fa41 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java @@ -93,13 +93,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters; + public PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters; public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( - PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters, + PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters, PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex, PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -112,7 +112,7 @@ public GetRequest( } public static class GetNullableRequest { - public PetfindbystatusGetQueryParameters.@Nullable PetfindbystatusGetQueryParameters9 queryParameters; + public PetfindbystatusGetQueryParameters.@Nullable QueryParametersMap queryParameters; public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; @@ -151,7 +151,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters9 queryParameters) { + default T queryParameters(PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java index 5b03c21b89c..903dcda7c49 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java @@ -30,27 +30,27 @@ public class PetfindbystatusGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class PetfindbystatusGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetfindbystatusGetQueryParameters4 instance = null; - public static PetfindbystatusGetQueryParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new PetfindbystatusGetQueryParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class PetfindbystatusGetQueryParameters9 extends FrozenMap { - protected PetfindbystatusGetQueryParameters9(FrozenMap m) { + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "status" ); public static final Set optionalKeys = Set.of(); - public static PetfindbystatusGetQueryParameters9 of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { return PetfindbystatusGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -63,18 +63,18 @@ public Schema0.SchemaList0 status() { } } - public interface SetterForPetfindbystatusGetQueryParameters2 { + public interface SetterForStatus { Map> getInstance(); - T getBuilderAfterPetfindbystatusGetQueryParameters2(Map> instance); + T getBuilderAfterStatus(Map> instance); default T status(List value) { var instance = getInstance(); instance.put("status", value); - return getBuilderAfterPetfindbystatusGetQueryParameters2(instance); + return getBuilderAfterStatus(instance); } } - public static class PetfindbystatusGetQueryParameters10 implements GenericBuilder>> { + public static class QueryParametersMap0Builder implements GenericBuilder>> { private final Map> instance; private static final Set knownKeys = Set.of( "status" @@ -82,7 +82,7 @@ public static class PetfindbystatusGetQueryParameters10 implements GenericBuilde public Set getKnownKeys() { return knownKeys; } - public PetfindbystatusGetQueryParameters10(Map> instance) { + public QueryParametersMap0Builder(Map> instance) { this.instance = instance; } public Map> build() { @@ -90,16 +90,16 @@ public Map> build() { } } - public static class PetfindbystatusGetQueryParameters8 implements SetterForPetfindbystatusGetQueryParameters2 { + public static class QueryParametersMapBuilder implements SetterForStatus { private final Map> instance; - public PetfindbystatusGetQueryParameters8() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map> getInstance() { return instance; } - public PetfindbystatusGetQueryParameters10 getBuilderAfterPetfindbystatusGetQueryParameters2(Map> instance) { - return new PetfindbystatusGetQueryParameters10(instance); + public QueryParametersMap0Builder getBuilderAfterStatus(Map> instance) { + return new QueryParametersMap0Builder(instance); } } @@ -108,7 +108,7 @@ public sealed interface PetfindbystatusGetQueryParameters1Boxed permits Petfindb @Nullable Object getData(); } - public record PetfindbystatusGetQueryParameters1BoxedMap(PetfindbystatusGetQueryParameters9 data) implements PetfindbystatusGetQueryParameters1Boxed { + public record PetfindbystatusGetQueryParameters1BoxedMap(QueryParametersMap data) implements PetfindbystatusGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -116,7 +116,7 @@ public record PetfindbystatusGetQueryParameters1BoxedMap(PetfindbystatusGetQuery } - public static class PetfindbystatusGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetfindbystatusGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetfindbystatusGetQueryParameters1 instance = null; protected PetfindbystatusGetQueryParameters1() { @@ -128,7 +128,7 @@ protected PetfindbystatusGetQueryParameters1() { .required(Set.of( "status" )) - .additionalProperties(PetfindbystatusGetQueryParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -139,7 +139,7 @@ public static PetfindbystatusGetQueryParameters1 getInstance() { return instance; } - public PetfindbystatusGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -162,10 +162,10 @@ public PetfindbystatusGetQueryParameters9 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new PetfindbystatusGetQueryParameters9(castProperties); + return new QueryParametersMap(castProperties); } - public PetfindbystatusGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java index 65bd45331cc..5d73d07d98b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java @@ -9,12 +9,12 @@ import java.util.AbstractMap; -public class PetfindbystatusServer1 extends ServerWithVariables { - private static PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11 getVariables() { +public class PetfindbystatusServer1 extends ServerWithVariables { + private static PetfindbystatusServer1Variables.VariablesMap getVariables() { try { return PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1.getInstance().validate( MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("version", PetfindbystatusServer1Variables.PetfindbystatusServer1Variables2.getInstance().defaultValue()) + new AbstractMap.SimpleEntry<>("version", PetfindbystatusServer1Variables.Version.getInstance().defaultValue()) ), new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); @@ -29,7 +29,7 @@ public PetfindbystatusServer1() { getVariables() ); } - public PetfindbystatusServer1(PetfindbystatusServer1Variables.PetfindbystatusServer1Variables11 variables) { + public PetfindbystatusServer1(PetfindbystatusServer1Variables.VariablesMap variables) { super("https://petstore.swagger.io/{version}", variables); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java index e6bc031fd26..73133822702 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java @@ -33,23 +33,23 @@ public class PetfindbystatusServer1Variables { // nest classes so all schemas and input/output classes can be public - public static class PetfindbystatusServer1Variables6 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetfindbystatusServer1Variables6 instance = null; - public static PetfindbystatusServer1Variables6 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new PetfindbystatusServer1Variables6(); + instance = new AdditionalProperties(); } return instance; } } - public enum StringPetfindbystatusServer1Variables3 implements StringValueMethod { + public enum StringVersionEnums implements StringValueMethod { V1("v1"), V2("v2"); private final String value; - StringPetfindbystatusServer1Variables3(String value) { + StringVersionEnums(String value) { this.value = value; } public String value() { @@ -58,11 +58,11 @@ public String value() { } - public sealed interface PetfindbystatusServer1Variables2Boxed permits PetfindbystatusServer1Variables2BoxedString { + public sealed interface VersionBoxed permits VersionBoxedString { @Nullable Object getData(); } - public record PetfindbystatusServer1Variables2BoxedString(String data) implements PetfindbystatusServer1Variables2Boxed { + public record VersionBoxedString(String data) implements VersionBoxed { @Override public @Nullable Object getData() { return data; @@ -71,10 +71,10 @@ public record PetfindbystatusServer1Variables2BoxedString(String data) implement - public static class PetfindbystatusServer1Variables2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable PetfindbystatusServer1Variables2 instance = null; + public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Version instance = null; - protected PetfindbystatusServer1Variables2() { + protected Version() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -87,9 +87,9 @@ protected PetfindbystatusServer1Variables2() { ); } - public static PetfindbystatusServer1Variables2 getInstance() { + public static Version getInstance() { if (instance == null) { - instance = new PetfindbystatusServer1Variables2(); + instance = new Version(); } return instance; } @@ -106,7 +106,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringPetfindbystatusServer1Variables3 arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -131,11 +131,11 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public PetfindbystatusServer1Variables2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new PetfindbystatusServer1Variables2BoxedString(validate(arg, configuration)); + public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new VersionBoxedString(validate(arg, configuration)); } @Override - public PetfindbystatusServer1Variables2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } @@ -143,15 +143,15 @@ public PetfindbystatusServer1Variables2Boxed validateAndBox(@Nullable Object arg } } - public static class PetfindbystatusServer1Variables11 extends FrozenMap { - protected PetfindbystatusServer1Variables11(FrozenMap m) { + public static class VariablesMap extends FrozenMap { + protected VariablesMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "version" ); public static final Set optionalKeys = Set.of(); - public static PetfindbystatusServer1Variables11 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetfindbystatusServer1Variables1.getInstance().validate(arg, configuration); } @@ -164,24 +164,24 @@ public String version() { } } - public interface SetterForPetfindbystatusServer1Variables2 { + public interface SetterForVersion { Map getInstance(); - T getBuilderAfterPetfindbystatusServer1Variables2(Map instance); + T getBuilderAfterVersion(Map instance); default T version(String value) { var instance = getInstance(); instance.put("version", value); - return getBuilderAfterPetfindbystatusServer1Variables2(instance); + return getBuilderAfterVersion(instance); } - default T version(StringPetfindbystatusServer1Variables3 value) { + default T version(StringVersionEnums value) { var instance = getInstance(); instance.put("version", value.value()); - return getBuilderAfterPetfindbystatusServer1Variables2(instance); + return getBuilderAfterVersion(instance); } } - public static class PetfindbystatusServer1Variables12 implements GenericBuilder> { + public static class VariablesMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "version" @@ -189,7 +189,7 @@ public static class PetfindbystatusServer1Variables12 implements GenericBuilder< public Set getKnownKeys() { return knownKeys; } - public PetfindbystatusServer1Variables12(Map instance) { + public VariablesMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -197,16 +197,16 @@ public Map build() { } } - public static class PetfindbystatusServer1Variables10 implements SetterForPetfindbystatusServer1Variables2 { + public static class VariablesMapBuilder implements SetterForVersion { private final Map instance; - public PetfindbystatusServer1Variables10() { + public VariablesMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PetfindbystatusServer1Variables12 getBuilderAfterPetfindbystatusServer1Variables2(Map instance) { - return new PetfindbystatusServer1Variables12(instance); + public VariablesMap0Builder getBuilderAfterVersion(Map instance) { + return new VariablesMap0Builder(instance); } } @@ -215,7 +215,7 @@ public sealed interface PetfindbystatusServer1Variables1Boxed permits Petfindbys @Nullable Object getData(); } - public record PetfindbystatusServer1Variables1BoxedMap(PetfindbystatusServer1Variables11 data) implements PetfindbystatusServer1Variables1Boxed { + public record PetfindbystatusServer1Variables1BoxedMap(VariablesMap data) implements PetfindbystatusServer1Variables1Boxed { @Override public @Nullable Object getData() { return data; @@ -223,19 +223,19 @@ public record PetfindbystatusServer1Variables1BoxedMap(PetfindbystatusServer1Var } - public static class PetfindbystatusServer1Variables1 extends JsonSchema implements MapSchemaValidator { + public static class PetfindbystatusServer1Variables1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetfindbystatusServer1Variables1 instance = null; protected PetfindbystatusServer1Variables1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( - new PropertyEntry("version", PetfindbystatusServer1Variables2.class) + new PropertyEntry("version", Version.class) )) .required(Set.of( "version" )) - .additionalProperties(PetfindbystatusServer1Variables6.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -246,7 +246,7 @@ public static PetfindbystatusServer1Variables1 getInstance() { return instance; } - public PetfindbystatusServer1Variables11 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -269,10 +269,10 @@ public PetfindbystatusServer1Variables11 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new PetfindbystatusServer1Variables11(castProperties); + return new VariablesMap(castProperties); } - public PetfindbystatusServer1Variables11 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java index d30652275a2..1587efa7b5d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java @@ -93,13 +93,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters; + public PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( - PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters, + PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -112,7 +112,7 @@ public GetRequest( } public static class GetNullableRequest { - public PetfindbytagsGetQueryParameters.@Nullable PetfindbytagsGetQueryParameters9 queryParameters; + public PetfindbytagsGetQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; @@ -151,7 +151,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters9 queryParameters) { + default T queryParameters(PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java index d4d38fb3afc..39aba0ed1c6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java @@ -30,27 +30,27 @@ public class PetfindbytagsGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class PetfindbytagsGetQueryParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetfindbytagsGetQueryParameters4 instance = null; - public static PetfindbytagsGetQueryParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new PetfindbytagsGetQueryParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class PetfindbytagsGetQueryParameters9 extends FrozenMap { - protected PetfindbytagsGetQueryParameters9(FrozenMap m) { + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "tags" ); public static final Set optionalKeys = Set.of(); - public static PetfindbytagsGetQueryParameters9 of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { return PetfindbytagsGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -63,18 +63,18 @@ public Schema0.SchemaList0 tags() { } } - public interface SetterForPetfindbytagsGetQueryParameters2 { + public interface SetterForTags { Map> getInstance(); - T getBuilderAfterPetfindbytagsGetQueryParameters2(Map> instance); + T getBuilderAfterTags(Map> instance); default T tags(List value) { var instance = getInstance(); instance.put("tags", value); - return getBuilderAfterPetfindbytagsGetQueryParameters2(instance); + return getBuilderAfterTags(instance); } } - public static class PetfindbytagsGetQueryParameters10 implements GenericBuilder>> { + public static class QueryParametersMap0Builder implements GenericBuilder>> { private final Map> instance; private static final Set knownKeys = Set.of( "tags" @@ -82,7 +82,7 @@ public static class PetfindbytagsGetQueryParameters10 implements GenericBuilder< public Set getKnownKeys() { return knownKeys; } - public PetfindbytagsGetQueryParameters10(Map> instance) { + public QueryParametersMap0Builder(Map> instance) { this.instance = instance; } public Map> build() { @@ -90,16 +90,16 @@ public Map> build() { } } - public static class PetfindbytagsGetQueryParameters8 implements SetterForPetfindbytagsGetQueryParameters2 { + public static class QueryParametersMapBuilder implements SetterForTags { private final Map> instance; - public PetfindbytagsGetQueryParameters8() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map> getInstance() { return instance; } - public PetfindbytagsGetQueryParameters10 getBuilderAfterPetfindbytagsGetQueryParameters2(Map> instance) { - return new PetfindbytagsGetQueryParameters10(instance); + public QueryParametersMap0Builder getBuilderAfterTags(Map> instance) { + return new QueryParametersMap0Builder(instance); } } @@ -108,7 +108,7 @@ public sealed interface PetfindbytagsGetQueryParameters1Boxed permits Petfindbyt @Nullable Object getData(); } - public record PetfindbytagsGetQueryParameters1BoxedMap(PetfindbytagsGetQueryParameters9 data) implements PetfindbytagsGetQueryParameters1Boxed { + public record PetfindbytagsGetQueryParameters1BoxedMap(QueryParametersMap data) implements PetfindbytagsGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -116,7 +116,7 @@ public record PetfindbytagsGetQueryParameters1BoxedMap(PetfindbytagsGetQueryPara } - public static class PetfindbytagsGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetfindbytagsGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetfindbytagsGetQueryParameters1 instance = null; protected PetfindbytagsGetQueryParameters1() { @@ -128,7 +128,7 @@ protected PetfindbytagsGetQueryParameters1() { .required(Set.of( "tags" )) - .additionalProperties(PetfindbytagsGetQueryParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -139,7 +139,7 @@ public static PetfindbytagsGetQueryParameters1 getInstance() { return instance; } - public PetfindbytagsGetQueryParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -162,10 +162,10 @@ public PetfindbytagsGetQueryParameters9 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new PetfindbytagsGetQueryParameters9(castProperties); + return new QueryParametersMap(castProperties); } - public PetfindbytagsGetQueryParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java index cdc25195b53..9753ec2b2e7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java @@ -98,15 +98,15 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters; - public PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParameters9 headerParameters; + public PetpetidDeletePathParameters.PathParametersMap pathParameters; + public PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public DeleteRequest( - PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters, - PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParameters9 headerParameters, + PetpetidDeletePathParameters.PathParametersMap pathParameters, + PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters, ServerInfo.@Nullable ServerIndex serverIndex, PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -120,8 +120,8 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public PetpetidDeletePathParameters.@Nullable PetpetidDeletePathParameters9 pathParameters; - public PetpetidDeleteHeaderParameters.@Nullable PetpetidDeleteHeaderParameters9 headerParameters; + public PetpetidDeletePathParameters.@Nullable PathParametersMap pathParameters; + public PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; @@ -130,7 +130,7 @@ public static class DeleteNullableRequest { public interface SetterForHeaderParameters { DeleteNullableRequest getInstance(); T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); - default T headerParameters(PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters9 headerParameters) { + default T headerParameters(PetpetidDeleteHeaderParameters.HeaderParametersMap headerParameters) { var instance = getInstance(); instance.headerParameters = headerParameters; return getBuilderAfterHeaderParameters(instance); @@ -170,7 +170,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(PetpetidDeletePathParameters.PetpetidDeletePathParameters9 pathParameters) { + default T pathParameters(PetpetidDeletePathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java index 1b2c2a07638..95c1f9a73ca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java @@ -92,13 +92,13 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters; + public PetpetidGetPathParameters.PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public GetRequest( - PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters, + PetpetidGetPathParameters.PathParametersMap pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex, @Nullable Duration timeout @@ -111,7 +111,7 @@ public GetRequest( } public static class GetNullableRequest { - public PetpetidGetPathParameters.@Nullable PetpetidGetPathParameters9 pathParameters; + public PetpetidGetPathParameters.@Nullable PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; @@ -150,7 +150,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(PetpetidGetPathParameters.PetpetidGetPathParameters9 pathParameters) { + default T pathParameters(PetpetidGetPathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java index ff24f2c5a39..8905ff308e0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java @@ -104,14 +104,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters; + public PetpetidPostPathParameters.PathParametersMap pathParameters; public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( - PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters, + PetpetidPostPathParameters.PathParametersMap pathParameters, PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody, ServerInfo.@Nullable ServerIndex serverIndex, PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -126,7 +126,7 @@ public PostRequest( } public static class PostNullableRequest { - public PetpetidPostPathParameters.@Nullable PetpetidPostPathParameters9 pathParameters; + public PetpetidPostPathParameters.@Nullable PathParametersMap pathParameters; public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -176,7 +176,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(PetpetidPostPathParameters.PetpetidPostPathParameters9 pathParameters) { + default T pathParameters(PetpetidPostPathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java index 3493c5d4dc3..3bdf3b1f609 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java @@ -29,27 +29,27 @@ public class PetpetidDeleteHeaderParameters { // nest classes so all schemas and input/output classes can be public - public static class PetpetidDeleteHeaderParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetpetidDeleteHeaderParameters4 instance = null; - public static PetpetidDeleteHeaderParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new PetpetidDeleteHeaderParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class PetpetidDeleteHeaderParameters9 extends FrozenMap { - protected PetpetidDeleteHeaderParameters9(FrozenMap m) { + public static class HeaderParametersMap extends FrozenMap { + protected HeaderParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of( "api_key" ); - public static PetpetidDeleteHeaderParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetpetidDeleteHeaderParameters1.getInstance().validate(arg, configuration); } @@ -58,18 +58,18 @@ public String api_key() throws UnsetPropertyException { } } - public interface SetterForPetpetidDeleteHeaderParameters2 { + public interface SetterForApiKey { Map getInstance(); - T getBuilderAfterPetpetidDeleteHeaderParameters2(Map instance); + T getBuilderAfterApiKey(Map instance); default T api_key(String value) { var instance = getInstance(); instance.put("api_key", value); - return getBuilderAfterPetpetidDeleteHeaderParameters2(instance); + return getBuilderAfterApiKey(instance); } } - public static class PetpetidDeleteHeaderParameters8 implements GenericBuilder>, SetterForPetpetidDeleteHeaderParameters2 { + public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForApiKey { private final Map instance; private static final Set knownKeys = Set.of( "api_key" @@ -77,7 +77,7 @@ public static class PetpetidDeleteHeaderParameters8 implements GenericBuilder getKnownKeys() { return knownKeys; } - public PetpetidDeleteHeaderParameters8() { + public HeaderParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map build() { @@ -86,7 +86,7 @@ public Map build() { public Map getInstance() { return instance; } - public PetpetidDeleteHeaderParameters8 getBuilderAfterPetpetidDeleteHeaderParameters2(Map instance) { + public HeaderParametersMapBuilder getBuilderAfterApiKey(Map instance) { return this; } } @@ -96,7 +96,7 @@ public sealed interface PetpetidDeleteHeaderParameters1Boxed permits PetpetidDel @Nullable Object getData(); } - public record PetpetidDeleteHeaderParameters1BoxedMap(PetpetidDeleteHeaderParameters9 data) implements PetpetidDeleteHeaderParameters1Boxed { + public record PetpetidDeleteHeaderParameters1BoxedMap(HeaderParametersMap data) implements PetpetidDeleteHeaderParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -104,7 +104,7 @@ public record PetpetidDeleteHeaderParameters1BoxedMap(PetpetidDeleteHeaderParame } - public static class PetpetidDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetpetidDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetpetidDeleteHeaderParameters1 instance = null; protected PetpetidDeleteHeaderParameters1() { @@ -113,7 +113,7 @@ protected PetpetidDeleteHeaderParameters1() { .properties(Map.ofEntries( new PropertyEntry("api_key", Schema0.Schema01.class) )) - .additionalProperties(PetpetidDeleteHeaderParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -124,7 +124,7 @@ public static PetpetidDeleteHeaderParameters1 getInstance() { return instance; } - public PetpetidDeleteHeaderParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -147,10 +147,10 @@ public PetpetidDeleteHeaderParameters9 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new PetpetidDeleteHeaderParameters9(castProperties); + return new HeaderParametersMap(castProperties); } - public PetpetidDeleteHeaderParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java index c545eda9041..217bc3b8e83 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java @@ -29,27 +29,27 @@ public class PetpetidDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class PetpetidDeletePathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetpetidDeletePathParameters4 instance = null; - public static PetpetidDeletePathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new PetpetidDeletePathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class PetpetidDeletePathParameters9 extends FrozenMap { - protected PetpetidDeletePathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PetpetidDeletePathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetpetidDeletePathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetpetidDeletePathParameters2 { + public interface SetterForPetId { Map getInstance(); - T getBuilderAfterPetpetidDeletePathParameters2(Map instance); + T getBuilderAfterPetId(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidDeletePathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidDeletePathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidDeletePathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidDeletePathParameters2(instance); + return getBuilderAfterPetId(instance); } } - public static class PetpetidDeletePathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PetpetidDeletePathParameters10 implements GenericBuilder getKnownKeys() { return knownKeys; } - public PetpetidDeletePathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class PetpetidDeletePathParameters8 implements SetterForPetpetidDeletePathParameters2 { + public static class PathParametersMapBuilder implements SetterForPetId { private final Map instance; - public PetpetidDeletePathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PetpetidDeletePathParameters10 getBuilderAfterPetpetidDeletePathParameters2(Map instance) { - return new PetpetidDeletePathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -125,7 +125,7 @@ public sealed interface PetpetidDeletePathParameters1Boxed permits PetpetidDelet @Nullable Object getData(); } - public record PetpetidDeletePathParameters1BoxedMap(PetpetidDeletePathParameters9 data) implements PetpetidDeletePathParameters1Boxed { + public record PetpetidDeletePathParameters1BoxedMap(PathParametersMap data) implements PetpetidDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record PetpetidDeletePathParameters1BoxedMap(PetpetidDeletePathParameters } - public static class PetpetidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetpetidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetpetidDeletePathParameters1 instance = null; protected PetpetidDeletePathParameters1() { @@ -145,7 +145,7 @@ protected PetpetidDeletePathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(PetpetidDeletePathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -156,7 +156,7 @@ public static PetpetidDeletePathParameters1 getInstance() { return instance; } - public PetpetidDeletePathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public PetpetidDeletePathParameters9 getNewInstance(Map arg, List properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PetpetidDeletePathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public PetpetidDeletePathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java index f5bf11769f6..498b007f37a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java @@ -29,27 +29,27 @@ public class PetpetidGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class PetpetidGetPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetpetidGetPathParameters4 instance = null; - public static PetpetidGetPathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new PetpetidGetPathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class PetpetidGetPathParameters9 extends FrozenMap { - protected PetpetidGetPathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PetpetidGetPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetpetidGetPathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetpetidGetPathParameters2 { + public interface SetterForPetId { Map getInstance(); - T getBuilderAfterPetpetidGetPathParameters2(Map instance); + T getBuilderAfterPetId(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidGetPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidGetPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidGetPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidGetPathParameters2(instance); + return getBuilderAfterPetId(instance); } } - public static class PetpetidGetPathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PetpetidGetPathParameters10 implements GenericBuilder getKnownKeys() { return knownKeys; } - public PetpetidGetPathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class PetpetidGetPathParameters8 implements SetterForPetpetidGetPathParameters2 { + public static class PathParametersMapBuilder implements SetterForPetId { private final Map instance; - public PetpetidGetPathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PetpetidGetPathParameters10 getBuilderAfterPetpetidGetPathParameters2(Map instance) { - return new PetpetidGetPathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -125,7 +125,7 @@ public sealed interface PetpetidGetPathParameters1Boxed permits PetpetidGetPathP @Nullable Object getData(); } - public record PetpetidGetPathParameters1BoxedMap(PetpetidGetPathParameters9 data) implements PetpetidGetPathParameters1Boxed { + public record PetpetidGetPathParameters1BoxedMap(PathParametersMap data) implements PetpetidGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record PetpetidGetPathParameters1BoxedMap(PetpetidGetPathParameters9 data } - public static class PetpetidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetpetidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetpetidGetPathParameters1 instance = null; protected PetpetidGetPathParameters1() { @@ -145,7 +145,7 @@ protected PetpetidGetPathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(PetpetidGetPathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -156,7 +156,7 @@ public static PetpetidGetPathParameters1 getInstance() { return instance; } - public PetpetidGetPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public PetpetidGetPathParameters9 getNewInstance(Map arg, List pat properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PetpetidGetPathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public PetpetidGetPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java index e596b6aa305..28daa3aee1a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java @@ -29,27 +29,27 @@ public class PetpetidPostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class PetpetidPostPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetpetidPostPathParameters4 instance = null; - public static PetpetidPostPathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new PetpetidPostPathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class PetpetidPostPathParameters9 extends FrozenMap { - protected PetpetidPostPathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PetpetidPostPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetpetidPostPathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetpetidPostPathParameters2 { + public interface SetterForPetId { Map getInstance(); - T getBuilderAfterPetpetidPostPathParameters2(Map instance); + T getBuilderAfterPetId(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidPostPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidPostPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidPostPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetidPostPathParameters2(instance); + return getBuilderAfterPetId(instance); } } - public static class PetpetidPostPathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PetpetidPostPathParameters10 implements GenericBuilder getKnownKeys() { return knownKeys; } - public PetpetidPostPathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class PetpetidPostPathParameters8 implements SetterForPetpetidPostPathParameters2 { + public static class PathParametersMapBuilder implements SetterForPetId { private final Map instance; - public PetpetidPostPathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PetpetidPostPathParameters10 getBuilderAfterPetpetidPostPathParameters2(Map instance) { - return new PetpetidPostPathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -125,7 +125,7 @@ public sealed interface PetpetidPostPathParameters1Boxed permits PetpetidPostPat @Nullable Object getData(); } - public record PetpetidPostPathParameters1BoxedMap(PetpetidPostPathParameters9 data) implements PetpetidPostPathParameters1Boxed { + public record PetpetidPostPathParameters1BoxedMap(PathParametersMap data) implements PetpetidPostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record PetpetidPostPathParameters1BoxedMap(PetpetidPostPathParameters9 da } - public static class PetpetidPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetpetidPostPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetpetidPostPathParameters1 instance = null; protected PetpetidPostPathParameters1() { @@ -145,7 +145,7 @@ protected PetpetidPostPathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(PetpetidPostPathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -156,7 +156,7 @@ public static PetpetidPostPathParameters1 getInstance() { return instance; } - public PetpetidPostPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public PetpetidPostPathParameters9 getNewInstance(Map arg, List pa properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PetpetidPostPathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public PetpetidPostPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java index 40aeeba0403..1b5bad121f4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java @@ -105,14 +105,14 @@ public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigu } public static class PostRequest { - public PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters; + public PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters; public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; public @Nullable Duration timeout; public PostRequest( - PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters, + PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters, PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody, ServerInfo.@Nullable ServerIndex serverIndex, PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex, @@ -127,7 +127,7 @@ public PostRequest( } public static class PostNullableRequest { - public PetpetiduploadimagePostPathParameters.@Nullable PetpetiduploadimagePostPathParameters9 pathParameters; + public PetpetiduploadimagePostPathParameters.@Nullable PathParametersMap pathParameters; public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; public ServerInfo.@Nullable ServerIndex serverIndex; public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; @@ -177,7 +177,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { PostNullableRequest getInstance(); T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters9 pathParameters) { + default T pathParameters(PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java index e7a3ecf1197..29b957c98cd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java @@ -29,27 +29,27 @@ public class PetpetiduploadimagePostPathParameters { // nest classes so all schemas and input/output classes can be public - public static class PetpetiduploadimagePostPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable PetpetiduploadimagePostPathParameters4 instance = null; - public static PetpetiduploadimagePostPathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new PetpetiduploadimagePostPathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class PetpetiduploadimagePostPathParameters9 extends FrozenMap { - protected PetpetiduploadimagePostPathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PetpetiduploadimagePostPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PetpetiduploadimagePostPathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number petId() { } } - public interface SetterForPetpetiduploadimagePostPathParameters2 { + public interface SetterForPetId { Map getInstance(); - T getBuilderAfterPetpetiduploadimagePostPathParameters2(Map instance); + T getBuilderAfterPetId(Map instance); default T petId(int value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetiduploadimagePostPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(float value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetiduploadimagePostPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(long value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetiduploadimagePostPathParameters2(instance); + return getBuilderAfterPetId(instance); } default T petId(double value) { var instance = getInstance(); instance.put("petId", value); - return getBuilderAfterPetpetiduploadimagePostPathParameters2(instance); + return getBuilderAfterPetId(instance); } } - public static class PetpetiduploadimagePostPathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "petId" @@ -99,7 +99,7 @@ public static class PetpetiduploadimagePostPathParameters10 implements GenericBu public Set getKnownKeys() { return knownKeys; } - public PetpetiduploadimagePostPathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class PetpetiduploadimagePostPathParameters8 implements SetterForPetpetiduploadimagePostPathParameters2 { + public static class PathParametersMapBuilder implements SetterForPetId { private final Map instance; - public PetpetiduploadimagePostPathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public PetpetiduploadimagePostPathParameters10 getBuilderAfterPetpetiduploadimagePostPathParameters2(Map instance) { - return new PetpetiduploadimagePostPathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -125,7 +125,7 @@ public sealed interface PetpetiduploadimagePostPathParameters1Boxed permits Petp @Nullable Object getData(); } - public record PetpetiduploadimagePostPathParameters1BoxedMap(PetpetiduploadimagePostPathParameters9 data) implements PetpetiduploadimagePostPathParameters1Boxed { + public record PetpetiduploadimagePostPathParameters1BoxedMap(PathParametersMap data) implements PetpetiduploadimagePostPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record PetpetiduploadimagePostPathParameters1BoxedMap(Petpetiduploadimage } - public static class PetpetiduploadimagePostPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class PetpetiduploadimagePostPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable PetpetiduploadimagePostPathParameters1 instance = null; protected PetpetiduploadimagePostPathParameters1() { @@ -145,7 +145,7 @@ protected PetpetiduploadimagePostPathParameters1() { .required(Set.of( "petId" )) - .additionalProperties(PetpetiduploadimagePostPathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -156,7 +156,7 @@ public static PetpetiduploadimagePostPathParameters1 getInstance() { return instance; } - public PetpetiduploadimagePostPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public PetpetiduploadimagePostPathParameters9 getNewInstance(Map arg, List properties.put(propertyName, (Number) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new PetpetiduploadimagePostPathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public PetpetiduploadimagePostPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java index 20f78b6d819..46286cc4097 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java @@ -78,12 +78,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters; + public StoreorderorderidDeletePathParameters.PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters, + StoreorderorderidDeletePathParameters.PathParametersMap pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -94,7 +94,7 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public StoreorderorderidDeletePathParameters.@Nullable StoreorderorderidDeletePathParameters9 pathParameters; + public StoreorderorderidDeletePathParameters.@Nullable PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -122,7 +122,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters9 pathParameters) { + default T pathParameters(StoreorderorderidDeletePathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java index 15ead925cdb..a303530db4c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java @@ -79,12 +79,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters; + public StoreorderorderidGetPathParameters.PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters, + StoreorderorderidGetPathParameters.PathParametersMap pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public GetRequest( } public static class GetNullableRequest { - public StoreorderorderidGetPathParameters.@Nullable StoreorderorderidGetPathParameters9 pathParameters; + public StoreorderorderidGetPathParameters.@Nullable PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters9 pathParameters) { + default T pathParameters(StoreorderorderidGetPathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java index efdcfbb207a..333df7667ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java @@ -29,27 +29,27 @@ public class StoreorderorderidDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class StoreorderorderidDeletePathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable StoreorderorderidDeletePathParameters4 instance = null; - public static StoreorderorderidDeletePathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new StoreorderorderidDeletePathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class StoreorderorderidDeletePathParameters9 extends FrozenMap { - protected StoreorderorderidDeletePathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "order_id" ); public static final Set optionalKeys = Set.of(); - public static StoreorderorderidDeletePathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return StoreorderorderidDeletePathParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String order_id() { } } - public interface SetterForStoreorderorderidDeletePathParameters2 { + public interface SetterForOrderId { Map getInstance(); - T getBuilderAfterStoreorderorderidDeletePathParameters2(Map instance); + T getBuilderAfterOrderId(Map instance); default T order_id(String value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterStoreorderorderidDeletePathParameters2(instance); + return getBuilderAfterOrderId(instance); } } - public static class StoreorderorderidDeletePathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "order_id" @@ -81,7 +81,7 @@ public static class StoreorderorderidDeletePathParameters10 implements GenericBu public Set getKnownKeys() { return knownKeys; } - public StoreorderorderidDeletePathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class StoreorderorderidDeletePathParameters8 implements SetterForStoreorderorderidDeletePathParameters2 { + public static class PathParametersMapBuilder implements SetterForOrderId { private final Map instance; - public StoreorderorderidDeletePathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public StoreorderorderidDeletePathParameters10 getBuilderAfterStoreorderorderidDeletePathParameters2(Map instance) { - return new StoreorderorderidDeletePathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterOrderId(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -107,7 +107,7 @@ public sealed interface StoreorderorderidDeletePathParameters1Boxed permits Stor @Nullable Object getData(); } - public record StoreorderorderidDeletePathParameters1BoxedMap(StoreorderorderidDeletePathParameters9 data) implements StoreorderorderidDeletePathParameters1Boxed { + public record StoreorderorderidDeletePathParameters1BoxedMap(PathParametersMap data) implements StoreorderorderidDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record StoreorderorderidDeletePathParameters1BoxedMap(StoreorderorderidDe } - public static class StoreorderorderidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class StoreorderorderidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable StoreorderorderidDeletePathParameters1 instance = null; protected StoreorderorderidDeletePathParameters1() { @@ -127,7 +127,7 @@ protected StoreorderorderidDeletePathParameters1() { .required(Set.of( "order_id" )) - .additionalProperties(StoreorderorderidDeletePathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -138,7 +138,7 @@ public static StoreorderorderidDeletePathParameters1 getInstance() { return instance; } - public StoreorderorderidDeletePathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public StoreorderorderidDeletePathParameters9 getNewInstance(Map arg, List properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new StoreorderorderidDeletePathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public StoreorderorderidDeletePathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java index ba65dec5a43..b103bb5c279 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java @@ -29,27 +29,27 @@ public class StoreorderorderidGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class StoreorderorderidGetPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable StoreorderorderidGetPathParameters4 instance = null; - public static StoreorderorderidGetPathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new StoreorderorderidGetPathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class StoreorderorderidGetPathParameters9 extends FrozenMap { - protected StoreorderorderidGetPathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "order_id" ); public static final Set optionalKeys = Set.of(); - public static StoreorderorderidGetPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return StoreorderorderidGetPathParameters1.getInstance().validate(arg, configuration); } @@ -62,36 +62,36 @@ public Number order_id() { } } - public interface SetterForStoreorderorderidGetPathParameters2 { + public interface SetterForOrderId { Map getInstance(); - T getBuilderAfterStoreorderorderidGetPathParameters2(Map instance); + T getBuilderAfterOrderId(Map instance); default T order_id(int value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterStoreorderorderidGetPathParameters2(instance); + return getBuilderAfterOrderId(instance); } default T order_id(float value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterStoreorderorderidGetPathParameters2(instance); + return getBuilderAfterOrderId(instance); } default T order_id(long value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterStoreorderorderidGetPathParameters2(instance); + return getBuilderAfterOrderId(instance); } default T order_id(double value) { var instance = getInstance(); instance.put("order_id", value); - return getBuilderAfterStoreorderorderidGetPathParameters2(instance); + return getBuilderAfterOrderId(instance); } } - public static class StoreorderorderidGetPathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "order_id" @@ -99,7 +99,7 @@ public static class StoreorderorderidGetPathParameters10 implements GenericBuild public Set getKnownKeys() { return knownKeys; } - public StoreorderorderidGetPathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -107,16 +107,16 @@ public Map build() { } } - public static class StoreorderorderidGetPathParameters8 implements SetterForStoreorderorderidGetPathParameters2 { + public static class PathParametersMapBuilder implements SetterForOrderId { private final Map instance; - public StoreorderorderidGetPathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public StoreorderorderidGetPathParameters10 getBuilderAfterStoreorderorderidGetPathParameters2(Map instance) { - return new StoreorderorderidGetPathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterOrderId(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -125,7 +125,7 @@ public sealed interface StoreorderorderidGetPathParameters1Boxed permits Storeor @Nullable Object getData(); } - public record StoreorderorderidGetPathParameters1BoxedMap(StoreorderorderidGetPathParameters9 data) implements StoreorderorderidGetPathParameters1Boxed { + public record StoreorderorderidGetPathParameters1BoxedMap(PathParametersMap data) implements StoreorderorderidGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -133,7 +133,7 @@ public record StoreorderorderidGetPathParameters1BoxedMap(StoreorderorderidGetPa } - public static class StoreorderorderidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class StoreorderorderidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable StoreorderorderidGetPathParameters1 instance = null; protected StoreorderorderidGetPathParameters1() { @@ -145,7 +145,7 @@ protected StoreorderorderidGetPathParameters1() { .required(Set.of( "order_id" )) - .additionalProperties(StoreorderorderidGetPathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -156,7 +156,7 @@ public static StoreorderorderidGetPathParameters1 getInstance() { return instance; } - public StoreorderorderidGetPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -179,10 +179,10 @@ public StoreorderorderidGetPathParameters9 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new StoreorderorderidGetPathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public StoreorderorderidGetPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java index 13f986fe25c..4ee4d95fae9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java @@ -80,12 +80,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters; + public UserloginGetQueryParameters.QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters, + UserloginGetQueryParameters.QueryParametersMap queryParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -96,7 +96,7 @@ public GetRequest( } public static class GetNullableRequest { - public UserloginGetQueryParameters.@Nullable UserloginGetQueryParameters10 queryParameters; + public UserloginGetQueryParameters.@Nullable QueryParametersMap queryParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -124,7 +124,7 @@ default T timeout(Duration timeout) { public interface SetterForQueryParameters { GetNullableRequest getInstance(); T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(UserloginGetQueryParameters.UserloginGetQueryParameters10 queryParameters) { + default T queryParameters(UserloginGetQueryParameters.QueryParametersMap queryParameters) { var instance = getInstance(); instance.queryParameters = queryParameters; return getBuilderAfterQueryParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java index 2caa30069d7..c42b97df5ca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java @@ -30,20 +30,20 @@ public class UserloginGetQueryParameters { // nest classes so all schemas and input/output classes can be public - public static class UserloginGetQueryParameters5 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable UserloginGetQueryParameters5 instance = null; - public static UserloginGetQueryParameters5 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new UserloginGetQueryParameters5(); + instance = new AdditionalProperties(); } return instance; } } - public static class UserloginGetQueryParameters10 extends FrozenMap<@Nullable Object> { - protected UserloginGetQueryParameters10(FrozenMap<@Nullable Object> m) { + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { super(m); } public static final Set requiredKeys = Set.of( @@ -51,7 +51,7 @@ protected UserloginGetQueryParameters10(FrozenMap<@Nullable Object> m) { "username" ); public static final Set optionalKeys = Set.of(); - public static UserloginGetQueryParameters10 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return UserloginGetQueryParameters1.getInstance().validate(arg, configuration); } @@ -72,29 +72,29 @@ public String username() { } } - public interface SetterForUserloginGetQueryParameters2 { + public interface SetterForPassword { Map getInstance(); - T getBuilderAfterUserloginGetQueryParameters2(Map instance); + T getBuilderAfterPassword(Map instance); default T password(String value) { var instance = getInstance(); instance.put("password", value); - return getBuilderAfterUserloginGetQueryParameters2(instance); + return getBuilderAfterPassword(instance); } } - public interface SetterForUserloginGetQueryParameters3 { + public interface SetterForUsername { Map getInstance(); - T getBuilderAfterUserloginGetQueryParameters3(Map instance); + T getBuilderAfterUsername(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUserloginGetQueryParameters3(instance); + return getBuilderAfterUsername(instance); } } - public static class UserloginGetQueryParameters11 implements GenericBuilder> { + public static class QueryParametersMap00Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "password", @@ -103,7 +103,7 @@ public static class UserloginGetQueryParameters11 implements GenericBuilder getKnownKeys() { return knownKeys; } - public UserloginGetQueryParameters11(Map instance) { + public QueryParametersMap00Builder(Map instance) { this.instance = instance; } public Map build() { @@ -111,45 +111,45 @@ public UserloginGetQueryParameters11(Map instance) { } } - public static class UserloginGetQueryParameters12 implements SetterForUserloginGetQueryParameters3 { + public static class QueryParametersMap01Builder implements SetterForUsername { private final Map instance; - public UserloginGetQueryParameters12(Map instance) { + public QueryParametersMap01Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public UserloginGetQueryParameters11 getBuilderAfterUserloginGetQueryParameters3(Map instance) { - return new UserloginGetQueryParameters11(instance); + public QueryParametersMap00Builder getBuilderAfterUsername(Map instance) { + return new QueryParametersMap00Builder(instance); } } - public static class UserloginGetQueryParameters13 implements SetterForUserloginGetQueryParameters2 { + public static class QueryParametersMap10Builder implements SetterForPassword { private final Map instance; - public UserloginGetQueryParameters13(Map instance) { + public QueryParametersMap10Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public UserloginGetQueryParameters11 getBuilderAfterUserloginGetQueryParameters2(Map instance) { - return new UserloginGetQueryParameters11(instance); + public QueryParametersMap00Builder getBuilderAfterPassword(Map instance) { + return new QueryParametersMap00Builder(instance); } } - public static class UserloginGetQueryParameters9 implements SetterForUserloginGetQueryParameters2, SetterForUserloginGetQueryParameters3 { + public static class QueryParametersMapBuilder implements SetterForPassword, SetterForUsername { private final Map instance; - public UserloginGetQueryParameters9() { + public QueryParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public UserloginGetQueryParameters12 getBuilderAfterUserloginGetQueryParameters2(Map instance) { - return new UserloginGetQueryParameters12(instance); + public QueryParametersMap01Builder getBuilderAfterPassword(Map instance) { + return new QueryParametersMap01Builder(instance); } - public UserloginGetQueryParameters13 getBuilderAfterUserloginGetQueryParameters3(Map instance) { - return new UserloginGetQueryParameters13(instance); + public QueryParametersMap10Builder getBuilderAfterUsername(Map instance) { + return new QueryParametersMap10Builder(instance); } } @@ -158,7 +158,7 @@ public sealed interface UserloginGetQueryParameters1Boxed permits UserloginGetQu @Nullable Object getData(); } - public record UserloginGetQueryParameters1BoxedMap(UserloginGetQueryParameters10 data) implements UserloginGetQueryParameters1Boxed { + public record UserloginGetQueryParameters1BoxedMap(QueryParametersMap data) implements UserloginGetQueryParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -166,7 +166,7 @@ public record UserloginGetQueryParameters1BoxedMap(UserloginGetQueryParameters10 } - public static class UserloginGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + public static class UserloginGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable UserloginGetQueryParameters1 instance = null; protected UserloginGetQueryParameters1() { @@ -180,7 +180,7 @@ protected UserloginGetQueryParameters1() { "password", "username" )) - .additionalProperties(UserloginGetQueryParameters5.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -191,7 +191,7 @@ public static UserloginGetQueryParameters1 getInstance() { return instance; } - public UserloginGetQueryParameters10 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -211,10 +211,10 @@ public UserloginGetQueryParameters10 getNewInstance(Map arg, List properties.put(propertyName, propertyInstance); } FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new UserloginGetQueryParameters10(castProperties); + return new QueryParametersMap(castProperties); } - public UserloginGetQueryParameters10 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java index 7cc66199bce..cbbae52933a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java @@ -79,12 +79,12 @@ public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfi } public static class DeleteRequest { - public UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters; + public UserusernameDeletePathParameters.PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public DeleteRequest( - UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters, + UserusernameDeletePathParameters.PathParametersMap pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public DeleteRequest( } public static class DeleteNullableRequest { - public UserusernameDeletePathParameters.@Nullable UserusernameDeletePathParameters9 pathParameters; + public UserusernameDeletePathParameters.@Nullable PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { DeleteNullableRequest getInstance(); T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(UserusernameDeletePathParameters.UserusernameDeletePathParameters9 pathParameters) { + default T pathParameters(UserusernameDeletePathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java index 2a522df968b..83c77df26d5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java @@ -79,12 +79,12 @@ public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur } public static class GetRequest { - public UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters; + public UserusernameGetPathParameters.PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public GetRequest( - UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters, + UserusernameGetPathParameters.PathParametersMap pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -95,7 +95,7 @@ public GetRequest( } public static class GetNullableRequest { - public UserusernameGetPathParameters.@Nullable UserusernameGetPathParameters9 pathParameters; + public UserusernameGetPathParameters.@Nullable PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -123,7 +123,7 @@ default T timeout(Duration timeout) { public interface SetterForPathParameters { GetNullableRequest getInstance(); T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(UserusernameGetPathParameters.UserusernameGetPathParameters9 pathParameters) { + default T pathParameters(UserusernameGetPathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java index 267dd27e07d..95c2c9f8b1c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java @@ -88,13 +88,13 @@ public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfigur public static class PutRequest { public UserusernamePutRequestBody.SealedRequestBody requestBody; - public UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters; + public UserusernamePutPathParameters.PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; public PutRequest( UserusernamePutRequestBody.SealedRequestBody requestBody, - UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters, + UserusernamePutPathParameters.PathParametersMap pathParameters, ServerInfo.@Nullable ServerIndex serverIndex, @Nullable Duration timeout ) { @@ -107,7 +107,7 @@ public PutRequest( public static class PutNullableRequest { public UserusernamePutRequestBody.@Nullable SealedRequestBody requestBody; - public UserusernamePutPathParameters.@Nullable UserusernamePutPathParameters9 pathParameters; + public UserusernamePutPathParameters.@Nullable PathParametersMap pathParameters; public ServerInfo.@Nullable ServerIndex serverIndex; public @Nullable Duration timeout; } @@ -145,7 +145,7 @@ default T requestBody(UserusernamePutRequestBody.SealedRequestBody requestBody) public interface SetterForPathParameters { PutNullableRequest getInstance(); T getBuilderAfterPathParameters(PutNullableRequest instance); - default T pathParameters(UserusernamePutPathParameters.UserusernamePutPathParameters9 pathParameters) { + default T pathParameters(UserusernamePutPathParameters.PathParametersMap pathParameters) { var instance = getInstance(); instance.pathParameters = pathParameters; return getBuilderAfterPathParameters(instance); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java index 6812c4fa36d..4d8cbc3a337 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java @@ -29,27 +29,27 @@ public class UserusernameDeletePathParameters { // nest classes so all schemas and input/output classes can be public - public static class UserusernameDeletePathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable UserusernameDeletePathParameters4 instance = null; - public static UserusernameDeletePathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new UserusernameDeletePathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class UserusernameDeletePathParameters9 extends FrozenMap { - protected UserusernameDeletePathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "username" ); public static final Set optionalKeys = Set.of(); - public static UserusernameDeletePathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return UserusernameDeletePathParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String username() { } } - public interface SetterForUserusernameDeletePathParameters2 { + public interface SetterForUsername { Map getInstance(); - T getBuilderAfterUserusernameDeletePathParameters2(Map instance); + T getBuilderAfterUsername(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUserusernameDeletePathParameters2(instance); + return getBuilderAfterUsername(instance); } } - public static class UserusernameDeletePathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "username" @@ -81,7 +81,7 @@ public static class UserusernameDeletePathParameters10 implements GenericBuilder public Set getKnownKeys() { return knownKeys; } - public UserusernameDeletePathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class UserusernameDeletePathParameters8 implements SetterForUserusernameDeletePathParameters2 { + public static class PathParametersMapBuilder implements SetterForUsername { private final Map instance; - public UserusernameDeletePathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public UserusernameDeletePathParameters10 getBuilderAfterUserusernameDeletePathParameters2(Map instance) { - return new UserusernameDeletePathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -107,7 +107,7 @@ public sealed interface UserusernameDeletePathParameters1Boxed permits Userusern @Nullable Object getData(); } - public record UserusernameDeletePathParameters1BoxedMap(UserusernameDeletePathParameters9 data) implements UserusernameDeletePathParameters1Boxed { + public record UserusernameDeletePathParameters1BoxedMap(PathParametersMap data) implements UserusernameDeletePathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record UserusernameDeletePathParameters1BoxedMap(UserusernameDeletePathPa } - public static class UserusernameDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class UserusernameDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable UserusernameDeletePathParameters1 instance = null; protected UserusernameDeletePathParameters1() { @@ -127,7 +127,7 @@ protected UserusernameDeletePathParameters1() { .required(Set.of( "username" )) - .additionalProperties(UserusernameDeletePathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -138,7 +138,7 @@ public static UserusernameDeletePathParameters1 getInstance() { return instance; } - public UserusernameDeletePathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public UserusernameDeletePathParameters9 getNewInstance(Map arg, List castProperties = new FrozenMap<>(properties); - return new UserusernameDeletePathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public UserusernameDeletePathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java index 81d0f3e64fe..c1a9b62fb37 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java @@ -29,27 +29,27 @@ public class UserusernameGetPathParameters { // nest classes so all schemas and input/output classes can be public - public static class UserusernameGetPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable UserusernameGetPathParameters4 instance = null; - public static UserusernameGetPathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new UserusernameGetPathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class UserusernameGetPathParameters9 extends FrozenMap { - protected UserusernameGetPathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "username" ); public static final Set optionalKeys = Set.of(); - public static UserusernameGetPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return UserusernameGetPathParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String username() { } } - public interface SetterForUserusernameGetPathParameters2 { + public interface SetterForUsername { Map getInstance(); - T getBuilderAfterUserusernameGetPathParameters2(Map instance); + T getBuilderAfterUsername(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUserusernameGetPathParameters2(instance); + return getBuilderAfterUsername(instance); } } - public static class UserusernameGetPathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "username" @@ -81,7 +81,7 @@ public static class UserusernameGetPathParameters10 implements GenericBuilder getKnownKeys() { return knownKeys; } - public UserusernameGetPathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class UserusernameGetPathParameters8 implements SetterForUserusernameGetPathParameters2 { + public static class PathParametersMapBuilder implements SetterForUsername { private final Map instance; - public UserusernameGetPathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public UserusernameGetPathParameters10 getBuilderAfterUserusernameGetPathParameters2(Map instance) { - return new UserusernameGetPathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -107,7 +107,7 @@ public sealed interface UserusernameGetPathParameters1Boxed permits Userusername @Nullable Object getData(); } - public record UserusernameGetPathParameters1BoxedMap(UserusernameGetPathParameters9 data) implements UserusernameGetPathParameters1Boxed { + public record UserusernameGetPathParameters1BoxedMap(PathParametersMap data) implements UserusernameGetPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record UserusernameGetPathParameters1BoxedMap(UserusernameGetPathParamete } - public static class UserusernameGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class UserusernameGetPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable UserusernameGetPathParameters1 instance = null; protected UserusernameGetPathParameters1() { @@ -127,7 +127,7 @@ protected UserusernameGetPathParameters1() { .required(Set.of( "username" )) - .additionalProperties(UserusernameGetPathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -138,7 +138,7 @@ public static UserusernameGetPathParameters1 getInstance() { return instance; } - public UserusernameGetPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public UserusernameGetPathParameters9 getNewInstance(Map arg, List properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new UserusernameGetPathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public UserusernameGetPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java index 754c5885dcf..f5c674bac20 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java @@ -29,27 +29,27 @@ public class UserusernamePutPathParameters { // nest classes so all schemas and input/output classes can be public - public static class UserusernamePutPathParameters4 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable UserusernamePutPathParameters4 instance = null; - public static UserusernamePutPathParameters4 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new UserusernamePutPathParameters4(); + instance = new AdditionalProperties(); } return instance; } } - public static class UserusernamePutPathParameters9 extends FrozenMap { - protected UserusernamePutPathParameters9(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "username" ); public static final Set optionalKeys = Set.of(); - public static UserusernamePutPathParameters9 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return UserusernamePutPathParameters1.getInstance().validate(arg, configuration); } @@ -62,18 +62,18 @@ public String username() { } } - public interface SetterForUserusernamePutPathParameters2 { + public interface SetterForUsername { Map getInstance(); - T getBuilderAfterUserusernamePutPathParameters2(Map instance); + T getBuilderAfterUsername(Map instance); default T username(String value) { var instance = getInstance(); instance.put("username", value); - return getBuilderAfterUserusernamePutPathParameters2(instance); + return getBuilderAfterUsername(instance); } } - public static class UserusernamePutPathParameters10 implements GenericBuilder> { + public static class PathParametersMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "username" @@ -81,7 +81,7 @@ public static class UserusernamePutPathParameters10 implements GenericBuilder getKnownKeys() { return knownKeys; } - public UserusernamePutPathParameters10(Map instance) { + public PathParametersMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -89,16 +89,16 @@ public Map build() { } } - public static class UserusernamePutPathParameters8 implements SetterForUserusernamePutPathParameters2 { + public static class PathParametersMapBuilder implements SetterForUsername { private final Map instance; - public UserusernamePutPathParameters8() { + public PathParametersMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public UserusernamePutPathParameters10 getBuilderAfterUserusernamePutPathParameters2(Map instance) { - return new UserusernamePutPathParameters10(instance); + public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { + return new PathParametersMap0Builder(instance); } } @@ -107,7 +107,7 @@ public sealed interface UserusernamePutPathParameters1Boxed permits Userusername @Nullable Object getData(); } - public record UserusernamePutPathParameters1BoxedMap(UserusernamePutPathParameters9 data) implements UserusernamePutPathParameters1Boxed { + public record UserusernamePutPathParameters1BoxedMap(PathParametersMap data) implements UserusernamePutPathParameters1Boxed { @Override public @Nullable Object getData() { return data; @@ -115,7 +115,7 @@ public record UserusernamePutPathParameters1BoxedMap(UserusernamePutPathParamete } - public static class UserusernamePutPathParameters1 extends JsonSchema implements MapSchemaValidator { + public static class UserusernamePutPathParameters1 extends JsonSchema implements MapSchemaValidator { private static @Nullable UserusernamePutPathParameters1 instance = null; protected UserusernamePutPathParameters1() { @@ -127,7 +127,7 @@ protected UserusernamePutPathParameters1() { .required(Set.of( "username" )) - .additionalProperties(UserusernamePutPathParameters4.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -138,7 +138,7 @@ public static UserusernamePutPathParameters1 getInstance() { return instance; } - public UserusernamePutPathParameters9 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -161,10 +161,10 @@ public UserusernamePutPathParameters9 getNewInstance(Map arg, List properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new UserusernamePutPathParameters9(castProperties); + return new PathParametersMap(castProperties); } - public UserusernamePutPathParameters9 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java index a63c2279fe5..9382f9593cc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java @@ -8,16 +8,16 @@ import java.util.AbstractMap; -public class Server0 extends ServerWithVariables { +public class Server0 extends ServerWithVariables { /* petstore server */ - private static Server0Variables.Server0Variables14 getVariables() { + private static Server0Variables.VariablesMap getVariables() { try { return Server0Variables.Server0Variables1.getInstance().validate( MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("port", Server0Variables.Server0Variables5.getInstance().defaultValue()), - new AbstractMap.SimpleEntry<>("server", Server0Variables.Server0Variables2.getInstance().defaultValue()) + new AbstractMap.SimpleEntry<>("port", Server0Variables.Port.getInstance().defaultValue()), + new AbstractMap.SimpleEntry<>("server", Server0Variables.Server.getInstance().defaultValue()) ), new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); @@ -32,7 +32,7 @@ public Server0() { getVariables() ); } - public Server0(Server0Variables.Server0Variables14 variables) { + public Server0(Server0Variables.VariablesMap variables) { super("http://{server}.swagger.io:{port}/v2", variables); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java index 2492f2199bd..b70dfa52542 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java @@ -8,15 +8,15 @@ import java.util.AbstractMap; -public class Server1 extends ServerWithVariables { +public class Server1 extends ServerWithVariables { /* The local server */ - private static Server1Variables.Server1Variables11 getVariables() { + private static Server1Variables.VariablesMap getVariables() { try { return Server1Variables.Server1Variables1.getInstance().validate( MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("version", Server1Variables.Server1Variables2.getInstance().defaultValue()) + new AbstractMap.SimpleEntry<>("version", Server1Variables.Version.getInstance().defaultValue()) ), new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); @@ -31,7 +31,7 @@ public Server1() { getVariables() ); } - public Server1(Server1Variables.Server1Variables11 variables) { + public Server1(Server1Variables.VariablesMap variables) { super("https://localhost:8080/{version}", variables); } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java index df8cf29c66b..17047a99e8f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java @@ -33,24 +33,24 @@ public class Server0Variables { // nest classes so all schemas and input/output classes can be public - public static class Server0Variables9 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Server0Variables9 instance = null; - public static Server0Variables9 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new Server0Variables9(); + instance = new AdditionalProperties(); } return instance; } } - public enum StringServer0Variables3 implements StringValueMethod { + public enum StringServerEnums implements StringValueMethod { PETSTORE("petstore"), QA_HYPHEN_MINUS_PETSTORE("qa-petstore"), DEV_HYPHEN_MINUS_PETSTORE("dev-petstore"); private final String value; - StringServer0Variables3(String value) { + StringServerEnums(String value) { this.value = value; } public String value() { @@ -59,11 +59,11 @@ public String value() { } - public sealed interface Server0Variables2Boxed permits Server0Variables2BoxedString { + public sealed interface ServerBoxed permits ServerBoxedString { @Nullable Object getData(); } - public record Server0Variables2BoxedString(String data) implements Server0Variables2Boxed { + public record ServerBoxedString(String data) implements ServerBoxed { @Override public @Nullable Object getData() { return data; @@ -72,10 +72,10 @@ public record Server0Variables2BoxedString(String data) implements Server0Variab - public static class Server0Variables2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Server0Variables2 instance = null; + public static class Server extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Server instance = null; - protected Server0Variables2() { + protected Server() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -89,9 +89,9 @@ protected Server0Variables2() { ); } - public static Server0Variables2 getInstance() { + public static Server getInstance() { if (instance == null) { - instance = new Server0Variables2(); + instance = new Server(); } return instance; } @@ -108,7 +108,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringServer0Variables3 arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringServerEnums arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -133,23 +133,23 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public Server0Variables2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Server0Variables2BoxedString(validate(arg, configuration)); + public ServerBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new ServerBoxedString(validate(arg, configuration)); } @Override - public Server0Variables2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public ServerBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); } } - public enum StringServer0Variables6 implements StringValueMethod { + public enum StringPortEnums implements StringValueMethod { POSITIVE_80("80"), POSITIVE_8080("8080"); private final String value; - StringServer0Variables6(String value) { + StringPortEnums(String value) { this.value = value; } public String value() { @@ -158,11 +158,11 @@ public String value() { } - public sealed interface Server0Variables5Boxed permits Server0Variables5BoxedString { + public sealed interface PortBoxed permits PortBoxedString { @Nullable Object getData(); } - public record Server0Variables5BoxedString(String data) implements Server0Variables5Boxed { + public record PortBoxedString(String data) implements PortBoxed { @Override public @Nullable Object getData() { return data; @@ -171,10 +171,10 @@ public record Server0Variables5BoxedString(String data) implements Server0Variab - public static class Server0Variables5 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Server0Variables5 instance = null; + public static class Port extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Port instance = null; - protected Server0Variables5() { + protected Port() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -187,9 +187,9 @@ protected Server0Variables5() { ); } - public static Server0Variables5 getInstance() { + public static Port getInstance() { if (instance == null) { - instance = new Server0Variables5(); + instance = new Port(); } return instance; } @@ -206,7 +206,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringServer0Variables6 arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringPortEnums arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -231,11 +231,11 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public Server0Variables5BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Server0Variables5BoxedString(validate(arg, configuration)); + public PortBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new PortBoxedString(validate(arg, configuration)); } @Override - public Server0Variables5Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public PortBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } @@ -243,8 +243,8 @@ public Server0Variables5Boxed validateAndBox(@Nullable Object arg, SchemaConfigu } } - public static class Server0Variables14 extends FrozenMap { - protected Server0Variables14(FrozenMap m) { + public static class VariablesMap extends FrozenMap { + protected VariablesMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( @@ -252,7 +252,7 @@ protected Server0Variables14(FrozenMap m) { "server" ); public static final Set optionalKeys = Set.of(); - public static Server0Variables14 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Server0Variables1.getInstance().validate(arg, configuration); } @@ -273,41 +273,41 @@ public String server() { } } - public interface SetterForServer0Variables5 { + public interface SetterForPort { Map getInstance(); - T getBuilderAfterServer0Variables5(Map instance); + T getBuilderAfterPort(Map instance); default T port(String value) { var instance = getInstance(); instance.put("port", value); - return getBuilderAfterServer0Variables5(instance); + return getBuilderAfterPort(instance); } - default T port(StringServer0Variables6 value) { + default T port(StringPortEnums value) { var instance = getInstance(); instance.put("port", value.value()); - return getBuilderAfterServer0Variables5(instance); + return getBuilderAfterPort(instance); } } - public interface SetterForServer0Variables2 { + public interface SetterForServer { Map getInstance(); - T getBuilderAfterServer0Variables2(Map instance); + T getBuilderAfterServer(Map instance); default T server(String value) { var instance = getInstance(); instance.put("server", value); - return getBuilderAfterServer0Variables2(instance); + return getBuilderAfterServer(instance); } - default T server(StringServer0Variables3 value) { + default T server(StringServerEnums value) { var instance = getInstance(); instance.put("server", value.value()); - return getBuilderAfterServer0Variables2(instance); + return getBuilderAfterServer(instance); } } - public static class Server0Variables15 implements GenericBuilder> { + public static class VariablesMap00Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "port", @@ -316,7 +316,7 @@ public static class Server0Variables15 implements GenericBuilder getKnownKeys() { return knownKeys; } - public Server0Variables15(Map instance) { + public VariablesMap00Builder(Map instance) { this.instance = instance; } public Map build() { @@ -324,45 +324,45 @@ public Map build() { } } - public static class Server0Variables16 implements SetterForServer0Variables2 { + public static class VariablesMap01Builder implements SetterForServer { private final Map instance; - public Server0Variables16(Map instance) { + public VariablesMap01Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Server0Variables15 getBuilderAfterServer0Variables2(Map instance) { - return new Server0Variables15(instance); + public VariablesMap00Builder getBuilderAfterServer(Map instance) { + return new VariablesMap00Builder(instance); } } - public static class Server0Variables17 implements SetterForServer0Variables5 { + public static class VariablesMap10Builder implements SetterForPort { private final Map instance; - public Server0Variables17(Map instance) { + public VariablesMap10Builder(Map instance) { this.instance = instance; } public Map getInstance() { return instance; } - public Server0Variables15 getBuilderAfterServer0Variables5(Map instance) { - return new Server0Variables15(instance); + public VariablesMap00Builder getBuilderAfterPort(Map instance) { + return new VariablesMap00Builder(instance); } } - public static class Server0Variables13 implements SetterForServer0Variables5, SetterForServer0Variables2 { + public static class VariablesMapBuilder implements SetterForPort, SetterForServer { private final Map instance; - public Server0Variables13() { + public VariablesMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public Server0Variables16 getBuilderAfterServer0Variables5(Map instance) { - return new Server0Variables16(instance); + public VariablesMap01Builder getBuilderAfterPort(Map instance) { + return new VariablesMap01Builder(instance); } - public Server0Variables17 getBuilderAfterServer0Variables2(Map instance) { - return new Server0Variables17(instance); + public VariablesMap10Builder getBuilderAfterServer(Map instance) { + return new VariablesMap10Builder(instance); } } @@ -371,7 +371,7 @@ public sealed interface Server0Variables1Boxed permits Server0Variables1BoxedMap @Nullable Object getData(); } - public record Server0Variables1BoxedMap(Server0Variables14 data) implements Server0Variables1Boxed { + public record Server0Variables1BoxedMap(VariablesMap data) implements Server0Variables1Boxed { @Override public @Nullable Object getData() { return data; @@ -379,21 +379,21 @@ public record Server0Variables1BoxedMap(Server0Variables14 data) implements Serv } - public static class Server0Variables1 extends JsonSchema implements MapSchemaValidator { + public static class Server0Variables1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Server0Variables1 instance = null; protected Server0Variables1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( - new PropertyEntry("server", Server0Variables2.class), - new PropertyEntry("port", Server0Variables5.class) + new PropertyEntry("server", Server.class), + new PropertyEntry("port", Port.class) )) .required(Set.of( "port", "server" )) - .additionalProperties(Server0Variables9.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -404,7 +404,7 @@ public static Server0Variables1 getInstance() { return instance; } - public Server0Variables14 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -427,10 +427,10 @@ public Server0Variables14 getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new Server0Variables14(castProperties); + return new VariablesMap(castProperties); } - public Server0Variables14 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java index a5c92e6bc11..7d8425b6315 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java @@ -33,23 +33,23 @@ public class Server1Variables { // nest classes so all schemas and input/output classes can be public - public static class Server1Variables6 extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { // NotAnyTypeSchema - private static @Nullable Server1Variables6 instance = null; - public static Server1Variables6 getInstance() { + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { if (instance == null) { - instance = new Server1Variables6(); + instance = new AdditionalProperties(); } return instance; } } - public enum StringServer1Variables3 implements StringValueMethod { + public enum StringVersionEnums implements StringValueMethod { V1("v1"), V2("v2"); private final String value; - StringServer1Variables3(String value) { + StringVersionEnums(String value) { this.value = value; } public String value() { @@ -58,11 +58,11 @@ public String value() { } - public sealed interface Server1Variables2Boxed permits Server1Variables2BoxedString { + public sealed interface VersionBoxed permits VersionBoxedString { @Nullable Object getData(); } - public record Server1Variables2BoxedString(String data) implements Server1Variables2Boxed { + public record VersionBoxedString(String data) implements VersionBoxed { @Override public @Nullable Object getData() { return data; @@ -71,10 +71,10 @@ public record Server1Variables2BoxedString(String data) implements Server1Variab - public static class Server1Variables2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Server1Variables2 instance = null; + public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Version instance = null; - protected Server1Variables2() { + protected Version() { super(new JsonSchemaInfo() .type(Set.of( String.class @@ -87,9 +87,9 @@ protected Server1Variables2() { ); } - public static Server1Variables2 getInstance() { + public static Version getInstance() { if (instance == null) { - instance = new Server1Variables2(); + instance = new Version(); } return instance; } @@ -106,7 +106,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val } @Override - public String validate(StringServer1Variables3 arg,SchemaConfiguration configuration) throws ValidationException { + public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { return validate(arg.value(), configuration); } @@ -131,11 +131,11 @@ public String defaultValue() throws ValidationException { throw new ValidationException("Invalid type stored in defaultValue"); } @Override - public Server1Variables2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Server1Variables2BoxedString(validate(arg, configuration)); + public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new VersionBoxedString(validate(arg, configuration)); } @Override - public Server1Variables2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { if (arg instanceof String castArg) { return validateAndBox(castArg, configuration); } @@ -143,15 +143,15 @@ public Server1Variables2Boxed validateAndBox(@Nullable Object arg, SchemaConfigu } } - public static class Server1Variables11 extends FrozenMap { - protected Server1Variables11(FrozenMap m) { + public static class VariablesMap extends FrozenMap { + protected VariablesMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "version" ); public static final Set optionalKeys = Set.of(); - public static Server1Variables11 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Server1Variables1.getInstance().validate(arg, configuration); } @@ -164,24 +164,24 @@ public String version() { } } - public interface SetterForServer1Variables2 { + public interface SetterForVersion { Map getInstance(); - T getBuilderAfterServer1Variables2(Map instance); + T getBuilderAfterVersion(Map instance); default T version(String value) { var instance = getInstance(); instance.put("version", value); - return getBuilderAfterServer1Variables2(instance); + return getBuilderAfterVersion(instance); } - default T version(StringServer1Variables3 value) { + default T version(StringVersionEnums value) { var instance = getInstance(); instance.put("version", value.value()); - return getBuilderAfterServer1Variables2(instance); + return getBuilderAfterVersion(instance); } } - public static class Server1Variables12 implements GenericBuilder> { + public static class VariablesMap0Builder implements GenericBuilder> { private final Map instance; private static final Set knownKeys = Set.of( "version" @@ -189,7 +189,7 @@ public static class Server1Variables12 implements GenericBuilder getKnownKeys() { return knownKeys; } - public Server1Variables12(Map instance) { + public VariablesMap0Builder(Map instance) { this.instance = instance; } public Map build() { @@ -197,16 +197,16 @@ public Map build() { } } - public static class Server1Variables10 implements SetterForServer1Variables2 { + public static class VariablesMapBuilder implements SetterForVersion { private final Map instance; - public Server1Variables10() { + public VariablesMapBuilder() { this.instance = new LinkedHashMap<>(); } public Map getInstance() { return instance; } - public Server1Variables12 getBuilderAfterServer1Variables2(Map instance) { - return new Server1Variables12(instance); + public VariablesMap0Builder getBuilderAfterVersion(Map instance) { + return new VariablesMap0Builder(instance); } } @@ -215,7 +215,7 @@ public sealed interface Server1Variables1Boxed permits Server1Variables1BoxedMap @Nullable Object getData(); } - public record Server1Variables1BoxedMap(Server1Variables11 data) implements Server1Variables1Boxed { + public record Server1Variables1BoxedMap(VariablesMap data) implements Server1Variables1Boxed { @Override public @Nullable Object getData() { return data; @@ -223,19 +223,19 @@ public record Server1Variables1BoxedMap(Server1Variables11 data) implements Serv } - public static class Server1Variables1 extends JsonSchema implements MapSchemaValidator { + public static class Server1Variables1 extends JsonSchema implements MapSchemaValidator { private static @Nullable Server1Variables1 instance = null; protected Server1Variables1() { super(new JsonSchemaInfo() .type(Set.of(Map.class)) .properties(Map.ofEntries( - new PropertyEntry("version", Server1Variables2.class) + new PropertyEntry("version", Version.class) )) .required(Set.of( "version" )) - .additionalProperties(Server1Variables6.class) + .additionalProperties(AdditionalProperties.class) ); } @@ -246,7 +246,7 @@ public static Server1Variables1 getInstance() { return instance; } - public Server1Variables11 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); @@ -269,10 +269,10 @@ public Server1Variables11 getNewInstance(Map arg, List pathToItem, properties.put(propertyName, (String) propertyInstance); } FrozenMap castProperties = new FrozenMap<>(properties); - return new Server1Variables11(castProperties); + return new VariablesMap(castProperties); } - public Server1Variables11 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 4e7f613995e..b0e559beb8d 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -1268,8 +1268,8 @@ private String getSchemaPascalCaseName(String name, @NotNull String sourceJsonPa String lastFragment = pathPieces[pathPieces.length-1]; - boolean operationParametersSchema = sourceJsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment); - boolean serverVariables = (lastFragment.equals("variables") && Set.of(4,6,7).contains(pathPieces.length)); + boolean operationParametersSchema = (sourceJsonPath.startsWith("#/paths/") && xParameters.contains(lastFragment) && xParameters.contains(name)); + boolean serverVariables = (lastFragment.equals("variables") && Set.of(4,6,7).contains(pathPieces.length) && name.equals("variables")); if (sourceJsonPath.endsWith("/schema")) { if (sourceJsonPath.startsWith("#/paths") && sourceJsonPath.contains("/parameters/")) { if (pathPieces[3].equals("parameters")) { @@ -1291,7 +1291,7 @@ private String getSchemaPascalCaseName(String name, @NotNull String sourceJsonPa } else if (sourceJsonPath.startsWith("#/components/responses/") && sourceJsonPath.contains("/headers/")) { // #/components/responses/SomeResponse/headers/someHeader/schema String headerFragment = pathPieces[5]; - usedKey = camelize(headerFragment)+ camelize(usedKey); + usedKey = camelize(headerFragment) + camelize(usedKey); } else { // #/paths/path/verb/responses/SomeResponse/headers/someHeader/schema String headerFragment = pathPieces[7]; From 8e8f21941a4b39e5b1e3514f6e854a06c3aca37c Mon Sep 17 00:00:00 2001 From: Justin Black Date: Thu, 11 Apr 2024 18:20:54 -0700 Subject: [PATCH 08/12] Samples updated --- .../java/.openapi-generator/FILES | 4 +- samples/client/3_0_3_unit_test/java/README.md | 8 +-- .../3_0_3_unit_test/java/docs/ServerInfo.md | 59 +++++++++++++++++++ .../client/ServerInfo.java | 46 +++++++++++++++ .../configurations/ApiConfiguration.java | 41 +++++++------ .../client/3_0_3_unit_test/python/README.md | 6 +- .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../src/unit_test_api/servers/server_0.py | 3 + .../java/.openapi-generator/FILES | 4 +- samples/client/3_1_0_unit_test/java/README.md | 8 +-- .../3_1_0_unit_test/java/docs/ServerInfo.md | 59 +++++++++++++++++++ .../client/ServerInfo.java | 46 +++++++++++++++ .../configurations/ApiConfiguration.java | 41 +++++++------ .../client/3_1_0_unit_test/python/README.md | 6 +- .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../src/unit_test_api/servers/server_0.py | 3 + .../python/README.md | 6 +- .../paths/operators/post/operation.py | 3 + .../operators/post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../src/this_package/servers/server_0.py | 3 + .../security/python/README.md | 6 +- .../security_scheme_api_key.py | 3 + .../security_scheme_bearer_test.py | 3 + .../security_scheme_http_basic_test.py | 3 + .../get/operation.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../get/operation.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../get/operation.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../get/operation.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../security/security_requirement_object_1.py | 3 + .../security/security_requirement_object_0.py | 3 + .../security/security_requirement_object_1.py | 3 + .../security/security_requirement_object_2.py | 3 + .../security/security_requirement_object_3.py | 3 + .../src/this_package/servers/server_0.py | 3 + samples/client/petstore/python/README.md | 6 +- .../__init__.py | 3 + .../headers/header_number_header/__init__.py | 3 + .../__init__.py | 3 + .../header_ref_schema_header/__init__.py | 3 + .../header_ref_string_header/__init__.py | 3 + .../headers/header_string_header/__init__.py | 3 + .../__init__.py | 3 + .../parameter_path_user_name/__init__.py | 3 + .../parameter_ref_path_user_name/__init__.py | 3 + .../__init__.py | 3 + .../request_body_client/__init__.py | 3 + .../request_body_pet/__init__.py | 3 + .../request_body_ref_user_array/__init__.py | 3 + .../request_body_user_array/__init__.py | 3 + .../response_headers_with_no_body/__init__.py | 3 + .../headers/header_location/__init__.py | 3 + .../__init__.py | 3 + .../__init__.py | 3 + .../__init__.py | 3 + .../__init__.py | 3 + .../headers/header_some_header/__init__.py | 3 + .../__init__.py | 3 + .../headers/header_int32/__init__.py | 3 + .../headers/header_number_header/__init__.py | 3 + .../__init__.py | 3 + .../header_ref_schema_header/__init__.py | 3 + .../headers/header_string_header/__init__.py | 3 + .../__init__.py | 3 + .../security_scheme_api_key.py | 3 + .../security_scheme_api_key_query.py | 3 + .../security_scheme_bearer_test.py | 3 + .../security_scheme_http_basic_test.py | 3 + .../security_scheme_http_signature_test.py | 3 + .../security_scheme_open_id_connect_test.py | 3 + .../security_scheme_petstore_auth.py | 3 + .../another_fake_dummy/patch/operation.py | 3 + .../patch/request_body/__init__.py | 3 + .../patch/responses/response_200/__init__.py | 3 + .../common_param_sub_dir/delete/operation.py | 3 + .../delete/parameters/parameter_0/__init__.py | 3 + .../delete/parameters/parameter_1/__init__.py | 3 + .../delete/responses/response_200/__init__.py | 3 + .../common_param_sub_dir/get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../parameters/parameter_0/__init__.py | 3 + .../common_param_sub_dir/post/operation.py | 3 + .../post/parameters/parameter_0/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../paths/fake/delete/operation.py | 3 + .../delete/parameters/parameter_0/__init__.py | 3 + .../delete/parameters/parameter_1/__init__.py | 3 + .../delete/parameters/parameter_2/__init__.py | 3 + .../delete/parameters/parameter_3/__init__.py | 3 + .../delete/parameters/parameter_4/__init__.py | 3 + .../delete/parameters/parameter_5/__init__.py | 3 + .../delete/responses/response_200/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../petstore_api/paths/fake/get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/parameters/parameter_1/__init__.py | 3 + .../get/parameters/parameter_2/__init__.py | 3 + .../get/parameters/parameter_3/__init__.py | 3 + .../get/parameters/parameter_4/__init__.py | 3 + .../get/parameters/parameter_5/__init__.py | 3 + .../paths/fake/get/request_body/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../get/responses/response_404/__init__.py | 3 + .../paths/fake/patch/operation.py | 3 + .../paths/fake/patch/request_body/__init__.py | 3 + .../patch/responses/response_200/__init__.py | 3 + .../petstore_api/paths/fake/post/operation.py | 3 + .../paths/fake/post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/responses/response_404/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../get/operation.py | 3 + .../get/request_body/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../put/operation.py | 3 + .../put/request_body/__init__.py | 3 + .../put/responses/response_200/__init__.py | 3 + .../put/operation.py | 3 + .../put/parameters/parameter_0/__init__.py | 3 + .../put/request_body/__init__.py | 3 + .../put/responses/response_200/__init__.py | 3 + .../put/operation.py | 3 + .../put/parameters/parameter_0/__init__.py | 3 + .../put/parameters/parameter_1/__init__.py | 3 + .../put/parameters/parameter_2/__init__.py | 3 + .../put/responses/response_200/__init__.py | 3 + .../fake_classname_test/patch/operation.py | 3 + .../patch/request_body/__init__.py | 3 + .../patch/responses/response_200/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../fake_delete_coffee_id/delete/operation.py | 3 + .../delete/parameters/parameter_0/__init__.py | 3 + .../delete/responses/response_200/__init__.py | 3 + .../responses/response_default/__init__.py | 3 + .../paths/fake_health/get/operation.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../fake_inline_composition/post/operation.py | 3 + .../post/parameters/parameter_0/__init__.py | 3 + .../post/parameters/parameter_1/__init__.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../fake_json_form_data/get/operation.py | 3 + .../get/request_body/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../paths/fake_json_patch/patch/operation.py | 3 + .../patch/request_body/__init__.py | 3 + .../patch/responses/response_200/__init__.py | 3 + .../fake_json_with_charset/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../get/operation.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../get/responses/response_202/__init__.py | 3 + .../fake_multiple_securities/get/operation.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../security/security_requirement_object_1.py | 3 + .../security/security_requirement_object_2.py | 3 + .../paths/fake_obj_in_query/get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/parameters/parameter_0/__init__.py | 3 + .../post/parameters/parameter_1/__init__.py | 3 + .../post/parameters/parameter_10/__init__.py | 3 + .../post/parameters/parameter_11/__init__.py | 3 + .../post/parameters/parameter_12/__init__.py | 3 + .../post/parameters/parameter_13/__init__.py | 3 + .../post/parameters/parameter_14/__init__.py | 3 + .../post/parameters/parameter_15/__init__.py | 3 + .../post/parameters/parameter_16/__init__.py | 3 + .../post/parameters/parameter_17/__init__.py | 3 + .../post/parameters/parameter_18/__init__.py | 3 + .../post/parameters/parameter_2/__init__.py | 3 + .../post/parameters/parameter_3/__init__.py | 3 + .../post/parameters/parameter_4/__init__.py | 3 + .../post/parameters/parameter_5/__init__.py | 3 + .../post/parameters/parameter_6/__init__.py | 3 + .../post/parameters/parameter_7/__init__.py | 3 + .../post/parameters/parameter_8/__init__.py | 3 + .../post/parameters/parameter_9/__init__.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../fake_pem_content_type/get/operation.py | 3 + .../get/request_body/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/parameters/parameter_0/__init__.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../paths/fake_redirection/get/operation.py | 3 + .../get/responses/response_303/__init__.py | 3 + .../get/responses/response_3xx/__init__.py | 3 + .../fake_ref_obj_in_query/get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../fake_refs_arraymodel/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../paths/fake_refs_boolean/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../paths/fake_refs_enum/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../paths/fake_refs_mammal/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../paths/fake_refs_number/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../paths/fake_refs_string/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../get/operation.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../put/operation.py | 3 + .../put/parameters/parameter_0/__init__.py | 3 + .../put/parameters/parameter_1/__init__.py | 3 + .../put/parameters/parameter_2/__init__.py | 3 + .../put/parameters/parameter_3/__init__.py | 3 + .../put/parameters/parameter_4/__init__.py | 3 + .../put/parameters/parameter_5/__init__.py | 3 + .../put/responses/response_200/__init__.py | 3 + .../post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../paths/fake_upload_file/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../paths/fake_upload_files/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../fake_wild_card_responses/get/operation.py | 3 + .../get/responses/response_1xx/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../get/responses/response_2xx/__init__.py | 3 + .../get/responses/response_3xx/__init__.py | 3 + .../get/responses/response_4xx/__init__.py | 3 + .../get/responses/response_5xx/__init__.py | 3 + .../petstore_api/paths/foo/get/operation.py | 3 + .../responses/response_default/__init__.py | 3 + .../paths/foo/get/servers/server_0.py | 3 + .../paths/foo/get/servers/server_1.py | 3 + .../petstore_api/paths/pet/post/operation.py | 3 + .../paths/pet/post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/responses/response_405/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../security/security_requirement_object_1.py | 3 + .../security/security_requirement_object_2.py | 3 + .../petstore_api/paths/pet/put/operation.py | 3 + .../paths/pet/put/request_body/__init__.py | 3 + .../put/responses/response_400/__init__.py | 3 + .../put/responses/response_404/__init__.py | 3 + .../put/responses/response_405/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../security/security_requirement_object_1.py | 3 + .../paths/pet_find_by_status/get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../get/responses/response_400/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../security/security_requirement_object_1.py | 3 + .../security/security_requirement_object_2.py | 3 + .../pet_find_by_status/servers/server_0.py | 3 + .../pet_find_by_status/servers/server_1.py | 3 + .../paths/pet_find_by_tags/get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../get/responses/response_400/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../security/security_requirement_object_1.py | 3 + .../paths/pet_pet_id/delete/operation.py | 3 + .../delete/parameters/parameter_0/__init__.py | 3 + .../delete/parameters/parameter_1/__init__.py | 3 + .../delete/responses/response_400/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../security/security_requirement_object_1.py | 3 + .../paths/pet_pet_id/get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../get/responses/response_400/__init__.py | 3 + .../get/responses/response_404/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../paths/pet_pet_id/post/operation.py | 3 + .../post/parameters/parameter_0/__init__.py | 3 + .../pet_pet_id/post/request_body/__init__.py | 3 + .../post/responses/response_405/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../security/security_requirement_object_1.py | 3 + .../pet_pet_id_upload_image/post/operation.py | 3 + .../post/parameters/parameter_0/__init__.py | 3 + .../post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../paths/solidus/get/operation.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../paths/store_inventory/get/operation.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../security/security_requirement_object_0.py | 3 + .../paths/store_order/post/operation.py | 3 + .../store_order/post/request_body/__init__.py | 3 + .../post/responses/response_200/__init__.py | 3 + .../post/responses/response_400/__init__.py | 3 + .../store_order_order_id/delete/operation.py | 3 + .../delete/parameters/parameter_0/__init__.py | 3 + .../delete/responses/response_400/__init__.py | 3 + .../delete/responses/response_404/__init__.py | 3 + .../store_order_order_id/get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../get/responses/response_400/__init__.py | 3 + .../get/responses/response_404/__init__.py | 3 + .../petstore_api/paths/user/post/operation.py | 3 + .../paths/user/post/request_body/__init__.py | 3 + .../responses/response_default/__init__.py | 3 + .../user_create_with_array/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../responses/response_default/__init__.py | 3 + .../user_create_with_list/post/operation.py | 3 + .../post/request_body/__init__.py | 3 + .../responses/response_default/__init__.py | 3 + .../paths/user_login/get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/parameters/parameter_1/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../headers/header_int32/__init__.py | 3 + .../headers/header_number_header/__init__.py | 3 + .../__init__.py | 3 + .../header_x_expires_after/__init__.py | 3 + .../headers/header_x_rate_limit/__init__.py | 3 + .../get/responses/response_400/__init__.py | 3 + .../paths/user_logout/get/operation.py | 3 + .../responses/response_default/__init__.py | 3 + .../paths/user_username/delete/operation.py | 3 + .../delete/parameters/parameter_0/__init__.py | 3 + .../delete/responses/response_200/__init__.py | 3 + .../delete/responses/response_404/__init__.py | 3 + .../paths/user_username/get/operation.py | 3 + .../get/parameters/parameter_0/__init__.py | 3 + .../get/responses/response_200/__init__.py | 3 + .../get/responses/response_400/__init__.py | 3 + .../get/responses/response_404/__init__.py | 3 + .../paths/user_username/put/operation.py | 3 + .../put/parameters/parameter_0/__init__.py | 3 + .../put/request_body/__init__.py | 3 + .../put/responses/response_400/__init__.py | 3 + .../put/responses/response_404/__init__.py | 3 + .../src/petstore_api/servers/server_0.py | 3 + .../src/petstore_api/servers/server_1.py | 3 + .../src/petstore_api/servers/server_2.py | 3 + 1526 files changed, 4814 insertions(+), 65 deletions(-) create mode 100644 samples/client/3_0_3_unit_test/java/docs/ServerInfo.md create mode 100644 samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java create mode 100644 samples/client/3_1_0_unit_test/java/docs/ServerInfo.md create mode 100644 samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java diff --git a/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES b/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES index fb6c2ec5ba4..f0296136bf5 100644 --- a/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES +++ b/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES @@ -1,5 +1,5 @@ README.md -docs/RootServerInfo.md +docs/ServerInfo.md docs/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md docs/components/schemas/AdditionalpropertiesCanExistByItself.md @@ -89,7 +89,7 @@ docs/components/schemas/UriReferenceFormat.md docs/components/schemas/UriTemplateFormat.md docs/servers/Server0.md pom.xml -src/main/java/org/openapijsonschematools/client/RootServerInfo.java +src/main/java/org/openapijsonschematools/client/ServerInfo.java src/main/java/org/openapijsonschematools/client/apiclient/ApiClient.java src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.java src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java diff --git a/samples/client/3_0_3_unit_test/java/README.md b/samples/client/3_0_3_unit_test/java/README.md index f099f0a5a49..bf5ab04681e 100644 --- a/samples/client/3_0_3_unit_test/java/README.md +++ b/samples/client/3_0_3_unit_test/java/README.md @@ -1,11 +1,11 @@ -# +# petstore sample spec for testing openapi functionality, built from json schema tests for draft6 This Java package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: -- API version: 0.0.1 -- Package version: -- Build package: JavaClientGenerator +- OpenAPI document version: 0.0.1 +- Java Package version: 0.0.1 +- OpenAPI JSON Schema Generator, Generator: JavaClientGenerator ## Requirements diff --git a/samples/client/3_0_3_unit_test/java/docs/ServerInfo.md b/samples/client/3_0_3_unit_test/java/docs/ServerInfo.md new file mode 100644 index 00000000000..a50511d0405 --- /dev/null +++ b/samples/client/3_0_3_unit_test/java/docs/ServerInfo.md @@ -0,0 +1,59 @@ +# ServerInfo +ServerInfo.java + +public class ServerInfo + +A class that provides a server, and any needed server info classes +- a class that is a ServerProvider +- a builder for the ServerProvider +- an enum class that stores server index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [ServerInfo.ServerInfo1](#serverinfo1)
class that stores a server index | +| static class | [ServerInfo.ServerInfoBuilder](#serverinfobuilder)
class that stores a server index | +| enum | [ServerInfo.ServerIndex](#serverindex)
class that stores a server index | + +## ServerInfo1 +implements ServerProvider<[ServerIndex](#serverindex)>
+ +A class that stores servers and allows one to be returned with a ServerIndex instance + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ServerInfo1(@Nullable [Server0](servers/Server0.md) server0)
Creates an instance using passed in servers | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [Server0](servers/Server0.md) | server0 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Server | getServer([ServerIndex](#serverindex) serverIndex) | + +## ServerInfoBuilder + +a builder for [ServerInfo1](#serverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ServerInfoBuilder](#serverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | +| [ServerInfo1](#serverinfo1) | build() | + +## ServerIndex +enum ServerIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SERVER_0
server 0 | diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java new file mode 100644 index 00000000000..259aba01150 --- /dev/null +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client; + +import org.openapijsonschematools.client.servers.Server0; +import org.openapijsonschematools.client.servers.Server; +import org.openapijsonschematools.client.servers.ServerProvider; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.util.Objects; + +public class ServerInfo { + public static class ServerInfo1 implements ServerProvider { + private final Server0 server0; + + ServerInfo1( + @Nullable Server0 server0 + ) { + this.server0 = Objects.requireNonNullElseGet(server0, Server0::new); + } + + @Override + public Server getServer(ServerIndex serverIndex) { + return server0; + } + } + + public static class ServerInfoBuilder { + private @Nullable Server0 server0; + + public ServerInfoBuilder() {} + + public ServerInfoBuilder server0(Server0 server0) { + this.server0 = server0; + return this; + } + + public ServerInfo1 build() { + return new ServerInfo1( + server0 + ); + } + } + + public enum ServerIndex { + SERVER_0 + } +} \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java index 8eb5fd403ff..9791245f120 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.configurations; import org.openapijsonschematools.client.servers.Server; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.checkerframework.checker.nullness.qual.Nullable; import java.time.Duration; @@ -14,75 +14,78 @@ public class ApiConfiguration { private final ServerInfo serverInfo; private final ServerIndexInfo serverIndexInfo; private final @Nullable Duration timeout; + private final Map> defaultHeaders; public ApiConfiguration() { serverInfo = new ServerInfoBuilder().build(); serverIndexInfo = new ServerIndexInfoBuilder().build(); timeout = null; + defaultHeaders = new HashMap<>(); } - public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, Duration timeout) { + public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, Duration timeout, Map> defaultHeaders) { this.serverInfo = serverInfo; this.serverIndexInfo = serverIndexInfo; this.timeout = timeout; + this.defaultHeaders = defaultHeaders; } public static class ServerInfo { - final RootServerInfo.RootServerInfo1 rootServerInfo; + final ServerInfo.ServerInfo1 serverInfo; ServerInfo( - RootServerInfo. @Nullable RootServerInfo1 rootServerInfo + ServerInfo. @Nullable ServerInfo1 serverInfo ) { - this.rootServerInfo = Objects.requireNonNullElse(rootServerInfo, new RootServerInfo.RootServerInfoBuilder().build()); + this.serverInfo = Objects.requireNonNullElse(serverInfo, new ServerInfo.ServerInfoBuilder().build()); } } public static class ServerInfoBuilder { - private RootServerInfo. @Nullable RootServerInfo1 rootServerInfo; + private ServerInfo. @Nullable ServerInfo1 serverInfo; public ServerInfoBuilder() {} - public ServerInfoBuilder rootServerInfo(RootServerInfo.RootServerInfo1 rootServerInfo) { - this.rootServerInfo = rootServerInfo; + public ServerInfoBuilder serverInfo(ServerInfo.ServerInfo1 serverInfo) { + this.serverInfo = serverInfo; return this; } public ServerInfo build() { return new ServerInfo( - rootServerInfo + serverInfo ); } } public static class ServerIndexInfo { - final RootServerInfo.ServerIndex rootServerInfoServerIndex; + final ServerInfo.ServerIndex serverInfoServerIndex; ServerIndexInfo( - RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex + ServerInfo. @Nullable ServerIndex serverInfoServerIndex ) { - this.rootServerInfoServerIndex = Objects.requireNonNullElse(rootServerInfoServerIndex, RootServerInfo.ServerIndex.SERVER_0); + this.serverInfoServerIndex = Objects.requireNonNullElse(serverInfoServerIndex, ServerInfo.ServerIndex.SERVER_0); } } public static class ServerIndexInfoBuilder { - private RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; + private ServerInfo. @Nullable ServerIndex serverInfoServerIndex; public ServerIndexInfoBuilder() {} - public ServerIndexInfoBuilder rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { - this.rootServerInfoServerIndex = serverIndex; + public ServerIndexInfoBuilder serverInfoServerIndex(ServerInfo.ServerIndex serverIndex) { + this.serverInfoServerIndex = serverIndex; return this; } public ServerIndexInfo build() { return new ServerIndexInfo( - rootServerInfoServerIndex + serverInfoServerIndex ); } } - public Server getServer(RootServerInfo. @Nullable ServerIndex serverIndex) { - var serverProvider = serverInfo.rootServerInfo; + public Server getServer(ServerInfo. @Nullable ServerIndex serverIndex) { + var serverProvider = serverInfo.serverInfo; if (serverIndex == null) { - RootServerInfo.ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; + ServerInfo.ServerIndex configServerIndex = serverIndexInfo.serverInfoServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); diff --git a/samples/client/3_0_3_unit_test/python/README.md b/samples/client/3_0_3_unit_test/python/README.md index 1423dc78f22..c782d21bbe4 100644 --- a/samples/client/3_0_3_unit_test/python/README.md +++ b/samples/client/3_0_3_unit_test/python/README.md @@ -3,9 +3,9 @@ sample spec for testing openapi functionality, built from json schema tests for This Python package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: -- API version: 0.0.1 -- Package version: 1.0.0 -- Build package: PythonClientGenerator +- OpenAPI document version: 0.0.1 +- Python Package version: 1.0.0 +- OpenAPI JSON Schema Generator, Generator: PythonClientGenerator ## Requirements diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py index 3919d0459c1..b6c73310bab 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py index b99a1e03592..4da8ac063a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py index 87e6d559418..6e62809cd7f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py index 8e28a994247..31d046e3960 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py index df62c6894d1..5ff4ad1afde 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py index 364453afdf2..f3abe01b0a2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py index 167997e0be3..fc8f64b7e3b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py index 5d6e5a9417f..8e3ed68360f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py index c41c7abb227..7cff0845e2a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py index 7b4aa22f5c4..54637327f10 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py index 247deedb197..5bd0391f362 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py index de243529c40..7e0ea975d42 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py index c1d882fa50f..66c63e76331 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py index 5392be95ab2..35065997534 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py index 0b83156330d..c14ed6d310d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py index 9ec95b7ec02..bd5a9a20fc1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py index b7c44a67e0d..1a088348def 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py index 0c4bc24658c..8dbfaea52d7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py index 7d82e25ebaf..b3fd5188df4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py index 7e4d024e818..06b47b58615 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py index 1ebeac7c700..fb1bce5123e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py index 28c8dc3e083..24e122809cc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py index 8727d68b73b..2c986ee2500 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py index 6c2a295bdac..9d19e0774a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py index 994f98feb69..8ffd68b0c1b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py index c92dedda09a..9d88fb66de1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py index aff23b76309..d26d251901c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py index 139fe18c966..1efcfd85c55 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py index ed6e7b81230..309580ab5ab 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py index 46217c66181..2fbdc552c9f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py index b7d0f127816..b5e256c9ef6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py index b8cd1a3b31f..1854ed838e1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py index de6b538ad87..c93dd71f716 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py index 6a1cb6817a3..83de553df53 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py index 92369d23fc3..6f5dc7b21fe 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py index f37ca537c41..d9453dfce63 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py index a0eab10a36a..485c9f7c7d7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py index 898a1d303ed..edcc562d977 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py index 1c4f855e870..ec40c8d65bd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py index a666fb30fdb..e309548bd6d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py index 79d516829f0..4ffe6757b84 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py index f3b0af790a9..4594ade44d9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py index e61260a93cc..4ce1f567f7a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py index 80bae3df4d7..3364917c89f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py index 1661841a2fb..858b5708e6c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py index a96c9474e2c..543a839198f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py index 4918b3efd30..eb314b41354 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py index 98b26a84a6f..cbd00e096cf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py index d1d165a59ed..092e0131ef7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py index e48324ee80c..cc3a3344fbd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py index faa7c7266d4..df7bc66220b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py index b5ef0dca00d..441e83d15ff 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py index 57849fc889d..8c0232fe111 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py index d63f15c0b8c..538a42fdf50 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py index b521f8d42c5..e5096057d6a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py index e4b653621a0..47c71ec7d68 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py index 63ca3bef84a..64b2b8ed6e7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py index 4c48562b936..e097d20ab4a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py index 7075dfb67dc..57056df5927 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py index ee6a59eb03b..e2a0cf48810 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py index 2bb830e4fdc..415a20524f5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py index cde0061a258..0635f27cc89 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py index f3611231b21..91bee258d59 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py index 45aac1b0644..1105704ff32 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py index cf6a8fc241a..c5f88cc9e5c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py index d4d620851c1..11f7c485c1b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py index b48196cc896..1a9494a953e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py index ada223bdf12..46f6d257984 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py index b6432f845ea..395cea5af75 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py index c6d087a6178..897a0341a57 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py index d5ffe0b2ade..c8a1fbf33ff 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py index 41648e69095..ae1a1071a88 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_items_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py index a9f4bca11be..39de9093566 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_not_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py index a1bc1303f3a..44f11261d23 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py index d788cf02010..f8cffa9b30c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_ref_in_property_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py index 80c4ef28664..11d9ea9da23 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py index 292ea1ac909..920327c16c3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py index 8313bd00fd5..a4e88f6a99e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py index 9f84f5d435d..2f682a1a927 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py index 0734c74a9b2..adb21cd4f52 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py index 47cfc3771e9..cddf87b522a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py index aa3710a8391..63dc60faa88 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py index b8ae9395c4b..a50054c02d5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py index a3bc01d48ae..ca46071ac75 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py index ae1ef69813d..c47c184cfb7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py index 2e69c8c5e0f..7634d9d17d8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py index 17e17846bda..e197489813d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body/__init__.py index 467602655d0..fd3d6e860e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py index faf4da69820..0dce64d7062 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py index 169531f3cd6..666dce9e0c4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py index fd6b59ad840..80b8de695a5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py index 090b14d82de..f81ad7fdb34 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py index 30fdcbd90c7..c4451ac5723 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py index cf76c16b19f..dd9f34dbe2c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py index 0be3c6cd84b..3f2cb88c12c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py index 01e96ea5a8d..41635f4084a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py index 7dc48ea05b5..5296c838793 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py index da0d46d7ad9..73465c2fa7b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py index 95e82a9b74d..b012fcf804a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 6246cf73da7..b701cb6ff13 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py index 9d0d84c8b83..cdb51fd6121 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py index 07440623ae1..8811ac8798e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py index 5ddd8aba6cc..7b56b6c0d06 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py index 564492657b6..95a81286bba 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py index 99431cc5f3b..e47068a275b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py index 5a9ce6a0b52..9f144228f0c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 63fbad57c09..8ad3006f90f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 2238c21de72..041247971c3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py index e72819e1ddb..386377a6ac0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py index e44833e1983..6361d744ddb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py index a6705e72cab..f33fa8367d1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py index d7e8a22d1d4..f6d4a1840b7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py index 097f09a881f..da9270cd855 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py index d40fd29a04e..4e5dc633767 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py index 49e765acc99..af1d184e84b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py index 20ade10b80a..ded6432575d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py index 112a8424a30..095ec387b18 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py index 7534d1d4fdd..5374889c2e4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py index 452ca1bfe75..115cb73d3f0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py index 3d89df03917..33f637666a5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py index 452ca1bfe75..115cb73d3f0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py index b8ff055d10c..8ab3f57e451 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index e5ed3e05230..5978678d4ce 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py index 916c091d348..387a42fc4d7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py index d6132013814..657c6b7a2df 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py index eab55cb3656..5422a316b7f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py index 2002c2d4032..831043eac66 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py index 63dbc1d7b53..9d62357e361 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 219c773c01f..63121da4588 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py index 564fa742323..760a55834d4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py index 99ade598795..5174be14af2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py index 93b66401eae..5556b83875c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py index 9ed2d0b94fd..536c40471e7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py index 64105ee313a..02e6e3b200e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py index 9ed2d0b94fd..536c40471e7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py index 55db8d9d0eb..c055d18571c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py index da231a84141..59eaf80f530 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py index fb8dfd0b363..92ef11c76ef 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py index 55cd085b6b5..52d09bd8314 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py index fb63d32b1cc..272ba452be7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py index d5a88e876d0..cd1834f6323 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py index c080de1ae09..89e567ffe9b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py index 94fec2d28c4..050c36bc1e2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py index d2a9ba4469e..aa13b2f3736 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py index d67cb2110ae..b456dcd4e00 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py index e2806d1a61d..cc5886ae9bb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py index c830d5678bf..3a1dee7adbe 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py index 15946ad6450..199d1dce06b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py index c7464c7b38f..128bcff0ab1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py index 95226b68f3d..d6f4904f568 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 578d2167c2e..0382b75fedb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index b68edd3471b..de150e60a47 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py index e6fc6c285c9..9c4daf063a4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py index e2c4b4172df..5d1806a8bb9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index aa684fa8db6..90fd502e13e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py index 6ae647ad6f0..de50289402c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py index 0a73512a8b7..b19bbba9c63 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py index d1545d7dc02..f18d0504314 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 6018ccc2c1f..1d893570c37 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py index 5c40e450c0f..c598950cf22 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py index 54d2705ff29..1cefe58b940 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py index 907a62f5004..f8e3b28c2fb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py index 452ca1bfe75..115cb73d3f0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py index d28a04439db..c19dcf0f1bd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py index 08e97aa21b7..6d98428ff18 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py index 92b57bc83c8..53c72339903 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py index fc443417cde..ce83ba01013 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py index 085a08a618e..b994b80df36 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py index 1fae0ff470d..45d2324600b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 63fbad57c09..8ad3006f90f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py index 0f147a7dca7..9275c389b88 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py index a04bd8b8243..004e0ec60ec 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py index 92b57bc83c8..53c72339903 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py index e4d865cd63e..7961390fa8d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py index f271f994e3f..5b3cbe21369 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py index 74d601d6ca6..b6d84ede86a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py index 222ecd2bd65..7652856ca21 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py index b0b7510fda7..c50139bec5a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py index 88f7d854dcb..386cd72938e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py index df6ab9e0998..443b3fbc876 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py index 8fbf2b36ac6..8f41e2d10bf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py index 869038af506..d8c0de52dc5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py index 611e9164a7e..511aa445d6a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py index c5e2ddf926c..a946e88fe69 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py index a296e1cd756..e7251f4bc89 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py index 96d196b3daf..527f5d763d3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py index f0905a65506..c0cd8036ffd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py index a4ce81f6b8b..a3188f62a0c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py index 78ca7737667..245c307f280 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py index 7e1bd517f1b..cd67e9ae4d2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py index 0f0f1c9b902..f7a25de639e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 452ca1bfe75..115cb73d3f0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py index 102cea8c432..02a2f43e769 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 63fbad57c09..8ad3006f90f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py index 6d0ec3120dd..5a8e971f88e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py index f0f9a67ee77..b5393599bce 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py index d8c291ec290..6fd6af4c1cd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py index 85ab539389c..881b280c7f7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py index 2e78f3fc368..c360e0aac08 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py index ce243405e0e..284bee34aa7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py index 94aa199b34a..946878dbc1a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py index 10fe962414b..c7919ddd276 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/servers/server_0.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/servers/server_0.py index c349fe628b0..acc1938e9c1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/servers/server_0.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/servers/server_0.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES index d54b57e2bf0..6318414d165 100644 --- a/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES @@ -1,5 +1,5 @@ README.md -docs/RootServerInfo.md +docs/ServerInfo.md docs/components/schemas/ASchemaGivenForPrefixitems.md docs/components/schemas/AdditionalItemsAreAllowedByDefault.md docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md @@ -145,7 +145,7 @@ docs/components/schemas/UuidFormat.md docs/components/schemas/ValidateAgainstCorrectBranchThenVsElse.md docs/servers/Server0.md pom.xml -src/main/java/org/openapijsonschematools/client/RootServerInfo.java +src/main/java/org/openapijsonschematools/client/ServerInfo.java src/main/java/org/openapijsonschematools/client/apiclient/ApiClient.java src/main/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitems.java src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefault.java diff --git a/samples/client/3_1_0_unit_test/java/README.md b/samples/client/3_1_0_unit_test/java/README.md index 13c34a587c5..7bf207bb737 100644 --- a/samples/client/3_1_0_unit_test/java/README.md +++ b/samples/client/3_1_0_unit_test/java/README.md @@ -1,11 +1,11 @@ -# +# openapi-java-client sample spec for testing openapi functionality, built from json schema tests for draft2020-12 This Java package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: -- API version: 0.0.1 -- Package version: -- Build package: JavaClientGenerator +- OpenAPI document version: 0.0.1 +- Java Package version: 0.0.1 +- OpenAPI JSON Schema Generator, Generator: JavaClientGenerator ## Requirements diff --git a/samples/client/3_1_0_unit_test/java/docs/ServerInfo.md b/samples/client/3_1_0_unit_test/java/docs/ServerInfo.md new file mode 100644 index 00000000000..a50511d0405 --- /dev/null +++ b/samples/client/3_1_0_unit_test/java/docs/ServerInfo.md @@ -0,0 +1,59 @@ +# ServerInfo +ServerInfo.java + +public class ServerInfo + +A class that provides a server, and any needed server info classes +- a class that is a ServerProvider +- a builder for the ServerProvider +- an enum class that stores server index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [ServerInfo.ServerInfo1](#serverinfo1)
class that stores a server index | +| static class | [ServerInfo.ServerInfoBuilder](#serverinfobuilder)
class that stores a server index | +| enum | [ServerInfo.ServerIndex](#serverindex)
class that stores a server index | + +## ServerInfo1 +implements ServerProvider<[ServerIndex](#serverindex)>
+ +A class that stores servers and allows one to be returned with a ServerIndex instance + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ServerInfo1(@Nullable [Server0](servers/Server0.md) server0)
Creates an instance using passed in servers | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [Server0](servers/Server0.md) | server0 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Server | getServer([ServerIndex](#serverindex) serverIndex) | + +## ServerInfoBuilder + +a builder for [ServerInfo1](#serverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ServerInfoBuilder](#serverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | +| [ServerInfo1](#serverinfo1) | build() | + +## ServerIndex +enum ServerIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SERVER_0
server 0 | diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java new file mode 100644 index 00000000000..259aba01150 --- /dev/null +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java @@ -0,0 +1,46 @@ +package org.openapijsonschematools.client; + +import org.openapijsonschematools.client.servers.Server0; +import org.openapijsonschematools.client.servers.Server; +import org.openapijsonschematools.client.servers.ServerProvider; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.util.Objects; + +public class ServerInfo { + public static class ServerInfo1 implements ServerProvider { + private final Server0 server0; + + ServerInfo1( + @Nullable Server0 server0 + ) { + this.server0 = Objects.requireNonNullElseGet(server0, Server0::new); + } + + @Override + public Server getServer(ServerIndex serverIndex) { + return server0; + } + } + + public static class ServerInfoBuilder { + private @Nullable Server0 server0; + + public ServerInfoBuilder() {} + + public ServerInfoBuilder server0(Server0 server0) { + this.server0 = server0; + return this; + } + + public ServerInfo1 build() { + return new ServerInfo1( + server0 + ); + } + } + + public enum ServerIndex { + SERVER_0 + } +} \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java index 8eb5fd403ff..9791245f120 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.configurations; import org.openapijsonschematools.client.servers.Server; -import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.ServerInfo; import org.checkerframework.checker.nullness.qual.Nullable; import java.time.Duration; @@ -14,75 +14,78 @@ public class ApiConfiguration { private final ServerInfo serverInfo; private final ServerIndexInfo serverIndexInfo; private final @Nullable Duration timeout; + private final Map> defaultHeaders; public ApiConfiguration() { serverInfo = new ServerInfoBuilder().build(); serverIndexInfo = new ServerIndexInfoBuilder().build(); timeout = null; + defaultHeaders = new HashMap<>(); } - public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, Duration timeout) { + public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, Duration timeout, Map> defaultHeaders) { this.serverInfo = serverInfo; this.serverIndexInfo = serverIndexInfo; this.timeout = timeout; + this.defaultHeaders = defaultHeaders; } public static class ServerInfo { - final RootServerInfo.RootServerInfo1 rootServerInfo; + final ServerInfo.ServerInfo1 serverInfo; ServerInfo( - RootServerInfo. @Nullable RootServerInfo1 rootServerInfo + ServerInfo. @Nullable ServerInfo1 serverInfo ) { - this.rootServerInfo = Objects.requireNonNullElse(rootServerInfo, new RootServerInfo.RootServerInfoBuilder().build()); + this.serverInfo = Objects.requireNonNullElse(serverInfo, new ServerInfo.ServerInfoBuilder().build()); } } public static class ServerInfoBuilder { - private RootServerInfo. @Nullable RootServerInfo1 rootServerInfo; + private ServerInfo. @Nullable ServerInfo1 serverInfo; public ServerInfoBuilder() {} - public ServerInfoBuilder rootServerInfo(RootServerInfo.RootServerInfo1 rootServerInfo) { - this.rootServerInfo = rootServerInfo; + public ServerInfoBuilder serverInfo(ServerInfo.ServerInfo1 serverInfo) { + this.serverInfo = serverInfo; return this; } public ServerInfo build() { return new ServerInfo( - rootServerInfo + serverInfo ); } } public static class ServerIndexInfo { - final RootServerInfo.ServerIndex rootServerInfoServerIndex; + final ServerInfo.ServerIndex serverInfoServerIndex; ServerIndexInfo( - RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex + ServerInfo. @Nullable ServerIndex serverInfoServerIndex ) { - this.rootServerInfoServerIndex = Objects.requireNonNullElse(rootServerInfoServerIndex, RootServerInfo.ServerIndex.SERVER_0); + this.serverInfoServerIndex = Objects.requireNonNullElse(serverInfoServerIndex, ServerInfo.ServerIndex.SERVER_0); } } public static class ServerIndexInfoBuilder { - private RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; + private ServerInfo. @Nullable ServerIndex serverInfoServerIndex; public ServerIndexInfoBuilder() {} - public ServerIndexInfoBuilder rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { - this.rootServerInfoServerIndex = serverIndex; + public ServerIndexInfoBuilder serverInfoServerIndex(ServerInfo.ServerIndex serverIndex) { + this.serverInfoServerIndex = serverIndex; return this; } public ServerIndexInfo build() { return new ServerIndexInfo( - rootServerInfoServerIndex + serverInfoServerIndex ); } } - public Server getServer(RootServerInfo. @Nullable ServerIndex serverIndex) { - var serverProvider = serverInfo.rootServerInfo; + public Server getServer(ServerInfo. @Nullable ServerIndex serverIndex) { + var serverProvider = serverInfo.serverInfo; if (serverIndex == null) { - RootServerInfo.ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; + ServerInfo.ServerIndex configServerIndex = serverIndexInfo.serverInfoServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); diff --git a/samples/client/3_1_0_unit_test/python/README.md b/samples/client/3_1_0_unit_test/python/README.md index 44ea6788376..9139a523b4a 100644 --- a/samples/client/3_1_0_unit_test/python/README.md +++ b/samples/client/3_1_0_unit_test/python/README.md @@ -3,9 +3,9 @@ sample spec for testing openapi functionality, built from json schema tests for This Python package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: -- API version: 0.0.1 -- Package version: 1.0.0 -- Build package: PythonClientGenerator +- OpenAPI document version: 0.0.1 +- Python Package version: 1.0.0 +- OpenAPI JSON Schema Generator, Generator: PythonClientGenerator ## Requirements diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py index 6d6d380e5d0..4f574e0fe10 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_a_schema_given_for_prefixitems_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py index f3b9b87acc2..d8e30aff09b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additional_items_are_allowed_by_default_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py index b99a1e03592..857ac919ac2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py index 87e6d559418..85e979c50c5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py index 9c7bc76580f..fd589a5aec2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py index 00100400f0d..60a4b3a4066 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py index ab77eba6c6e..b17aeca9200 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_additionalproperties_with_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py index df62c6894d1..267259d27ff 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py index 364453afdf2..00624f649ff 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py index 167997e0be3..c2a28855c93 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py index 5d6e5a9417f..ea0824b3d38 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py index c41c7abb227..d7a3f6b8d98 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py index 7b4aa22f5c4..ee26464dc40 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py index 247deedb197..444deabe466 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py index de243529c40..ce0bdff1f5d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py index c1d882fa50f..97f1c78cf51 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py index 5392be95ab2..6c739b0478a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py index 0b83156330d..e53c0fd9f6e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py index 9ec95b7ec02..d57eb7c7115 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py index 72892c80af4..10d8d4c0a0e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py index 0c4bc24658c..1f4be22300a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py index 7d82e25ebaf..cada8f4a8a4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_int_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py index 7e4d024e818..bc7e8490ba9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_number_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py index 1ebeac7c700..fd3b028f1ac 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_by_small_number_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py index 18369da04a2..f45644d145b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_const_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py index 830dda4b153..260bad0e71a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_keyword_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py index bd41275d157..c0ca228e3c0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_contains_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py index ced4dc36099..91feee5ccba 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py index 28c8dc3e083..895a5292d55 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_date_time_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py index 5a1fb62f86d..f442b20001d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py index c3510c8d682..c6966e64708 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py index 014c233f4df..e07f6c572af 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_dependent_schemas_single_dependency_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py index 8dc7821a78c..ec59a408c4f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_duration_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py index 8727d68b73b..e89fc63b96f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_email_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py index 2be9b66a1ba..12d88816104 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_empty_dependents_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py index 6c2a295bdac..15d51b48aed 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py index 994f98feb69..3fd39c40b97 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py index c92dedda09a..a88cd4bdca3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py index aff23b76309..6ba9267ee7d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py index 139fe18c966..5247cac4f85 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py index ed6e7b81230..61bdb1bef1c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py index edd599d735e..4a8c1181126 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusivemaximum_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py index 3c7a472390b..48d13f429d7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_exclusiveminimum_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py index 37591a2e5ac..62887769583 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_float_division_inf_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py index 46217c66181..fe6a16af39f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_forbidden_property_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py index b7d0f127816..19915aff74f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_hostname_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py index 1c49301289f..5a4a044082b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_email_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py index fe88d638d22..d693ceadde3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_idn_hostname_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py index dfdf96efd50..0073e94df14 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_else_without_then_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py index d25a45af6fe..9405895dced 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_and_then_without_else_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py index 763a8f82c65..52a37ce675b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py index 32189052e9a..5d065147b52 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_else_without_if_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py index d7c0009ac71..b9f05fde0f2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_if_without_then_or_else_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py index 101382e7c5c..3bd96826781 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ignore_then_without_if_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py index b8cd1a3b31f..38666d8563a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py index 92369d23fc3..c6c8a4fd0a7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv4_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py index f37ca537c41..6c8660f296a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_ipv6_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py index 3c0480c3d55..b8c72adf80f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py index f31a62594e8..1fbf1557fe0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_iri_reference_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py index 7692eaf1b4f..f5eea24491f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_contains_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py index 2b98a7cec35..6b58146f69b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py index e4b768d2d53..e97720405ff 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_items_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py index a0eab10a36a..f76111cda99 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py index de1d349aec8..0964ab688c4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py index 898a1d303ed..7df6bdc1a47 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py index 1c4f855e870..4298bd2d832 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py index a666fb30fdb..ad7ca996f4b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py index 79d516829f0..abcbdb716e6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py index f3b0af790a9..56066064c3e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py index e61260a93cc..f172baa3d5c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py index 3db6e0bea17..dba6411887e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_mincontains_without_contains_is_ignored_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py index 80bae3df4d7..59461fcbe95 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py index 1661841a2fb..1cd5cf143fe 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py index a96c9474e2c..c6dbecf360a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minitems_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py index 4918b3efd30..f92944c5f9b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minlength_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py index 98b26a84a6f..27ec36c3c83 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py index 99969069a59..7288e3c1a81 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_dependents_required_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py index 0917d77bbaa..8d3653f6acd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py index 30ea017614c..633098db296 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py index d1d165a59ed..d9d9f8d2285 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py index e48324ee80c..45858543f13 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py index faa7c7266d4..696c1d6eeb1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_items_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py index b5ef0dca00d..9beb9ba48d3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py index ed46508e365..3379350dc8d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py index 6689eb0806a..16ba5e893bd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_non_interference_across_combined_schemas_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py index 57849fc889d..18a174b6c76 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py index 813d5df443b..b0635d41423 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_multiple_types_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py index d63f15c0b8c..931ebbe2b70 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_not_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py index b521f8d42c5..544764b1362 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py index e4b653621a0..e0b117bffe4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py index 63ca3bef84a..a70de1128c7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py index 4c48562b936..c4585bafa0e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py index 7075dfb67dc..5d6c8429e5c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py index ee6a59eb03b..63baa97c0f2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py index 2bb830e4fdc..8143349eb7e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py index cde0061a258..bd36397944e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py index f3611231b21..230ad1b2211 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py index 45aac1b0644..bd2680b0f5e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py index cf6a8fc241a..ca016df301a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py index d4d620851c1..432758aa46b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_pattern_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py index 2f4da875ddd..43a91612cb5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py index 123440ad216..f5dbe2de325 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py index 0447024ed3a..3afab9946ad 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py index 8d2983fa5e5..bcf68d5f189 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_prefixitems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py index 98a12abbda6..0a02ccec7f9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py index 0dba4a7183f..8773f507dda 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py index b48196cc896..258b0415b9b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py index 39f1c801651..b876a5b58a0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_properties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py index ada223bdf12..799512935b7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py index 70a26dcbec1..144d2234a27 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_propertynames_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py index 74c6c604d0c..7a29c25c8d7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regex_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py index 1a805ba7d55..48ba8ee3da1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py index eacb7bc88e0..52126d828b4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_relative_json_pointer_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py index 80c4ef28664..31347df3508 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_default_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py index 9abb4938fce..b7cf167582d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py index 292ea1ac909..eee48a423ed 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py index 8313bd00fd5..12214849b6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py index 9f84f5d435d..c748fa15236 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py index 0734c74a9b2..aa0579b0de2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py index 7ec7ea3090a..3ff75b06792 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_single_dependency_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py index 7b2ab1cc825..896ebabdd41 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_small_multiple_of_large_integer_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py index 47cfc3771e9..109a84aabd6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py index ae00b95534b..b31c1a12d85 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_time_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py index f792ab074b1..3e85c13aec9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_object_or_null_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py index 27a44a83efd..cf9c9afd81b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_array_or_object_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py index 75e3070b9b1..6f396cd0c45 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_type_as_array_with_one_item_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py index 72a25cff615..947d3f73680 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_as_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py index 62870819cbd..e990caa02be 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py index 67331407422..b12c2606368 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_items_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py index cce37becda4..6ca73cb63b0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py index 3efc07a77fb..c7a0696a675 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py index ec2dfd17c42..a3ef2d456ce 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_schema_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py index 0748058e43f..2b99c4fb898 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py index 332b1e3f331..50c7a2039d7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py index b8ae9395c4b..aff97fe5a76 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py index fe8d5a5b7e4..e2437cff552 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py index a3bc01d48ae..005212211fe 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py index e2cc98e366d..0569aa07923 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py index ae1ef69813d..00614289459 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py index 2e69c8c5e0f..ef58d4d874c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py index 17e17846bda..9f92916bc7e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uri_template_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py index a8d9d683a6f..5a050c81b6c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_uuid_format_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py index e14d8693879..411365bd23a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/request_body/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/request_body/__init__.py index 499cda37855..4e4f868fb94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/request_body/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py index faf4da69820..8901f67d786 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py index 319d03afcd8..74d6c5ee19c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py index 97c0119aa1a..12f28d4548c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py index 090b14d82de..e07b81b810e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py index 30fdcbd90c7..985420497e1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py index d97b1d45dc6..675b1572e96 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py index 1805e4ef1b5..0b1a418433b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index 64af8229144..bd166d4ca09 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 857ab1749c9..37f66603a57 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py index ded000f1660..f489b9f57aa 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py index c829cef057a..51b1a25980d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py index 01e96ea5a8d..203d6cc7d6b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py index 7dc48ea05b5..a624aef3b4e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py index da0d46d7ad9..b0e93bcadac 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py index 95e82a9b74d..ea2ce2ef13b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 6246cf73da7..decde79e4c0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py index 9d0d84c8b83..484754a0b90 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py index 07440623ae1..205d717b4bb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py index 5ddd8aba6cc..78ce20885b1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py index 564492657b6..71442c4ada8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py index 99431cc5f3b..06a0d4beac1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py index 5a9ce6a0b52..e10d6c51fd0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 3cf51f1225b..7468b61c396 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py index 2238c21de72..ddc126cda60 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py index e72819e1ddb..051ac17f721 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py index 4226a7c1a81..d0076c37ac9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py index a6705e72cab..f13db2007a9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py index 8750f0a1711..5e02d41e2d9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py index 097f09a881f..fd9e56d7f96 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py index d40fd29a04e..5d092d874f3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py index 49e765acc99..0bcbfcbb6ea 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py index 82b09a8caeb..a595e486867 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py index 566cf9d7feb..9c57e2bb765 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py index e79c3d855bd..cd5e23d5049 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py index c50910e73b7..6ce18c03c32 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py index 20ade10b80a..42d1cb406b9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py index c79175c1d7b..528409ff8b2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py index 42cd9b0021f..13d95df909e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py index db90565fec6..4b202a45b25 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py index 107fa16baea..d1c7fcccb0d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py index 112a8424a30..80284d3f6fb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py index e2279c23b6f..5f25a8f1e80 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py index 7534d1d4fdd..a1d6fd7fe83 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py index 16243857094..3592147b6c0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py index 3d89df03917..7aba4163616 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py index 16243857094..3592147b6c0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py index b8ff055d10c..e287dc138dd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index aafc74c83ab..24c0a927adc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py index 916c091d348..4626aa0e664 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py index c1a84db233d..08b02f67201 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py index eab55cb3656..c48453e2ce5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py index ff97af6059c..9fe992cf04b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py index 63dbc1d7b53..743cf83d8aa 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py index a0e1d0cfda2..31e577bf106 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py index e180f838792..960d1e733a4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py index f2d769d7c58..3e0e03fa876 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py index e7320988b0e..59ab5ccf2cf 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py index 8b47abaef1f..bc669dfbf43 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py index 564fa742323..e69e014287a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py index 99ade598795..87b357f8880 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py index 2c0b9fb7c22..148d3d493ce 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py index c34feba14de..b65f786f22f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py index 8f61bfcf481..b5378d22a00 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py index d7fddf5533d..e850194894f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py index dbb83b0f6a7..c3e78817bea 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py index 0fbf7dc2eac..9f603585819 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py index fec7112fad0..f84af30fd6e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py index 51232349393..c86b14d0bca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py index 93b66401eae..6455cdcd3fb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py index 8b47abaef1f..bc669dfbf43 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py index da231a84141..7bb0cd3b4db 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py index fb8dfd0b363..36255a11492 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py index 9d8a10b0675..30a18d018f6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py index 912dddc48e4..fb31058eca7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py index 9f632e99a65..997cb197b48 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py index 42765dde680..a346b87e115 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py index 130e5fad600..f41498b3e8b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py index 7bc46125060..2a9e5f702c1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py index bd75ca993af..2dcab00e142 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index c5084b0a702..70f56c58954 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py index 55cd085b6b5..5fbd6622114 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py index 19511a03fd5..f17a0dd7074 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py index fb63d32b1cc..18b5ff03a43 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py index d5a88e876d0..642d81469ae 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py index c080de1ae09..d05a930a986 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py index 94fec2d28c4..b93e050f7c9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py index d2a9ba4469e..83a5a754f7a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py index d67cb2110ae..5aeb318960b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py index c0091e979c5..666b25f8a1c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py index e2806d1a61d..3f6b51dd03f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py index c830d5678bf..c4c307ee6b8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py index 15946ad6450..3c9a1e934e0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py index c7464c7b38f..970d83f4955 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py index 95226b68f3d..0b2132bf338 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py index be22504c7f3..9be6f207e84 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py index 73e89eca01b..efd0dc877b5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py index dfd72785ae9..1eb3d9dfdbd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py index ad5551d8a16..86f9ddd4c81 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index 578d2167c2e..60099e78014 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index b68edd3471b..80051b3f916 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py index e6fc6c285c9..6d637bc93f4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py index d3bd11681d3..7eae3db5199 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py index aa684fa8db6..64eb543efd1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py index 208bee80b1d..d581a1c8c66 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py index d9a0c61ba01..a7e36a990ab 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py index 178c1eda5f8..1b216ecb693 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py index 6ae647ad6f0..e05e77910ba 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py index a85a9f51f05..c73a0fb4763 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py index 0a73512a8b7..79f231da921 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py index d1545d7dc02..ac015dbc86d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 35d5954110c..9031276bb2b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py index 5c40e450c0f..17c7bc1e5f9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py index 045f0a42898..b68a3ed212f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py index 907a62f5004..52918012cd3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py index 16243857094..3592147b6c0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py index d28a04439db..d21cc3b25cd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py index 08e97aa21b7..deff37917c0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py index 6d2bcdf9e1a..97b3b249cbc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py index fc443417cde..e31b8e20f48 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py index 085a08a618e..573acdcbeaf 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py index 1fae0ff470d..eaf4645efc2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 3cf51f1225b..7468b61c396 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py index 0f147a7dca7..9e6a56730be 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py index a04bd8b8243..14a0426d61f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py index 6d2bcdf9e1a..97b3b249cbc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py index e4d865cd63e..b844f1f2af8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py index f271f994e3f..a7f6131763f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py index 6956b643f85..98465b6c2a4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index aa07d6c6835..a288e2edf0f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py index dc7e4baee86..713c86292a4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py index 6d332b0a9a0..61f07e91595 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py index 65c5db69ce6..b87448851fc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py index 724e8380844..4dfeb3dced5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py index 30ab52c1eed..2cfddf5d9e3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py index 371cc9b476a..56ea12c8c94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py index 74d601d6ca6..6280d3941bf 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index c6bddfea3ee..40a6fc40042 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py index 222ecd2bd65..093a3752b5c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py index 34b7f8a85b8..1409bd3cd43 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py index 81266b05535..ca8a03d4611 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py index 8ca593f1ec9..19bf9fcbced 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py index 3379e135512..09269c022fe 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py index f0905a65506..e5bef9320ac 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py index c09510aad65..58ff8701aea 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py index a4ce81f6b8b..2751b870e49 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py index 78ca7737667..07c50ea63ef 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py index 7e1bd517f1b..e1c1ec9d1a1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py index 0f0f1c9b902..e86ec17c61f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 16243857094..3592147b6c0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py index 787bdad21e3..ca54e2a054f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py index 36a9c192879..24d1fedfa0d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py index 8b47abaef1f..bc669dfbf43 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py index 102cea8c432..a1777af1bf8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py index 3cf51f1225b..7468b61c396 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py index 79f07712bd3..cfd479cd715 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py index d7ba053d548..a267a37e3bb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py index b422df60b99..9e149133969 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py index e1c63ea3d78..20f4dba0528 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py index d7b4f85c9fd..1e2cf5297ef 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py index 363d297a19f..7318fe02d35 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py index 3cf51f1225b..7468b61c396 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py index 871a18a9998..b0d8486f0f6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py index 66e931b6c94..e1592a282bc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py index 8b98ff6d03b..83c134d4b5e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py index 38b2ee299ca..02289f75757 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py index d81235a3899..f49a7e5aaed 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py index a764edcd841..50217c5a860 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py index 67f2012e30b..8be12fa7890 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py index 6d2bcdf9e1a..97b3b249cbc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py index 19b2e351702..c29a577efe8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py index fae63f156f2..8e68299d3ec 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py index 53c3cc7a89c..f9f197806d0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py index d8c291ec290..a0a1c96d54f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py index ab2f9d01e07..8cd78f51b0a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py index 85ab539389c..b1ec94121c9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py index 04c9e6f9f85..ffd5774639d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py index 2e78f3fc368..0c0bcb3a435 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py index ce243405e0e..b69afb7eb46 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py index 94aa199b34a..0a0223e80b3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py index 90c0a364934..a581a425916 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py index 744418d82c9..aa9548aa51a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py index 4e2bb60fd6d..0a0a4adf45d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/servers/server_0.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/servers/server_0.py index c349fe628b0..d095ae0481d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/servers/server_0.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/servers/server_0.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md index cd3c9b1fb56..1a571429a50 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md @@ -3,9 +3,9 @@ No description provided (generated by Openapi JSON Schema Generator https://gith This Python package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: -- API version: 1.0 -- Package version: 1.0.0 -- Build package: PythonClientGenerator +- OpenAPI document version: 1.0 +- Python Package version: 1.0.0 +- OpenAPI JSON Schema Generator, Generator: PythonClientGenerator ## Requirements diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py index e104cae96a0..7d850bd2bf5 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + discriminator-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/request_body/__init__.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/request_body/__init__.py index 52b4d0cfbf3..e03eebfc60b 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/request_body/__init__.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + discriminator-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py index ac0527321a2..82eb12458e4 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + discriminator-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/servers/server_0.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/servers/server_0.py index 7f9a6d93662..e706caf8b31 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/servers/server_0.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/servers/server_0.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + discriminator-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/README.md b/samples/client/openapi_features/security/python/README.md index 4972ef0bf6b..78c0f8f6ce1 100644 --- a/samples/client/openapi_features/security/python/README.md +++ b/samples/client/openapi_features/security/python/README.md @@ -3,9 +3,9 @@ No description provided (generated by Openapi JSON Schema Generator https://gith This Python package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: -- API version: 1.0 -- Package version: 1.0.0 -- Build package: PythonClientGenerator +- OpenAPI document version: 1.0 +- Python Package version: 1.0.0 +- OpenAPI JSON Schema Generator, Generator: PythonClientGenerator ## Requirements diff --git a/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_api_key.py b/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_api_key.py index 74a70c185d2..93a06248711 100644 --- a/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_api_key.py +++ b/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_api_key.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_bearer_test.py b/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_bearer_test.py index 86d81890f02..8f057db6304 100644 --- a/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_bearer_test.py +++ b/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_bearer_test.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_http_basic_test.py b/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_http_basic_test.py index d370989f1df..59bd485f5ba 100644 --- a/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_http_basic_test.py +++ b/samples/client/openapi_features/security/python/src/this_package/components/security_schemes/security_scheme_http_basic_test.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py index e5b06b7f0bb..28e74ffac10 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py index ac0527321a2..e5b82267597 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_no_explicit_security/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py index ab6869f2a45..f025888c0aa 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py index ac0527321a2..e5b82267597 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/security/security_requirement_object_0.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/security/security_requirement_object_0.py index bc4be8f8f8d..685929de125 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/security/security_requirement_object_0.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_one_explicit_security/get/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py index d6aba20ac5a..40e7e7bdecc 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py index ac0527321a2..e5b82267597 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py index f0ff8df1e9e..b15549e2652 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py index ac0527321a2..e5b82267597 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/security/security_requirement_object_0.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/security/security_requirement_object_0.py index bc4be8f8f8d..685929de125 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/security/security_requirement_object_0.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/security/security_requirement_object_1.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/security/security_requirement_object_1.py index c8b81df5095..ae5d515f8c8 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/security/security_requirement_object_1.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_two_explicit_security/get/security/security_requirement_object_1.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_0.py b/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_0.py index bc4be8f8f8d..685929de125 100644 --- a/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_0.py +++ b/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_1.py b/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_1.py index 8818207e5f3..c85c9a6aeaa 100644 --- a/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_1.py +++ b/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_1.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_2.py b/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_2.py index 57c45b87988..a36ba39c19f 100644 --- a/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_2.py +++ b/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_2.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_3.py b/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_3.py index 3491a2a00c3..c14cbb60063 100644 --- a/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_3.py +++ b/samples/client/openapi_features/security/python/src/this_package/security/security_requirement_object_3.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/servers/server_0.py b/samples/client/openapi_features/security/python/src/this_package/servers/server_0.py index 7f9a6d93662..93e22f4b841 100644 --- a/samples/client/openapi_features/security/python/src/this_package/servers/server_0.py +++ b/samples/client/openapi_features/security/python/src/this_package/servers/server_0.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/README.md b/samples/client/petstore/python/README.md index 05343fc6df8..b2797133f3d 100644 --- a/samples/client/petstore/python/README.md +++ b/samples/client/petstore/python/README.md @@ -3,9 +3,9 @@ This spec is mainly for testing Petstore server and contains fake endpoints, mod This Python package is automatically generated by the [OpenAPI JSON Schema Generator](https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) project: -- API version: 1.0.0 -- Package version: 1.0.0 -- Build package: PythonClientGenerator +- OpenAPI document version: 1.0.0 +- Python Package version: 1.0.0 +- OpenAPI JSON Schema Generator, Generator: PythonClientGenerator ## Requirements diff --git a/samples/client/petstore/python/src/petstore_api/components/headers/header_int32_json_content_type_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/headers/header_int32_json_content_type_header/__init__.py index 8f355d7857d..87d7b1ecf71 100644 --- a/samples/client/petstore/python/src/petstore_api/components/headers/header_int32_json_content_type_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/headers/header_int32_json_content_type_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/headers/header_number_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/headers/header_number_header/__init__.py index 7a35339ecb1..e7c502606a9 100644 --- a/samples/client/petstore/python/src/petstore_api/components/headers/header_number_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/headers/header_number_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_content_schema_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_content_schema_header/__init__.py index 78f631482ed..b32cf6b5278 100644 --- a/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_content_schema_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_content_schema_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_schema_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_schema_header/__init__.py index 1ef971aa9e3..1a7cdce0028 100644 --- a/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_schema_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_schema_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_string_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_string_header/__init__.py index 81351124eab..c080d1f5f02 100644 --- a/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_string_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/headers/header_ref_string_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/headers/header_string_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/headers/header_string_header/__init__.py index c5393353285..59c561501de 100644 --- a/samples/client/petstore/python/src/petstore_api/components/headers/header_string_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/headers/header_string_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_component_ref_schema_string_with_validation/__init__.py b/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_component_ref_schema_string_with_validation/__init__.py index 1e17081b8a5..dd0a7adad3a 100644 --- a/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_component_ref_schema_string_with_validation/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_component_ref_schema_string_with_validation/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_path_user_name/__init__.py b/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_path_user_name/__init__.py index f0920911ab2..7db93970347 100644 --- a/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_path_user_name/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_path_user_name/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_ref_path_user_name/__init__.py b/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_ref_path_user_name/__init__.py index ba05ab838b0..f1707879650 100644 --- a/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_ref_path_user_name/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_ref_path_user_name/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_ref_schema_string_with_validation/__init__.py b/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_ref_schema_string_with_validation/__init__.py index e1747c79680..b3bbc043338 100644 --- a/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_ref_schema_string_with_validation/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/parameters/parameter_ref_schema_string_with_validation/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_client/__init__.py b/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_client/__init__.py index 9050d858fb6..dfacc3ec1c1 100644 --- a/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_client/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_client/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_pet/__init__.py b/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_pet/__init__.py index 9a43a004324..863888a929b 100644 --- a/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_pet/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_pet/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_ref_user_array/__init__.py b/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_ref_user_array/__init__.py index c17a1c621fb..578125b0def 100644 --- a/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_ref_user_array/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_ref_user_array/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_user_array/__init__.py b/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_user_array/__init__.py index aa36f31f81c..b441ee61c19 100644 --- a/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_user_array/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/request_bodies/request_body_user_array/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_headers_with_no_body/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_headers_with_no_body/__init__.py index afe3367ac60..d980d037c39 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_headers_with_no_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_headers_with_no_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_headers_with_no_body/headers/header_location/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_headers_with_no_body/headers/header_location/__init__.py index 5693c6a8ff4..4c71beeb879 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_headers_with_no_body/headers/header_location/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_headers_with_no_body/headers/header_location/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_ref_success_description_only/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_ref_success_description_only/__init__.py index 1261d513a66..518be5aa059 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_ref_success_description_only/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_ref_success_description_only/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_ref_successful_xml_and_json_array_of_pet/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_ref_successful_xml_and_json_array_of_pet/__init__.py index 37000e1f260..719cb18aa4e 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_ref_successful_xml_and_json_array_of_pet/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_ref_successful_xml_and_json_array_of_pet/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_description_only/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_description_only/__init__.py index a0dc2c77f27..11b713a38b7 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_description_only/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_description_only/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/__init__.py index 4ce48742f7d..5cf5d2504b7 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/headers/header_some_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/headers/header_some_header/__init__.py index 9016cd6b4e7..f8d3604a0de 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/headers/header_some_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_inline_content_and_header/headers/header_some_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/__init__.py index 726a854a8da..77936480885 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_int32/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_int32/__init__.py index 2223f9ec3d4..64ca60f8b32 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_int32/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_int32/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_number_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_number_header/__init__.py index 8ae57a0966b..207b7c3dafd 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_number_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_number_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_ref_content_schema_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_ref_content_schema_header/__init__.py index b3cdd6ce978..377d52da8ed 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_ref_content_schema_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_ref_content_schema_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_ref_schema_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_ref_schema_header/__init__.py index 6769862b8f2..b4e435d2958 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_ref_schema_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_ref_schema_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_string_header/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_string_header/__init__.py index 54cdd7ac507..7860915ee06 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_string_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_success_with_json_api_response/headers/header_string_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/__init__.py b/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/__init__.py index f8751563313..9391cde76db 100644 --- a/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/components/responses/response_successful_xml_and_json_array_of_pet/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_api_key.py b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_api_key.py index 7fe0219c216..a3226bb5ca4 100644 --- a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_api_key.py +++ b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_api_key.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_api_key_query.py b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_api_key_query.py index ffe2b0522fb..94b4ee46764 100644 --- a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_api_key_query.py +++ b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_api_key_query.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_bearer_test.py b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_bearer_test.py index ad4bb983db1..8ab335a7e4a 100644 --- a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_bearer_test.py +++ b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_bearer_test.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_http_basic_test.py b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_http_basic_test.py index e916b32153c..4ce4f9b4386 100644 --- a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_http_basic_test.py +++ b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_http_basic_test.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_http_signature_test.py b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_http_signature_test.py index 78a90fcefde..755fdcc33d8 100644 --- a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_http_signature_test.py +++ b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_http_signature_test.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_open_id_connect_test.py b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_open_id_connect_test.py index 9f365fa3236..1ce24883fb8 100644 --- a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_open_id_connect_test.py +++ b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_open_id_connect_test.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_petstore_auth.py b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_petstore_auth.py index bb104718ac7..dcbb73a2064 100644 --- a/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_petstore_auth.py +++ b/samples/client/petstore/python/src/petstore_api/components/security_schemes/security_scheme_petstore_auth.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py index bf5682f39ef..81c58b776e2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/request_body/__init__.py index 3fb539ff14f..fb3dbe6430b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py index afdebba4002..3a66fe07b2e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/another_fake_dummy/patch/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py index 18f38d79303..a3a05f0392d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/parameters/parameter_0/__init__.py index 0e2f7bb00d2..c2c522ceb95 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/parameters/parameter_1/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/parameters/parameter_1/__init__.py index 987c6e2d107..c017ce9d91b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/parameters/parameter_1/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/parameters/parameter_1/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/delete/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py index 49412babef2..b65ec2af221 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/parameters/parameter_0/__init__.py index 6b53722a2cc..37c9fa6ae86 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/parameters/parameter_0/__init__.py index c271fbeb72f..7e07e32e941 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py index 5feca60df9f..c0992eec314 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/parameters/parameter_0/__init__.py index 0e2f7bb00d2..c2c522ceb95 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/common_param_sub_dir/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py index edfae33f87b..e2d2ac38c99 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_0/__init__.py index c0fb37a272c..ed8158a494e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_1/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_1/__init__.py index fa873bdd38b..365e76a4f05 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_1/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_1/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_2/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_2/__init__.py index 0c3483ee8c8..999f87b2f17 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_2/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_2/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_3/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_3/__init__.py index e25a4d07847..71b3cfcd483 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_3/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_3/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_4/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_4/__init__.py index 076f80bb410..bd97e438592 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_4/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_4/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_5/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_5/__init__.py index 3746dcf9cb2..cd9959328d5 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_5/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/parameters/parameter_5/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/security/security_requirement_object_0.py index fe7458d4f83..b3057bb7e87 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/delete/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/delete/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py index 79cab2a01a3..54a1f5773db 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_0/__init__.py index d872b1e7b27..c7e8efe3a76 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_1/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_1/__init__.py index 24f74961d2a..0b7bd9852a8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_1/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_1/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_2/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_2/__init__.py index b4904eb2927..93780cb22f9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_2/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_2/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_3/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_3/__init__.py index 3aba5424212..af12268413d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_3/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_3/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_4/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_4/__init__.py index c8fa3d689eb..d642a63ac27 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_4/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_4/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_5/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_5/__init__.py index 9a53eb2ca97..ee029dbfd5a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_5/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/parameters/parameter_5/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/request_body/__init__.py index eb44b1eff11..77e335ca819 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py index 020e6b1bd0f..d65491c5c85 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/get/responses/response_404/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py index 8b10298f56d..e1482b99f1b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/request_body/__init__.py index 3fb539ff14f..fb3dbe6430b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py index afdebba4002..3a66fe07b2e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/patch/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py index 2c6f5e07cc9..38c45054bad 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/request_body/__init__.py index eb44b1eff11..77e335ca819 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py index a26cc9e30cd..309b73e1806 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/responses/response_404/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake/post/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/fake/post/security/security_requirement_object_0.py index be3b5243320..8d660f9ef69 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake/post/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake/post/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py index 144f2534b5f..146d4751467 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/request_body/__init__.py index b8c0d395f0b..e12cd0e0faf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py index 5a324510676..92e15632ee4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py index f97a9eee03f..c8940afaf36 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/request_body/__init__.py index 7a125be32f2..f2a3d460e3f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_file_schema/put/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py index a5a9d893878..18a0bc6f36b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/parameters/parameter_0/__init__.py index f0fb8a6129c..7be19f029cf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/request_body/__init__.py index 7a125be32f2..f2a3d460e3f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_body_with_query_params/put/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py index 0aa96e7281c..d45387d76bf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_0/__init__.py index 297af6833db..7f95fb9567c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_1/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_1/__init__.py index 3d0c6975550..b50c24d1972 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_1/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_1/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_2/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_2/__init__.py index 4bb6063c706..1e55e1618bb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_2/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/parameters/parameter_2/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_case_sensitive_params/put/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py index 87decd532cc..03151877d02 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/request_body/__init__.py index 3fb539ff14f..fb3dbe6430b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py index afdebba4002..3a66fe07b2e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/security/security_requirement_object_0.py index c74e7be097f..2ea8c825a78 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_classname_test/patch/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py index 050ff2acbe5..85e6ac15684 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/parameters/parameter_0/__init__.py index 62a9a2df835..33adc38c97d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_default/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_default/__init__.py index 62333eb046d..f5e8fb96286 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_default/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_delete_coffee_id/delete/responses/response_default/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py index 36c16754ea9..fd0859dfd0c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py index 17c99a51b12..6cb0b2ba378 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_health/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py index b2eb3515bbe..c5ef7b8a11b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/request_body/__init__.py index 7a125be32f2..f2a3d460e3f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_additional_properties/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py index a8c6cc9a17a..8c2357badac 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_0/__init__.py index 06eb85d9681..7d717e2679e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_1/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_1/__init__.py index 38fcb2904f1..f0dfad0f435 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_1/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/parameters/parameter_1/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/request_body/__init__.py index 82049f10f41..735ca94de55 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py index 39094120d1c..85941ff1cad 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_inline_composition/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py index 8312ffc16ee..ea30837db26 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/request_body/__init__.py index eb44b1eff11..77e335ca819 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_form_data/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py index f8960b8944b..655eff77878 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/request_body/__init__.py index 61af7150229..c873e68fc66 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_patch/patch/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py index 5d76437a156..33d0ff8139a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/request_body/__init__.py index 3a625e43bb4..099d95affb5 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py index 3273086097e..827057f00e8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_json_with_charset/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py index 23ad81313f1..31973d8d0ad 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/__init__.py index 82049f10f41..735ca94de55 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py index 8e003c5c0ee..4fdd548d2b8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_request_body_content_types/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py index ac626266abe..31c9aa35519 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py index 8e003c5c0ee..4fdd548d2b8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py index f0075b24e9f..34cbe8ad5bb 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_response_bodies/get/responses/response_202/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py index 858d1e167c4..e91b3da20f0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py index 8e003c5c0ee..4fdd548d2b8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_0.py index 66ef97be533..14c3f963a6b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_1.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_1.py index 6a81d82c584..5ee62b8b4fd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_1.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_2.py b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_2.py index 6d37bd2fd58..cd2d9adb586 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_2.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_multiple_securities/get/security/security_requirement_object_2.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py index a58ad0b399f..cf36c49d517 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/parameters/parameter_0/__init__.py index fb65af19e10..6db39d08634 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_obj_in_query/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py index 4e343511720..469be32a1d9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_0/__init__.py index f3662fc32fb..30464863541 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_1/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_1/__init__.py index 736fe05b5b0..b4fb9df6676 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_1/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_1/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_10/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_10/__init__.py index 90d941b02ec..b145f9e5033 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_10/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_10/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_11/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_11/__init__.py index df33c4a4a83..69101db4589 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_11/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_11/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_12/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_12/__init__.py index e509faf2789..4ee88e56800 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_12/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_12/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_13/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_13/__init__.py index 0d8cf7a5c16..5aab130a95d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_13/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_13/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_14/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_14/__init__.py index dd7a029fb4c..9af06f9e7d3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_14/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_14/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_15/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_15/__init__.py index 7bd3265b2a6..a7ebe32b5fe 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_15/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_15/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_16/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_16/__init__.py index f4647bdacdf..fe35db24e87 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_16/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_16/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_17/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_17/__init__.py index 6015e9e6dec..888b5172290 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_17/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_17/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_18/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_18/__init__.py index 93a595b8519..d7d41c2fcc5 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_18/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_18/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_2/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_2/__init__.py index dc948a7c5f3..612e9ab243b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_2/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_2/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_3/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_3/__init__.py index 8098e397659..89e6b1a49b7 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_3/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_3/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_4/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_4/__init__.py index d2f3857df5c..82850fef9c8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_4/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_4/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_5/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_5/__init__.py index 01b2201acfa..ff704336120 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_5/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_5/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_6/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_6/__init__.py index a7e4b506560..95082c4c2f0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_6/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_6/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_7/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_7/__init__.py index df96269d455..12a5c176b61 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_7/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_7/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_8/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_8/__init__.py index 77dbc43ae68..4c6d037ff2f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_8/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_8/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_9/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_9/__init__.py index a857691fc23..b25f0cd399b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_9/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/parameters/parameter_9/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/request_body/__init__.py index b8c0d395f0b..e12cd0e0faf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py index 8e003c5c0ee..4fdd548d2b8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_parameter_collisions1_abab_self_ab/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py index afb9d14839f..abd765d1565 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/request_body/__init__.py index da8d6ae930c..def3c0d5174 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py index 6d51cc074a6..05871b67903 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pem_content_type/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py index f724f27b0ef..13d3b3723e3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/parameters/parameter_0/__init__.py index 1276f6575c0..9c2809098d0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/request_body/__init__.py index 43034546a84..41b733c9ae3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py index 248a4f0c101..6c42712c0d2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/security/security_requirement_object_0.py index 6d37bd2fd58..cd2d9adb586 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py index 75e358b5469..00e1c1c6e85 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/parameters/parameter_0/__init__.py index 4edd8bf1e7d..f2e407f41b6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py index 8e003c5c0ee..4fdd548d2b8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_query_param_with_json_content_type/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py index 108b1cd7688..3c08d369172 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py index 4628ca92cc9..954e89496f3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_303/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py index 2f1ea10abca..1fbc98db851 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_redirection/get/responses/response_3xx/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py index 316c59752f5..5cfc61aeeff 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/parameters/parameter_0/__init__.py index fb65af19e10..6db39d08634 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_ref_obj_in_query/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py index ba428ee4d2d..930636831db 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/request_body/__init__.py index b8c0d395f0b..e12cd0e0faf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py index f9c6be5be67..bfe3763c023 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_array_of_enums/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py index 9584da9503d..0e32acce027 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/request_body/__init__.py index b8c0d395f0b..e12cd0e0faf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py index d4d99d8f4c0..4d25a5cba3d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_arraymodel/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py index d5073c42db7..bca4fb59c36 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/request_body/__init__.py index b8c0d395f0b..e12cd0e0faf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py index a1f8345ca27..9af09f3da70 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_boolean/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py index d1c95b602d2..76dade3b03a 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/request_body/__init__.py index b8c0d395f0b..e12cd0e0faf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py index 8e003c5c0ee..4fdd548d2b8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py index cc3c2201371..2eacc471a0f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/request_body/__init__.py index b8c0d395f0b..e12cd0e0faf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py index 0edeab3b69b..9a3e71e7c66 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_enum/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py index 33300ac9a7c..627abea3b8e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/request_body/__init__.py index 7a125be32f2..f2a3d460e3f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py index 8e003c5c0ee..4fdd548d2b8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_mammal/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py index c44194a4198..9e86f8987f3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/request_body/__init__.py index b8c0d395f0b..e12cd0e0faf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py index 28852d70a4a..85e0e95740c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_number/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py index 2af10fd75b5..999af99f9d8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/request_body/__init__.py index b8c0d395f0b..e12cd0e0faf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py index 4038a9891f9..27688f00d55 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py index b82679b7668..ebed3807fac 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/request_body/__init__.py index b8c0d395f0b..e12cd0e0faf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py index 77c86752079..a74c2caa1dd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_refs_string/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py index a39abc0841f..bf07a194add 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py index 83c0f418c5b..89ddd69e6ef 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_response_without_schema/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py index e40af7a0bfe..6f24a674c99 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_0/__init__.py index b1a0b0cb2d4..d7c8b6d46ef 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_1/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_1/__init__.py index 65b263a19a4..6fe8fa8017f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_1/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_1/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_2/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_2/__init__.py index e0b90f69818..c93f2faeba9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_2/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_2/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_3/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_3/__init__.py index 89090f75d63..0d3f07406ee 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_3/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_3/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_4/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_4/__init__.py index 7d63cf99370..a2b5f91d362 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_4/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_4/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_5/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_5/__init__.py index 53ac11eb5bd..4cb53325989 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_5/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/parameters/parameter_5/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_test_query_paramters/put/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py index 717e328e31a..be010fcb088 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/request_body/__init__.py index 3865b0fb2df..d753d94f197 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py index 53bb8bde038..177314d8a9c 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_download_file/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py index f3d1334e629..1d2f8a0ab79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/request_body/__init__.py index 43034546a84..41b733c9ae3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py index 248a4f0c101..6c42712c0d2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_file/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py index 7a72497cf60..4ad7e7157be 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/request_body/__init__.py index 43034546a84..41b733c9ae3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py index 248a4f0c101..6c42712c0d2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_upload_files/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py index 42fa174b2b3..64cfb2e8eca 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py index 6c76920b8f4..ff7134739cd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_1xx/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py index 8e003c5c0ee..4fdd548d2b8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py index 6f72f463ee6..7493f619fb9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_2xx/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py index 039cc0ba83a..535a4b6f755 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_3xx/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py index 02ede398c13..71ba9a7f939 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_4xx/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py index 2a02a6596fc..8ab8a977e2f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/fake_wild_card_responses/get/responses/response_5xx/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/foo/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/foo/get/operation.py index d71c78e97fb..d34edd5c157 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/foo/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/foo/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/foo/get/responses/response_default/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/foo/get/responses/response_default/__init__.py index ec6a9f1196b..8751a25bbc6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/foo/get/responses/response_default/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/foo/get/responses/response_default/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_0.py b/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_0.py index c73dd42fece..87969677634 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_0.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_1.py b/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_1.py index d1a38ca241c..0c1a8b6edf8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/foo/get/servers/server_1.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py index 9aef38d340c..e5ac76e6eb1 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/request_body/__init__.py index 559c6e2437c..c73a69fa042 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py index 1f4a53b1278..5b9cca2ebdf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/responses/response_405/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_0.py index fed3d9d5c1d..feaba87f650 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_1.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_1.py index a829d1b1755..f4ecd20dbbd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_1.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_2.py b/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_2.py index 6d37bd2fd58..cd2d9adb586 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_2.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/post/security/security_requirement_object_2.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py index 93fd7202e01..ffedf998af3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/request_body/__init__.py index 559c6e2437c..c73a69fa042 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py index a26cc9e30cd..309b73e1806 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_404/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py index 1f4a53b1278..5b9cca2ebdf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/responses/response_405/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/security/security_requirement_object_0.py index a829d1b1755..f4ecd20dbbd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet/put/security/security_requirement_object_1.py b/samples/client/petstore/python/src/petstore_api/paths/pet/put/security/security_requirement_object_1.py index 6d37bd2fd58..cd2d9adb586 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet/put/security/security_requirement_object_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet/put/security/security_requirement_object_1.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py index e43b6908862..6a8cba17426 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/parameters/parameter_0/__init__.py index 1fe4e55903a..1a02941b7d5 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py index 5e4ccdedb27..8367c5ac824 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_0.py index fed3d9d5c1d..feaba87f650 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_1.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_1.py index a829d1b1755..f4ecd20dbbd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_1.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_2.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_2.py index 6d37bd2fd58..cd2d9adb586 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_2.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/get/security/security_requirement_object_2.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_0.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_0.py index c73dd42fece..87969677634 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_0.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_1.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_1.py index d1a38ca241c..0c1a8b6edf8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_status/servers/server_1.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py index 2aec65218b6..4725ecc5de6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/parameters/parameter_0/__init__.py index 72df53de486..bbbad8a4224 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py index 67e7a566b0c..811146e7bba 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/security/security_requirement_object_0.py index a829d1b1755..f4ecd20dbbd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/security/security_requirement_object_1.py b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/security/security_requirement_object_1.py index 6d37bd2fd58..cd2d9adb586 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/security/security_requirement_object_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_find_by_tags/get/security/security_requirement_object_1.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py index 38e3126950f..9e0c897d3e0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/parameters/parameter_0/__init__.py index 41fefcb038b..d1f6b4b11c4 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/parameters/parameter_1/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/parameters/parameter_1/__init__.py index 9755ccfacfc..d9c0d039e81 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/parameters/parameter_1/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/parameters/parameter_1/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/security/security_requirement_object_0.py index fed3d9d5c1d..feaba87f650 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/security/security_requirement_object_1.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/security/security_requirement_object_1.py index 6d37bd2fd58..cd2d9adb586 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/security/security_requirement_object_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/delete/security/security_requirement_object_1.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py index 963ca257e2f..f8d2b1dcb71 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/parameters/parameter_0/__init__.py index 1276f6575c0..9c2809098d0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py index 35863b62900..af02e932ed9 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py index a26cc9e30cd..309b73e1806 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/responses/response_404/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/security/security_requirement_object_0.py index fed3d9d5c1d..feaba87f650 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/get/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py index 7be0122bb45..c6310e06df3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/parameters/parameter_0/__init__.py index 1276f6575c0..9c2809098d0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/request_body/__init__.py index eb44b1eff11..77e335ca819 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py index 1f4a53b1278..5b9cca2ebdf 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/responses/response_405/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/security/security_requirement_object_0.py index fed3d9d5c1d..feaba87f650 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/security/security_requirement_object_1.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/security/security_requirement_object_1.py index 6d37bd2fd58..cd2d9adb586 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/security/security_requirement_object_1.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id/post/security/security_requirement_object_1.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py index db6785b81b0..d64ef58b18b 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/parameters/parameter_0/__init__.py index 1276f6575c0..9c2809098d0 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/request_body/__init__.py index 43034546a84..41b733c9ae3 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py index 7584e451fec..1f4775ef8a2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/security/security_requirement_object_0.py index 6d37bd2fd58..cd2d9adb586 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/pet_pet_id_upload_image/post/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py index 16635b6cfc6..9007615aabe 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/solidus/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py index 54e1f7f5e55..009bff85d57 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py index b103a1afd41..48b3c26c2e7 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/security/security_requirement_object_0.py b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/security/security_requirement_object_0.py index fed3d9d5c1d..feaba87f650 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/security/security_requirement_object_0.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_inventory/get/security/security_requirement_object_0.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py index 215f6acebd0..a4bcde145ef 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/request_body/__init__.py index 7a125be32f2..f2a3d460e3f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py index 8994a608bb9..7292b955ef8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order/post/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py index 4626f4516a0..c45d543f210 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/parameters/parameter_0/__init__.py index 97ffd66077e..510271fc1fa 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py index a26cc9e30cd..309b73e1806 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/delete/responses/response_404/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py index a35b6d414e1..47238672597 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/parameters/parameter_0/__init__.py index 97ffd66077e..510271fc1fa 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py index 8994a608bb9..7292b955ef8 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py index a26cc9e30cd..309b73e1806 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/store_order_order_id/get/responses/response_404/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user/post/operation.py index 42bce93f8b6..9d6e5d48ac2 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user/post/request_body/__init__.py index 7a125be32f2..f2a3d460e3f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user/post/responses/response_default/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user/post/responses/response_default/__init__.py index 62333eb046d..f5e8fb96286 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user/post/responses/response_default/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user/post/responses/response_default/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py index 5d6c5686d71..4419e4f2f89 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/request_body/__init__.py index 2af3fc58a81..10db8273c81 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/responses/response_default/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/responses/response_default/__init__.py index 62333eb046d..f5e8fb96286 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/responses/response_default/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_array/post/responses/response_default/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py index da4c3784254..178a59ef644 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/request_body/__init__.py index 3bd70563bcb..069dd248f8e 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/responses/response_default/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/responses/response_default/__init__.py index 62333eb046d..f5e8fb96286 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/responses/response_default/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_create_with_list/post/responses/response_default/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py index a158ce96df2..8ed02166c76 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/parameters/parameter_0/__init__.py index fea0d30fad5..127cc33bb69 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/parameters/parameter_1/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/parameters/parameter_1/__init__.py index 956f2cc24b7..9ca9085563d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/parameters/parameter_1/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/parameters/parameter_1/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py index 535dbbe0ebf..184d0ca90af 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_int32/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_int32/__init__.py index 2223f9ec3d4..64ca60f8b32 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_int32/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_int32/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_number_header/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_number_header/__init__.py index 8ae57a0966b..207b7c3dafd 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_number_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_number_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_ref_content_schema_header/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_ref_content_schema_header/__init__.py index b3cdd6ce978..377d52da8ed 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_ref_content_schema_header/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_ref_content_schema_header/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_x_expires_after/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_x_expires_after/__init__.py index 494330c99da..34e10dd7e58 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_x_expires_after/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_x_expires_after/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_x_rate_limit/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_x_rate_limit/__init__.py index f8f1d03f271..465de5ed84f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_x_rate_limit/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_200/headers/header_x_rate_limit/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_login/get/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py index cf009a7f1b7..15d4d850589 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/responses/response_default/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/responses/response_default/__init__.py index 9e51cdff1be..23f15fd118d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/responses/response_default/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_logout/get/responses/response_default/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py index fb6aab257d1..14c02844e9d 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/parameters/parameter_0/__init__.py index ae3f2672784..7e432267e71 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py index cc70f4a4d33..20b30291148 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py index a26cc9e30cd..309b73e1806 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/delete/responses/response_404/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py index c46922b2a3f..02644cece37 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/parameters/parameter_0/__init__.py index 7bb45ca92c4..72c2c1e4cde 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py index 36a55077fe3..0e70348bc08 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_200/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py index a26cc9e30cd..309b73e1806 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/get/responses/response_404/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py index 6a9736831d4..f8cea9670f6 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/operation.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/parameters/parameter_0/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/parameters/parameter_0/__init__.py index 7bb45ca92c4..72c2c1e4cde 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/parameters/parameter_0/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/parameters/parameter_0/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/request_body/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/request_body/__init__.py index 7a125be32f2..f2a3d460e3f 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/request_body/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/request_body/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py index 1068972f236..83836783a79 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_400/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py index a26cc9e30cd..309b73e1806 100644 --- a/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py +++ b/samples/client/petstore/python/src/petstore_api/paths/user_username/put/responses/response_404/__init__.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/servers/server_0.py b/samples/client/petstore/python/src/petstore_api/servers/server_0.py index 543b2065381..ba49064a20e 100644 --- a/samples/client/petstore/python/src/petstore_api/servers/server_0.py +++ b/samples/client/petstore/python/src/petstore_api/servers/server_0.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/servers/server_1.py b/samples/client/petstore/python/src/petstore_api/servers/server_1.py index aa11da5ca8b..bc49d3185e8 100644 --- a/samples/client/petstore/python/src/petstore_api/servers/server_1.py +++ b/samples/client/petstore/python/src/petstore_api/servers/server_1.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/servers/server_2.py b/samples/client/petstore/python/src/petstore_api/servers/server_2.py index 2812f4ba224..f417c7fe361 100644 --- a/samples/client/petstore/python/src/petstore_api/servers/server_2.py +++ b/samples/client/petstore/python/src/petstore_api/servers/server_2.py @@ -1,5 +1,8 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ From 0a1cd5026c4d149e9c2f5533873b35bc0d469ca8 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 12 Apr 2024 10:43:27 -0700 Subject: [PATCH 09/12] Fixes schema variable names --- .../client/petstore/java/docs/ServerInfo.md | 65 - .../anotherfakedummy/AnotherfakedummyPatch.md | 188 -- .../patch/AnotherfakedummyPatchRequestBody.md | 17 - .../patch/AnotherfakedummyPatchResponses.md | 29 - .../AnotherfakedummyPatchCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../CommonparamsubdirDelete.md | 189 -- .../commonparamsubdir/CommonparamsubdirGet.md | 189 -- .../CommonparamsubdirPost.md | 189 -- ...CommonparamsubdirDeleteHeaderParameters.md | 252 --- .../CommonparamsubdirDeletePathParameters.md | 269 --- .../CommonparamsubdirDeleteResponses.md | 29 - .../delete/parameters/parameter0/Schema0.md | 49 - .../delete/parameters/parameter1/Schema1.md | 96 - .../CommonparamsubdirDeleteCode200Response.md | 17 - .../get/CommonparamsubdirGetPathParameters.md | 269 --- .../CommonparamsubdirGetQueryParameters.md | 252 --- .../get/CommonparamsubdirGetResponses.md | 29 - .../get/parameters/parameter0/Schema0.md | 49 - .../CommonparamsubdirGetCode200Response.md | 17 - .../routeparameter0/RouteParamSchema0.md | 96 - .../CommonparamsubdirPostHeaderParameters.md | 252 --- .../CommonparamsubdirPostPathParameters.md | 269 --- .../post/CommonparamsubdirPostResponses.md | 29 - .../post/parameters/parameter0/Schema0.md | 49 - .../CommonparamsubdirPostCode200Response.md | 17 - .../java/docs/paths/fake/FakeDelete.md | 255 --- .../petstore/java/docs/paths/fake/FakeGet.md | 156 -- .../java/docs/paths/fake/FakePatch.md | 188 -- .../petstore/java/docs/paths/fake/FakePost.md | 164 -- .../fake/delete/FakeDeleteHeaderParameters.md | 274 --- .../fake/delete/FakeDeleteQueryParameters.md | 321 ---- .../paths/fake/delete/FakeDeleteResponses.md | 29 - .../fake/delete/FakeDeleteSecurityInfo.md | 40 - .../delete/parameters/parameter0/Schema0.md | 49 - .../delete/parameters/parameter1/Schema1.md | 96 - .../delete/parameters/parameter2/Schema2.md | 49 - .../delete/parameters/parameter3/Schema3.md | 49 - .../delete/parameters/parameter4/Schema4.md | 96 - .../delete/parameters/parameter5/Schema5.md | 49 - .../responses/FakeDeleteCode200Response.md | 17 - .../FakeDeleteSecurityRequirementObject0.md | 15 - .../paths/fake/get/FakeGetHeaderParameters.md | 260 --- .../paths/fake/get/FakeGetQueryParameters.md | 278 --- .../docs/paths/fake/get/FakeGetRequestBody.md | 90 - .../docs/paths/fake/get/FakeGetResponses.md | 29 - .../fake/get/parameters/parameter0/Schema0.md | 205 --- .../fake/get/parameters/parameter1/Schema1.md | 98 - .../fake/get/parameters/parameter2/Schema2.md | 205 --- .../fake/get/parameters/parameter3/Schema3.md | 98 - .../fake/get/parameters/parameter4/Schema4.md | 135 -- .../fake/get/parameters/parameter5/Schema5.md | 109 -- .../ApplicationxwwwformurlencodedSchema.md | 422 ----- .../get/responses/FakeGetCode200Response.md | 17 - .../get/responses/FakeGetCode404Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 49 - .../paths/fake/patch/FakePatchRequestBody.md | 17 - .../paths/fake/patch/FakePatchResponses.md | 29 - .../responses/FakePatchCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../paths/fake/post/FakePostRequestBody.md | 90 - .../docs/paths/fake/post/FakePostResponses.md | 29 - .../paths/fake/post/FakePostSecurityInfo.md | 40 - .../ApplicationxwwwformurlencodedSchema.md | 1331 -------------- .../post/responses/FakePostCode200Response.md | 17 - .../post/responses/FakePostCode404Response.md | 32 - .../FakePostSecurityRequirementObject0.md | 15 - ...additionalpropertieswitharrayofenumsGet.md | 148 -- ...ropertieswitharrayofenumsGetRequestBody.md | 90 - ...lpropertieswitharrayofenumsGetResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - ...rtieswitharrayofenumsGetCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakebodywithfileschemaPut.md | 188 -- .../FakebodywithfileschemaPutRequestBody.md | 90 - .../put/FakebodywithfileschemaPutResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - ...akebodywithfileschemaPutCode200Response.md | 17 - .../FakebodywithqueryparamsPut.md | 249 --- ...kebodywithqueryparamsPutQueryParameters.md | 268 --- .../FakebodywithqueryparamsPutRequestBody.md | 90 - .../FakebodywithqueryparamsPutResponses.md | 29 - .../put/parameters/parameter0/Schema0.md | 49 - .../applicationjson/ApplicationjsonSchema.md | 19 - ...kebodywithqueryparamsPutCode200Response.md | 17 - .../FakecasesensitiveparamsPut.md | 189 -- ...kecasesensitiveparamsPutQueryParameters.md | 375 ---- .../FakecasesensitiveparamsPutResponses.md | 29 - .../put/parameters/parameter0/Schema0.md | 49 - .../put/parameters/parameter1/Schema1.md | 49 - .../put/parameters/parameter2/Schema2.md | 49 - ...kecasesensitiveparamsPutCode200Response.md | 17 - .../FakeclassnametestPatch.md | 203 --- .../FakeclassnametestPatchRequestBody.md | 17 - .../patch/FakeclassnametestPatchResponses.md | 29 - .../FakeclassnametestPatchSecurityInfo.md | 40 - .../FakeclassnametestPatchCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - ...nametestPatchSecurityRequirementObject0.md | 15 - .../FakedeletecoffeeidDelete.md | 189 -- .../FakedeletecoffeeidDeletePathParameters.md | 268 --- .../FakedeletecoffeeidDeleteResponses.md | 40 - .../delete/parameters/parameter0/Schema0.md | 49 - ...FakedeletecoffeeidDeleteCode200Response.md | 17 - ...deletecoffeeidDeleteCodedefaultResponse.md | 32 - .../docs/paths/fakehealth/FakehealthGet.md | 144 -- .../fakehealth/get/FakehealthGetResponses.md | 29 - .../responses/FakehealthGetCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakeinlineadditionalpropertiesPost.md | 186 -- ...lineadditionalpropertiesPostRequestBody.md | 90 - ...inlineadditionalpropertiesPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 156 -- ...additionalpropertiesPostCode200Response.md | 17 - .../FakeinlinecompositionPost.md | 155 -- ...akeinlinecompositionPostQueryParameters.md | 264 --- .../FakeinlinecompositionPostRequestBody.md | 128 -- .../FakeinlinecompositionPostResponses.md | 29 - .../post/parameters/parameter0/Schema0.md | 236 --- .../post/parameters/parameter1/Schema1.md | 359 ---- .../applicationjson/ApplicationjsonSchema.md | 236 --- .../MultipartformdataSchema.md | 359 ---- ...akeinlinecompositionPostCode200Response.md | 123 -- .../applicationjson/ApplicationjsonSchema.md | 236 --- .../MultipartformdataSchema.md | 359 ---- .../fakejsonformdata/FakejsonformdataGet.md | 146 -- .../get/FakejsonformdataGetRequestBody.md | 90 - .../get/FakejsonformdataGetResponses.md | 29 - .../ApplicationxwwwformurlencodedSchema.md | 262 --- .../FakejsonformdataGetCode200Response.md | 17 - .../paths/fakejsonpatch/FakejsonpatchPatch.md | 146 -- .../patch/FakejsonpatchPatchRequestBody.md | 90 - .../patch/FakejsonpatchPatchResponses.md | 29 - .../ApplicationjsonpatchjsonSchema.md | 19 - .../FakejsonpatchPatchCode200Response.md | 17 - .../FakejsonwithcharsetPost.md | 148 -- .../FakejsonwithcharsetPostRequestBody.md | 90 - .../post/FakejsonwithcharsetPostResponses.md | 29 - .../Applicationjsoncharsetutf8Schema.md | 144 -- .../FakejsonwithcharsetPostCode200Response.md | 87 - .../Applicationjsoncharsetutf8Schema.md | 144 -- ...FakemultiplerequestbodycontenttypesPost.md | 148 -- ...erequestbodycontenttypesPostRequestBody.md | 128 -- ...plerequestbodycontenttypesPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 166 -- .../MultipartformdataSchema.md | 166 -- ...uestbodycontenttypesPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 144 -- .../FakemultipleresponsebodiesGet.md | 150 -- .../FakemultipleresponsebodiesGetResponses.md | 40 - ...ultipleresponsebodiesGetCode200Response.md | 87 - ...ultipleresponsebodiesGetCode202Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 144 -- .../applicationjson/ApplicationjsonSchema.md | 144 -- .../FakemultiplesecuritiesGet.md | 163 -- .../get/FakemultiplesecuritiesGetResponses.md | 29 - .../FakemultiplesecuritiesGetSecurityInfo.md | 44 - ...akemultiplesecuritiesGetCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 144 -- ...securitiesGetSecurityRequirementObject0.md | 15 - ...securitiesGetSecurityRequirementObject1.md | 15 - ...securitiesGetSecurityRequirementObject2.md | 15 - .../paths/fakeobjinquery/FakeobjinqueryGet.md | 145 -- .../get/FakeobjinqueryGetQueryParameters.md | 258 --- .../get/FakeobjinqueryGetResponses.md | 29 - .../get/parameters/parameter0/Schema0.md | 166 -- .../FakeobjinqueryGetCode200Response.md | 17 - .../Fakeparametercollisions1ababselfabPost.md | 211 --- ...llisions1ababselfabPostCookieParameters.md | 267 --- ...llisions1ababselfabPostHeaderParameters.md | 263 --- ...collisions1ababselfabPostPathParameters.md | 808 --------- ...ollisions1ababselfabPostQueryParameters.md | 267 --- ...tercollisions1ababselfabPostRequestBody.md | 90 - ...metercollisions1ababselfabPostResponses.md | 29 - .../post/parameters/parameter0/Schema0.md | 49 - .../post/parameters/parameter1/Schema1.md | 49 - .../post/parameters/parameter10/Schema10.md | 49 - .../post/parameters/parameter11/Schema11.md | 49 - .../post/parameters/parameter12/Schema12.md | 49 - .../post/parameters/parameter13/Schema13.md | 49 - .../post/parameters/parameter14/Schema14.md | 49 - .../post/parameters/parameter15/Schema15.md | 49 - .../post/parameters/parameter16/Schema16.md | 49 - .../post/parameters/parameter17/Schema17.md | 49 - .../post/parameters/parameter18/Schema18.md | 49 - .../post/parameters/parameter2/Schema2.md | 49 - .../post/parameters/parameter3/Schema3.md | 49 - .../post/parameters/parameter4/Schema4.md | 49 - .../post/parameters/parameter5/Schema5.md | 49 - .../post/parameters/parameter6/Schema6.md | 49 - .../post/parameters/parameter7/Schema7.md | 49 - .../post/parameters/parameter8/Schema8.md | 49 - .../post/parameters/parameter9/Schema9.md | 49 - .../applicationjson/ApplicationjsonSchema.md | 144 -- ...ollisions1ababselfabPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 144 -- .../FakepemcontenttypeGet.md | 148 -- .../get/FakepemcontenttypeGetRequestBody.md | 90 - .../get/FakepemcontenttypeGetResponses.md | 29 - .../ApplicationxpemfileSchema.md | 49 - .../FakepemcontenttypeGetCode200Response.md | 87 - .../ApplicationxpemfileSchema.md | 49 - ...akepetiduploadimagewithrequiredfilePost.md | 203 --- ...imagewithrequiredfilePostPathParameters.md | 271 --- ...oadimagewithrequiredfilePostRequestBody.md | 90 - ...ploadimagewithrequiredfilePostResponses.md | 29 - ...adimagewithrequiredfilePostSecurityInfo.md | 40 - .../post/parameters/parameter0/Schema0.md | 49 - .../MultipartformdataSchema.md | 206 --- ...magewithrequiredfilePostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - ...uiredfilePostSecurityRequirementObject0.md | 15 - .../FakequeryparamwithjsoncontenttypeGet.md | 185 -- ...amwithjsoncontenttypeGetQueryParameters.md | 274 --- ...eryparamwithjsoncontenttypeGetResponses.md | 29 - .../content/applicationjson/Schema0.md | 144 -- ...amwithjsoncontenttypeGetCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 144 -- .../fakeredirection/FakeredirectionGet.md | 146 -- .../get/FakeredirectionGetResponses.md | 40 - .../FakeredirectionGetCode303Response.md | 32 - .../FakeredirectionGetCode3XXResponse.md | 32 - .../fakerefobjinquery/FakerefobjinqueryGet.md | 145 -- .../FakerefobjinqueryGetQueryParameters.md | 258 --- .../get/FakerefobjinqueryGetResponses.md | 29 - .../get/parameters/parameter0/Schema0.md | 19 - .../FakerefobjinqueryGetCode200Response.md | 17 - .../FakerefsarraymodelPost.md | 148 -- .../post/FakerefsarraymodelPostRequestBody.md | 90 - .../post/FakerefsarraymodelPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakerefsarraymodelPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakerefsarrayofenumsPost.md | 148 -- .../FakerefsarrayofenumsPostRequestBody.md | 90 - .../post/FakerefsarrayofenumsPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - ...FakerefsarrayofenumsPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../fakerefsboolean/FakerefsbooleanPost.md | 148 -- .../post/FakerefsbooleanPostRequestBody.md | 90 - .../post/FakerefsbooleanPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakerefsbooleanPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - ...scomposedoneofnumberwithvalidationsPost.md | 148 -- ...eofnumberwithvalidationsPostRequestBody.md | 90 - ...oneofnumberwithvalidationsPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - ...umberwithvalidationsPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../paths/fakerefsenum/FakerefsenumPost.md | 148 -- .../post/FakerefsenumPostRequestBody.md | 90 - .../post/FakerefsenumPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakerefsenumPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../fakerefsmammal/FakerefsmammalPost.md | 179 -- .../post/FakerefsmammalPostRequestBody.md | 90 - .../post/FakerefsmammalPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakerefsmammalPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../fakerefsnumber/FakerefsnumberPost.md | 148 -- .../post/FakerefsnumberPostRequestBody.md | 90 - .../post/FakerefsnumberPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakerefsnumberPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakerefsobjectmodelwithrefpropsPost.md | 148 -- ...sobjectmodelwithrefpropsPostRequestBody.md | 90 - ...efsobjectmodelwithrefpropsPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - ...ectmodelwithrefpropsPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../fakerefsstring/FakerefsstringPost.md | 148 -- .../post/FakerefsstringPostRequestBody.md | 90 - .../post/FakerefsstringPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakerefsstringPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakeresponsewithoutschemaGet.md | 142 -- .../FakeresponsewithoutschemaGetResponses.md | 29 - ...responsewithoutschemaGetCode200Response.md | 32 - .../FaketestqueryparamtersPut.md | 210 --- ...aketestqueryparamtersPutQueryParameters.md | 1419 --------------- .../put/FaketestqueryparamtersPutResponses.md | 29 - .../put/parameters/parameter0/Schema0.md | 156 -- .../put/parameters/parameter1/Schema1.md | 156 -- .../put/parameters/parameter2/Schema2.md | 156 -- .../put/parameters/parameter3/Schema3.md | 156 -- .../put/parameters/parameter4/Schema4.md | 156 -- .../put/parameters/parameter5/Schema5.md | 19 - ...aketestqueryparamtersPutCode200Response.md | 17 - .../FakeuploaddownloadfilePost.md | 184 -- .../FakeuploaddownloadfilePostRequestBody.md | 90 - .../FakeuploaddownloadfilePostResponses.md | 29 - .../ApplicationoctetstreamSchema.md | 28 - ...keuploaddownloadfilePostCode200Response.md | 87 - .../ApplicationoctetstreamSchema.md | 28 - .../fakeuploadfile/FakeuploadfilePost.md | 148 -- .../post/FakeuploadfilePostRequestBody.md | 90 - .../post/FakeuploadfilePostResponses.md | 29 - .../MultipartformdataSchema.md | 206 --- .../FakeuploadfilePostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../fakeuploadfiles/FakeuploadfilesPost.md | 148 -- .../post/FakeuploadfilesPostRequestBody.md | 90 - .../post/FakeuploadfilesPostResponses.md | 29 - .../MultipartformdataSchema.md | 252 --- .../FakeuploadfilesPostCode200Response.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../FakewildcardresponsesGet.md | 163 -- .../get/FakewildcardresponsesGetResponses.md | 62 - ...FakewildcardresponsesGetCode1XXResponse.md | 87 - ...FakewildcardresponsesGetCode200Response.md | 87 - ...FakewildcardresponsesGetCode2XXResponse.md | 87 - ...FakewildcardresponsesGetCode3XXResponse.md | 87 - ...FakewildcardresponsesGetCode4XXResponse.md | 87 - ...FakewildcardresponsesGetCode5XXResponse.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 144 -- .../applicationjson/ApplicationjsonSchema.md | 144 -- .../applicationjson/ApplicationjsonSchema.md | 144 -- .../applicationjson/ApplicationjsonSchema.md | 144 -- .../applicationjson/ApplicationjsonSchema.md | 144 -- .../applicationjson/ApplicationjsonSchema.md | 144 -- .../petstore/java/docs/paths/foo/FooGet.md | 143 -- .../docs/paths/foo/get/FooGetResponses.md | 29 - .../docs/paths/foo/get/FooGetServerInfo.md | 62 - .../responses/FooGetCodedefaultResponse.md | 87 - .../applicationjson/ApplicationjsonSchema.md | 134 -- .../paths/foo/get/servers/FooGetServer0.md | 14 - .../paths/foo/get/servers/FooGetServer1.md | 16 - .../foo/get/servers/server1/Variables.md | 355 ---- .../petstore/java/docs/paths/pet/PetPost.md | 238 --- .../petstore/java/docs/paths/pet/PetPut.md | 234 --- .../docs/paths/pet/post/PetPostRequestBody.md | 17 - .../docs/paths/pet/post/PetPostResponses.md | 29 - .../paths/pet/post/PetPostSecurityInfo.md | 44 - .../post/responses/PetPostCode200Response.md | 17 - .../post/responses/PetPostCode405Response.md | 32 - .../PetPostSecurityRequirementObject0.md | 15 - .../PetPostSecurityRequirementObject1.md | 15 - .../PetPostSecurityRequirementObject2.md | 15 - .../docs/paths/pet/put/PetPutRequestBody.md | 17 - .../docs/paths/pet/put/PetPutResponses.md | 10 - .../docs/paths/pet/put/PetPutSecurityInfo.md | 42 - .../put/responses/PetPutCode400Response.md | 32 - .../put/responses/PetPutCode404Response.md | 32 - .../put/responses/PetPutCode405Response.md | 32 - .../PetPutSecurityRequirementObject0.md | 15 - .../PetPutSecurityRequirementObject1.md | 15 - .../petfindbystatus/PetfindbystatusGet.md | 209 --- .../PetfindbystatusServerInfo.md | 62 - .../get/PetfindbystatusGetQueryParameters.md | 271 --- .../get/PetfindbystatusGetResponses.md | 29 - .../get/PetfindbystatusGetSecurityInfo.md | 44 - .../get/parameters/parameter0/Schema0.md | 206 --- .../PetfindbystatusGetCode200Response.md | 17 - .../PetfindbystatusGetCode400Response.md | 32 - ...ndbystatusGetSecurityRequirementObject0.md | 15 - ...ndbystatusGetSecurityRequirementObject1.md | 15 - ...ndbystatusGetSecurityRequirementObject2.md | 15 - .../servers/PetfindbystatusServer0.md | 14 - .../servers/PetfindbystatusServer1.md | 16 - .../servers/server1/Variables.md | 355 ---- .../paths/petfindbytags/PetfindbytagsGet.md | 206 --- .../get/PetfindbytagsGetQueryParameters.md | 271 --- .../get/PetfindbytagsGetResponses.md | 29 - .../get/PetfindbytagsGetSecurityInfo.md | 42 - .../get/parameters/parameter0/Schema0.md | 156 -- .../PetfindbytagsGetCode200Response.md | 17 - .../PetfindbytagsGetCode400Response.md | 32 - ...findbytagsGetSecurityRequirementObject0.md | 15 - ...findbytagsGetSecurityRequirementObject1.md | 15 - .../docs/paths/petpetid/PetpetidDelete.md | 207 --- .../java/docs/paths/petpetid/PetpetidGet.md | 211 --- .../java/docs/paths/petpetid/PetpetidPost.md | 207 --- .../delete/PetpetidDeleteHeaderParameters.md | 252 --- .../delete/PetpetidDeletePathParameters.md | 271 --- .../delete/PetpetidDeleteResponses.md | 10 - .../delete/PetpetidDeleteSecurityInfo.md | 42 - .../delete/parameters/parameter0/Schema0.md | 49 - .../delete/parameters/parameter1/Schema1.md | 49 - .../PetpetidDeleteCode400Response.md | 32 - ...etpetidDeleteSecurityRequirementObject0.md | 15 - ...etpetidDeleteSecurityRequirementObject1.md | 15 - .../petpetid/get/PetpetidGetPathParameters.md | 271 --- .../petpetid/get/PetpetidGetResponses.md | 29 - .../petpetid/get/PetpetidGetSecurityInfo.md | 40 - .../get/parameters/parameter0/Schema0.md | 49 - .../responses/PetpetidGetCode200Response.md | 123 -- .../responses/PetpetidGetCode400Response.md | 32 - .../responses/PetpetidGetCode404Response.md | 32 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../PetpetidGetSecurityRequirementObject0.md | 15 - .../post/PetpetidPostPathParameters.md | 271 --- .../petpetid/post/PetpetidPostRequestBody.md | 90 - .../petpetid/post/PetpetidPostResponses.md | 10 - .../petpetid/post/PetpetidPostSecurityInfo.md | 42 - .../post/parameters/parameter0/Schema0.md | 49 - .../ApplicationxwwwformurlencodedSchema.md | 214 --- .../responses/PetpetidPostCode405Response.md | 32 - .../PetpetidPostSecurityRequirementObject0.md | 15 - .../PetpetidPostSecurityRequirementObject1.md | 15 - .../PetpetiduploadimagePost.md | 203 --- .../PetpetiduploadimagePostPathParameters.md | 271 --- .../PetpetiduploadimagePostRequestBody.md | 90 - .../post/PetpetiduploadimagePostResponses.md | 29 - .../PetpetiduploadimagePostSecurityInfo.md | 40 - .../post/parameters/parameter0/Schema0.md | 49 - .../MultipartformdataSchema.md | 190 -- .../PetpetiduploadimagePostCode200Response.md | 17 - ...loadimagePostSecurityRequirementObject0.md | 15 - .../java/docs/paths/solidus/SolidusGet.md | 142 -- .../paths/solidus/get/SolidusGetResponses.md | 29 - .../responses/SolidusGetCode200Response.md | 17 - .../paths/storeinventory/StoreinventoryGet.md | 158 -- .../get/StoreinventoryGetResponses.md | 29 - .../get/StoreinventoryGetSecurityInfo.md | 40 - .../StoreinventoryGetCode200Response.md | 17 - ...einventoryGetSecurityRequirementObject0.md | 15 - .../docs/paths/storeorder/StoreorderPost.md | 206 --- .../post/StoreorderPostRequestBody.md | 90 - .../post/StoreorderPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../StoreorderPostCode200Response.md | 123 -- .../StoreorderPostCode400Response.md | 32 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../StoreorderorderidDelete.md | 188 -- .../storeorderorderid/StoreorderorderidGet.md | 196 -- .../StoreorderorderidDeletePathParameters.md | 268 --- .../StoreorderorderidDeleteResponses.md | 10 - .../delete/parameters/parameter0/Schema0.md | 49 - .../StoreorderorderidDeleteCode400Response.md | 32 - .../StoreorderorderidDeleteCode404Response.md | 32 - .../get/StoreorderorderidGetPathParameters.md | 271 --- .../get/StoreorderorderidGetResponses.md | 29 - .../get/parameters/parameter0/Schema0.md | 83 - .../StoreorderorderidGetCode200Response.md | 123 -- .../StoreorderorderidGetCode400Response.md | 32 - .../StoreorderorderidGetCode404Response.md | 32 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../petstore/java/docs/paths/user/UserPost.md | 202 --- .../paths/user/post/UserPostRequestBody.md | 90 - .../docs/paths/user/post/UserPostResponses.md | 29 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../responses/UserPostCodedefaultResponse.md | 32 - .../UsercreatewitharrayPost.md | 224 --- .../UsercreatewitharrayPostRequestBody.md | 17 - .../post/UsercreatewitharrayPostResponses.md | 29 - ...rcreatewitharrayPostCodedefaultResponse.md | 32 - .../UsercreatewithlistPost.md | 224 --- .../post/UsercreatewithlistPostRequestBody.md | 17 - .../post/UsercreatewithlistPostResponses.md | 29 - ...ercreatewithlistPostCodedefaultResponse.md | 32 - .../java/docs/paths/userlogin/UserloginGet.md | 198 -- .../get/UserloginGetQueryParameters.md | 304 ---- .../userlogin/get/UserloginGetResponses.md | 29 - .../get/parameters/parameter0/Schema0.md | 49 - .../get/parameters/parameter1/Schema1.md | 49 - .../responses/UserloginGetCode200Response.md | 123 -- .../responses/UserloginGetCode400Response.md | 32 - ...serloginGetCode200ResponseHeadersSchema.md | 389 ---- .../applicationjson/ApplicationjsonSchema.md | 49 - .../applicationxml/ApplicationxmlSchema.md | 49 - .../xexpiresafter/XExpiresAfterSchema.md | 49 - .../applicationjson/XRateLimitSchema.md | 49 - .../docs/paths/userlogout/UserlogoutGet.md | 142 -- .../userlogout/get/UserlogoutGetResponses.md | 29 - .../UserlogoutGetCodedefaultResponse.md | 17 - .../paths/userusername/UserusernameDelete.md | 189 -- .../paths/userusername/UserusernameGet.md | 196 -- .../paths/userusername/UserusernamePut.md | 252 --- .../UserusernameDeletePathParameters.md | 268 --- .../delete/UserusernameDeleteResponses.md | 29 - .../UserusernameDeleteCode200Response.md | 17 - .../UserusernameDeleteCode404Response.md | 32 - .../get/UserusernameGetPathParameters.md | 268 --- .../get/UserusernameGetResponses.md | 29 - .../UserusernameGetCode200Response.md | 123 -- .../UserusernameGetCode400Response.md | 32 - .../UserusernameGetCode404Response.md | 32 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../applicationxml/ApplicationxmlSchema.md | 19 - .../put/UserusernamePutPathParameters.md | 268 --- .../put/UserusernamePutRequestBody.md | 90 - .../put/UserusernamePutResponses.md | 10 - .../applicationjson/ApplicationjsonSchema.md | 19 - .../UserusernamePutCode400Response.md | 32 - .../UserusernamePutCode404Response.md | 32 - .../petstore/java/docs/servers/Server0.md | 22 - .../petstore/java/docs/servers/Server1.md | 22 - .../petstore/java/docs/servers/Server2.md | 20 - .../docs/servers/server0/Server0Variables.md | 486 ----- .../docs/servers/server1/Server1Variables.md | 355 ---- .../client/ServerInfo.java | 77 - .../client/paths/Anotherfakedummy.java | 5 - .../client/paths/Commonparamsubdir.java | 5 - .../client/paths/Fake.java | 5 - ...eadditionalpropertieswitharrayofenums.java | 5 - .../client/paths/Fakebodywithfileschema.java | 5 - .../client/paths/Fakebodywithqueryparams.java | 5 - .../client/paths/Fakecasesensitiveparams.java | 5 - .../client/paths/Fakeclassnametest.java | 5 - .../client/paths/Fakedeletecoffeeid.java | 5 - .../client/paths/Fakehealth.java | 5 - .../paths/Fakeinlineadditionalproperties.java | 5 - .../client/paths/Fakeinlinecomposition.java | 5 - .../client/paths/Fakejsonformdata.java | 5 - .../client/paths/Fakejsonpatch.java | 5 - .../client/paths/Fakejsonwithcharset.java | 5 - .../Fakemultiplerequestbodycontenttypes.java | 5 - .../paths/Fakemultipleresponsebodies.java | 5 - .../client/paths/Fakemultiplesecurities.java | 5 - .../client/paths/Fakeobjinquery.java | 5 - .../Fakeparametercollisions1ababselfab.java | 5 - .../client/paths/Fakepemcontenttype.java | 5 - .../Fakepetiduploadimagewithrequiredfile.java | 5 - .../Fakequeryparamwithjsoncontenttype.java | 5 - .../client/paths/Fakeredirection.java | 5 - .../client/paths/Fakerefobjinquery.java | 5 - .../client/paths/Fakerefsarraymodel.java | 5 - .../client/paths/Fakerefsarrayofenums.java | 5 - .../client/paths/Fakerefsboolean.java | 5 - ...efscomposedoneofnumberwithvalidations.java | 5 - .../client/paths/Fakerefsenum.java | 5 - .../client/paths/Fakerefsmammal.java | 5 - .../client/paths/Fakerefsnumber.java | 5 - .../Fakerefsobjectmodelwithrefprops.java | 5 - .../client/paths/Fakerefsstring.java | 5 - .../paths/Fakeresponsewithoutschema.java | 5 - .../client/paths/Faketestqueryparamters.java | 5 - .../client/paths/Fakeuploaddownloadfile.java | 5 - .../client/paths/Fakeuploadfile.java | 5 - .../client/paths/Fakeuploadfiles.java | 5 - .../client/paths/Fakewildcardresponses.java | 5 - .../client/paths/Foo.java | 5 - .../client/paths/Pet.java | 5 - .../client/paths/Petfindbystatus.java | 5 - .../client/paths/Petfindbytags.java | 5 - .../client/paths/Petpetid.java | 5 - .../client/paths/Petpetiduploadimage.java | 5 - .../client/paths/Solidus.java | 5 - .../client/paths/Storeinventory.java | 5 - .../client/paths/Storeorder.java | 5 - .../client/paths/Storeorderorderid.java | 5 - .../client/paths/User.java | 5 - .../client/paths/Usercreatewitharray.java | 5 - .../client/paths/Usercreatewithlist.java | 5 - .../client/paths/Userlogin.java | 5 - .../client/paths/Userlogout.java | 5 - .../client/paths/Userusername.java | 5 - .../AnotherfakedummyPatch.java | 183 -- .../AnotherfakedummyPatchRequestBody.java | 7 - .../patch/AnotherfakedummyPatchResponses.java | 53 - .../AnotherfakedummyPatchCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../CommonparamsubdirDelete.java | 205 --- .../CommonparamsubdirGet.java | 206 --- .../CommonparamsubdirPost.java | 205 --- ...mmonparamsubdirDeleteHeaderParameters.java | 191 -- ...CommonparamsubdirDeletePathParameters.java | 211 --- .../CommonparamsubdirDeleteResponses.java | 53 - .../commonparamsubdir/delete/Parameters.java | 32 - .../delete/parameters/Parameter0.java | 23 - .../delete/parameters/Parameter1.java | 23 - .../delete/parameters/parameter0/Schema0.java | 19 - .../delete/parameters/parameter1/Schema1.java | 114 -- ...ommonparamsubdirDeleteCode200Response.java | 7 - .../CommonparamsubdirGetPathParameters.java | 211 --- .../CommonparamsubdirGetQueryParameters.java | 191 -- .../get/CommonparamsubdirGetResponses.java | 53 - .../commonparamsubdir/get/Parameters.java | 32 - .../get/parameters/Parameter0.java | 23 - .../get/parameters/parameter0/Schema0.java | 19 - .../CommonparamsubdirGetCode200Response.java | 7 - .../parameters/RouteParameter0.java | 23 - .../routeparameter0/RouteParamSchema0.java | 114 -- ...CommonparamsubdirPostHeaderParameters.java | 191 -- .../CommonparamsubdirPostPathParameters.java | 211 --- .../post/CommonparamsubdirPostResponses.java | 53 - .../commonparamsubdir/post/Parameters.java | 32 - .../post/parameters/Parameter0.java | 23 - .../post/parameters/parameter0/Schema0.java | 19 - .../CommonparamsubdirPostCode200Response.java | 7 - .../client/paths/fake/FakeDelete.java | 270 --- .../client/paths/fake/FakeGet.java | 198 -- .../client/paths/fake/FakePatch.java | 183 -- .../client/paths/fake/FakePost.java | 180 -- .../delete/FakeDeleteHeaderParameters.java | 246 --- .../delete/FakeDeleteQueryParameters.java | 351 ---- .../fake/delete/FakeDeleteResponses.java | 53 - .../fake/delete/FakeDeleteSecurityInfo.java | 24 - .../client/paths/fake/delete/Parameters.java | 40 - .../fake/delete/parameters/Parameter0.java | 23 - .../fake/delete/parameters/Parameter1.java | 23 - .../fake/delete/parameters/Parameter2.java | 23 - .../fake/delete/parameters/Parameter3.java | 23 - .../fake/delete/parameters/Parameter4.java | 23 - .../fake/delete/parameters/Parameter5.java | 23 - .../delete/parameters/parameter0/Schema0.java | 19 - .../delete/parameters/parameter1/Schema1.java | 114 -- .../delete/parameters/parameter2/Schema2.java | 19 - .../delete/parameters/parameter3/Schema3.java | 19 - .../delete/parameters/parameter4/Schema4.java | 114 -- .../delete/parameters/parameter5/Schema5.java | 19 - .../responses/FakeDeleteCode200Response.java | 7 - .../FakeDeleteSecurityRequirementObject0.java | 24 - .../fake/get/FakeGetHeaderParameters.java | 228 --- .../fake/get/FakeGetQueryParameters.java | 344 ---- .../paths/fake/get/FakeGetRequestBody.java | 49 - .../paths/fake/get/FakeGetResponses.java | 66 - .../client/paths/fake/get/Parameters.java | 40 - .../paths/fake/get/parameters/Parameter0.java | 23 - .../paths/fake/get/parameters/Parameter1.java | 23 - .../paths/fake/get/parameters/Parameter2.java | 23 - .../paths/fake/get/parameters/Parameter3.java | 23 - .../paths/fake/get/parameters/Parameter4.java | 23 - .../paths/fake/get/parameters/Parameter5.java | 23 - .../get/parameters/parameter0/Schema0.java | 253 --- .../get/parameters/parameter1/Schema1.java | 124 -- .../get/parameters/parameter2/Schema2.java | 253 --- .../get/parameters/parameter3/Schema3.java | 124 -- .../get/parameters/parameter4/Schema4.java | 187 -- .../get/parameters/parameter5/Schema5.java | 142 -- .../ApplicationxwwwformurlencodedSchema.java | 553 ------ .../get/responses/FakeGetCode200Response.java | 7 - .../get/responses/FakeGetCode404Response.java | 63 - .../ApplicationjsonSchema.java | 20 - .../fake/patch/FakePatchRequestBody.java | 7 - .../paths/fake/patch/FakePatchResponses.java | 53 - .../responses/FakePatchCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../paths/fake/post/FakePostRequestBody.java | 49 - .../paths/fake/post/FakePostResponses.java | 66 - .../paths/fake/post/FakePostSecurityInfo.java | 24 - .../ApplicationxwwwformurlencodedSchema.java | 1591 ----------------- .../responses/FakePostCode200Response.java | 7 - .../responses/FakePostCode404Response.java | 45 - .../FakePostSecurityRequirementObject0.java | 24 - ...ditionalpropertieswitharrayofenumsGet.java | 152 -- ...pertieswitharrayofenumsGetRequestBody.java | 49 - ...ropertieswitharrayofenumsGetResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - ...ieswitharrayofenumsGetCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../FakebodywithfileschemaPut.java | 183 -- .../FakebodywithfileschemaPutRequestBody.java | 49 - .../FakebodywithfileschemaPutResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - ...ebodywithfileschemaPutCode200Response.java | 7 - .../FakebodywithqueryparamsPut.java | 242 --- ...bodywithqueryparamsPutQueryParameters.java | 205 --- ...FakebodywithqueryparamsPutRequestBody.java | 49 - .../FakebodywithqueryparamsPutResponses.java | 53 - .../put/Parameters.java | 20 - .../put/parameters/Parameter0.java | 23 - .../put/parameters/parameter0/Schema0.java | 19 - .../ApplicationjsonSchema.java | 19 - ...bodywithqueryparamsPutCode200Response.java | 7 - .../FakecasesensitiveparamsPut.java | 180 -- ...casesensitiveparamsPutQueryParameters.java | 343 ---- .../FakecasesensitiveparamsPutResponses.java | 53 - .../put/Parameters.java | 24 - .../put/parameters/Parameter0.java | 23 - .../put/parameters/Parameter1.java | 23 - .../put/parameters/Parameter2.java | 23 - .../put/parameters/parameter0/Schema0.java | 19 - .../put/parameters/parameter1/Schema1.java | 19 - .../put/parameters/parameter2/Schema2.java | 19 - ...casesensitiveparamsPutCode200Response.java | 7 - .../FakeclassnametestPatch.java | 215 --- .../FakeclassnametestPatchRequestBody.java | 7 - .../FakeclassnametestPatchResponses.java | 53 - .../FakeclassnametestPatchSecurityInfo.java | 24 - ...FakeclassnametestPatchCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - ...metestPatchSecurityRequirementObject0.java | 24 - .../FakedeletecoffeeidDelete.java | 179 -- ...akedeletecoffeeidDeletePathParameters.java | 205 --- .../FakedeletecoffeeidDeleteResponses.java | 61 - .../fakedeletecoffeeid/delete/Parameters.java | 20 - .../delete/parameters/Parameter0.java | 23 - .../delete/parameters/parameter0/Schema0.java | 19 - ...kedeletecoffeeidDeleteCode200Response.java | 7 - ...letecoffeeidDeleteCodedefaultResponse.java | 45 - .../paths/fakehealth/FakehealthGet.java | 124 -- .../get/FakehealthGetResponses.java | 53 - .../FakehealthGetCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../FakeinlineadditionalpropertiesPost.java | 183 -- ...neadditionalpropertiesPostRequestBody.java | 49 - ...lineadditionalpropertiesPostResponses.java | 53 - .../ApplicationjsonSchema.java | 183 -- ...ditionalpropertiesPostCode200Response.java | 7 - .../FakeinlinecompositionPost.java | 176 -- ...einlinecompositionPostQueryParameters.java | 270 --- .../FakeinlinecompositionPostRequestBody.java | 71 - .../FakeinlinecompositionPostResponses.java | 53 - .../post/Parameters.java | 22 - .../post/parameters/Parameter0.java | 23 - .../post/parameters/Parameter1.java | 23 - .../post/parameters/parameter0/Schema0.java | 393 ---- .../post/parameters/parameter1/Schema1.java | 596 ------ .../ApplicationjsonSchema.java | 393 ---- .../MultipartformdataSchema.java | 596 ------ ...einlinecompositionPostCode200Response.java | 81 - .../ApplicationjsonSchema.java | 393 ---- .../MultipartformdataSchema.java | 596 ------ .../fakejsonformdata/FakejsonformdataGet.java | 152 -- .../get/FakejsonformdataGetRequestBody.java | 49 - .../get/FakejsonformdataGetResponses.java | 53 - .../ApplicationxwwwformurlencodedSchema.java | 274 --- .../FakejsonformdataGetCode200Response.java | 7 - .../fakejsonpatch/FakejsonpatchPatch.java | 152 -- .../patch/FakejsonpatchPatchRequestBody.java | 49 - .../patch/FakejsonpatchPatchResponses.java | 53 - .../ApplicationjsonpatchjsonSchema.java | 19 - .../FakejsonpatchPatchCode200Response.java | 7 - .../FakejsonwithcharsetPost.java | 152 -- .../FakejsonwithcharsetPostRequestBody.java | 49 - .../FakejsonwithcharsetPostResponses.java | 53 - .../Applicationjsoncharsetutf8Schema.java | 19 - ...akejsonwithcharsetPostCode200Response.java | 63 - .../Applicationjsoncharsetutf8Schema.java | 19 - ...kemultiplerequestbodycontenttypesPost.java | 152 -- ...equestbodycontenttypesPostRequestBody.java | 71 - ...erequestbodycontenttypesPostResponses.java | 53 - .../ApplicationjsonSchema.java | 200 --- .../MultipartformdataSchema.java | 200 --- ...stbodycontenttypesPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../FakemultipleresponsebodiesGet.java | 124 -- ...akemultipleresponsebodiesGetResponses.java | 69 - ...tipleresponsebodiesGetCode200Response.java | 63 - ...tipleresponsebodiesGetCode202Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../ApplicationjsonSchema.java | 19 - .../FakemultiplesecuritiesGet.java | 152 -- .../FakemultiplesecuritiesGetResponses.java | 53 - ...FakemultiplesecuritiesGetSecurityInfo.java | 39 - ...emultiplesecuritiesGetCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - ...curitiesGetSecurityRequirementObject0.java | 5 - ...curitiesGetSecurityRequirementObject1.java | 29 - ...curitiesGetSecurityRequirementObject2.java | 24 - .../fakeobjinquery/FakeobjinqueryGet.java | 148 -- .../get/FakeobjinqueryGetQueryParameters.java | 191 -- .../get/FakeobjinqueryGetResponses.java | 53 - .../paths/fakeobjinquery/get/Parameters.java | 20 - .../get/parameters/Parameter0.java | 23 - .../get/parameters/parameter0/Schema0.java | 200 --- .../FakeobjinqueryGetCode200Response.java | 7 - ...akeparametercollisions1ababselfabPost.java | 291 --- ...isions1ababselfabPostCookieParameters.java | 286 --- ...isions1ababselfabPostHeaderParameters.java | 258 --- ...llisions1ababselfabPostPathParameters.java | 819 --------- ...lisions1ababselfabPostQueryParameters.java | 286 --- ...rcollisions1ababselfabPostRequestBody.java | 49 - ...tercollisions1ababselfabPostResponses.java | 53 - .../post/Parameters.java | 86 - .../post/parameters/Parameter0.java | 23 - .../post/parameters/Parameter1.java | 23 - .../post/parameters/Parameter10.java | 23 - .../post/parameters/Parameter11.java | 23 - .../post/parameters/Parameter12.java | 23 - .../post/parameters/Parameter13.java | 23 - .../post/parameters/Parameter14.java | 23 - .../post/parameters/Parameter15.java | 23 - .../post/parameters/Parameter16.java | 23 - .../post/parameters/Parameter17.java | 23 - .../post/parameters/Parameter18.java | 23 - .../post/parameters/Parameter2.java | 23 - .../post/parameters/Parameter3.java | 23 - .../post/parameters/Parameter4.java | 23 - .../post/parameters/Parameter5.java | 23 - .../post/parameters/Parameter6.java | 23 - .../post/parameters/Parameter7.java | 23 - .../post/parameters/Parameter8.java | 23 - .../post/parameters/Parameter9.java | 23 - .../post/parameters/parameter0/Schema0.java | 19 - .../post/parameters/parameter1/Schema1.java | 19 - .../post/parameters/parameter10/Schema10.java | 19 - .../post/parameters/parameter11/Schema11.java | 19 - .../post/parameters/parameter12/Schema12.java | 19 - .../post/parameters/parameter13/Schema13.java | 19 - .../post/parameters/parameter14/Schema14.java | 19 - .../post/parameters/parameter15/Schema15.java | 19 - .../post/parameters/parameter16/Schema16.java | 19 - .../post/parameters/parameter17/Schema17.java | 19 - .../post/parameters/parameter18/Schema18.java | 19 - .../post/parameters/parameter2/Schema2.java | 19 - .../post/parameters/parameter3/Schema3.java | 19 - .../post/parameters/parameter4/Schema4.java | 19 - .../post/parameters/parameter5/Schema5.java | 19 - .../post/parameters/parameter6/Schema6.java | 19 - .../post/parameters/parameter7/Schema7.java | 19 - .../post/parameters/parameter8/Schema8.java | 19 - .../post/parameters/parameter9/Schema9.java | 19 - .../ApplicationjsonSchema.java | 19 - ...lisions1ababselfabPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../FakepemcontenttypeGet.java | 152 -- .../get/FakepemcontenttypeGetRequestBody.java | 49 - .../get/FakepemcontenttypeGetResponses.java | 53 - .../ApplicationxpemfileSchema.java | 19 - .../FakepemcontenttypeGetCode200Response.java | 63 - .../ApplicationxpemfileSchema.java | 19 - ...epetiduploadimagewithrequiredfilePost.java | 243 --- ...agewithrequiredfilePostPathParameters.java | 223 --- ...dimagewithrequiredfilePostRequestBody.java | 49 - ...oadimagewithrequiredfilePostResponses.java | 53 - ...imagewithrequiredfilePostSecurityInfo.java | 24 - .../post/Parameters.java | 20 - .../post/parameters/Parameter0.java | 23 - .../post/parameters/parameter0/Schema0.java | 19 - .../MultipartformdataSchema.java | 251 --- ...gewithrequiredfilePostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - ...redfilePostSecurityRequirementObject0.java | 24 - .../FakequeryparamwithjsoncontenttypeGet.java | 180 -- ...withjsoncontenttypeGetQueryParameters.java | 253 --- ...yparamwithjsoncontenttypeGetResponses.java | 53 - .../get/Parameters.java | 20 - .../get/parameters/Parameter0.java | 35 - .../content/applicationjson/Schema0.java | 19 - ...withjsoncontenttypeGetCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../fakeredirection/FakeredirectionGet.java | 124 -- .../get/FakeredirectionGetResponses.java | 79 - .../FakeredirectionGetCode303Response.java | 45 - .../FakeredirectionGetCode3XXResponse.java | 45 - .../FakerefobjinqueryGet.java | 148 -- .../FakerefobjinqueryGetQueryParameters.java | 191 -- .../get/FakerefobjinqueryGetResponses.java | 53 - .../fakerefobjinquery/get/Parameters.java | 20 - .../get/parameters/Parameter0.java | 23 - .../get/parameters/parameter0/Schema0.java | 19 - .../FakerefobjinqueryGetCode200Response.java | 7 - .../FakerefsarraymodelPost.java | 152 -- .../FakerefsarraymodelPostRequestBody.java | 49 - .../post/FakerefsarraymodelPostResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - ...FakerefsarraymodelPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../FakerefsarrayofenumsPost.java | 152 -- .../FakerefsarrayofenumsPostRequestBody.java | 49 - .../FakerefsarrayofenumsPostResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - ...kerefsarrayofenumsPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../fakerefsboolean/FakerefsbooleanPost.java | 152 -- .../post/FakerefsbooleanPostRequestBody.java | 49 - .../post/FakerefsbooleanPostResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - .../FakerefsbooleanPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - ...omposedoneofnumberwithvalidationsPost.java | 152 -- ...fnumberwithvalidationsPostRequestBody.java | 49 - ...eofnumberwithvalidationsPostResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - ...berwithvalidationsPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../paths/fakerefsenum/FakerefsenumPost.java | 152 -- .../post/FakerefsenumPostRequestBody.java | 49 - .../post/FakerefsenumPostResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - .../FakerefsenumPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../fakerefsmammal/FakerefsmammalPost.java | 183 -- .../post/FakerefsmammalPostRequestBody.java | 49 - .../post/FakerefsmammalPostResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - .../FakerefsmammalPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../fakerefsnumber/FakerefsnumberPost.java | 152 -- .../post/FakerefsnumberPostRequestBody.java | 49 - .../post/FakerefsnumberPostResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - .../FakerefsnumberPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../FakerefsobjectmodelwithrefpropsPost.java | 152 -- ...bjectmodelwithrefpropsPostRequestBody.java | 49 - ...sobjectmodelwithrefpropsPostResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - ...tmodelwithrefpropsPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../fakerefsstring/FakerefsstringPost.java | 152 -- .../post/FakerefsstringPostRequestBody.java | 49 - .../post/FakerefsstringPostResponses.java | 53 - .../ApplicationjsonSchema.java | 19 - .../FakerefsstringPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../FakeresponsewithoutschemaGet.java | 124 -- ...FakeresponsewithoutschemaGetResponses.java | 53 - ...sponsewithoutschemaGetCode200Response.java | 48 - .../FaketestqueryparamtersPut.java | 180 -- ...etestqueryparamtersPutQueryParameters.java | 1515 ---------------- .../FaketestqueryparamtersPutResponses.java | 53 - .../put/Parameters.java | 30 - .../put/parameters/Parameter0.java | 23 - .../put/parameters/Parameter1.java | 23 - .../put/parameters/Parameter2.java | 23 - .../put/parameters/Parameter3.java | 23 - .../put/parameters/Parameter4.java | 23 - .../put/parameters/Parameter5.java | 23 - .../put/parameters/parameter0/Schema0.java | 157 -- .../put/parameters/parameter1/Schema1.java | 157 -- .../put/parameters/parameter2/Schema2.java | 157 -- .../put/parameters/parameter3/Schema3.java | 157 -- .../put/parameters/parameter4/Schema4.java | 157 -- .../put/parameters/parameter5/Schema5.java | 19 - ...etestqueryparamtersPutCode200Response.java | 7 - .../FakeuploaddownloadfilePost.java | 183 -- ...FakeuploaddownloadfilePostRequestBody.java | 49 - .../FakeuploaddownloadfilePostResponses.java | 53 - .../ApplicationoctetstreamSchema.java | 20 - ...uploaddownloadfilePostCode200Response.java | 63 - .../ApplicationoctetstreamSchema.java | 20 - .../fakeuploadfile/FakeuploadfilePost.java | 152 -- .../post/FakeuploadfilePostRequestBody.java | 49 - .../post/FakeuploadfilePostResponses.java | 53 - .../MultipartformdataSchema.java | 251 --- .../FakeuploadfilePostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../fakeuploadfiles/FakeuploadfilesPost.java | 152 -- .../post/FakeuploadfilesPostRequestBody.java | 49 - .../post/FakeuploadfilesPostResponses.java | 53 - .../MultipartformdataSchema.java | 325 ---- .../FakeuploadfilesPostCode200Response.java | 63 - .../ApplicationjsonSchema.java | 19 - .../FakewildcardresponsesGet.java | 124 -- .../FakewildcardresponsesGetResponses.java | 139 -- ...kewildcardresponsesGetCode1XXResponse.java | 63 - ...kewildcardresponsesGetCode200Response.java | 63 - ...kewildcardresponsesGetCode2XXResponse.java | 63 - ...kewildcardresponsesGetCode3XXResponse.java | 63 - ...kewildcardresponsesGetCode4XXResponse.java | 63 - ...kewildcardresponsesGetCode5XXResponse.java | 63 - .../ApplicationjsonSchema.java | 19 - .../ApplicationjsonSchema.java | 19 - .../ApplicationjsonSchema.java | 19 - .../ApplicationjsonSchema.java | 19 - .../ApplicationjsonSchema.java | 19 - .../ApplicationjsonSchema.java | 19 - .../client/paths/foo/FooGet.java | 124 -- .../client/paths/foo/get/FooGetResponses.java | 37 - .../paths/foo/get/FooGetServerInfo.java | 63 - .../responses/FooGetCodedefaultResponse.java | 63 - .../ApplicationjsonSchema.java | 179 -- .../paths/foo/get/servers/FooGetServer0.java | 9 - .../paths/foo/get/servers/FooGetServer1.java | 35 - .../foo/get/servers/server1/Variables.java | 313 ---- .../client/paths/pet/PetPost.java | 215 --- .../client/paths/pet/PetPut.java | 214 --- .../paths/pet/post/PetPostRequestBody.java | 7 - .../paths/pet/post/PetPostResponses.java | 66 - .../paths/pet/post/PetPostSecurityInfo.java | 39 - .../responses/PetPostCode200Response.java | 7 - .../responses/PetPostCode405Response.java | 45 - .../PetPostSecurityRequirementObject0.java | 24 - .../PetPostSecurityRequirementObject1.java | 24 - .../PetPostSecurityRequirementObject2.java | 24 - .../paths/pet/put/PetPutRequestBody.java | 7 - .../client/paths/pet/put/PetPutResponses.java | 72 - .../paths/pet/put/PetPutSecurityInfo.java | 33 - .../put/responses/PetPutCode400Response.java | 45 - .../put/responses/PetPutCode404Response.java | 45 - .../put/responses/PetPutCode405Response.java | 45 - .../PetPutSecurityRequirementObject0.java | 24 - .../PetPutSecurityRequirementObject1.java | 24 - .../petfindbystatus/PetfindbystatusGet.java | 212 --- .../PetfindbystatusServerInfo.java | 63 - .../paths/petfindbystatus/get/Parameters.java | 20 - .../PetfindbystatusGetQueryParameters.java | 206 --- .../get/PetfindbystatusGetResponses.java | 66 - .../get/PetfindbystatusGetSecurityInfo.java | 39 - .../get/parameters/Parameter0.java | 23 - .../get/parameters/parameter0/Schema0.java | 255 --- .../PetfindbystatusGetCode200Response.java | 7 - .../PetfindbystatusGetCode400Response.java | 45 - ...bystatusGetSecurityRequirementObject0.java | 24 - ...bystatusGetSecurityRequirementObject1.java | 24 - ...bystatusGetSecurityRequirementObject2.java | 24 - .../servers/PetfindbystatusServer0.java | 9 - .../servers/PetfindbystatusServer1.java | 35 - .../servers/server1/Variables.java | 313 ---- .../paths/petfindbytags/PetfindbytagsGet.java | 212 --- .../paths/petfindbytags/get/Parameters.java | 20 - .../get/PetfindbytagsGetQueryParameters.java | 206 --- .../get/PetfindbytagsGetResponses.java | 66 - .../get/PetfindbytagsGetSecurityInfo.java | 33 - .../get/parameters/Parameter0.java | 23 - .../get/parameters/parameter0/Schema0.java | 157 -- .../PetfindbytagsGetCode200Response.java | 7 - .../PetfindbytagsGetCode400Response.java | 45 - ...ndbytagsGetSecurityRequirementObject0.java | 24 - ...ndbytagsGetSecurityRequirementObject1.java | 24 - .../client/paths/petpetid/PetpetidDelete.java | 236 --- .../client/paths/petpetid/PetpetidGet.java | 211 --- .../client/paths/petpetid/PetpetidPost.java | 242 --- .../paths/petpetid/delete/Parameters.java | 32 - .../PetpetidDeleteHeaderParameters.java | 191 -- .../delete/PetpetidDeletePathParameters.java | 223 --- .../delete/PetpetidDeleteResponses.java | 48 - .../delete/PetpetidDeleteSecurityInfo.java | 33 - .../delete/parameters/Parameter0.java | 23 - .../delete/parameters/Parameter1.java | 23 - .../delete/parameters/parameter0/Schema0.java | 19 - .../delete/parameters/parameter1/Schema1.java | 19 - .../PetpetidDeleteCode400Response.java | 45 - ...petidDeleteSecurityRequirementObject0.java | 24 - ...petidDeleteSecurityRequirementObject1.java | 24 - .../client/paths/petpetid/get/Parameters.java | 20 - .../get/PetpetidGetPathParameters.java | 223 --- .../petpetid/get/PetpetidGetResponses.java | 77 - .../petpetid/get/PetpetidGetSecurityInfo.java | 24 - .../petpetid/get/parameters/Parameter0.java | 23 - .../get/parameters/parameter0/Schema0.java | 19 - .../responses/PetpetidGetCode200Response.java | 81 - .../responses/PetpetidGetCode400Response.java | 45 - .../responses/PetpetidGetCode404Response.java | 45 - .../ApplicationjsonSchema.java | 20 - .../applicationxml/ApplicationxmlSchema.java | 19 - ...PetpetidGetSecurityRequirementObject0.java | 24 - .../paths/petpetid/post/Parameters.java | 20 - .../post/PetpetidPostPathParameters.java | 223 --- .../post/PetpetidPostRequestBody.java | 49 - .../petpetid/post/PetpetidPostResponses.java | 48 - .../post/PetpetidPostSecurityInfo.java | 33 - .../petpetid/post/parameters/Parameter0.java | 23 - .../post/parameters/parameter0/Schema0.java | 19 - .../ApplicationxwwwformurlencodedSchema.java | 238 --- .../PetpetidPostCode405Response.java | 45 - ...etpetidPostSecurityRequirementObject0.java | 24 - ...etpetidPostSecurityRequirementObject1.java | 24 - .../PetpetiduploadimagePost.java | 243 --- .../petpetiduploadimage/post/Parameters.java | 20 - ...PetpetiduploadimagePostPathParameters.java | 223 --- .../PetpetiduploadimagePostRequestBody.java | 49 - .../PetpetiduploadimagePostResponses.java | 54 - .../PetpetiduploadimagePostSecurityInfo.java | 24 - .../post/parameters/Parameter0.java | 23 - .../post/parameters/parameter0/Schema0.java | 19 - .../MultipartformdataSchema.java | 239 --- ...etpetiduploadimagePostCode200Response.java | 7 - ...adimagePostSecurityRequirementObject0.java | 24 - .../client/paths/solidus/SolidusGet.java | 124 -- .../solidus/get/SolidusGetResponses.java | 53 - .../responses/SolidusGetCode200Response.java | 7 - .../storeinventory/StoreinventoryGet.java | 152 -- .../get/StoreinventoryGetResponses.java | 54 - .../get/StoreinventoryGetSecurityInfo.java | 24 - .../StoreinventoryGetCode200Response.java | 7 - ...nventoryGetSecurityRequirementObject0.java | 24 - .../paths/storeorder/StoreorderPost.java | 183 -- .../post/StoreorderPostRequestBody.java | 49 - .../post/StoreorderPostResponses.java | 66 - .../ApplicationjsonSchema.java | 19 - .../StoreorderPostCode200Response.java | 81 - .../StoreorderPostCode400Response.java | 45 - .../ApplicationjsonSchema.java | 19 - .../applicationxml/ApplicationxmlSchema.java | 19 - .../StoreorderorderidDelete.java | 178 -- .../StoreorderorderidGet.java | 179 -- .../storeorderorderid/delete/Parameters.java | 20 - ...StoreorderorderidDeletePathParameters.java | 205 --- .../StoreorderorderidDeleteResponses.java | 61 - .../delete/parameters/Parameter0.java | 23 - .../delete/parameters/parameter0/Schema0.java | 19 - ...toreorderorderidDeleteCode400Response.java | 45 - ...toreorderorderidDeleteCode404Response.java | 45 - .../storeorderorderid/get/Parameters.java | 20 - .../StoreorderorderidGetPathParameters.java | 223 --- .../get/StoreorderorderidGetResponses.java | 77 - .../get/parameters/Parameter0.java | 23 - .../get/parameters/parameter0/Schema0.java | 111 -- .../StoreorderorderidGetCode200Response.java | 81 - .../StoreorderorderidGetCode400Response.java | 45 - .../StoreorderorderidGetCode404Response.java | 45 - .../ApplicationjsonSchema.java | 19 - .../applicationxml/ApplicationxmlSchema.java | 19 - .../client/paths/user/UserPost.java | 183 -- .../paths/user/post/UserPostRequestBody.java | 49 - .../paths/user/post/UserPostResponses.java | 37 - .../ApplicationjsonSchema.java | 19 - .../UserPostCodedefaultResponse.java | 45 - .../UsercreatewitharrayPost.java | 183 -- .../UsercreatewitharrayPostRequestBody.java | 7 - .../UsercreatewitharrayPostResponses.java | 37 - ...reatewitharrayPostCodedefaultResponse.java | 45 - .../UsercreatewithlistPost.java | 183 -- .../UsercreatewithlistPostRequestBody.java | 7 - .../post/UsercreatewithlistPostResponses.java | 37 - ...createwithlistPostCodedefaultResponse.java | 45 - .../client/paths/userlogin/UserloginGet.java | 180 -- .../paths/userlogin/get/Parameters.java | 22 - .../get/UserloginGetQueryParameters.java | 255 --- .../userlogin/get/UserloginGetResponses.java | 67 - .../userlogin/get/parameters/Parameter0.java | 23 - .../userlogin/get/parameters/Parameter1.java | 23 - .../get/parameters/parameter0/Schema0.java | 19 - .../get/parameters/parameter1/Schema1.java | 19 - .../UserloginGetCode200Response.java | 83 - .../UserloginGetCode400Response.java | 45 - .../responses/code200response/Headers.java | 26 - ...rloginGetCode200ResponseHeadersSchema.java | 389 ---- .../ApplicationjsonSchema.java | 19 - .../applicationxml/ApplicationxmlSchema.java | 19 - .../code200response/headers/Int32.java | 7 - .../code200response/headers/NumberHeader.java | 3 - .../headers/Refcontentschemaheader.java | 7 - .../headers/XExpiresAfter.java | 18 - .../code200response/headers/XRateLimit.java | 31 - .../xexpiresafter/XExpiresAfterSchema.java | 19 - .../applicationjson/XRateLimitSchema.java | 19 - .../paths/userlogout/UserlogoutGet.java | 124 -- .../get/UserlogoutGetResponses.java | 37 - .../UserlogoutGetCodedefaultResponse.java | 7 - .../userusername/UserusernameDelete.java | 179 -- .../paths/userusername/UserusernameGet.java | 179 -- .../paths/userusername/UserusernamePut.java | 240 --- .../paths/userusername/delete/Parameters.java | 20 - .../UserusernameDeletePathParameters.java | 205 --- .../delete/UserusernameDeleteResponses.java | 66 - .../delete/parameters/Parameter0.java | 7 - .../UserusernameDeleteCode200Response.java | 7 - .../UserusernameDeleteCode404Response.java | 45 - .../paths/userusername/get/Parameters.java | 20 - .../get/UserusernameGetPathParameters.java | 205 --- .../get/UserusernameGetResponses.java | 77 - .../get/parameters/Parameter0.java | 7 - .../UserusernameGetCode200Response.java | 81 - .../UserusernameGetCode400Response.java | 45 - .../UserusernameGetCode404Response.java | 45 - .../ApplicationjsonSchema.java | 19 - .../applicationxml/ApplicationxmlSchema.java | 19 - .../paths/userusername/put/Parameters.java | 20 - .../put/UserusernamePutPathParameters.java | 205 --- .../put/UserusernamePutRequestBody.java | 49 - .../put/UserusernamePutResponses.java | 61 - .../put/parameters/Parameter0.java | 7 - .../ApplicationjsonSchema.java | 19 - .../UserusernamePutCode400Response.java | 45 - .../UserusernamePutCode404Response.java | 45 - .../client/servers/Server.java | 6 - .../client/servers/Server0.java | 38 - .../client/servers/Server1.java | 37 - .../client/servers/Server2.java | 9 - .../client/servers/ServerProvider.java | 6 - .../client/servers/ServerWithVariables.java | 21 - .../servers/ServerWithoutVariables.java | 14 - .../servers/server0/Server0Variables.java | 471 ----- .../servers/server1/Server1Variables.java | 313 ---- 1158 files changed, 100195 deletions(-) delete mode 100644 samples/client/petstore/java/docs/ServerInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md delete mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/FakeDelete.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/FakeGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/FakePatch.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/FakePost.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/responses/FakeDeleteCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/FakeGetRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/patch/FakePatchRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/post/FakePostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode404Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md delete mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md delete mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md delete mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md delete mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md delete mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md delete mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/foo/FooGet.md delete mode 100644 samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer0.md delete mode 100644 samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md delete mode 100644 samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/PetPost.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/PetPut.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/PetPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode404Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/responses/PetpetidPostCode405Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/solidus/SolidusGet.md delete mode 100644 samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/solidus/get/responses/SolidusGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md delete mode 100644 samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md delete mode 100644 samples/client/petstore/java/docs/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/user/UserPost.md delete mode 100644 samples/client/petstore/java/docs/paths/user/post/UserPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/user/post/responses/UserPostCodedefaultResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode404Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode404Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutRequestBody.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode400Response.md delete mode 100644 samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode404Response.md delete mode 100644 samples/client/petstore/java/docs/servers/Server0.md delete mode 100644 samples/client/petstore/java/docs/servers/Server1.md delete mode 100644 samples/client/petstore/java/docs/servers/Server2.md delete mode 100644 samples/client/petstore/java/docs/servers/server0/Server0Variables.md delete mode 100644 samples/client/petstore/java/docs/servers/server1/Server1Variables.md delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Anotherfakedummy.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Commonparamsubdir.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fake.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeadditionalpropertieswitharrayofenums.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithfileschema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithqueryparams.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakecasesensitiveparams.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeclassnametest.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakedeletecoffeeid.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakehealth.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlineadditionalproperties.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlinecomposition.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonformdata.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonpatch.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonwithcharset.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplerequestbodycontenttypes.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultipleresponsebodies.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplesecurities.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeobjinquery.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeparametercollisions1ababselfab.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepemcontenttype.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepetiduploadimagewithrequiredfile.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakequeryparamwithjsoncontenttype.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeredirection.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefobjinquery.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarraymodel.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarrayofenums.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsboolean.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefscomposedoneofnumberwithvalidations.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsenum.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsmammal.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsnumber.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsobjectmodelwithrefprops.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsstring.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeresponsewithoutschema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Faketestqueryparamters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploaddownloadfile.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfile.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfiles.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakewildcardresponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Foo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Pet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbystatus.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbytags.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetid.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetiduploadimage.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Solidus.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeinventory.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorder.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorderorderid.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/User.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewitharray.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewithlist.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogin.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogout.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userusername.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter3.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter4.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter5.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter2/Schema2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter3.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter4.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter5.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter10.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter11.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter12.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter13.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter14.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter15.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter16.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter17.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter18.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter3.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter4.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter5.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter6.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter7.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter8.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter9.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter3.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter4.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter5.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Int32.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/NumberHeader.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Refcontentschemaheader.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XExpiresAfter.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XRateLimit.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server2.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java delete mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java diff --git a/samples/client/petstore/java/docs/ServerInfo.md b/samples/client/petstore/java/docs/ServerInfo.md deleted file mode 100644 index 359e2806cd2..00000000000 --- a/samples/client/petstore/java/docs/ServerInfo.md +++ /dev/null @@ -1,65 +0,0 @@ -# ServerInfo -ServerInfo.java - -public class ServerInfo - -A class that provides a server, and any needed server info classes -- a class that is a ServerProvider -- a builder for the ServerProvider -- an enum class that stores server index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [ServerInfo.ServerInfo1](#serverinfo1)
class that stores a server index | -| static class | [ServerInfo.ServerInfoBuilder](#serverinfobuilder)
class that stores a server index | -| enum | [ServerInfo.ServerIndex](#serverindex)
class that stores a server index | - -## ServerInfo1 -implements ServerProvider<[ServerIndex](#serverindex)>
- -A class that stores servers and allows one to be returned with a ServerIndex instance - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ServerInfo1(@Nullable [Server0](servers/Server0.md) server0,@Nullable [Server1](servers/Server1.md) server1,@Nullable [Server2](servers/Server2.md) server2)
Creates an instance using passed in servers | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [Server0](servers/Server0.md) | server0 | -| [Server1](servers/Server1.md) | server1 | -| [Server2](servers/Server2.md) | server2 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Server | getServer([ServerIndex](#serverindex) serverIndex) | - -## ServerInfoBuilder - -a builder for [ServerInfo1](#serverinfo1) - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ServerInfoBuilder()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ServerInfoBuilder](#serverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | -| [ServerInfoBuilder](#serverinfobuilder) | server1([Server1](servers/Server1.md) server1)
sets the server | -| [ServerInfoBuilder](#serverinfobuilder) | server2([Server2](servers/Server2.md) server2)
sets the server | -| [ServerInfo1](#serverinfo1) | build() | - -## ServerIndex -enum ServerIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SERVER_0
server 0 | -| SERVER_1
server 1 | -| SERVER_2
server 2 | diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md deleted file mode 100644 index cb30c0cd7e4..00000000000 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md +++ /dev/null @@ -1,188 +0,0 @@ -# AnotherfakedummyPatch - -public class AnotherfakedummyPatch - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Patch](#patch)
The class that has a patch method to call the endpoint | -| interface | [Model123TestSpecialTagsOperation](#model123testspecialtagsoperation)
The interface that has a model123TestSpecialTags method to call the endpoint | -| static class | [PatchRequest](#patchrequest)
The final request inputs class | -| static class | [PatchNullableRequest](#patchnullablerequest)
The initial request inputs class | -| static class | [Patch0RequestBuilder](#patch0requestbuilder)
A builder for the request input class | -| static class | [PatchRequestBuilder](#patchrequestbuilder)
A builder for the request input class | - -## Patch -public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
- -a class that allows one to call the endpoint using a method named patch - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; -import org.openapijsonschematools.client.components.schemas.Client; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.AnotherfakedummyPatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.anotherfakedummy.AnotherfakedummyPatch; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -AnotherfakedummyPatch.Patch apiClient = new AnotherfakedummyPatch.Patch(apiConfiguration, schemaConfiguration); - - -Client1BoxedMap requestBodyPayload = - Client.Client1.validateAndBox( - new Client.ClientMapBuilder1() - .client("a") - - .build(), - schemaConfiguration -); -AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody = new AnotherfakedummyPatchRequestBody.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new AnotherfakedummyPatch.PatchRequestBuilder() - .requestBody(requestBody) - .build(); - -AnotherfakedummyPatchResponses.EndpointResponse response; -try { - response = apiClient.patch(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -AnotherfakedummyPatchResponses.EndpointAnotherfakedummyPatchCode200Response castResponse = (AnotherfakedummyPatchResponses.EndpointAnotherfakedummyPatchCode200Response) response; -AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody deserializedBody = (AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | - -## Model123TestSpecialTagsOperation -public interface Model123TestSpecialTagsOperation
- -an interface that allows one to call the endpoint using a method named model123TestSpecialTags by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | model123TestSpecialTags([PatchRequest](#patchrequest) request) | - -## PatchRequest -public static class PatchRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [AnotherfakedummyPatchRequestBody.SealedRequestBody](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PatchNullableRequest -public static class PatchNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [AnotherfakedummyPatchRequestBody.@Nullable SealedRequestBody](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Patch0RequestBuilder -public static class Patch0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Patch0RequestBuilder(Patch0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | -| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Patch0RequestBuilder](#patch0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PatchRequestBuilder -public static class PatchRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PatchRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Patch0RequestBuilder](#patch0requestbuilder) | requestBody([AnotherfakedummyPatchRequestBody.SealedRequestBody](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md deleted file mode 100644 index efa5336e17e..00000000000 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# AnotherfakedummyPatchRequestBody - -public class AnotherfakedummyPatchRequestBody extends [Client](../../../components/requestbodies/Client.md) - -A class (extended from the $ref class) that contains necessary nested request body classes -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [AnotherfakedummyPatchRequestBody.AnotherfakedummyPatchRequestBody1](#anotherfakedummypatchrequestbody1)
class that serializes request bodies | - -## AnotherfakedummyPatchRequestBody1 -public static class AnotherfakedummyPatchRequestBody1 extends [Client1](../../../components/requestbodies/Client.md#client1)
- -a class that serializes SealedRequestBody request bodies, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md deleted file mode 100644 index b7064b938da..00000000000 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# AnotherfakedummyPatchResponses - -public class AnotherfakedummyPatchResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointAnotherfakedummyPatchCode200Response](#endpointanotherfakedummypatchcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointAnotherfakedummyPatchCode200Response](#endpointanotherfakedummypatchcode200response) - -a sealed interface that stores endpoint responses - -## EndpointAnotherfakedummyPatchCode200Response -public record EndpointAnotherfakedummyPatchCode200Response( - HttpResponse response, - [AnotherfakedummyPatchCode200Response.SealedResponseBody](../../../paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md deleted file mode 100644 index e9a291fa5fb..00000000000 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# AnotherfakedummyPatchCode200Response - -public class AnotherfakedummyPatchCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [AnotherfakedummyPatchCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [AnotherfakedummyPatchCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [AnotherfakedummyPatchCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [AnotherfakedummyPatchCode200Response.AnotherfakedummyPatchCode200Response1](#anotherfakedummypatchcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | - -## AnotherfakedummyPatchCode200Response1 -public static class AnotherfakedummyPatchCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AnotherfakedummyPatchCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 534041524ca..00000000000 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Client1](../../../../../../../components/schemas/Client.md#client) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../components/schemas/Client.md#client1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md deleted file mode 100644 index 2983f2981ad..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md +++ /dev/null @@ -1,189 +0,0 @@ -# CommonparamsubdirDelete - -public class CommonparamsubdirDelete - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | -| interface | [DeleteCommonParamOperation](#deletecommonparamoperation)
The interface that has a deleteCommonParam method to call the endpoint | -| static class | [DeleteRequest](#deleterequest)
The final request inputs class | -| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | -| static class | [Delete0RequestBuilder](#delete0requestbuilder)
A builder for the request input class | -| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | - -## Delete -public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
- -a class that allows one to call the endpoint using a method named delete - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.CommonparamsubdirDeleteCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirDelete; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -CommonparamsubdirDelete.Delete apiClient = new CommonparamsubdirDelete.Delete(apiConfiguration, schemaConfiguration); - - -// Map validation -CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters = - CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( - new CommonparamsubdirDeletePathParameters.PathParametersMapBuilder() - .subDir("c") - - .build(), - schemaConfiguration -); - -var request = new CommonparamsubdirDelete.DeleteRequestBuilder() - .pathParameters(pathParameters) - .build(); - -CommonparamsubdirDeleteResponses.EndpointResponse response; -try { - response = apiClient.delete(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response castResponse = (CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | - -## DeleteCommonParamOperation -public interface DeleteCommonParamOperation
- -an interface that allows one to call the endpoint using a method named deleteCommonParam by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | deleteCommonParam([DeleteRequest](#deleterequest) request) | - -## DeleteRequest -public static class DeleteRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [CommonparamsubdirDeletePathParameters.PathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#pathparametersmap) | pathParameters | -| [CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#headerparametersmap) | headerParameters
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## DeleteNullableRequest -public static class DeleteNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [CommonparamsubdirDeletePathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#pathparametersmap) | pathParameters | -| [CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#headerparametersmap) | headerParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Delete0RequestBuilder -public static class Delete0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete0RequestBuilder(Delete0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([CommonparamsubdirDeleteHeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | -| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## DeleteRequestBuilder -public static class DeleteRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([CommonparamsubdirDeletePathParametersPathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md deleted file mode 100644 index 785dc71d732..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md +++ /dev/null @@ -1,189 +0,0 @@ -# CommonparamsubdirGet - -public class CommonparamsubdirGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [GetCommonParamOperation](#getcommonparamoperation)
The interface that has a getCommonParam method to call the endpoint | -| static class | [GetRequest](#getrequest)
The final request inputs class | -| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | -| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.CommonparamsubdirGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirGet; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -CommonparamsubdirGet.Get apiClient = new CommonparamsubdirGet.Get(apiConfiguration, schemaConfiguration); - - -// Map validation -CommonparamsubdirGetPathParameters.PathParametersMap pathParameters = - CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( - new CommonparamsubdirGetPathParameters.PathParametersMapBuilder() - .subDir("a") - - .build(), - schemaConfiguration -); - -var request = new CommonparamsubdirGet.GetRequestBuilder() - .pathParameters(pathParameters) - .build(); - -CommonparamsubdirGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response castResponse = (CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## GetCommonParamOperation -public interface GetCommonParamOperation
- -an interface that allows one to call the endpoint using a method named getCommonParam by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | getCommonParam([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [CommonparamsubdirGetPathParameters.PathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#pathparametersmap) | pathParameters | -| [CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#queryparametersmap) | queryParameters
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetNullableRequest -public static class GetNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [CommonparamsubdirGetPathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#pathparametersmap) | pathParameters | -| [CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Get0RequestBuilder -public static class Get0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([CommonparamsubdirGetQueryParametersQueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([CommonparamsubdirGetPathParametersPathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md deleted file mode 100644 index 40da672b35a..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md +++ /dev/null @@ -1,189 +0,0 @@ -# CommonparamsubdirPost - -public class CommonparamsubdirPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [PostCommonParamOperation](#postcommonparamoperation)
The interface that has a postCommonParam method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.CommonparamsubdirPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirPost; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -CommonparamsubdirPost.Post apiClient = new CommonparamsubdirPost.Post(apiConfiguration, schemaConfiguration); - - -// Map validation -CommonparamsubdirPostPathParameters.PathParametersMap pathParameters = - CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( - new CommonparamsubdirPostPathParameters.PathParametersMapBuilder() - .subDir("a") - - .build(), - schemaConfiguration -); - -var request = new CommonparamsubdirPost.PostRequestBuilder() - .pathParameters(pathParameters) - .build(); - -CommonparamsubdirPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response castResponse = (CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## PostCommonParamOperation -public interface PostCommonParamOperation
- -an interface that allows one to call the endpoint using a method named postCommonParam by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | postCommonParam([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [CommonparamsubdirPostPathParameters.PathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#pathparametersmap) | pathParameters | -| [CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#headerparametersmap) | headerParameters
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [CommonparamsubdirPostPathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#pathparametersmap) | pathParameters | -| [CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#headerparametersmap) | headerParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([CommonparamsubdirPostHeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([CommonparamsubdirPostPathParametersPathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md deleted file mode 100644 index c13b25baebb..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md +++ /dev/null @@ -1,252 +0,0 @@ -# CommonparamsubdirDeleteHeaderParameters -public class CommonparamsubdirDeleteHeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1](#commonparamsubdirdeleteheaderparameters1)
schema class | -| static class | [CommonparamsubdirDeleteHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirDeleteHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirDeleteHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## CommonparamsubdirDeleteHeaderParameters1Boxed -public sealed interface CommonparamsubdirDeleteHeaderParameters1Boxed
-permits
-[CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## CommonparamsubdirDeleteHeaderParameters1BoxedMap -public record CommonparamsubdirDeleteHeaderParameters1BoxedMap
-implements [CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CommonparamsubdirDeleteHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## CommonparamsubdirDeleteHeaderParameters1 -public static class CommonparamsubdirDeleteHeaderParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -CommonparamsubdirDeleteHeaderParameters.HeaderParametersMap validatedPayload = - CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1.validate( - new CommonparamsubdirDeleteHeaderParameters.HeaderParametersMapBuilder() - .someHeader("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("someHeader", [Schema0.Schema01.class](../../../paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## HeaderParametersMapBuilder -public class HeaderParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | someHeader(String value) | - -## HeaderParametersMap -public static class HeaderParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | someHeader()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md deleted file mode 100644 index 167225d6daf..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md +++ /dev/null @@ -1,269 +0,0 @@ -# CommonparamsubdirDeletePathParameters -public class CommonparamsubdirDeletePathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1](#commonparamsubdirdeletepathparameters1)
schema class | -| static class | [CommonparamsubdirDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## CommonparamsubdirDeletePathParameters1Boxed -public sealed interface CommonparamsubdirDeletePathParameters1Boxed
-permits
-[CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## CommonparamsubdirDeletePathParameters1BoxedMap -public record CommonparamsubdirDeletePathParameters1BoxedMap
-implements [CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CommonparamsubdirDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## CommonparamsubdirDeletePathParameters1 -public static class CommonparamsubdirDeletePathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -CommonparamsubdirDeletePathParameters.PathParametersMap validatedPayload = - CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( - new CommonparamsubdirDeletePathParameters.PathParametersMapBuilder() - .subDir("c") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [Schema1.Schema11.class](../../../paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md#schema11))
)
| -| Set | required = Set.of(
    "subDir"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir(String value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir([Schema1.StringSchemaEnums1](../../../paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | subDir()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md deleted file mode 100644 index 955c52cfc4c..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# CommonparamsubdirDeleteResponses - -public class CommonparamsubdirDeleteResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCommonparamsubdirDeleteCode200Response](#endpointcommonparamsubdirdeletecode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCommonparamsubdirDeleteCode200Response](#endpointcommonparamsubdirdeletecode200response) - -a sealed interface that stores endpoint responses - -## EndpointCommonparamsubdirDeleteCode200Response -public record EndpointCommonparamsubdirDeleteCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md deleted file mode 100644 index ef5c82182ba..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md +++ /dev/null @@ -1,96 +0,0 @@ -# Schema1 -public class Schema1
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | -| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | -| static class | [Schema1.Schema11](#schema11)
schema class | -| enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | - -## Schema11Boxed -public sealed interface Schema11Boxed
-permits
-[Schema11BoxedString](#schema11boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema11BoxedString -public record Schema11BoxedString
-implements [Schema11Boxed](#schema11boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema11BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema11 -public static class Schema11
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter1.Schema1; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Schema1.Schema11.validate( - "c", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "c",
    "d"
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringSchemaEnums1](#stringschemaenums1) arg, SchemaConfiguration configuration) | -| [Schema11BoxedString](#schema11boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringSchemaEnums1 -public enum StringSchemaEnums1
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| C | value = "c" | -| D | value = "d" | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.md deleted file mode 100644 index 7781a6df85d..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CommonparamsubdirDeleteCode200Response - -public class CommonparamsubdirDeleteCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [CommonparamsubdirDeleteCode200Response.CommonparamsubdirDeleteCode200Response1](#commonparamsubdirdeletecode200response1)
class that deserializes responses | - -## CommonparamsubdirDeleteCode200Response1 -public static class CommonparamsubdirDeleteCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md deleted file mode 100644 index 3d4e639751b..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md +++ /dev/null @@ -1,269 +0,0 @@ -# CommonparamsubdirGetPathParameters -public class CommonparamsubdirGetPathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1](#commonparamsubdirgetpathparameters1)
schema class | -| static class | [CommonparamsubdirGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## CommonparamsubdirGetPathParameters1Boxed -public sealed interface CommonparamsubdirGetPathParameters1Boxed
-permits
-[CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## CommonparamsubdirGetPathParameters1BoxedMap -public record CommonparamsubdirGetPathParameters1BoxedMap
-implements [CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CommonparamsubdirGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## CommonparamsubdirGetPathParameters1 -public static class CommonparamsubdirGetPathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -CommonparamsubdirGetPathParameters.PathParametersMap validatedPayload = - CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( - new CommonparamsubdirGetPathParameters.PathParametersMapBuilder() - .subDir("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [RouteParamSchema0.RouteParamSchema01.class](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#routeparamschema01))
)
| -| Set | required = Set.of(
    "subDir"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir(String value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | subDir()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md deleted file mode 100644 index c2e2c4ecda1..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md +++ /dev/null @@ -1,252 +0,0 @@ -# CommonparamsubdirGetQueryParameters -public class CommonparamsubdirGetQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1](#commonparamsubdirgetqueryparameters1)
schema class | -| static class | [CommonparamsubdirGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## CommonparamsubdirGetQueryParameters1Boxed -public sealed interface CommonparamsubdirGetQueryParameters1Boxed
-permits
-[CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## CommonparamsubdirGetQueryParameters1BoxedMap -public record CommonparamsubdirGetQueryParameters1BoxedMap
-implements [CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CommonparamsubdirGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## CommonparamsubdirGetQueryParameters1 -public static class CommonparamsubdirGetQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -CommonparamsubdirGetQueryParameters.QueryParametersMap validatedPayload = - CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1.validate( - new CommonparamsubdirGetQueryParameters.QueryParametersMapBuilder() - .searchStr("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("searchStr", [Schema0.Schema01.class](../../../paths/commonparamsubdir/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | searchStr(String value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | searchStr()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md deleted file mode 100644 index 1341c9284d9..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# CommonparamsubdirGetResponses - -public class CommonparamsubdirGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCommonparamsubdirGetCode200Response](#endpointcommonparamsubdirgetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCommonparamsubdirGetCode200Response](#endpointcommonparamsubdirgetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCommonparamsubdirGetCode200Response -public record EndpointCommonparamsubdirGetCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.md deleted file mode 100644 index 11da3fc2681..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CommonparamsubdirGetCode200Response - -public class CommonparamsubdirGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [CommonparamsubdirGetCode200Response.CommonparamsubdirGetCode200Response1](#commonparamsubdirgetcode200response1)
class that deserializes responses | - -## CommonparamsubdirGetCode200Response1 -public static class CommonparamsubdirGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md deleted file mode 100644 index a21f308c2ea..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md +++ /dev/null @@ -1,96 +0,0 @@ -# RouteParamSchema0 -public class RouteParamSchema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [RouteParamSchema0.RouteParamSchema01Boxed](#routeparamschema01boxed)
sealed interface for validated payloads | -| record | [RouteParamSchema0.RouteParamSchema01BoxedString](#routeparamschema01boxedstring)
boxed class to store validated String payloads | -| static class | [RouteParamSchema0.RouteParamSchema01](#routeparamschema01)
schema class | -| enum | [RouteParamSchema0.StringRouteParamSchemaEnums0](#stringrouteparamschemaenums0)
String enum | - -## RouteParamSchema01Boxed -public sealed interface RouteParamSchema01Boxed
-permits
-[RouteParamSchema01BoxedString](#routeparamschema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## RouteParamSchema01BoxedString -public record RouteParamSchema01BoxedString
-implements [RouteParamSchema01Boxed](#routeparamschema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| RouteParamSchema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## RouteParamSchema01 -public static class RouteParamSchema01
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.routeparameter0.RouteParamSchema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = RouteParamSchema0.RouteParamSchema01.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "a",
    "b"
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringRouteParamSchemaEnums0](#stringrouteparamschemaenums0) arg, SchemaConfiguration configuration) | -| [RouteParamSchema01BoxedString](#routeparamschema01boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [RouteParamSchema01Boxed](#routeparamschema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringRouteParamSchemaEnums0 -public enum StringRouteParamSchemaEnums0
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| A | value = "a" | -| B | value = "b" | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md deleted file mode 100644 index cc7b482a2f2..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md +++ /dev/null @@ -1,252 +0,0 @@ -# CommonparamsubdirPostHeaderParameters -public class CommonparamsubdirPostHeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1](#commonparamsubdirpostheaderparameters1)
schema class | -| static class | [CommonparamsubdirPostHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirPostHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirPostHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## CommonparamsubdirPostHeaderParameters1Boxed -public sealed interface CommonparamsubdirPostHeaderParameters1Boxed
-permits
-[CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## CommonparamsubdirPostHeaderParameters1BoxedMap -public record CommonparamsubdirPostHeaderParameters1BoxedMap
-implements [CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CommonparamsubdirPostHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## CommonparamsubdirPostHeaderParameters1 -public static class CommonparamsubdirPostHeaderParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -CommonparamsubdirPostHeaderParameters.HeaderParametersMap validatedPayload = - CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1.validate( - new CommonparamsubdirPostHeaderParameters.HeaderParametersMapBuilder() - .someHeader("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("someHeader", [Schema0.Schema01.class](../../../paths/commonparamsubdir/post/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## HeaderParametersMapBuilder -public class HeaderParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | someHeader(String value) | - -## HeaderParametersMap -public static class HeaderParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | someHeader()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md deleted file mode 100644 index c07ad67929a..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md +++ /dev/null @@ -1,269 +0,0 @@ -# CommonparamsubdirPostPathParameters -public class CommonparamsubdirPostPathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1](#commonparamsubdirpostpathparameters1)
schema class | -| static class | [CommonparamsubdirPostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [CommonparamsubdirPostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [CommonparamsubdirPostPathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## CommonparamsubdirPostPathParameters1Boxed -public sealed interface CommonparamsubdirPostPathParameters1Boxed
-permits
-[CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## CommonparamsubdirPostPathParameters1BoxedMap -public record CommonparamsubdirPostPathParameters1BoxedMap
-implements [CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CommonparamsubdirPostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## CommonparamsubdirPostPathParameters1 -public static class CommonparamsubdirPostPathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -CommonparamsubdirPostPathParameters.PathParametersMap validatedPayload = - CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( - new CommonparamsubdirPostPathParameters.PathParametersMapBuilder() - .subDir("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [RouteParamSchema0.RouteParamSchema01.class](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#routeparamschema01))
)
| -| Set | required = Set.of(
    "subDir"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir(String value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | subDir()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md deleted file mode 100644 index 2f181986105..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# CommonparamsubdirPostResponses - -public class CommonparamsubdirPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointCommonparamsubdirPostCode200Response](#endpointcommonparamsubdirpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointCommonparamsubdirPostCode200Response](#endpointcommonparamsubdirpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointCommonparamsubdirPostCode200Response -public record EndpointCommonparamsubdirPostCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.md deleted file mode 100644 index 56ce18a3786..00000000000 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# CommonparamsubdirPostCode200Response - -public class CommonparamsubdirPostCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [CommonparamsubdirPostCode200Response.CommonparamsubdirPostCode200Response1](#commonparamsubdirpostcode200response1)
class that deserializes responses | - -## CommonparamsubdirPostCode200Response1 -public static class CommonparamsubdirPostCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md deleted file mode 100644 index e092eb3ee58..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md +++ /dev/null @@ -1,255 +0,0 @@ -# FakeDelete - -public class FakeDelete - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | -| interface | [GroupParametersOperation](#groupparametersoperation)
The interface that has a groupParameters method to call the endpoint | -| static class | [DeleteRequest](#deleterequest)
The final request inputs class | -| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | -| static class | [Delete00RequestBuilder](#delete00requestbuilder)
A builder for the request input class | -| static class | [Delete01RequestBuilder](#delete01requestbuilder)
A builder for the request input class | -| static class | [Delete10RequestBuilder](#delete10requestbuilder)
A builder for the request input class | -| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | - -## Delete -public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
- -a class that allows one to call the endpoint using a method named delete - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; -import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; -import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.BearerTest; -import org.openapijsonschematools.client.paths.fake.delete.responses.FakeDeleteCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fake.FakeDelete; -import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -securitySchemes.add( - new BearerTest("someAccessToken"); -); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .fakeDeleteSecurityRequirementObject0SecurityIndex(FakeDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeDelete.Delete apiClient = new FakeDelete.Delete(apiConfiguration, schemaConfiguration); - - -// Map validation -FakeDeleteHeaderParameters.HeaderParametersMap headerParameters = - FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( - new FakeDeleteHeaderParameters.HeaderParametersMapBuilder() - .required_boolean_group("true") - - .boolean_group("true") - - .build(), - schemaConfiguration -); - -// Map validation -FakeDeleteQueryParameters.QueryParametersMap queryParameters = - FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( - new FakeDeleteQueryParameters.QueryParametersMapBuilder() - .required_int64_group(1L) - - .required_string_group("a") - - .int64_group(1L) - - .string_group("a") - - .build(), - schemaConfiguration -); - -var request = new FakeDelete.DeleteRequestBuilder() - .headerParameters(headerParameters) - .queryParameters(queryParameters) - .build(); - -FakeDeleteResponses.EndpointResponse response; -try { - response = apiClient.delete(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeDeleteResponses.EndpointFakeDeleteCode200Response castResponse = (FakeDeleteResponses.EndpointFakeDeleteCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | - -## GroupParametersOperation -public interface GroupParametersOperation
- -an interface that allows one to call the endpoint using a method named groupParameters by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | groupParameters([DeleteRequest](#deleterequest) request) | - -## DeleteRequest -public static class DeleteRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeDeleteHeaderParameters.HeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) | headerParameters | -| [FakeDeleteQueryParameters.QueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## DeleteNullableRequest -public static class DeleteNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) | headerParameters | -| [FakeDeleteQueryParameters.@Nullable QueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Delete00RequestBuilder -public static class Delete00RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete00RequestBuilder(Delete00RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete00RequestBuilder](#delete00requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Delete00RequestBuilder](#delete00requestbuilder) | securityIndex([FakeDeleteSecurityInfo.SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Delete00RequestBuilder](#delete00requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## Delete01RequestBuilder -public static class Delete01RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete01RequestBuilder(Delete01RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Delete00RequestBuilder](#delete00requestbuilder) | queryParameters([FakeDeleteQueryParametersQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) queryParameters)
sets the property | - -## Delete10RequestBuilder -public static class Delete10RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete10RequestBuilder(Delete10RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Delete00RequestBuilder](#delete00requestbuilder) | headerParameters([FakeDeleteHeaderParametersHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the property | - -## DeleteRequestBuilder -public static class DeleteRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Delete01RequestBuilder](#delete01requestbuilder) | headerParameters([FakeDeleteHeaderParametersHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the property | -| [Delete10RequestBuilder](#delete10requestbuilder) | queryParameters([FakeDeleteQueryParametersQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) queryParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md deleted file mode 100644 index 9d1b33b9799..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/FakeGet.md +++ /dev/null @@ -1,156 +0,0 @@ -# FakeGet - -public class FakeGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [EnumParametersOperation](#enumparametersoperation)
The interface that has a enumParameters method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; -import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; -import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode200Response; -import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fake.FakeGet; -import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeGet.Get apiClient = new FakeGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakeGet.GetRequestBuilder().build(); - -FakeGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (FakeGetCode404Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeGetResponses.EndpointFakeGetCode200Response castResponse = (FakeGetResponses.EndpointFakeGetCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## EnumParametersOperation -public interface EnumParametersOperation
- -an interface that allows one to call the endpoint using a method named enumParameters by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | enumParameters([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeGetRequestBody.@Nullable SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) | requestBody
optional | -| [FakeGetHeaderParameters.@Nullable HeaderParametersMap](../../paths/fake/get/FakeGetHeaderParameters.md#headerparametersmap) | headerParameters
optional | -| [FakeGetQueryParameters.@Nullable QueryParametersMap](../../paths/fake/get/FakeGetQueryParameters.md#queryparametersmap) | queryParameters
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | requestBody([FakeGetRequestBody.SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | headerParameters([FakeGetHeaderParametersHeaderParametersMap](../../paths/fake/get/FakeGetHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeGetQueryParametersQueryParametersMap](../../paths/fake/get/FakeGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/FakePatch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md deleted file mode 100644 index 0a53c07fc38..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/FakePatch.md +++ /dev/null @@ -1,188 +0,0 @@ -# FakePatch - -public class FakePatch - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Patch](#patch)
The class that has a patch method to call the endpoint | -| interface | [ClientModelOperation](#clientmodeloperation)
The interface that has a clientModel method to call the endpoint | -| static class | [PatchRequest](#patchrequest)
The final request inputs class | -| static class | [PatchNullableRequest](#patchnullablerequest)
The initial request inputs class | -| static class | [Patch0RequestBuilder](#patch0requestbuilder)
A builder for the request input class | -| static class | [PatchRequestBuilder](#patchrequestbuilder)
A builder for the request input class | - -## Patch -public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
- -a class that allows one to call the endpoint using a method named patch - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; -import org.openapijsonschematools.client.components.schemas.Client; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fake.patch.responses.FakePatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fake.FakePatch; -import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakePatch.Patch apiClient = new FakePatch.Patch(apiConfiguration, schemaConfiguration); - - -Client1BoxedMap requestBodyPayload = - Client.Client1.validateAndBox( - new Client.ClientMapBuilder1() - .client("a") - - .build(), - schemaConfiguration -); -FakePatchRequestBody.SealedRequestBody requestBody = new FakePatchRequestBody.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new FakePatch.PatchRequestBuilder() - .requestBody(requestBody) - .build(); - -FakePatchResponses.EndpointResponse response; -try { - response = apiClient.patch(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakePatchResponses.EndpointFakePatchCode200Response castResponse = (FakePatchResponses.EndpointFakePatchCode200Response) response; -FakePatchCode200Response.ApplicationjsonResponseBody deserializedBody = (FakePatchCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | - -## ClientModelOperation -public interface ClientModelOperation
- -an interface that allows one to call the endpoint using a method named clientModel by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | clientModel([PatchRequest](#patchrequest) request) | - -## PatchRequest -public static class PatchRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakePatchRequestBody.SealedRequestBody](../../paths/fake/patch/FakePatchRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PatchNullableRequest -public static class PatchNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakePatchRequestBody.@Nullable SealedRequestBody](../../paths/fake/patch/FakePatchRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Patch0RequestBuilder -public static class Patch0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Patch0RequestBuilder(Patch0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | -| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Patch0RequestBuilder](#patch0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PatchRequestBuilder -public static class PatchRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PatchRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Patch0RequestBuilder](#patch0requestbuilder) | requestBody([FakePatchRequestBody.SealedRequestBody](../../paths/fake/patch/FakePatchRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/FakePost.md b/samples/client/petstore/java/docs/paths/fake/FakePost.md deleted file mode 100644 index b9e81636a69..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/FakePost.md +++ /dev/null @@ -1,164 +0,0 @@ -# FakePost - -public class FakePost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [EndpointParametersOperation](#endpointparametersoperation)
The interface that has a endpointParameters method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.FakePostRequestBody; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; -import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode200Response; -import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fake.FakePost; -import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -securitySchemes.add( - new HttpBasicTest("someUserId", "somePassword"); -); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .fakePostSecurityRequirementObject0SecurityIndex(FakePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakePost.Post apiClient = new FakePost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakePost.PostRequestBuilder().build(); - -FakePostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (FakePostCode404Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakePostResponses.EndpointFakePostCode200Response castResponse = (FakePostResponses.EndpointFakePostCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## EndpointParametersOperation -public interface EndpointParametersOperation
- -an interface that allows one to call the endpoint using a method named endpointParameters by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | endpointParameters([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakePostRequestBody.@Nullable SealedRequestBody](../../paths/fake/post/FakePostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [FakePostSecurityInfo.@Nullable SecurityIndex](../../paths/fake/post/FakePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakePostRequestBody.SealedRequestBody](../../paths/fake/post/FakePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | securityIndex([FakePostSecurityInfo.SecurityIndex](../../paths/fake/post/FakePostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md deleted file mode 100644 index 58e271594da..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md +++ /dev/null @@ -1,274 +0,0 @@ -# FakeDeleteHeaderParameters -public class FakeDeleteHeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed)
sealed interface for validated payloads | -| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1](#fakedeleteheaderparameters1)
schema class | -| static class | [FakeDeleteHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [FakeDeleteHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeDeleteHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakeDeleteHeaderParameters1Boxed -public sealed interface FakeDeleteHeaderParameters1Boxed
-permits
-[FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakeDeleteHeaderParameters1BoxedMap -public record FakeDeleteHeaderParameters1BoxedMap
-implements [FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeDeleteHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakeDeleteHeaderParameters1 -public static class FakeDeleteHeaderParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakeDeleteHeaderParameters.HeaderParametersMap validatedPayload = - FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( - new FakeDeleteHeaderParameters.HeaderParametersMapBuilder() - .required_boolean_group("true") - - .boolean_group("true") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("required_boolean_group", [Schema1.Schema11.class](../../../paths/fake/delete/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("boolean_group", [Schema4.Schema41.class](../../../paths/fake/delete/parameters/parameter4/Schema4.md#schema41))
)
| -| Set | required = Set.of(
    "required_boolean_group"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## HeaderParametersMap0Builder -public class HeaderParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [HeaderParametersMap0Builder](#headerparametersmap0builder) | boolean_group(String value) | -| [HeaderParametersMap0Builder](#headerparametersmap0builder) | boolean_group([Schema4.StringSchemaEnums4](../../../paths/fake/delete/parameters/parameter4/Schema4.md#stringschemaenums4) value) | - -## HeaderParametersMapBuilder -public class HeaderParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap0Builder](#headerparametersmap0builder) | required_boolean_group(String value) | -| [HeaderParametersMap0Builder](#headerparametersmap0builder) | required_boolean_group([Schema1.StringSchemaEnums1](../../../paths/fake/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | - -## HeaderParametersMap -public static class HeaderParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | required_boolean_group()
| -| String | boolean_group()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md deleted file mode 100644 index 393e446a18a..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md +++ /dev/null @@ -1,321 +0,0 @@ -# FakeDeleteQueryParameters -public class FakeDeleteQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed)
sealed interface for validated payloads | -| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1](#fakedeletequeryparameters1)
schema class | -| static class | [FakeDeleteQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [FakeDeleteQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [FakeDeleteQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeDeleteQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakeDeleteQueryParameters1Boxed -public sealed interface FakeDeleteQueryParameters1Boxed
-permits
-[FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakeDeleteQueryParameters1BoxedMap -public record FakeDeleteQueryParameters1BoxedMap
-implements [FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeDeleteQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakeDeleteQueryParameters1 -public static class FakeDeleteQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakeDeleteQueryParameters.QueryParametersMap validatedPayload = - FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( - new FakeDeleteQueryParameters.QueryParametersMapBuilder() - .required_int64_group(1L) - - .required_string_group("a") - - .int64_group(1L) - - .string_group("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("required_string_group", [Schema0.Schema01.class](../../../paths/fake/delete/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("int64_group", [Schema5.Schema51.class](../../../paths/fake/delete/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("string_group", [Schema3.Schema31.class](../../../paths/fake/delete/parameters/parameter3/Schema3.md#schema31)),
    new PropertyEntry("required_int64_group", [Schema2.Schema21.class](../../../paths/fake/delete/parameters/parameter2/Schema2.md#schema21))
)
| -| Set | required = Set.of(
    "required_int64_group",
    "required_string_group"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMap00Builder -public class QueryParametersMap00Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap00Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(int value) | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(float value) | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(long value) | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(double value) | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | string_group(String value) | - -## QueryParametersMap01Builder -public class QueryParametersMap01Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap01Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_string_group(String value) | - -## QueryParametersMap10Builder -public class QueryParametersMap10Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap10Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(int value) | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(float value) | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(long value) | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(double value) | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(int value) | -| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(float value) | -| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(long value) | -| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(double value) | -| [QueryParametersMap10Builder](#queryparametersmap10builder) | required_string_group(String value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| Number | required_int64_group()
| -| String | required_string_group()
| -| Number | int64_group()
[optional] | -| String | string_group()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md deleted file mode 100644 index f922799dc04..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeDeleteResponses - -public class FakeDeleteResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeDeleteCode200Response](#endpointfakedeletecode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeDeleteCode200Response](#endpointfakedeletecode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeDeleteCode200Response -public record EndpointFakeDeleteCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md deleted file mode 100644 index 7c008b766c7..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md +++ /dev/null @@ -1,40 +0,0 @@ -# FakeDeleteSecurityInfo -FakeDeleteSecurityInfo.java - -public class FakeDeleteSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakeDeleteSecurityInfo.FakeDeleteSecurityInfo1](#fakedeletesecurityinfo1)
SecurityRequirementObjectProvider -| enum | [FakeDeleteSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## FakeDeleteSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeDeleteSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeDeleteSecurityRequirementObject0](../../../paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md) | security0 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md deleted file mode 100644 index 8f952c2caf2..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md +++ /dev/null @@ -1,96 +0,0 @@ -# Schema1 -public class Schema1
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | -| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | -| static class | [Schema1.Schema11](#schema11)
schema class | -| enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | - -## Schema11Boxed -public sealed interface Schema11Boxed
-permits
-[Schema11BoxedString](#schema11boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema11BoxedString -public record Schema11BoxedString
-implements [Schema11Boxed](#schema11boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema11BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema11 -public static class Schema11
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter1.Schema1; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Schema1.Schema11.validate( - "true", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "true",
    "false"
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringSchemaEnums1](#stringschemaenums1) arg, SchemaConfiguration configuration) | -| [Schema11BoxedString](#schema11boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringSchemaEnums1 -public enum StringSchemaEnums1
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| TRUE | value = "true" | -| FALSE | value = "false" | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md deleted file mode 100644 index 440bb8ca283..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema2 -public class Schema2
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | -| record | [Schema2.Schema21BoxedNumber](#schema21boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema2.Schema21](#schema21)
schema class | - -## Schema21Boxed -public sealed interface Schema21Boxed
-permits
-[Schema21BoxedNumber](#schema21boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema21BoxedNumber -public record Schema21BoxedNumber
-implements [Schema21Boxed](#schema21boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema21BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema21 -public static class Schema21
-extends Int64JsonSchema.Int64JsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md deleted file mode 100644 index 41d54a1d930..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema3 -public class Schema3
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | -| record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | -| static class | [Schema3.Schema31](#schema31)
schema class | - -## Schema31Boxed -public sealed interface Schema31Boxed
-permits
-[Schema31BoxedString](#schema31boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema31BoxedString -public record Schema31BoxedString
-implements [Schema31Boxed](#schema31boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema31BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema31 -public static class Schema31
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md deleted file mode 100644 index deb5749b4c6..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md +++ /dev/null @@ -1,96 +0,0 @@ -# Schema4 -public class Schema4
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | -| record | [Schema4.Schema41BoxedString](#schema41boxedstring)
boxed class to store validated String payloads | -| static class | [Schema4.Schema41](#schema41)
schema class | -| enum | [Schema4.StringSchemaEnums4](#stringschemaenums4)
String enum | - -## Schema41Boxed -public sealed interface Schema41Boxed
-permits
-[Schema41BoxedString](#schema41boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema41BoxedString -public record Schema41BoxedString
-implements [Schema41Boxed](#schema41boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema41BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema41 -public static class Schema41
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter4.Schema4; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Schema4.Schema41.validate( - "true", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "true",
    "false"
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringSchemaEnums4](#stringschemaenums4) arg, SchemaConfiguration configuration) | -| [Schema41BoxedString](#schema41boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Schema41Boxed](#schema41boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringSchemaEnums4 -public enum StringSchemaEnums4
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| TRUE | value = "true" | -| FALSE | value = "false" | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md deleted file mode 100644 index 9611a34edb2..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema5 -public class Schema5
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
sealed interface for validated payloads | -| record | [Schema5.Schema51BoxedNumber](#schema51boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema5.Schema51](#schema51)
schema class | - -## Schema51Boxed -public sealed interface Schema51Boxed
-permits
-[Schema51BoxedNumber](#schema51boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema51BoxedNumber -public record Schema51BoxedNumber
-implements [Schema51Boxed](#schema51boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema51BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema51 -public static class Schema51
-extends Int64JsonSchema.Int64JsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/responses/FakeDeleteCode200Response.md b/samples/client/petstore/java/docs/paths/fake/delete/responses/FakeDeleteCode200Response.md deleted file mode 100644 index 64d63ac41a4..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/responses/FakeDeleteCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakeDeleteCode200Response - -public class FakeDeleteCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakeDeleteCode200Response.FakeDeleteCode200Response1](#fakedeletecode200response1)
class that deserializes responses | - -## FakeDeleteCode200Response1 -public static class FakeDeleteCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md deleted file mode 100644 index ce14db9f6b9..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# FakeDeleteSecurityRequirementObject0 -FakeDeleteSecurityRequirementObject0.java - -public class FakeDeleteSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeDeleteSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [BearerTest.class](../../../../components/securityschemes/BearerTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md deleted file mode 100644 index b5ccccfd2b8..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md +++ /dev/null @@ -1,260 +0,0 @@ -# FakeGetHeaderParameters -public class FakeGetHeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakeGetHeaderParameters.FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed)
sealed interface for validated payloads | -| record | [FakeGetHeaderParameters.FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeGetHeaderParameters.FakeGetHeaderParameters1](#fakegetheaderparameters1)
schema class | -| static class | [FakeGetHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [FakeGetHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [FakeGetHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeGetHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakeGetHeaderParameters1Boxed -public sealed interface FakeGetHeaderParameters1Boxed
-permits
-[FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakeGetHeaderParameters1BoxedMap -public record FakeGetHeaderParameters1BoxedMap
-implements [FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeGetHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakeGetHeaderParameters1 -public static class FakeGetHeaderParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakeGetHeaderParameters.HeaderParametersMap validatedPayload = - FakeGetHeaderParameters.FakeGetHeaderParameters1.validate( - new FakeGetHeaderParameters.HeaderParametersMapBuilder() - .enum_header_string("_abc") - - .enum_header_string_array( - Arrays.asList( - ">" - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("enum_header_string", [Schema1.Schema11.class](../../../paths/fake/get/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("enum_header_string_array", [Schema0.Schema01.class](../../../paths/fake/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## HeaderParametersMapBuilder -public class HeaderParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | enum_header_string(String value) | -| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | enum_header_string([Schema1.StringSchemaEnums1](../../../paths/fake/get/parameters/parameter1/Schema1.md#stringschemaenums1) value) | -| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | enum_header_string_array(List value) | - -## HeaderParametersMap -public static class HeaderParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | enum_header_string()
[optional] | -| [Schema0.SchemaList0](../../../paths/fake/get/parameters/parameter0/Schema0.md#schemalist0) | enum_header_string_array()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md deleted file mode 100644 index 0c5e4591745..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md +++ /dev/null @@ -1,278 +0,0 @@ -# FakeGetQueryParameters -public class FakeGetQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakeGetQueryParameters.FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed)
sealed interface for validated payloads | -| record | [FakeGetQueryParameters.FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeGetQueryParameters.FakeGetQueryParameters1](#fakegetqueryparameters1)
schema class | -| static class | [FakeGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [FakeGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [FakeGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakeGetQueryParameters1Boxed -public sealed interface FakeGetQueryParameters1Boxed
-permits
-[FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakeGetQueryParameters1BoxedMap -public record FakeGetQueryParameters1BoxedMap
-implements [FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakeGetQueryParameters1 -public static class FakeGetQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakeGetQueryParameters.QueryParametersMap validatedPayload = - FakeGetQueryParameters.FakeGetQueryParameters1.validate( - new FakeGetQueryParameters.QueryParametersMapBuilder() - .enum_query_double(3.14d) - - .enum_query_string("_abc") - - .enum_query_integer(1) - - .enum_query_string_array( - Arrays.asList( - ">" - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("enum_query_double", [Schema5.Schema51.class](../../../paths/fake/get/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("enum_query_string", [Schema3.Schema31.class](../../../paths/fake/get/parameters/parameter3/Schema3.md#schema31)),
    new PropertyEntry("enum_query_integer", [Schema4.Schema41.class](../../../paths/fake/get/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("enum_query_string_array", [Schema2.Schema21.class](../../../paths/fake/get/parameters/parameter2/Schema2.md#schema21))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(int value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(float value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(long value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(double value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double([Schema5.DoubleSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#doubleschemaenums5) value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double([Schema5.FloatSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#floatschemaenums5) value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_string(String value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_string([Schema3.StringSchemaEnums3](../../../paths/fake/get/parameters/parameter3/Schema3.md#stringschemaenums3) value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer(int value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer(float value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.IntegerSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#integerschemaenums4) value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.LongSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#longschemaenums4) value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.FloatSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#floatschemaenums4) value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.DoubleSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#doubleschemaenums4) value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_string_array(List value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| Number | enum_query_double()
[optional] | -| String | enum_query_string()
[optional] | -| Number | enum_query_integer()
[optional] | -| [Schema2.SchemaList2](../../../paths/fake/get/parameters/parameter2/Schema2.md#schemalist2) | enum_query_string_array()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetRequestBody.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetRequestBody.md deleted file mode 100644 index 3ac852200b2..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/FakeGetRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeGetRequestBody - -public class FakeGetRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeGetRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeGetRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeGetRequestBody.FakeGetRequestBody1](#fakegetrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeGetRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeGetRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationxwwwformurlencodedMediaType -public record ApplicationxwwwformurlencodedMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakeGetRequestBody1 -public static class FakeGetRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeGetRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new [ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationxwwwformurlencodedRequestBody -public record ApplicationxwwwformurlencodedRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/x-www-form-urlencoded" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/x-www-form-urlencoded" | -| ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md deleted file mode 100644 index 97fb3ded3d4..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeGetResponses - -public class FakeGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeGetCode200Response](#endpointfakegetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeGetCode200Response](#endpointfakegetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeGetCode200Response -public record EndpointFakeGetCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md deleted file mode 100644 index 648f585218b..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,205 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | -| static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | -| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Items0](#items0)
schema class | -| enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedList](#schema01boxedlist) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedList -public record Schema01BoxedList
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedList([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter0.Schema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -Schema0.SchemaList0 validatedPayload = - Schema0.Schema01.validate( - new Schema0.SchemaListBuilder0() - .add(">") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [Items0.class](#items0) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | -| [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | -| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaListBuilder0 -public class SchemaListBuilder0
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaListBuilder0()
Creates an empty list | -| SchemaListBuilder0(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SchemaListBuilder0 | add(String item) | -| SchemaListBuilder0 | add([StringItemsEnums0](#stringitemsenums0) item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## SchemaList0 -public class SchemaList0
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | - -## Items0Boxed -public sealed interface Items0Boxed
-permits
-[Items0BoxedString](#items0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Items0BoxedString -public record Items0BoxedString
-implements [Items0Boxed](#items0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Items0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Items0 -public static class Items0
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter0.Schema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Schema0.Items0.validate( - ">", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    ">",
    "$"
)
| -| @Nullable Object | defaultValue = "$" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringItemsEnums0](#stringitemsenums0) arg, SchemaConfiguration configuration) | -| [Items0BoxedString](#items0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Items0Boxed](#items0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringItemsEnums0 -public enum StringItemsEnums0
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| GREATER_THAN_SIGN | value = ">" | -| DOLLAR_SIGN | value = "$" | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md deleted file mode 100644 index f800da764fd..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md +++ /dev/null @@ -1,98 +0,0 @@ -# Schema1 -public class Schema1
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | -| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | -| static class | [Schema1.Schema11](#schema11)
schema class | -| enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | - -## Schema11Boxed -public sealed interface Schema11Boxed
-permits
-[Schema11BoxedString](#schema11boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema11BoxedString -public record Schema11BoxedString
-implements [Schema11Boxed](#schema11boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema11BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema11 -public static class Schema11
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter1.Schema1; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Schema1.Schema11.validate( - "_abc", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "_abc",
    "-efg",
    "(xyz)"
)
| -| @Nullable Object | defaultValue = "-efg" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringSchemaEnums1](#stringschemaenums1) arg, SchemaConfiguration configuration) | -| [Schema11BoxedString](#schema11boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringSchemaEnums1 -public enum StringSchemaEnums1
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| LOW_LINE_ABC | value = "_abc" | -| HYPHEN_MINUS_EFG | value = "-efg" | -| LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS | value = "(xyz)" | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md deleted file mode 100644 index 0d9d6f7469a..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md +++ /dev/null @@ -1,205 +0,0 @@ -# Schema2 -public class Schema2
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | -| record | [Schema2.Schema21BoxedList](#schema21boxedlist)
boxed class to store validated List payloads | -| static class | [Schema2.Schema21](#schema21)
schema class | -| static class | [Schema2.SchemaListBuilder2](#schemalistbuilder2)
builder for List payloads | -| static class | [Schema2.SchemaList2](#schemalist2)
output class for List payloads | -| sealed interface | [Schema2.Items2Boxed](#items2boxed)
sealed interface for validated payloads | -| record | [Schema2.Items2BoxedString](#items2boxedstring)
boxed class to store validated String payloads | -| static class | [Schema2.Items2](#items2)
schema class | -| enum | [Schema2.StringItemsEnums2](#stringitemsenums2)
String enum | - -## Schema21Boxed -public sealed interface Schema21Boxed
-permits
-[Schema21BoxedList](#schema21boxedlist) - -sealed interface that stores validated payloads using boxed classes - -## Schema21BoxedList -public record Schema21BoxedList
-implements [Schema21Boxed](#schema21boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema21BoxedList([SchemaList2](#schemalist2) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList2](#schemalist2) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema21 -public static class Schema21
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter2.Schema2; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -Schema2.SchemaList2 validatedPayload = - Schema2.Schema21.validate( - new Schema2.SchemaListBuilder2() - .add(">") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [Items2.class](#items2) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList2](#schemalist2) | validate([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | -| [Schema21BoxedList](#schema21boxedlist) | validateAndBox([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | -| [Schema21Boxed](#schema21boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaListBuilder2 -public class SchemaListBuilder2
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaListBuilder2()
Creates an empty list | -| SchemaListBuilder2(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SchemaListBuilder2 | add(String item) | -| SchemaListBuilder2 | add([StringItemsEnums2](#stringitemsenums2) item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## SchemaList2 -public class SchemaList2
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaList2](#schemalist2) | of([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | - -## Items2Boxed -public sealed interface Items2Boxed
-permits
-[Items2BoxedString](#items2boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Items2BoxedString -public record Items2BoxedString
-implements [Items2Boxed](#items2boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Items2BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Items2 -public static class Items2
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter2.Schema2; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Schema2.Items2.validate( - ">", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    ">",
    "$"
)
| -| @Nullable Object | defaultValue = "$" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringItemsEnums2](#stringitemsenums2) arg, SchemaConfiguration configuration) | -| [Items2BoxedString](#items2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Items2Boxed](#items2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringItemsEnums2 -public enum StringItemsEnums2
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| GREATER_THAN_SIGN | value = ">" | -| DOLLAR_SIGN | value = "$" | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md deleted file mode 100644 index 8ea43fa12ea..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md +++ /dev/null @@ -1,98 +0,0 @@ -# Schema3 -public class Schema3
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | -| record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | -| static class | [Schema3.Schema31](#schema31)
schema class | -| enum | [Schema3.StringSchemaEnums3](#stringschemaenums3)
String enum | - -## Schema31Boxed -public sealed interface Schema31Boxed
-permits
-[Schema31BoxedString](#schema31boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema31BoxedString -public record Schema31BoxedString
-implements [Schema31Boxed](#schema31boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema31BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema31 -public static class Schema31
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter3.Schema3; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Schema3.Schema31.validate( - "_abc", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "_abc",
    "-efg",
    "(xyz)"
)
| -| @Nullable Object | defaultValue = "-efg" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringSchemaEnums3](#stringschemaenums3) arg, SchemaConfiguration configuration) | -| [Schema31BoxedString](#schema31boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Schema31Boxed](#schema31boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringSchemaEnums3 -public enum StringSchemaEnums3
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| LOW_LINE_ABC | value = "_abc" | -| HYPHEN_MINUS_EFG | value = "-efg" | -| LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS | value = "(xyz)" | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md deleted file mode 100644 index 937aae56a94..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md +++ /dev/null @@ -1,135 +0,0 @@ -# Schema4 -public class Schema4
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | -| record | [Schema4.Schema41BoxedNumber](#schema41boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema4.Schema41](#schema41)
schema class | -| enum | [Schema4.IntegerSchemaEnums4](#integerschemaenums4)
Integer enum | -| enum | [Schema4.LongSchemaEnums4](#longschemaenums4)
Long enum | -| enum | [Schema4.FloatSchemaEnums4](#floatschemaenums4)
Float enum | -| enum | [Schema4.DoubleSchemaEnums4](#doubleschemaenums4)
Double enum | - -## Schema41Boxed -public sealed interface Schema41Boxed
-permits
-[Schema41BoxedNumber](#schema41boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema41BoxedNumber -public record Schema41BoxedNumber
-implements [Schema41Boxed](#schema41boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema41BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema41 -public static class Schema41
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter4.Schema4; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// int validation -int validatedPayload = Schema4.Schema41.validate( - 1, - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| -| String | type = "int32"; | -| Set | enumValues = SetMaker.makeSet(
    1,
    -2
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| int | validate(int arg, SchemaConfiguration configuration) | -| [Schema41BoxedNumber](#schema41boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [Schema41Boxed](#schema41boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## IntegerSchemaEnums4 -public enum IntegerSchemaEnums4
-extends `Enum` - -A class that stores Integer enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| POSITIVE_1 | value = 1 | -| NEGATIVE_2 | value = -2 | - -## LongSchemaEnums4 -public enum LongSchemaEnums4
-extends `Enum` - -A class that stores Long enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| POSITIVE_1 | value = 1L | -| NEGATIVE_2 | value = -2L | - -## FloatSchemaEnums4 -public enum FloatSchemaEnums4
-extends `Enum` - -A class that stores Float enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| POSITIVE_1 | value = 1.0f | -| NEGATIVE_2 | value = -2.0f | - -## DoubleSchemaEnums4 -public enum DoubleSchemaEnums4
-extends `Enum` - -A class that stores Double enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| POSITIVE_1 | value = 1.0d | -| NEGATIVE_2 | value = -2.0d | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md deleted file mode 100644 index 63198fed5b8..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md +++ /dev/null @@ -1,109 +0,0 @@ -# Schema5 -public class Schema5
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
sealed interface for validated payloads | -| record | [Schema5.Schema51BoxedNumber](#schema51boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema5.Schema51](#schema51)
schema class | -| enum | [Schema5.DoubleSchemaEnums5](#doubleschemaenums5)
Double enum | -| enum | [Schema5.FloatSchemaEnums5](#floatschemaenums5)
Float enum | - -## Schema51Boxed -public sealed interface Schema51Boxed
-permits
-[Schema51BoxedNumber](#schema51boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema51BoxedNumber -public record Schema51BoxedNumber
-implements [Schema51Boxed](#schema51boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema51BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema51 -public static class Schema51
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter5.Schema5; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// double validation -double validatedPayload = Schema5.Schema51.validate( - 3.14d, - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| -| String | type = "double"; | -| Set | enumValues = SetMaker.makeSet(
    1.1,
    -1.2
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| double | validate(double arg, SchemaConfiguration configuration) | -| [Schema51BoxedNumber](#schema51boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [Schema51Boxed](#schema51boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## DoubleSchemaEnums5 -public enum DoubleSchemaEnums5
-extends `Enum` - -A class that stores Double enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| POSITIVE_1_PT_1 | value = 1.1d | -| NEGATIVE_1_PT_2 | value = -1.2d | - -## FloatSchemaEnums5 -public enum FloatSchemaEnums5
-extends `Enum` - -A class that stores Float enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| POSITIVE_1_PT_1 | value = 1.1f | -| NEGATIVE_1_PT_2 | value = -1.2f | diff --git a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md deleted file mode 100644 index d84853fb4ea..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ /dev/null @@ -1,422 +0,0 @@ -# ApplicationxwwwformurlencodedSchema -public class ApplicationxwwwformurlencodedSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormString](#applicationxwwwformurlencodedenumformstring)
schema class | -| enum | [ApplicationxwwwformurlencodedSchema.StringApplicationxwwwformurlencodedEnumFormStringEnums](#stringapplicationxwwwformurlencodedenumformstringenums)
String enum | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist)
boxed class to store validated List payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArray](#applicationxwwwformurlencodedenumformstringarray)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder](#applicationxwwwformurlencodedenumformstringarraylistbuilder)
builder for List payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist)
output class for List payloads | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItems](#applicationxwwwformurlencodeditems)
schema class | -| enum | [ApplicationxwwwformurlencodedSchema.StringApplicationxwwwformurlencodedItemsEnums](#stringapplicationxwwwformurlencodeditemsenums)
String enum | - -## ApplicationxwwwformurlencodedSchema1Boxed -public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
-permits
-[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedSchema1BoxedMap -public record ApplicationxwwwformurlencodedSchema1BoxedMap
-implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedSchema1 -public static class ApplicationxwwwformurlencodedSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = - ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.validate( - new ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder() - .enum_form_string_array( - Arrays.asList( - ">" - ) - ) - .enum_form_string("_abc") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("enum_form_string_array", [ApplicationxwwwformurlencodedEnumFormStringArray.class](#applicationxwwwformurlencodedenumformstringarray))),
    new PropertyEntry("enum_form_string", [ApplicationxwwwformurlencodedEnumFormString.class](#applicationxwwwformurlencodedenumformstring)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedSchemaMapBuilder -public class ApplicationxwwwformurlencodedSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | enum_form_string_array(List value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | enum_form_string(String value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | enum_form_string([StringApplicationxwwwformurlencodedEnumFormStringEnums](#stringapplicationxwwwformurlencodedenumformstringenums) value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, Void value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, boolean value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, String value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, int value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, float value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, long value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, double value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, List value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, Map value) | - -## ApplicationxwwwformurlencodedSchemaMap -public static class ApplicationxwwwformurlencodedSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | of([Map](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | enum_form_string_array()
[optional] | -| String | enum_form_string()
[optional] must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## ApplicationxwwwformurlencodedEnumFormStringBoxed -public sealed interface ApplicationxwwwformurlencodedEnumFormStringBoxed
-permits
-[ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedEnumFormStringBoxedString -public record ApplicationxwwwformurlencodedEnumFormStringBoxedString
-implements [ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedEnumFormStringBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedEnumFormString -public static class ApplicationxwwwformurlencodedEnumFormString
-extends JsonSchema - -A schema class that validates payloads - -## Description -Form parameter enum test (string) - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormString.validate( - "_abc", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "_abc",
    "-efg",
    "(xyz)"
)
| -| @Nullable Object | defaultValue = "-efg" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringApplicationxwwwformurlencodedEnumFormStringEnums](#stringapplicationxwwwformurlencodedenumformstringenums) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringApplicationxwwwformurlencodedEnumFormStringEnums -public enum StringApplicationxwwwformurlencodedEnumFormStringEnums
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| LOW_LINE_ABC | value = "_abc" | -| HYPHEN_MINUS_EFG | value = "-efg" | -| LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS | value = "(xyz)" | - -## ApplicationxwwwformurlencodedEnumFormStringArrayBoxed -public sealed interface ApplicationxwwwformurlencodedEnumFormStringArrayBoxed
-permits
-[ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList -public record ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList
-implements [ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList([ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedEnumFormStringArray -public static class ApplicationxwwwformurlencodedEnumFormStringArray
-extends JsonSchema - -A schema class that validates payloads - -## Description -Form parameter enum test (string array) - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayList validatedPayload = - ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArray.validate( - new ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder() - .add(">") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [ApplicationxwwwformurlencodedItems.class](#applicationxwwwformurlencodeditems) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | validate([List](#applicationxwwwformurlencodedenumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist) | validateAndBox([List](#applicationxwwwformurlencodedenumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder -public class ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder()
Creates an empty list | -| ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder | add(String item) | -| ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder | add([StringApplicationxwwwformurlencodedItemsEnums](#stringapplicationxwwwformurlencodeditemsenums) item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## ApplicationxwwwformurlencodedEnumFormStringArrayList -public class ApplicationxwwwformurlencodedEnumFormStringArrayList
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | of([List](#applicationxwwwformurlencodedenumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedItemsBoxed -public sealed interface ApplicationxwwwformurlencodedItemsBoxed
-permits
-[ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedItemsBoxedString -public record ApplicationxwwwformurlencodedItemsBoxedString
-implements [ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedItemsBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedItems -public static class ApplicationxwwwformurlencodedItems
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItems.validate( - ">", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    ">",
    "$"
)
| -| @Nullable Object | defaultValue = "$" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringApplicationxwwwformurlencodedItemsEnums](#stringapplicationxwwwformurlencodeditemsenums) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringApplicationxwwwformurlencodedItemsEnums -public enum StringApplicationxwwwformurlencodedItemsEnums
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| GREATER_THAN_SIGN | value = ">" | -| DOLLAR_SIGN | value = "$" | diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode200Response.md b/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode200Response.md deleted file mode 100644 index e22d671a474..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakeGetCode200Response - -public class FakeGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakeGetCode200Response.FakeGetCode200Response1](#fakegetcode200response1)
class that deserializes responses | - -## FakeGetCode200Response1 -public static class FakeGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md b/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md deleted file mode 100644 index 2bfdf12aa75..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakeGetCode404Response - -public class FakeGetCode404Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeGetCode404Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeGetCode404Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakeGetCode404Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakeGetCode404Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakeGetCode404Response.FakeGetCode404Response1](#fakegetcode404response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.MapJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.MapJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakeGetCode404Response1 -public static class FakeGetCode404Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeGetCode404Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 3ce84c1630e..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends MapJsonSchema.MapJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.MapJsonSchema.MapJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/patch/FakePatchRequestBody.md b/samples/client/petstore/java/docs/paths/fake/patch/FakePatchRequestBody.md deleted file mode 100644 index 3f33af4fba5..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/patch/FakePatchRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakePatchRequestBody - -public class FakePatchRequestBody extends [Client](../../../components/requestbodies/Client.md) - -A class (extended from the $ref class) that contains necessary nested request body classes -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakePatchRequestBody.FakePatchRequestBody1](#fakepatchrequestbody1)
class that serializes request bodies | - -## FakePatchRequestBody1 -public static class FakePatchRequestBody1 extends [Client1](../../../components/requestbodies/Client.md#client1)
- -a class that serializes SealedRequestBody request bodies, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md b/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md deleted file mode 100644 index 82fcf7cfd43..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakePatchResponses - -public class FakePatchResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakePatchCode200Response](#endpointfakepatchcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakePatchCode200Response](#endpointfakepatchcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakePatchCode200Response -public record EndpointFakePatchCode200Response( - HttpResponse response, - [FakePatchCode200Response.SealedResponseBody](../../../paths/fake/patch/responses/FakePatchCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md deleted file mode 100644 index 15e710e9dbb..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakePatchCode200Response - -public class FakePatchCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakePatchCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakePatchCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakePatchCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakePatchCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakePatchCode200Response.FakePatchCode200Response1](#fakepatchcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | - -## FakePatchCode200Response1 -public static class FakePatchCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakePatchCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 534041524ca..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Client1](../../../../../../../components/schemas/Client.md#client) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../components/schemas/Client.md#client1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/post/FakePostRequestBody.md b/samples/client/petstore/java/docs/paths/fake/post/FakePostRequestBody.md deleted file mode 100644 index 4cb4e7994be..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/post/FakePostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakePostRequestBody - -public class FakePostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakePostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakePostRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakePostRequestBody.FakePostRequestBody1](#fakepostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakePostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakePostRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationxwwwformurlencodedMediaType -public record ApplicationxwwwformurlencodedMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakePostRequestBody1 -public static class FakePostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakePostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new [ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationxwwwformurlencodedRequestBody -public record ApplicationxwwwformurlencodedRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/x-www-form-urlencoded" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/x-www-form-urlencoded" | -| ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md b/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md deleted file mode 100644 index a5bb926cd94..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakePostResponses - -public class FakePostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakePostCode200Response](#endpointfakepostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakePostCode200Response](#endpointfakepostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakePostCode200Response -public record EndpointFakePostCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md b/samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md deleted file mode 100644 index 0166862a304..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md +++ /dev/null @@ -1,40 +0,0 @@ -# FakePostSecurityInfo -FakePostSecurityInfo.java - -public class FakePostSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakePostSecurityInfo.FakePostSecurityInfo1](#fakepostsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [FakePostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## FakePostSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakePostSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakePostSecurityRequirementObject0](../../../paths/fake/post/security/FakePostSecurityRequirementObject0.md) | security0 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md deleted file mode 100644 index 5075ea7d3c7..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ /dev/null @@ -1,1331 +0,0 @@ -# ApplicationxwwwformurlencodedSchema -public class ApplicationxwwwformurlencodedSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxedString](#applicationxwwwformurlencodedcallbackboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallback](#applicationxwwwformurlencodedcallback)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPassword](#applicationxwwwformurlencodedpassword)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTime](#applicationxwwwformurlencodeddatetime)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxedString](#applicationxwwwformurlencodeddateboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDate](#applicationxwwwformurlencodeddate)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedBinaryBoxed](#applicationxwwwformurlencodedbinaryboxed)
sealed interface for validated payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedBinary](#applicationxwwwformurlencodedbinary)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxedString](#applicationxwwwformurlencodedbyteboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByte](#applicationxwwwformurlencodedbyte)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiter](#applicationxwwwformurlencodedpatternwithoutdelimiter)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedString](#applicationxwwwformurlencodedstring)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDouble](#applicationxwwwformurlencodeddouble)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloat](#applicationxwwwformurlencodedfloat)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumber](#applicationxwwwformurlencodednumber)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64BoxedNumber](#applicationxwwwformurlencodedint64boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64](#applicationxwwwformurlencodedint64)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32](#applicationxwwwformurlencodedint32)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber)
boxed class to store validated Number payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInteger](#applicationxwwwformurlencodedinteger)
schema class | - -## ApplicationxwwwformurlencodedSchema1Boxed -public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
-permits
-[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedSchema1BoxedMap -public record ApplicationxwwwformurlencodedSchema1BoxedMap
-implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedSchema1 -public static class ApplicationxwwwformurlencodedSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = - ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.validate( - new ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder() - .setByte("a") - - .setDouble(3.14d) - - .setNumber(1) - - .pattern_without_delimiter("AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>") - - .setInteger(1) - - .int32(1) - - .int64(1L) - - .setFloat(3.14f) - - .setString("A") - - .binary("a") - - .date("2020-12-13") - - .dateTime("1970-01-01T00:00:00.00Z") - - .password("a") - - .callback("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("integer", [ApplicationxwwwformurlencodedInteger.class](#applicationxwwwformurlencodedinteger))),
    new PropertyEntry("int32", [ApplicationxwwwformurlencodedInt32.class](#applicationxwwwformurlencodedint32))),
    new PropertyEntry("int64", [ApplicationxwwwformurlencodedInt64.class](#applicationxwwwformurlencodedint64))),
    new PropertyEntry("number", [ApplicationxwwwformurlencodedNumber.class](#applicationxwwwformurlencodednumber))),
    new PropertyEntry("float", [ApplicationxwwwformurlencodedFloat.class](#applicationxwwwformurlencodedfloat))),
    new PropertyEntry("double", [ApplicationxwwwformurlencodedDouble.class](#applicationxwwwformurlencodeddouble))),
    new PropertyEntry("string", [ApplicationxwwwformurlencodedString.class](#applicationxwwwformurlencodedstring))),
    new PropertyEntry("pattern_without_delimiter", [ApplicationxwwwformurlencodedPatternWithoutDelimiter.class](#applicationxwwwformurlencodedpatternwithoutdelimiter))),
    new PropertyEntry("byte", [ApplicationxwwwformurlencodedByte.class](#applicationxwwwformurlencodedbyte))),
    new PropertyEntry("binary", [ApplicationxwwwformurlencodedBinary.class](#applicationxwwwformurlencodedbinary))),
    new PropertyEntry("date", [ApplicationxwwwformurlencodedDate.class](#applicationxwwwformurlencodeddate))),
    new PropertyEntry("dateTime", [ApplicationxwwwformurlencodedDateTime.class](#applicationxwwwformurlencodeddatetime))),
    new PropertyEntry("password", [ApplicationxwwwformurlencodedPassword.class](#applicationxwwwformurlencodedpassword))),
    new PropertyEntry("callback", [ApplicationxwwwformurlencodedCallback.class](#applicationxwwwformurlencodedcallback)))
)
| -| Set | required = Set.of(
    "byte",
    "double",
    "number",
    "pattern_without_delimiter"
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedSchemaMap0000Builder -public class ApplicationxwwwformurlencodedSchemaMap0000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap0000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setInteger(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setInteger(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setInteger(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setInteger(double value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int32(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int32(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int64(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int64(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int64(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int64(double value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setFloat(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setFloat(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setFloat(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setFloat(double value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setString(String value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | binary(String value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | date(String value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | dateTime(String value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | password(String value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | callback(String value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, Void value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, boolean value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, String value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, int value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, float value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, long value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, double value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, List value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, Map value) | - -## ApplicationxwwwformurlencodedSchemaMap0001Builder -public class ApplicationxwwwformurlencodedSchemaMap0001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap0001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | pattern_without_delimiter(String value) | - -## ApplicationxwwwformurlencodedSchemaMap0010Builder -public class ApplicationxwwwformurlencodedSchemaMap0010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap0010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setNumber(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setNumber(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setNumber(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setNumber(double value) | - -## ApplicationxwwwformurlencodedSchemaMap0011Builder -public class ApplicationxwwwformurlencodedSchemaMap0011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap0011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setNumber(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setNumber(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setNumber(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setNumber(double value) | -| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | pattern_without_delimiter(String value) | - -## ApplicationxwwwformurlencodedSchemaMap0100Builder -public class ApplicationxwwwformurlencodedSchemaMap0100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap0100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setDouble(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setDouble(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setDouble(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setDouble(double value) | - -## ApplicationxwwwformurlencodedSchemaMap0101Builder -public class ApplicationxwwwformurlencodedSchemaMap0101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap0101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setDouble(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setDouble(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setDouble(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setDouble(double value) | -| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | pattern_without_delimiter(String value) | - -## ApplicationxwwwformurlencodedSchemaMap0110Builder -public class ApplicationxwwwformurlencodedSchemaMap0110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap0110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | setDouble(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | setDouble(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | setDouble(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | setDouble(double value) | -| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | setNumber(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | setNumber(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | setNumber(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | setNumber(double value) | - -## ApplicationxwwwformurlencodedSchemaMap0111Builder -public class ApplicationxwwwformurlencodedSchemaMap0111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap0111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0011Builder](#applicationxwwwformurlencodedschemamap0011builder) | setDouble(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0011Builder](#applicationxwwwformurlencodedschemamap0011builder) | setDouble(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0011Builder](#applicationxwwwformurlencodedschemamap0011builder) | setDouble(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0011Builder](#applicationxwwwformurlencodedschemamap0011builder) | setDouble(double value) | -| [ApplicationxwwwformurlencodedSchemaMap0101Builder](#applicationxwwwformurlencodedschemamap0101builder) | setNumber(int value) | -| [ApplicationxwwwformurlencodedSchemaMap0101Builder](#applicationxwwwformurlencodedschemamap0101builder) | setNumber(float value) | -| [ApplicationxwwwformurlencodedSchemaMap0101Builder](#applicationxwwwformurlencodedschemamap0101builder) | setNumber(long value) | -| [ApplicationxwwwformurlencodedSchemaMap0101Builder](#applicationxwwwformurlencodedschemamap0101builder) | setNumber(double value) | -| [ApplicationxwwwformurlencodedSchemaMap0110Builder](#applicationxwwwformurlencodedschemamap0110builder) | pattern_without_delimiter(String value) | - -## ApplicationxwwwformurlencodedSchemaMap1000Builder -public class ApplicationxwwwformurlencodedSchemaMap1000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap1000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setByte(String value) | - -## ApplicationxwwwformurlencodedSchemaMap1001Builder -public class ApplicationxwwwformurlencodedSchemaMap1001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap1001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setByte(String value) | -| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | pattern_without_delimiter(String value) | - -## ApplicationxwwwformurlencodedSchemaMap1010Builder -public class ApplicationxwwwformurlencodedSchemaMap1010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap1010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | setByte(String value) | -| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setNumber(int value) | -| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setNumber(float value) | -| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setNumber(long value) | -| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setNumber(double value) | - -## ApplicationxwwwformurlencodedSchemaMap1011Builder -public class ApplicationxwwwformurlencodedSchemaMap1011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap1011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0011Builder](#applicationxwwwformurlencodedschemamap0011builder) | setByte(String value) | -| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setNumber(int value) | -| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setNumber(float value) | -| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setNumber(long value) | -| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setNumber(double value) | -| [ApplicationxwwwformurlencodedSchemaMap1010Builder](#applicationxwwwformurlencodedschemamap1010builder) | pattern_without_delimiter(String value) | - -## ApplicationxwwwformurlencodedSchemaMap1100Builder -public class ApplicationxwwwformurlencodedSchemaMap1100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap1100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | setByte(String value) | -| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setDouble(int value) | -| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setDouble(float value) | -| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setDouble(long value) | -| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setDouble(double value) | - -## ApplicationxwwwformurlencodedSchemaMap1101Builder -public class ApplicationxwwwformurlencodedSchemaMap1101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap1101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0101Builder](#applicationxwwwformurlencodedschemamap0101builder) | setByte(String value) | -| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setDouble(int value) | -| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setDouble(float value) | -| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setDouble(long value) | -| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setDouble(double value) | -| [ApplicationxwwwformurlencodedSchemaMap1100Builder](#applicationxwwwformurlencodedschemamap1100builder) | pattern_without_delimiter(String value) | - -## ApplicationxwwwformurlencodedSchemaMap1110Builder -public class ApplicationxwwwformurlencodedSchemaMap1110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap1110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0110Builder](#applicationxwwwformurlencodedschemamap0110builder) | setByte(String value) | -| [ApplicationxwwwformurlencodedSchemaMap1010Builder](#applicationxwwwformurlencodedschemamap1010builder) | setDouble(int value) | -| [ApplicationxwwwformurlencodedSchemaMap1010Builder](#applicationxwwwformurlencodedschemamap1010builder) | setDouble(float value) | -| [ApplicationxwwwformurlencodedSchemaMap1010Builder](#applicationxwwwformurlencodedschemamap1010builder) | setDouble(long value) | -| [ApplicationxwwwformurlencodedSchemaMap1010Builder](#applicationxwwwformurlencodedschemamap1010builder) | setDouble(double value) | -| [ApplicationxwwwformurlencodedSchemaMap1100Builder](#applicationxwwwformurlencodedschemamap1100builder) | setNumber(int value) | -| [ApplicationxwwwformurlencodedSchemaMap1100Builder](#applicationxwwwformurlencodedschemamap1100builder) | setNumber(float value) | -| [ApplicationxwwwformurlencodedSchemaMap1100Builder](#applicationxwwwformurlencodedschemamap1100builder) | setNumber(long value) | -| [ApplicationxwwwformurlencodedSchemaMap1100Builder](#applicationxwwwformurlencodedschemamap1100builder) | setNumber(double value) | - -## ApplicationxwwwformurlencodedSchemaMapBuilder -public class ApplicationxwwwformurlencodedSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap0111Builder](#applicationxwwwformurlencodedschemamap0111builder) | setByte(String value) | -| [ApplicationxwwwformurlencodedSchemaMap1011Builder](#applicationxwwwformurlencodedschemamap1011builder) | setDouble(int value) | -| [ApplicationxwwwformurlencodedSchemaMap1011Builder](#applicationxwwwformurlencodedschemamap1011builder) | setDouble(float value) | -| [ApplicationxwwwformurlencodedSchemaMap1011Builder](#applicationxwwwformurlencodedschemamap1011builder) | setDouble(long value) | -| [ApplicationxwwwformurlencodedSchemaMap1011Builder](#applicationxwwwformurlencodedschemamap1011builder) | setDouble(double value) | -| [ApplicationxwwwformurlencodedSchemaMap1101Builder](#applicationxwwwformurlencodedschemamap1101builder) | setNumber(int value) | -| [ApplicationxwwwformurlencodedSchemaMap1101Builder](#applicationxwwwformurlencodedschemamap1101builder) | setNumber(float value) | -| [ApplicationxwwwformurlencodedSchemaMap1101Builder](#applicationxwwwformurlencodedschemamap1101builder) | setNumber(long value) | -| [ApplicationxwwwformurlencodedSchemaMap1101Builder](#applicationxwwwformurlencodedschemamap1101builder) | setNumber(double value) | -| [ApplicationxwwwformurlencodedSchemaMap1110Builder](#applicationxwwwformurlencodedschemamap1110builder) | pattern_without_delimiter(String value) | - -## ApplicationxwwwformurlencodedSchemaMap -public static class ApplicationxwwwformurlencodedSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | of([Map](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| String | pattern_without_delimiter()
| -| Number | int32()
[optional] value must be a 32 bit integer | -| Number | int64()
[optional] value must be a 64 bit integer | -| String | binary()
[optional] | -| String | date()
[optional] value must conform to RFC-3339 full-date YYYY-MM-DD | -| String | dateTime()
[optional] if omitted the server will use the default value of 2010-02-01T10:20:10.111110+01:00 value must conform to RFC-3339 date-time | -| String | password()
[optional] | -| String | callback()
[optional] | -| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["byte"], instance["double"], instance["number"], instance["integer"], instance["float"], instance["string"], | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## ApplicationxwwwformurlencodedCallbackBoxed -public sealed interface ApplicationxwwwformurlencodedCallbackBoxed
-permits
-[ApplicationxwwwformurlencodedCallbackBoxedString](#applicationxwwwformurlencodedcallbackboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedCallbackBoxedString -public record ApplicationxwwwformurlencodedCallbackBoxedString
-implements [ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedCallbackBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedCallback -public static class ApplicationxwwwformurlencodedCallback
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -## Description -None - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | - -## ApplicationxwwwformurlencodedPasswordBoxed -public sealed interface ApplicationxwwwformurlencodedPasswordBoxed
-permits
-[ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedPasswordBoxedString -public record ApplicationxwwwformurlencodedPasswordBoxedString
-implements [ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedPasswordBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedPassword -public static class ApplicationxwwwformurlencodedPassword
-extends JsonSchema - -A schema class that validates payloads - -## Description -None - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPassword.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| String | type = "password"; | -| Integer | maxLength = 64 | -| Integer | minLength = 10 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedDateTimeBoxed -public sealed interface ApplicationxwwwformurlencodedDateTimeBoxed
-permits
-[ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedDateTimeBoxedString -public record ApplicationxwwwformurlencodedDateTimeBoxedString
-implements [ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedDateTimeBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedDateTime -public static class ApplicationxwwwformurlencodedDateTime
-extends JsonSchema - -A schema class that validates payloads - -## Description -None - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTime.validate( - "1970-01-01T00:00:00.00Z", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| String | type = "date-time"; | -| @Nullable Object | defaultValue = "2010-02-01T10:20:10.111110+01:00" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedDateBoxed -public sealed interface ApplicationxwwwformurlencodedDateBoxed
-permits
-[ApplicationxwwwformurlencodedDateBoxedString](#applicationxwwwformurlencodeddateboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedDateBoxedString -public record ApplicationxwwwformurlencodedDateBoxedString
-implements [ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedDateBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedDate -public static class ApplicationxwwwformurlencodedDate
-extends DateJsonSchema.DateJsonSchema1 - -A schema class that validates payloads - -## Description -None - -| Methods Inherited from class org.openapijsonschematools.client.schemas.DateJsonSchema.DateJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | - -## ApplicationxwwwformurlencodedBinaryBoxed -public sealed interface ApplicationxwwwformurlencodedBinaryBoxed
-permits
- -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedBinary -public static class ApplicationxwwwformurlencodedBinary
-extends JsonSchema - -A schema class that validates payloads - -## Description -None - -## ApplicationxwwwformurlencodedByteBoxed -public sealed interface ApplicationxwwwformurlencodedByteBoxed
-permits
-[ApplicationxwwwformurlencodedByteBoxedString](#applicationxwwwformurlencodedbyteboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedByteBoxedString -public record ApplicationxwwwformurlencodedByteBoxedString
-implements [ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedByteBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedByte -public static class ApplicationxwwwformurlencodedByte
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -## Description -None - -## ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed -public sealed interface ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed
-permits
-[ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString -public record ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString
-implements [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedPatternWithoutDelimiter -public static class ApplicationxwwwformurlencodedPatternWithoutDelimiter
-extends JsonSchema - -A schema class that validates payloads - -## Description -None - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiter.validate( - "AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Pattern | pattern = Pattern.compile(
    "^[A-Z].*"
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedStringBoxed -public sealed interface ApplicationxwwwformurlencodedStringBoxed
-permits
-[ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedStringBoxedString -public record ApplicationxwwwformurlencodedStringBoxedString
-implements [ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedStringBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedString -public static class ApplicationxwwwformurlencodedString
-extends JsonSchema - -A schema class that validates payloads - -## Description -None - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedString.validate( - "A", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Pattern | pattern = Pattern.compile(
    "[a-z]",
    Pattern.CASE_INSENSITIVE
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedDoubleBoxed -public sealed interface ApplicationxwwwformurlencodedDoubleBoxed
-permits
-[ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedDoubleBoxedNumber -public record ApplicationxwwwformurlencodedDoubleBoxedNumber
-implements [ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedDoubleBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedDouble -public static class ApplicationxwwwformurlencodedDouble
-extends JsonSchema - -A schema class that validates payloads - -## Description -None - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// double validation -double validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDouble.validate( - 3.14d, - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| -| String | type = "double"; | -| Number | maximum = 123.4 | -| Number | minimum = 67.8 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| double | validate(double arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedFloatBoxed -public sealed interface ApplicationxwwwformurlencodedFloatBoxed
-permits
-[ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedFloatBoxedNumber -public record ApplicationxwwwformurlencodedFloatBoxedNumber
-implements [ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedFloatBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedFloat -public static class ApplicationxwwwformurlencodedFloat
-extends JsonSchema - -A schema class that validates payloads - -## Description -None - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// float validation -float validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloat.validate( - 3.14f, - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| -| String | type = "float"; | -| Number | maximum = 987.6 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| float | validate(float arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedNumberBoxed -public sealed interface ApplicationxwwwformurlencodedNumberBoxed
-permits
-[ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedNumberBoxedNumber -public record ApplicationxwwwformurlencodedNumberBoxedNumber
-implements [ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedNumberBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedNumber -public static class ApplicationxwwwformurlencodedNumber
-extends JsonSchema - -A schema class that validates payloads - -## Description -None - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// int validation -int validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumber.validate( - 1, - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| -| Number | maximum = 543.2 | -| Number | minimum = 32.1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedInt64Boxed -public sealed interface ApplicationxwwwformurlencodedInt64Boxed
-permits
-[ApplicationxwwwformurlencodedInt64BoxedNumber](#applicationxwwwformurlencodedint64boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedInt64BoxedNumber -public record ApplicationxwwwformurlencodedInt64BoxedNumber
-implements [ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedInt64BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedInt64 -public static class ApplicationxwwwformurlencodedInt64
-extends Int64JsonSchema.Int64JsonSchema1 - -A schema class that validates payloads - -## Description -None - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | - -## ApplicationxwwwformurlencodedInt32Boxed -public sealed interface ApplicationxwwwformurlencodedInt32Boxed
-permits
-[ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedInt32BoxedNumber -public record ApplicationxwwwformurlencodedInt32BoxedNumber
-implements [ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedInt32BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedInt32 -public static class ApplicationxwwwformurlencodedInt32
-extends JsonSchema - -A schema class that validates payloads - -## Description -None - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// int validation -int validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32.validate( - 1, - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| -| String | type = "int32"; | -| Number | maximum = 200 | -| Number | minimum = 20 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| int | validate(int arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedIntegerBoxed -public sealed interface ApplicationxwwwformurlencodedIntegerBoxed
-permits
-[ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedIntegerBoxedNumber -public record ApplicationxwwwformurlencodedIntegerBoxedNumber
-implements [ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedIntegerBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedInteger -public static class ApplicationxwwwformurlencodedInteger
-extends JsonSchema - -A schema class that validates payloads - -## Description -None - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// int validation -int validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInteger.validate( - 1L, - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| -| String | type = "int"; | -| Number | maximum = 100 | -| Number | minimum = 10 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| long | validate(long arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode200Response.md b/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode200Response.md deleted file mode 100644 index 3e3ca088f80..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakePostCode200Response - -public class FakePostCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakePostCode200Response.FakePostCode200Response1](#fakepostcode200response1)
class that deserializes responses | - -## FakePostCode200Response1 -public static class FakePostCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode404Response.md b/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode404Response.md deleted file mode 100644 index 8bc289f2bd3..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# FakePostCode404Response - -public class FakePostCode404Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakePostCode404Response.FakePostCode404Response1](#fakepostcode404response1)
class that deserializes responses | - -## FakePostCode404Response1 -public static class FakePostCode404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakePostCode404Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md deleted file mode 100644 index db0df44256c..00000000000 --- a/samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# FakePostSecurityRequirementObject0 -FakePostSecurityRequirementObject0.java - -public class FakePostSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakePostSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpBasicTest.class](../../../../components/securityschemes/HttpBasicTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md deleted file mode 100644 index 4cd9dec71f9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakeadditionalpropertieswitharrayofenumsGet - -public class FakeadditionalpropertieswitharrayofenumsGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [AdditionalPropertiesWithArrayOfEnumsOperation](#additionalpropertieswitharrayofenumsoperation)
The interface that has a additionalPropertiesWithArrayOfEnums method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; -import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.FakeadditionalpropertieswitharrayofenumsGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.FakeadditionalpropertieswitharrayofenumsGet; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeadditionalpropertieswitharrayofenumsGet.Get apiClient = new FakeadditionalpropertieswitharrayofenumsGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakeadditionalpropertieswitharrayofenumsGet.GetRequestBuilder().build(); - -FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response castResponse = (FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response) response; -FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## AdditionalPropertiesWithArrayOfEnumsOperation -public interface AdditionalPropertiesWithArrayOfEnumsOperation
- -an interface that allows one to call the endpoint using a method named additionalPropertiesWithArrayOfEnums by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | additionalPropertiesWithArrayOfEnums([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeadditionalpropertieswitharrayofenumsGetRequestBody.@Nullable SealedRequestBody](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | requestBody([FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedRequestBody](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md deleted file mode 100644 index 6bbac40d22f..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeadditionalpropertieswitharrayofenumsGetRequestBody - -public class FakeadditionalpropertieswitharrayofenumsGetRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.FakeadditionalpropertieswitharrayofenumsGetRequestBody1](#fakeadditionalpropertieswitharrayofenumsgetrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakeadditionalpropertieswitharrayofenumsGetRequestBody1 -public static class FakeadditionalpropertieswitharrayofenumsGetRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeadditionalpropertieswitharrayofenumsGetRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md deleted file mode 100644 index 7c3bbeb85dc..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeadditionalpropertieswitharrayofenumsGetResponses - -public class FakeadditionalpropertieswitharrayofenumsGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response](#endpointfakeadditionalpropertieswitharrayofenumsgetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response](#endpointfakeadditionalpropertieswitharrayofenumsgetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response -public record EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response( - HttpResponse response, - [FakeadditionalpropertieswitharrayofenumsGetCode200Response.SealedResponseBody](../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index e583d49bf2d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md deleted file mode 100644 index 14134525aa5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakeadditionalpropertieswitharrayofenumsGetCode200Response - -public class FakeadditionalpropertieswitharrayofenumsGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeadditionalpropertieswitharrayofenumsGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakeadditionalpropertieswitharrayofenumsGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakeadditionalpropertieswitharrayofenumsGetCode200Response.FakeadditionalpropertieswitharrayofenumsGetCode200Response1](#fakeadditionalpropertieswitharrayofenumsgetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) | body()
returns the body passed in in the constructor | - -## FakeadditionalpropertieswitharrayofenumsGetCode200Response1 -public static class FakeadditionalpropertieswitharrayofenumsGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeadditionalpropertieswitharrayofenumsGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 3c5d3360d21..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md deleted file mode 100644 index de2d88b9ca1..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md +++ /dev/null @@ -1,188 +0,0 @@ -# FakebodywithfileschemaPut - -public class FakebodywithfileschemaPut - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Put](#put)
The class that has a put method to call the endpoint | -| interface | [BodyWithFileSchemaOperation](#bodywithfileschemaoperation)
The interface that has a bodyWithFileSchema method to call the endpoint | -| static class | [PutRequest](#putrequest)
The final request inputs class | -| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | -| static class | [Put0RequestBuilder](#put0requestbuilder)
A builder for the request input class | -| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | - -## Put -public static class Put extends ApiClient.ApiClient1 implements PutOperation
- -a class that allows one to call the endpoint using a method named put - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; -import org.openapijsonschematools.client.components.schemas.FileSchemaTestClass; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.FakebodywithfileschemaPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.FakebodywithfileschemaPut; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakebodywithfileschemaPut.Put apiClient = new FakebodywithfileschemaPut.Put(apiConfiguration, schemaConfiguration); - - -FileSchemaTestClass1BoxedMap requestBodyPayload = - FileSchemaTestClass.FileSchemaTestClass1.validateAndBox( - new FileSchemaTestClass.FileSchemaTestClassMapBuilder() - .files( - Arrays.asList( - ) - ) - .build(), - schemaConfiguration -); -FakebodywithfileschemaPut.SealedRequestBody requestBody = new FakebodywithfileschemaPut.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new FakebodywithfileschemaPut.PutRequestBuilder() - .requestBody(requestBody) - .build(); - -FakebodywithfileschemaPutResponses.EndpointResponse response; -try { - response = apiClient.put(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Response castResponse = (FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | - -## BodyWithFileSchemaOperation -public interface BodyWithFileSchemaOperation
- -an interface that allows one to call the endpoint using a method named bodyWithFileSchema by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | bodyWithFileSchema([PutRequest](#putrequest) request) | - -## PutRequest -public static class PutRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakebodywithfileschemaPutRequestBody.SealedRequestBody](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PutNullableRequest -public static class PutNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakebodywithfileschemaPutRequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Put0RequestBuilder -public static class Put0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put0RequestBuilder(Put0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PutRequestBuilder -public static class PutRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PutRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | requestBody([FakebodywithfileschemaPutRequestBody.SealedRequestBody](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md deleted file mode 100644 index 6852ab03fce..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakebodywithfileschemaPutRequestBody - -public class FakebodywithfileschemaPutRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakebodywithfileschemaPutRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakebodywithfileschemaPutRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakebodywithfileschemaPutRequestBody.FakebodywithfileschemaPutRequestBody1](#fakebodywithfileschemaputrequestbody1)
class that serializes request bodies | -| sealed interface | [FakebodywithfileschemaPutRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakebodywithfileschemaPutRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakebodywithfileschemaPutRequestBody1 -public static class FakebodywithfileschemaPutRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakebodywithfileschemaPutRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = true
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[FileSchemaTestClass1Boxed](../../../components/schemas/FileSchemaTestClass.md#fileschematestclass1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[FileSchemaTestClass1Boxed](../../../components/schemas/FileSchemaTestClass.md#fileschematestclass1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md deleted file mode 100644 index a1f75ddb0d8..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakebodywithfileschemaPutResponses - -public class FakebodywithfileschemaPutResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakebodywithfileschemaPutCode200Response](#endpointfakebodywithfileschemaputcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakebodywithfileschemaPutCode200Response](#endpointfakebodywithfileschemaputcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakebodywithfileschemaPutCode200Response -public record EndpointFakebodywithfileschemaPutCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 16f5864b396..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [FileSchemaTestClass1](../../../../../../components/schemas/FileSchemaTestClass.md#fileschematestclass) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [FileSchemaTestClass.FileSchemaTestClass1](../../../../../../components/schemas/FileSchemaTestClass.md#fileschematestclass1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.md deleted file mode 100644 index 7de1a2829fb..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakebodywithfileschemaPutCode200Response - -public class FakebodywithfileschemaPutCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakebodywithfileschemaPutCode200Response.FakebodywithfileschemaPutCode200Response1](#fakebodywithfileschemaputcode200response1)
class that deserializes responses | - -## FakebodywithfileschemaPutCode200Response1 -public static class FakebodywithfileschemaPutCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md deleted file mode 100644 index 435e4648ca2..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md +++ /dev/null @@ -1,249 +0,0 @@ -# FakebodywithqueryparamsPut - -public class FakebodywithqueryparamsPut - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Put](#put)
The class that has a put method to call the endpoint | -| interface | [BodyWithQueryParamsOperation](#bodywithqueryparamsoperation)
The interface that has a bodyWithQueryParams method to call the endpoint | -| static class | [PutRequest](#putrequest)
The final request inputs class | -| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | -| static class | [Put00RequestBuilder](#put00requestbuilder)
A builder for the request input class | -| static class | [Put01RequestBuilder](#put01requestbuilder)
A builder for the request input class | -| static class | [Put10RequestBuilder](#put10requestbuilder)
A builder for the request input class | -| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | - -## Put -public static class Put extends ApiClient.ApiClient1 implements PutOperation
- -a class that allows one to call the endpoint using a method named put - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; -import org.openapijsonschematools.client.components.schemas.User; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.FakebodywithqueryparamsPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.FakebodywithqueryparamsPut; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakebodywithqueryparamsPut.Put apiClient = new FakebodywithqueryparamsPut.Put(apiConfiguration, schemaConfiguration); - - -User1BoxedMap requestBodyPayload = - User.User1.validateAndBox( - new User.UserMapBuilder() - .id(1L) - - .username("a") - - .firstName("a") - - .lastName("a") - - .email("a") - - .password("a") - - .phone("a") - - .userStatus(1) - - .objectWithNoDeclaredPropsNullable(null) - - .build(), - schemaConfiguration -); -FakebodywithqueryparamsPut.SealedRequestBody requestBody = new FakebodywithqueryparamsPut.ApplicationjsonRequestBody(requestBodyPayload); - -// Map validation -FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters = - FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( - new FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder() - .query("a") - - .build(), - schemaConfiguration -); - -var request = new FakebodywithqueryparamsPut.PutRequestBuilder() - .requestBody(requestBody) - .queryParameters(queryParameters) - .build(); - -FakebodywithqueryparamsPutResponses.EndpointResponse response; -try { - response = apiClient.put(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Response castResponse = (FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | - -## BodyWithQueryParamsOperation -public interface BodyWithQueryParamsOperation
- -an interface that allows one to call the endpoint using a method named bodyWithQueryParams by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | bodyWithQueryParams([PutRequest](#putrequest) request) | - -## PutRequest -public static class PutRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | -| [FakebodywithqueryparamsPutQueryParameters.QueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PutNullableRequest -public static class PutNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | -| [FakebodywithqueryparamsPutQueryParameters.@Nullable QueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Put00RequestBuilder -public static class Put00RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put00RequestBuilder(Put00RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put00RequestBuilder](#put00requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Put00RequestBuilder](#put00requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## Put01RequestBuilder -public static class Put01RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put01RequestBuilder(Put01RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | - -## Put10RequestBuilder -public static class Put10RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put10RequestBuilder(Put10RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | requestBody([FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -## PutRequestBuilder -public static class PutRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PutRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Put01RequestBuilder](#put01requestbuilder) | requestBody([FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | -| [Put10RequestBuilder](#put10requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md deleted file mode 100644 index 74a71c5e92a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# FakebodywithqueryparamsPutQueryParameters -public class FakebodywithqueryparamsPutQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed)
sealed interface for validated payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1](#fakebodywithqueryparamsputqueryparameters1)
schema class | -| static class | [FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [FakebodywithqueryparamsPutQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakebodywithqueryparamsPutQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakebodywithqueryparamsPutQueryParameters1Boxed -public sealed interface FakebodywithqueryparamsPutQueryParameters1Boxed
-permits
-[FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakebodywithqueryparamsPutQueryParameters1BoxedMap -public record FakebodywithqueryparamsPutQueryParameters1BoxedMap
-implements [FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakebodywithqueryparamsPutQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakebodywithqueryparamsPutQueryParameters1 -public static class FakebodywithqueryparamsPutQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakebodywithqueryparamsPutQueryParameters.QueryParametersMap validatedPayload = - FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( - new FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder() - .query("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("query", [Schema0.Schema01.class](../../../paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "query"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMap0Builder -public class QueryParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | query(String value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | query()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md deleted file mode 100644 index 676dc92b904..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakebodywithqueryparamsPutRequestBody - -public class FakebodywithqueryparamsPutRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakebodywithqueryparamsPutRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakebodywithqueryparamsPutRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakebodywithqueryparamsPutRequestBody.FakebodywithqueryparamsPutRequestBody1](#fakebodywithqueryparamsputrequestbody1)
class that serializes request bodies | -| sealed interface | [FakebodywithqueryparamsPutRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakebodywithqueryparamsPutRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakebodywithqueryparamsPutRequestBody1 -public static class FakebodywithqueryparamsPutRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakebodywithqueryparamsPutRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = true
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md deleted file mode 100644 index beeea9503ca..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakebodywithqueryparamsPutResponses - -public class FakebodywithqueryparamsPutResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakebodywithqueryparamsPutCode200Response](#endpointfakebodywithqueryparamsputcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakebodywithqueryparamsPutCode200Response](#endpointfakebodywithqueryparamsputcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakebodywithqueryparamsPutCode200Response -public record EndpointFakebodywithqueryparamsPutCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 87ec51870cc..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [User1](../../../../../../components/schemas/User.md#user) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [User.User1](../../../../../../components/schemas/User.md#user1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.md deleted file mode 100644 index e6bbeac0a7b..00000000000 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakebodywithqueryparamsPutCode200Response - -public class FakebodywithqueryparamsPutCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakebodywithqueryparamsPutCode200Response.FakebodywithqueryparamsPutCode200Response1](#fakebodywithqueryparamsputcode200response1)
class that deserializes responses | - -## FakebodywithqueryparamsPutCode200Response1 -public static class FakebodywithqueryparamsPutCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md deleted file mode 100644 index 2ef0519b1d5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md +++ /dev/null @@ -1,189 +0,0 @@ -# FakecasesensitiveparamsPut - -public class FakecasesensitiveparamsPut - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Put](#put)
The class that has a put method to call the endpoint | -| interface | [CaseSensitiveParamsOperation](#casesensitiveparamsoperation)
The interface that has a caseSensitiveParams method to call the endpoint | -| static class | [PutRequest](#putrequest)
The final request inputs class | -| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | -| static class | [Put0RequestBuilder](#put0requestbuilder)
A builder for the request input class | -| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | - -## Put -public static class Put extends ApiClient.ApiClient1 implements PutOperation
- -a class that allows one to call the endpoint using a method named put - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.FakecasesensitiveparamsPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.FakecasesensitiveparamsPut; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakecasesensitiveparamsPut.Put apiClient = new FakecasesensitiveparamsPut.Put(apiConfiguration, schemaConfiguration); - - -// Map validation -FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters = - FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( - new FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder() - .SomeVar("a") - - .someVar("a") - - .some_var("a") - - .build(), - schemaConfiguration -); - -var request = new FakecasesensitiveparamsPut.PutRequestBuilder() - .queryParameters(queryParameters) - .build(); - -FakecasesensitiveparamsPutResponses.EndpointResponse response; -try { - response = apiClient.put(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Response castResponse = (FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | - -## CaseSensitiveParamsOperation -public interface CaseSensitiveParamsOperation
- -an interface that allows one to call the endpoint using a method named caseSensitiveParams by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | caseSensitiveParams([PutRequest](#putrequest) request) | - -## PutRequest -public static class PutRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakecasesensitiveparamsPutQueryParameters.QueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PutNullableRequest -public static class PutNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakecasesensitiveparamsPutQueryParameters.@Nullable QueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Put0RequestBuilder -public static class Put0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put0RequestBuilder(Put0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PutRequestBuilder -public static class PutRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PutRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FakecasesensitiveparamsPutQueryParametersQueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md deleted file mode 100644 index 0822ddca240..00000000000 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md +++ /dev/null @@ -1,375 +0,0 @@ -# FakecasesensitiveparamsPutQueryParameters -public class FakecasesensitiveparamsPutQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed)
sealed interface for validated payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1](#fakecasesensitiveparamsputqueryparameters1)
schema class | -| static class | [FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [FakecasesensitiveparamsPutQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakecasesensitiveparamsPutQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakecasesensitiveparamsPutQueryParameters1Boxed -public sealed interface FakecasesensitiveparamsPutQueryParameters1Boxed
-permits
-[FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakecasesensitiveparamsPutQueryParameters1BoxedMap -public record FakecasesensitiveparamsPutQueryParameters1BoxedMap
-implements [FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakecasesensitiveparamsPutQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakecasesensitiveparamsPutQueryParameters1 -public static class FakecasesensitiveparamsPutQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakecasesensitiveparamsPutQueryParameters.QueryParametersMap validatedPayload = - FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( - new FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder() - .SomeVar("a") - - .someVar("a") - - .some_var("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("someVar", [Schema0.Schema01.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("some_var", [Schema2.Schema21.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("SomeVar", [Schema1.Schema11.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md#schema11))
)
| -| Set | required = Set.of(
    "SomeVar",
    "someVar",
    "some_var"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMap000Builder -public class QueryParametersMap000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## QueryParametersMap001Builder -public class QueryParametersMap001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000Builder](#queryparametersmap000builder) | some_var(String value) | - -## QueryParametersMap010Builder -public class QueryParametersMap010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000Builder](#queryparametersmap000builder) | someVar(String value) | - -## QueryParametersMap011Builder -public class QueryParametersMap011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001Builder](#queryparametersmap001builder) | someVar(String value) | -| [QueryParametersMap010Builder](#queryparametersmap010builder) | some_var(String value) | - -## QueryParametersMap100Builder -public class QueryParametersMap100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000Builder](#queryparametersmap000builder) | SomeVar(String value) | - -## QueryParametersMap101Builder -public class QueryParametersMap101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001Builder](#queryparametersmap001builder) | SomeVar(String value) | -| [QueryParametersMap100Builder](#queryparametersmap100builder) | some_var(String value) | - -## QueryParametersMap110Builder -public class QueryParametersMap110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap010Builder](#queryparametersmap010builder) | SomeVar(String value) | -| [QueryParametersMap100Builder](#queryparametersmap100builder) | someVar(String value) | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap011Builder](#queryparametersmap011builder) | SomeVar(String value) | -| [QueryParametersMap101Builder](#queryparametersmap101builder) | someVar(String value) | -| [QueryParametersMap110Builder](#queryparametersmap110builder) | some_var(String value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | SomeVar()
| -| String | someVar()
| -| String | some_var()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md deleted file mode 100644 index aec4af1f778..00000000000 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakecasesensitiveparamsPutResponses - -public class FakecasesensitiveparamsPutResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakecasesensitiveparamsPutCode200Response](#endpointfakecasesensitiveparamsputcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakecasesensitiveparamsPutCode200Response](#endpointfakecasesensitiveparamsputcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakecasesensitiveparamsPutCode200Response -public record EndpointFakecasesensitiveparamsPutCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md deleted file mode 100644 index 63ec3a884fc..00000000000 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema1 -public class Schema1
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | -| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | -| static class | [Schema1.Schema11](#schema11)
schema class | - -## Schema11Boxed -public sealed interface Schema11Boxed
-permits
-[Schema11BoxedString](#schema11boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema11BoxedString -public record Schema11BoxedString
-implements [Schema11Boxed](#schema11boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema11BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema11 -public static class Schema11
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md deleted file mode 100644 index 4a7d57953eb..00000000000 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema2 -public class Schema2
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | -| record | [Schema2.Schema21BoxedString](#schema21boxedstring)
boxed class to store validated String payloads | -| static class | [Schema2.Schema21](#schema21)
schema class | - -## Schema21Boxed -public sealed interface Schema21Boxed
-permits
-[Schema21BoxedString](#schema21boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema21BoxedString -public record Schema21BoxedString
-implements [Schema21Boxed](#schema21boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema21BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema21 -public static class Schema21
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.md deleted file mode 100644 index 2ec9adb95bd..00000000000 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakecasesensitiveparamsPutCode200Response - -public class FakecasesensitiveparamsPutCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakecasesensitiveparamsPutCode200Response.FakecasesensitiveparamsPutCode200Response1](#fakecasesensitiveparamsputcode200response1)
class that deserializes responses | - -## FakecasesensitiveparamsPutCode200Response1 -public static class FakecasesensitiveparamsPutCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md deleted file mode 100644 index dc7bd07c779..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md +++ /dev/null @@ -1,203 +0,0 @@ -# FakeclassnametestPatch - -public class FakeclassnametestPatch - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Patch](#patch)
The class that has a patch method to call the endpoint | -| interface | [ClassnameOperation](#classnameoperation)
The interface that has a classname method to call the endpoint | -| static class | [PatchRequest](#patchrequest)
The final request inputs class | -| static class | [PatchNullableRequest](#patchnullablerequest)
The initial request inputs class | -| static class | [Patch0RequestBuilder](#patch0requestbuilder)
A builder for the request input class | -| static class | [PatchRequestBuilder](#patchrequestbuilder)
A builder for the request input class | - -## Patch -public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
- -a class that allows one to call the endpoint using a method named patch - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; -import org.openapijsonschematools.client.components.schemas.Client; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.FakeclassnametestPatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeclassnametest.FakeclassnametestPatch; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -securitySchemes.add( - new ApiKeyQuery("someApiKey"); -); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .fakeclassnametestPatchSecurityRequirementObject0SecurityIndex(FakeclassnametestPatchSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeclassnametestPatch.Patch apiClient = new FakeclassnametestPatch.Patch(apiConfiguration, schemaConfiguration); - - -Client1BoxedMap requestBodyPayload = - Client.Client1.validateAndBox( - new Client.ClientMapBuilder1() - .client("a") - - .build(), - schemaConfiguration -); -FakeclassnametestPatchRequestBody.SealedRequestBody requestBody = new FakeclassnametestPatchRequestBody.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new FakeclassnametestPatch.PatchRequestBuilder() - .requestBody(requestBody) - .build(); - -FakeclassnametestPatchResponses.EndpointResponse response; -try { - response = apiClient.patch(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeclassnametestPatchResponses.EndpointFakeclassnametestPatchCode200Response castResponse = (FakeclassnametestPatchResponses.EndpointFakeclassnametestPatchCode200Response) response; -FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | - -## ClassnameOperation -public interface ClassnameOperation
- -an interface that allows one to call the endpoint using a method named classname by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | classname([PatchRequest](#patchrequest) request) | - -## PatchRequest -public static class PatchRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeclassnametestPatchRequestBody.SealedRequestBody](../../paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex](../../paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PatchNullableRequest -public static class PatchNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeclassnametestPatchRequestBody.@Nullable SealedRequestBody](../../paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| [FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex](../../paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Patch0RequestBuilder -public static class Patch0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Patch0RequestBuilder(Patch0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | -| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Patch0RequestBuilder](#patch0requestbuilder) | securityIndex([FakeclassnametestPatchSecurityInfo.SecurityIndex](../../paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Patch0RequestBuilder](#patch0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PatchRequestBuilder -public static class PatchRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PatchRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Patch0RequestBuilder](#patch0requestbuilder) | requestBody([FakeclassnametestPatchRequestBody.SealedRequestBody](../../paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md deleted file mode 100644 index ee0772ceed2..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakeclassnametestPatchRequestBody - -public class FakeclassnametestPatchRequestBody extends [Client](../../../components/requestbodies/Client.md) - -A class (extended from the $ref class) that contains necessary nested request body classes -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakeclassnametestPatchRequestBody.FakeclassnametestPatchRequestBody1](#fakeclassnametestpatchrequestbody1)
class that serializes request bodies | - -## FakeclassnametestPatchRequestBody1 -public static class FakeclassnametestPatchRequestBody1 extends [Client1](../../../components/requestbodies/Client.md#client1)
- -a class that serializes SealedRequestBody request bodies, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md deleted file mode 100644 index a8397a692e6..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeclassnametestPatchResponses - -public class FakeclassnametestPatchResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeclassnametestPatchCode200Response](#endpointfakeclassnametestpatchcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeclassnametestPatchCode200Response](#endpointfakeclassnametestpatchcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeclassnametestPatchCode200Response -public record EndpointFakeclassnametestPatchCode200Response( - HttpResponse response, - [FakeclassnametestPatchCode200Response.SealedResponseBody](../../../paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md deleted file mode 100644 index 3e252e7cdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md +++ /dev/null @@ -1,40 +0,0 @@ -# FakeclassnametestPatchSecurityInfo -FakeclassnametestPatchSecurityInfo.java - -public class FakeclassnametestPatchSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakeclassnametestPatchSecurityInfo.FakeclassnametestPatchSecurityInfo1](#fakeclassnametestpatchsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [FakeclassnametestPatchSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## FakeclassnametestPatchSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeclassnametestPatchSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeclassnametestPatchSecurityRequirementObject0](../../../paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md) | security0 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md deleted file mode 100644 index 7ece775356e..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakeclassnametestPatchCode200Response - -public class FakeclassnametestPatchCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeclassnametestPatchCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeclassnametestPatchCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakeclassnametestPatchCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakeclassnametestPatchCode200Response.FakeclassnametestPatchCode200Response1](#fakeclassnametestpatchcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | - -## FakeclassnametestPatchCode200Response1 -public static class FakeclassnametestPatchCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeclassnametestPatchCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 534041524ca..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Client1](../../../../../../../components/schemas/Client.md#client) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../components/schemas/Client.md#client1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md deleted file mode 100644 index 0651521d4b3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# FakeclassnametestPatchSecurityRequirementObject0 -FakeclassnametestPatchSecurityRequirementObject0.java - -public class FakeclassnametestPatchSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeclassnametestPatchSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKeyQuery.class](../../../../components/securityschemes/ApiKeyQuery.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md deleted file mode 100644 index 92d55c7a719..00000000000 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md +++ /dev/null @@ -1,189 +0,0 @@ -# FakedeletecoffeeidDelete - -public class FakedeletecoffeeidDelete - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | -| interface | [DeleteCoffeeOperation](#deletecoffeeoperation)
The interface that has a deleteCoffee method to call the endpoint | -| static class | [DeleteRequest](#deleterequest)
The final request inputs class | -| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | -| static class | [Delete0RequestBuilder](#delete0requestbuilder)
A builder for the request input class | -| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | - -## Delete -public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
- -a class that allows one to call the endpoint using a method named delete - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCode200Response; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.FakedeletecoffeeidDelete; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakedeletecoffeeidDelete.Delete apiClient = new FakedeletecoffeeidDelete.Delete(apiConfiguration, schemaConfiguration); - - -// Map validation -FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters = - FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( - new FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder() - .id("a") - - .build(), - schemaConfiguration -); - -var request = new FakedeletecoffeeidDelete.DeleteRequestBuilder() - .pathParameters(pathParameters) - .build(); - -FakedeletecoffeeidDeleteResponses.EndpointResponse response; -try { - response = apiClient.delete(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -if (response instanceof FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCode200Response castResponse) { -} else { - FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCodedefaultResponse castResponse = (FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCodedefaultResponse) response; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | - -## DeleteCoffeeOperation -public interface DeleteCoffeeOperation
- -an interface that allows one to call the endpoint using a method named deleteCoffee by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | deleteCoffee([DeleteRequest](#deleterequest) request) | - -## DeleteRequest -public static class DeleteRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakedeletecoffeeidDeletePathParameters.PathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## DeleteNullableRequest -public static class DeleteNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakedeletecoffeeidDeletePathParameters.@Nullable PathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Delete0RequestBuilder -public static class Delete0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete0RequestBuilder(Delete0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## DeleteRequestBuilder -public static class DeleteRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([FakedeletecoffeeidDeletePathParametersPathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md deleted file mode 100644 index fbe77c0964a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# FakedeletecoffeeidDeletePathParameters -public class FakedeletecoffeeidDeletePathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed)
sealed interface for validated payloads | -| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1](#fakedeletecoffeeiddeletepathparameters1)
schema class | -| static class | [FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [FakedeletecoffeeidDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakedeletecoffeeidDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakedeletecoffeeidDeletePathParameters1Boxed -public sealed interface FakedeletecoffeeidDeletePathParameters1Boxed
-permits
-[FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakedeletecoffeeidDeletePathParameters1BoxedMap -public record FakedeletecoffeeidDeletePathParameters1BoxedMap
-implements [FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakedeletecoffeeidDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakedeletecoffeeidDeletePathParameters1 -public static class FakedeletecoffeeidDeletePathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakedeletecoffeeidDeletePathParameters.PathParametersMap validatedPayload = - FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( - new FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder() - .id("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("id", [Schema0.Schema01.class](../../../paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "id"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | id(String value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | id()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md deleted file mode 100644 index a3a6107c9ae..00000000000 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md +++ /dev/null @@ -1,40 +0,0 @@ -# FakedeletecoffeeidDeleteResponses - -public class FakedeletecoffeeidDeleteResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakedeletecoffeeidDeleteCode200Response](#endpointfakedeletecoffeeiddeletecode200response)
the response for 200 | -| record | [EndpointFakedeletecoffeeidDeleteCodedefaultResponse](#endpointfakedeletecoffeeiddeletecodedefaultresponse)
the response for default | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakedeletecoffeeidDeleteCode200Response](#endpointfakedeletecoffeeiddeletecode200response), -[EndpointFakedeletecoffeeidDeleteCodedefaultResponse](#endpointfakedeletecoffeeiddeletecodedefaultresponse) - -a sealed interface that stores endpoint responses - -## EndpointFakedeletecoffeeidDeleteCode200Response -public record EndpointFakedeletecoffeeidDeleteCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - -## EndpointFakedeletecoffeeidDeleteCodedefaultResponse -public record EndpointFakedeletecoffeeidDeleteCodedefaultResponse( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.md deleted file mode 100644 index 6c115aadfcf..00000000000 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakedeletecoffeeidDeleteCode200Response - -public class FakedeletecoffeeidDeleteCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakedeletecoffeeidDeleteCode200Response.FakedeletecoffeeidDeleteCode200Response1](#fakedeletecoffeeiddeletecode200response1)
class that deserializes responses | - -## FakedeletecoffeeidDeleteCode200Response1 -public static class FakedeletecoffeeidDeleteCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.md deleted file mode 100644 index 452d7bdc061..00000000000 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FakedeletecoffeeidDeleteCodedefaultResponse - -public class FakedeletecoffeeidDeleteCodedefaultResponse - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakedeletecoffeeidDeleteCodedefaultResponse.FakedeletecoffeeidDeleteCodedefaultResponse1](#fakedeletecoffeeiddeletecodedefaultresponse1)
class that deserializes responses | - -## FakedeletecoffeeidDeleteCodedefaultResponse1 -public static class FakedeletecoffeeidDeleteCodedefaultResponse1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakedeletecoffeeidDeleteCodedefaultResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md deleted file mode 100644 index 82abd04d0c3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md +++ /dev/null @@ -1,144 +0,0 @@ -# FakehealthGet - -public class FakehealthGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [FakeHealthGetOperation](#fakehealthgetoperation)
The interface that has a fakeHealthGet method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakehealth.get.responses.FakehealthGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakehealth.FakehealthGet; -import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakehealthGet.Get apiClient = new FakehealthGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakehealthGet.GetRequestBuilder().build(); - -FakehealthGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakehealthGetResponses.EndpointFakehealthGetCode200Response castResponse = (FakehealthGetResponses.EndpointFakehealthGetCode200Response) response; -FakehealthGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakehealthGetCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## FakeHealthGetOperation -public interface FakeHealthGetOperation
- -an interface that allows one to call the endpoint using a method named fakeHealthGet by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | fakeHealthGet([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md b/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md deleted file mode 100644 index 1e9033aabea..00000000000 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakehealthGetResponses - -public class FakehealthGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakehealthGetCode200Response](#endpointfakehealthgetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakehealthGetCode200Response](#endpointfakehealthgetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakehealthGetCode200Response -public record EndpointFakehealthGetCode200Response( - HttpResponse response, - [FakehealthGetCode200Response.SealedResponseBody](../../../paths/fakehealth/get/responses/FakehealthGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md deleted file mode 100644 index 5e1134ff388..00000000000 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakehealthGetCode200Response - -public class FakehealthGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakehealthGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakehealthGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakehealthGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakehealthGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakehealthGetCode200Response.FakehealthGetCode200Response1](#fakehealthgetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[HealthCheckResult1Boxed](../../../../components/schemas/HealthCheckResult.md#healthcheckresult1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[HealthCheckResult1Boxed](../../../../components/schemas/HealthCheckResult.md#healthcheckresult1boxed) | body()
returns the body passed in in the constructor | - -## FakehealthGetCode200Response1 -public static class FakehealthGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakehealthGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 4b80f3aefdb..00000000000 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [HealthCheckResult1](../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [HealthCheckResult.HealthCheckResult1](../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md deleted file mode 100644 index cf67ed9bc91..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md +++ /dev/null @@ -1,186 +0,0 @@ -# FakeinlineadditionalpropertiesPost - -public class FakeinlineadditionalpropertiesPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [InlineAdditionalPropertiesOperation](#inlineadditionalpropertiesoperation)
The interface that has a inlineAdditionalProperties method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.FakeinlineadditionalpropertiesPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.FakeinlineadditionalpropertiesPost; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeinlineadditionalpropertiesPost.Post apiClient = new FakeinlineadditionalpropertiesPost.Post(apiConfiguration, schemaConfiguration); - - -ApplicationjsonSchema1BoxedMap requestBodyPayload = - ApplicationjsonSchema.ApplicationjsonSchema1.validateAndBox( - new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() - .additionalProperty("someAdditionalProperty", "a") - - .build(), - schemaConfiguration -); -FakeinlineadditionalpropertiesPost.SealedRequestBody requestBody = new FakeinlineadditionalpropertiesPost.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new FakeinlineadditionalpropertiesPost.PostRequestBuilder() - .requestBody(requestBody) - .build(); - -FakeinlineadditionalpropertiesPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalpropertiesPostCode200Response castResponse = (FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalpropertiesPostCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## InlineAdditionalPropertiesOperation -public interface InlineAdditionalPropertiesOperation
- -an interface that allows one to call the endpoint using a method named inlineAdditionalProperties by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | inlineAdditionalProperties([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeinlineadditionalpropertiesPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md deleted file mode 100644 index 8f6e8ff9a1d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeinlineadditionalpropertiesPostRequestBody - -public class FakeinlineadditionalpropertiesPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeinlineadditionalpropertiesPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeinlineadditionalpropertiesPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeinlineadditionalpropertiesPostRequestBody.FakeinlineadditionalpropertiesPostRequestBody1](#fakeinlineadditionalpropertiespostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeinlineadditionalpropertiesPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakeinlineadditionalpropertiesPostRequestBody1 -public static class FakeinlineadditionalpropertiesPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeinlineadditionalpropertiesPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = true
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md deleted file mode 100644 index 604668bd4c2..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeinlineadditionalpropertiesPostResponses - -public class FakeinlineadditionalpropertiesPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeinlineadditionalpropertiesPostCode200Response](#endpointfakeinlineadditionalpropertiespostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeinlineadditionalpropertiesPostCode200Response](#endpointfakeinlineadditionalpropertiespostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeinlineadditionalpropertiesPostCode200Response -public record EndpointFakeinlineadditionalpropertiesPostCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 99e2db386dc..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,156 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxedString](#applicationjsonadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonAdditionalProperties](#applicationjsonadditionalproperties)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = - ApplicationjsonSchema.ApplicationjsonSchema1.validate( - new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() - .additionalProperty("someAdditionalProperty", "a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Class | additionalProperties = [ApplicationjsonAdditionalProperties.class](#applicationjsonadditionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationjsonSchemaMapBuilder -public class ApplicationjsonSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, String value) | - -## ApplicationjsonSchemaMap -public static class ApplicationjsonSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [ApplicationjsonSchemaMap](#applicationjsonschemamap) | of([Map](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| String | getAdditionalProperty(String name)
provides type safety for additional properties | - -## ApplicationjsonAdditionalPropertiesBoxed -public sealed interface ApplicationjsonAdditionalPropertiesBoxed
-permits
-[ApplicationjsonAdditionalPropertiesBoxedString](#applicationjsonadditionalpropertiesboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonAdditionalPropertiesBoxedString -public record ApplicationjsonAdditionalPropertiesBoxedString
-implements [ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonAdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonAdditionalProperties -public static class ApplicationjsonAdditionalProperties
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.md deleted file mode 100644 index 2c23bf79f3b..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakeinlineadditionalpropertiesPostCode200Response - -public class FakeinlineadditionalpropertiesPostCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakeinlineadditionalpropertiesPostCode200Response.FakeinlineadditionalpropertiesPostCode200Response1](#fakeinlineadditionalpropertiespostcode200response1)
class that deserializes responses | - -## FakeinlineadditionalpropertiesPostCode200Response1 -public static class FakeinlineadditionalpropertiesPostCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md deleted file mode 100644 index a28cd91ef74..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md +++ /dev/null @@ -1,155 +0,0 @@ -# FakeinlinecompositionPost - -public class FakeinlinecompositionPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [InlineCompositionOperation](#inlinecompositionoperation)
The interface that has a inlineComposition method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.FakeinlinecompositionPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.FakeinlinecompositionPost; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeinlinecompositionPost.Post apiClient = new FakeinlinecompositionPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakeinlinecompositionPost.PostRequestBuilder().build(); - -FakeinlinecompositionPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeinlinecompositionPostResponses.EndpointFakeinlinecompositionPostCode200Response castResponse = (FakeinlinecompositionPostResponses.EndpointFakeinlinecompositionPostCode200Response) response; -if (castResponse.body instanceof FakeinlinecompositionPostCode200Response.ApplicationjsonResponseBody deserializedBody) { - // handle deserialized body here -} else { - FakeinlinecompositionPostCode200Response.MultipartformdataResponseBody deserializedBody = (FakeinlinecompositionPostCode200Response.MultipartformdataResponseBody) castResponse.body; - // handle deserialized body here -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## InlineCompositionOperation -public interface InlineCompositionOperation
- -an interface that allows one to call the endpoint using a method named inlineComposition by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | inlineComposition([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [FakeinlinecompositionPostQueryParameters.@Nullable QueryParametersMap](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#queryparametersmap) | queryParameters
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeinlinecompositionPostRequestBody.SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | queryParameters([FakeinlinecompositionPostQueryParametersQueryParametersMap](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md deleted file mode 100644 index 958be9e102e..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md +++ /dev/null @@ -1,264 +0,0 @@ -# FakeinlinecompositionPostQueryParameters -public class FakeinlinecompositionPostQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed)
sealed interface for validated payloads | -| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1](#fakeinlinecompositionpostqueryparameters1)
schema class | -| static class | [FakeinlinecompositionPostQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [FakeinlinecompositionPostQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeinlinecompositionPostQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakeinlinecompositionPostQueryParameters1Boxed -public sealed interface FakeinlinecompositionPostQueryParameters1Boxed
-permits
-[FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakeinlinecompositionPostQueryParameters1BoxedMap -public record FakeinlinecompositionPostQueryParameters1BoxedMap
-implements [FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeinlinecompositionPostQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakeinlinecompositionPostQueryParameters1 -public static class FakeinlinecompositionPostQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakeinlinecompositionPostQueryParameters.QueryParametersMap validatedPayload = - FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1.validate( - new FakeinlinecompositionPostQueryParameters.QueryParametersMapBuilder() - .compositionInProperty( - MapUtils.makeMap( - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("compositionAtRoot", [Schema0.Schema01.class](../../../paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("compositionInProperty", [Schema1.Schema11.class](../../../paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md#schema11))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(Void value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(boolean value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(String value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(int value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(float value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(long value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(double value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(List value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(Map value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionInProperty(Map value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| @Nullable Object | compositionAtRoot()
[optional] | -| [Schema1.SchemaMap1](../../../paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md#schemamap1) | compositionInProperty()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md deleted file mode 100644 index 33420abb4b9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md +++ /dev/null @@ -1,128 +0,0 @@ -# FakeinlinecompositionPostRequestBody - -public class FakeinlinecompositionPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeinlinecompositionPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeinlinecompositionPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| record | [FakeinlinecompositionPostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeinlinecompositionPostRequestBody.FakeinlinecompositionPostRequestBody1](#fakeinlinecompositionpostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeinlinecompositionPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeinlinecompositionPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | -| record | [FakeinlinecompositionPostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype), -[MultipartformdataMediaType](#multipartformdatamediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## MultipartformdataMediaType -public record MultipartformdataMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakeinlinecompositionPostRequestBody1 -public static class FakeinlinecompositionPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeinlinecompositionPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)()),
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody), -[MultipartformdataRequestBody](#multipartformdatarequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | -## MultipartformdataRequestBody -public record MultipartformdataRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="multipart/form-data" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "multipart/form-data" | -| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md deleted file mode 100644 index 86492517c79..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeinlinecompositionPostResponses - -public class FakeinlinecompositionPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeinlinecompositionPostCode200Response](#endpointfakeinlinecompositionpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeinlinecompositionPostCode200Response](#endpointfakeinlinecompositionpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeinlinecompositionPostCode200Response -public record EndpointFakeinlinecompositionPostCode200Response( - HttpResponse response, - [FakeinlinecompositionPostCode200Response.SealedResponseBody](../../../paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md deleted file mode 100644 index d9573cef8e6..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,236 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedVoid](#schema01boxedvoid)
boxed class to store validated null payloads | -| record | [Schema0.Schema01BoxedBoolean](#schema01boxedboolean)
boxed class to store validated boolean payloads | -| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | -| record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | -| sealed interface | [Schema0.Schema00Boxed](#schema00boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema00BoxedString](#schema00boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema00](#schema00)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedVoid](#schema01boxedvoid), -[Schema01BoxedBoolean](#schema01boxedboolean), -[Schema01BoxedNumber](#schema01boxednumber), -[Schema01BoxedString](#schema01boxedstring), -[Schema01BoxedList](#schema01boxedlist), -[Schema01BoxedMap](#schema01boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedVoid -public record Schema01BoxedVoid
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01BoxedBoolean -public record Schema01BoxedBoolean
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01BoxedNumber -public record Schema01BoxedNumber
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01BoxedList -public record Schema01BoxedList
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01BoxedMap -public record Schema01BoxedMap
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends JsonSchema - -A schema class that validates payloads - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| List> | allOf = List.of(
    [Schema00.class](#schema00)
;)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| Void | validate(Void arg, SchemaConfiguration configuration) | -| int | validate(int arg, SchemaConfiguration configuration) | -| long | validate(long arg, SchemaConfiguration configuration) | -| float | validate(float arg, SchemaConfiguration configuration) | -| double | validate(double arg, SchemaConfiguration configuration) | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| boolean | validate(boolean arg, SchemaConfiguration configuration) | -| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | -| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | -| [Schema01BoxedString](#schema01boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Schema01BoxedVoid](#schema01boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | -| [Schema01BoxedNumber](#schema01boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [Schema01BoxedBoolean](#schema01boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | -| [Schema01BoxedMap](#schema01boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | -| [Schema01BoxedList](#schema01boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | -| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Schema00Boxed -public sealed interface Schema00Boxed
-permits
-[Schema00BoxedString](#schema00boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema00BoxedString -public record Schema00BoxedString
-implements [Schema00Boxed](#schema00boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema00BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema00 -public static class Schema00
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter0.Schema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Schema0.Schema00.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Integer | minLength = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [Schema00BoxedString](#schema00boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Schema00Boxed](#schema00boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md deleted file mode 100644 index 5698ce8d5e9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md +++ /dev/null @@ -1,359 +0,0 @@ -# Schema1 -public class Schema1
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | -| record | [Schema1.Schema11BoxedMap](#schema11boxedmap)
boxed class to store validated Map payloads | -| static class | [Schema1.Schema11](#schema11)
schema class | -| static class | [Schema1.SchemaMapBuilder1](#schemamapbuilder1)
builder for Map payloads | -| static class | [Schema1.SchemaMap1](#schemamap1)
output class for Map payloads | -| sealed interface | [Schema1.SomeProp1Boxed](#someprop1boxed)
sealed interface for validated payloads | -| record | [Schema1.SomeProp1BoxedVoid](#someprop1boxedvoid)
boxed class to store validated null payloads | -| record | [Schema1.SomeProp1BoxedBoolean](#someprop1boxedboolean)
boxed class to store validated boolean payloads | -| record | [Schema1.SomeProp1BoxedNumber](#someprop1boxednumber)
boxed class to store validated Number payloads | -| record | [Schema1.SomeProp1BoxedString](#someprop1boxedstring)
boxed class to store validated String payloads | -| record | [Schema1.SomeProp1BoxedList](#someprop1boxedlist)
boxed class to store validated List payloads | -| record | [Schema1.SomeProp1BoxedMap](#someprop1boxedmap)
boxed class to store validated Map payloads | -| static class | [Schema1.SomeProp1](#someprop1)
schema class | -| sealed interface | [Schema1.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema1.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema1.Schema01](#schema01)
schema class | - -## Schema11Boxed -public sealed interface Schema11Boxed
-permits
-[Schema11BoxedMap](#schema11boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Schema11BoxedMap -public record Schema11BoxedMap
-implements [Schema11Boxed](#schema11boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema11BoxedMap([SchemaMap1](#schemamap1) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaMap1](#schemamap1) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema11 -public static class Schema11
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter1.Schema1; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -Schema1.SchemaMap1 validatedPayload = - Schema1.Schema11.validate( - new Schema1.SchemaMapBuilder1() - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("someProp", [SomeProp1.class](#someprop1)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaMap1](#schemamap1) | validate([Map<?, ?>](#schemamapbuilder1) arg, SchemaConfiguration configuration) | -| [Schema11BoxedMap](#schema11boxedmap) | validateAndBox([Map<?, ?>](#schemamapbuilder1) arg, SchemaConfiguration configuration) | -| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaMapBuilder1 -public class SchemaMapBuilder1
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaMapBuilder1()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(Void value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(boolean value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(String value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(int value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(float value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(long value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(double value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(List value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(Map value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, Void value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, boolean value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, String value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, int value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, float value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, long value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, double value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, List value) | -| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, Map value) | - -## SchemaMap1 -public static class SchemaMap1
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaMap1](#schemamap1) | of([Map](#schemamapbuilder1) arg, SchemaConfiguration configuration) | -| @Nullable Object | someProp()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## SomeProp1Boxed -public sealed interface SomeProp1Boxed
-permits
-[SomeProp1BoxedVoid](#someprop1boxedvoid), -[SomeProp1BoxedBoolean](#someprop1boxedboolean), -[SomeProp1BoxedNumber](#someprop1boxednumber), -[SomeProp1BoxedString](#someprop1boxedstring), -[SomeProp1BoxedList](#someprop1boxedlist), -[SomeProp1BoxedMap](#someprop1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## SomeProp1BoxedVoid -public record SomeProp1BoxedVoid
-implements [SomeProp1Boxed](#someprop1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SomeProp1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## SomeProp1BoxedBoolean -public record SomeProp1BoxedBoolean
-implements [SomeProp1Boxed](#someprop1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SomeProp1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## SomeProp1BoxedNumber -public record SomeProp1BoxedNumber
-implements [SomeProp1Boxed](#someprop1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SomeProp1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## SomeProp1BoxedString -public record SomeProp1BoxedString
-implements [SomeProp1Boxed](#someprop1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SomeProp1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## SomeProp1BoxedList -public record SomeProp1BoxedList
-implements [SomeProp1Boxed](#someprop1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SomeProp1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## SomeProp1BoxedMap -public record SomeProp1BoxedMap
-implements [SomeProp1Boxed](#someprop1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SomeProp1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## SomeProp1 -public static class SomeProp1
-extends JsonSchema - -A schema class that validates payloads - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| List> | allOf = List.of(
    [Schema01.class](#schema01)
;)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| Void | validate(Void arg, SchemaConfiguration configuration) | -| int | validate(int arg, SchemaConfiguration configuration) | -| long | validate(long arg, SchemaConfiguration configuration) | -| float | validate(float arg, SchemaConfiguration configuration) | -| double | validate(double arg, SchemaConfiguration configuration) | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| boolean | validate(boolean arg, SchemaConfiguration configuration) | -| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | -| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | -| [SomeProp1BoxedString](#someprop1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [SomeProp1BoxedVoid](#someprop1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | -| [SomeProp1BoxedNumber](#someprop1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [SomeProp1BoxedBoolean](#someprop1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | -| [SomeProp1BoxedMap](#someprop1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | -| [SomeProp1BoxedList](#someprop1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | -| [SomeProp1Boxed](#someprop1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter1.Schema1; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Schema1.Schema01.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Integer | minLength = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [Schema01BoxedString](#schema01boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index e4f1139126b..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,236 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| List> | allOf = List.of(
    [Applicationjson0.class](#applicationjson0)
;)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| Void | validate(Void arg, SchemaConfiguration configuration) | -| int | validate(int arg, SchemaConfiguration configuration) | -| long | validate(long arg, SchemaConfiguration configuration) | -| float | validate(float arg, SchemaConfiguration configuration) | -| double | validate(double arg, SchemaConfiguration configuration) | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| boolean | validate(boolean arg, SchemaConfiguration configuration) | -| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | -| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Applicationjson0Boxed -public sealed interface Applicationjson0Boxed
-permits
-[Applicationjson0BoxedString](#applicationjson0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Applicationjson0BoxedString -public record Applicationjson0BoxedString
-implements [Applicationjson0Boxed](#applicationjson0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjson0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjson0 -public static class Applicationjson0
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Integer | minLength = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [Applicationjson0BoxedString](#applicationjson0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Applicationjson0Boxed](#applicationjson0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md deleted file mode 100644 index a788b114ec5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ /dev/null @@ -1,359 +0,0 @@ -# MultipartformdataSchema -public class MultipartformdataSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | -| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | -| static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | - -## MultipartformdataSchema1Boxed -public sealed interface MultipartformdataSchema1Boxed
-permits
-[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSchema1BoxedMap -public record MultipartformdataSchema1BoxedMap
-implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSchema1 -public static class MultipartformdataSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = - MultipartformdataSchema.MultipartformdataSchema1.validate( - new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("someProp", [MultipartformdataSomeProp.class](#multipartformdatasomeprop)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## MultipartformdataSchemaMapBuilder -public class MultipartformdataSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Map value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | - -## MultipartformdataSchemaMap -public static class MultipartformdataSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| @Nullable Object | someProp()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## MultipartformdataSomePropBoxed -public sealed interface MultipartformdataSomePropBoxed
-permits
-[MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid), -[MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean), -[MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber), -[MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring), -[MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist), -[MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSomePropBoxedVoid -public record MultipartformdataSomePropBoxedVoid
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedBoolean -public record MultipartformdataSomePropBoxedBoolean
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedNumber -public record MultipartformdataSomePropBoxedNumber
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedString -public record MultipartformdataSomePropBoxedString
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedList -public record MultipartformdataSomePropBoxedList
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedMap -public record MultipartformdataSomePropBoxedMap
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomeProp -public static class MultipartformdataSomeProp
-extends JsonSchema - -A schema class that validates payloads - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| List> | allOf = List.of(
    [Multipartformdata0.class](#multipartformdata0)
;)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| Void | validate(Void arg, SchemaConfiguration configuration) | -| int | validate(int arg, SchemaConfiguration configuration) | -| long | validate(long arg, SchemaConfiguration configuration) | -| float | validate(float arg, SchemaConfiguration configuration) | -| double | validate(double arg, SchemaConfiguration configuration) | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| boolean | validate(boolean arg, SchemaConfiguration configuration) | -| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | -| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Multipartformdata0Boxed -public sealed interface Multipartformdata0Boxed
-permits
-[Multipartformdata0BoxedString](#multipartformdata0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Multipartformdata0BoxedString -public record Multipartformdata0BoxedString
-implements [Multipartformdata0Boxed](#multipartformdata0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Multipartformdata0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Multipartformdata0 -public static class Multipartformdata0
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Integer | minLength = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [Multipartformdata0BoxedString](#multipartformdata0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Multipartformdata0Boxed](#multipartformdata0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md deleted file mode 100644 index 786ddf56087..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md +++ /dev/null @@ -1,123 +0,0 @@ -# FakeinlinecompositionPostCode200Response - -public class FakeinlinecompositionPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeinlinecompositionPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeinlinecompositionPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| record | [FakeinlinecompositionPostCode200Response.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakeinlinecompositionPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakeinlinecompositionPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| record | [FakeinlinecompositionPostCode200Response.MultipartformdataResponseBody](#multipartformdataresponsebody)
implements sealed interface to store response body | -| static class | [FakeinlinecompositionPostCode200Response.FakeinlinecompositionPostCode200Response1](#fakeinlinecompositionpostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype), -[MultipartformdataMediaType](#multipartformdatamediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## MultipartformdataMediaType -public record MultipartformdataMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchema.MultipartformdataSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody), -[MultipartformdataResponseBody](#multipartformdataresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | -## MultipartformdataResponseBody -public record MultipartformdataResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="multipart/form-data" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataResponseBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | - -## FakeinlinecompositionPostCode200Response1 -public static class FakeinlinecompositionPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeinlinecompositionPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)()),
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 6da7a53d31e..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,236 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| List> | allOf = List.of(
    [Applicationjson0.class](#applicationjson0)
;)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| Void | validate(Void arg, SchemaConfiguration configuration) | -| int | validate(int arg, SchemaConfiguration configuration) | -| long | validate(long arg, SchemaConfiguration configuration) | -| float | validate(float arg, SchemaConfiguration configuration) | -| double | validate(double arg, SchemaConfiguration configuration) | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| boolean | validate(boolean arg, SchemaConfiguration configuration) | -| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | -| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Applicationjson0Boxed -public sealed interface Applicationjson0Boxed
-permits
-[Applicationjson0BoxedString](#applicationjson0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Applicationjson0BoxedString -public record Applicationjson0BoxedString
-implements [Applicationjson0Boxed](#applicationjson0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjson0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjson0 -public static class Applicationjson0
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Integer | minLength = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [Applicationjson0BoxedString](#applicationjson0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Applicationjson0Boxed](#applicationjson0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md deleted file mode 100644 index 9d9d89cfb44..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md +++ /dev/null @@ -1,359 +0,0 @@ -# MultipartformdataSchema -public class MultipartformdataSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | -| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | -| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | -| static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | - -## MultipartformdataSchema1Boxed -public sealed interface MultipartformdataSchema1Boxed
-permits
-[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSchema1BoxedMap -public record MultipartformdataSchema1BoxedMap
-implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSchema1 -public static class MultipartformdataSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.multipartformdata.MultipartformdataSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = - MultipartformdataSchema.MultipartformdataSchema1.validate( - new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("someProp", [MultipartformdataSomeProp.class](#multipartformdatasomeprop)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## MultipartformdataSchemaMapBuilder -public class MultipartformdataSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Map value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | - -## MultipartformdataSchemaMap -public static class MultipartformdataSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| @Nullable Object | someProp()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## MultipartformdataSomePropBoxed -public sealed interface MultipartformdataSomePropBoxed
-permits
-[MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid), -[MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean), -[MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber), -[MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring), -[MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist), -[MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSomePropBoxedVoid -public record MultipartformdataSomePropBoxedVoid
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedBoolean -public record MultipartformdataSomePropBoxedBoolean
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedNumber -public record MultipartformdataSomePropBoxedNumber
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedString -public record MultipartformdataSomePropBoxedString
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedList -public record MultipartformdataSomePropBoxedList
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomePropBoxedMap -public record MultipartformdataSomePropBoxedMap
-implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSomeProp -public static class MultipartformdataSomeProp
-extends JsonSchema - -A schema class that validates payloads - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| List> | allOf = List.of(
    [Multipartformdata0.class](#multipartformdata0)
;)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| Void | validate(Void arg, SchemaConfiguration configuration) | -| int | validate(int arg, SchemaConfiguration configuration) | -| long | validate(long arg, SchemaConfiguration configuration) | -| float | validate(float arg, SchemaConfiguration configuration) | -| double | validate(double arg, SchemaConfiguration configuration) | -| Number | validate(Number arg, SchemaConfiguration configuration) | -| boolean | validate(boolean arg, SchemaConfiguration configuration) | -| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | -| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | -| [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## Multipartformdata0Boxed -public sealed interface Multipartformdata0Boxed
-permits
-[Multipartformdata0BoxedString](#multipartformdata0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Multipartformdata0BoxedString -public record Multipartformdata0BoxedString
-implements [Multipartformdata0Boxed](#multipartformdata0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Multipartformdata0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Multipartformdata0 -public static class Multipartformdata0
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.multipartformdata.MultipartformdataSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( - "a", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Integer | minLength = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| [Multipartformdata0BoxedString](#multipartformdata0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Multipartformdata0Boxed](#multipartformdata0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md deleted file mode 100644 index a03e43ed398..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md +++ /dev/null @@ -1,146 +0,0 @@ -# FakejsonformdataGet - -public class FakejsonformdataGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [JsonFormDataOperation](#jsonformdataoperation)
The interface that has a jsonFormData method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.FakejsonformdataGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakejsonformdata.FakejsonformdataGet; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakejsonformdataGet.Get apiClient = new FakejsonformdataGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakejsonformdataGet.GetRequestBuilder().build(); - -FakejsonformdataGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response castResponse = (FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## JsonFormDataOperation -public interface JsonFormDataOperation
- -an interface that allows one to call the endpoint using a method named jsonFormData by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | jsonFormData([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakejsonformdataGetRequestBody.@Nullable SealedRequestBody](../../paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | requestBody([FakejsonformdataGetRequestBody.SealedRequestBody](../../paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md deleted file mode 100644 index da678f85003..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakejsonformdataGetRequestBody - -public class FakejsonformdataGetRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakejsonformdataGetRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakejsonformdataGetRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakejsonformdataGetRequestBody.FakejsonformdataGetRequestBody1](#fakejsonformdatagetrequestbody1)
class that serializes request bodies | -| sealed interface | [FakejsonformdataGetRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakejsonformdataGetRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationxwwwformurlencodedMediaType -public record ApplicationxwwwformurlencodedMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakejsonformdataGetRequestBody1 -public static class FakejsonformdataGetRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakejsonformdataGetRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new [ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationxwwwformurlencodedRequestBody -public record ApplicationxwwwformurlencodedRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/x-www-form-urlencoded" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/x-www-form-urlencoded" | -| ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md deleted file mode 100644 index 89354bae3a3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakejsonformdataGetResponses - -public class FakejsonformdataGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakejsonformdataGetCode200Response](#endpointfakejsonformdatagetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakejsonformdataGetCode200Response](#endpointfakejsonformdatagetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakejsonformdataGetCode200Response -public record EndpointFakejsonformdataGetCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md deleted file mode 100644 index 0007484657b..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ /dev/null @@ -1,262 +0,0 @@ -# ApplicationxwwwformurlencodedSchema -public class ApplicationxwwwformurlencodedSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2BoxedString](#applicationxwwwformurlencodedparam2boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2](#applicationxwwwformurlencodedparam2)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxedString](#applicationxwwwformurlencodedparamboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam](#applicationxwwwformurlencodedparam)
schema class | - -## ApplicationxwwwformurlencodedSchema1Boxed -public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
-permits
-[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedSchema1BoxedMap -public record ApplicationxwwwformurlencodedSchema1BoxedMap
-implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedSchema1 -public static class ApplicationxwwwformurlencodedSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = - ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.validate( - new ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder() - .param("a") - - .param2("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("param", [ApplicationxwwwformurlencodedParam.class](#applicationxwwwformurlencodedparam))),
    new PropertyEntry("param2", [ApplicationxwwwformurlencodedParam2.class](#applicationxwwwformurlencodedparam2)))
)
| -| Set | required = Set.of(
    "param",
    "param2"
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedSchemaMap00Builder -public class ApplicationxwwwformurlencodedSchemaMap00Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap00Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, Void value) | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, boolean value) | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, String value) | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, int value) | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, float value) | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, long value) | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, double value) | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, List value) | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, Map value) | - -## ApplicationxwwwformurlencodedSchemaMap01Builder -public class ApplicationxwwwformurlencodedSchemaMap01Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap01Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | param2(String value) | - -## ApplicationxwwwformurlencodedSchemaMap10Builder -public class ApplicationxwwwformurlencodedSchemaMap10Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMap10Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | param(String value) | - -## ApplicationxwwwformurlencodedSchemaMapBuilder -public class ApplicationxwwwformurlencodedSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap01Builder](#applicationxwwwformurlencodedschemamap01builder) | param(String value) | -| [ApplicationxwwwformurlencodedSchemaMap10Builder](#applicationxwwwformurlencodedschemamap10builder) | param2(String value) | - -## ApplicationxwwwformurlencodedSchemaMap -public static class ApplicationxwwwformurlencodedSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | of([Map](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| String | param()
| -| String | param2()
| -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## ApplicationxwwwformurlencodedParam2Boxed -public sealed interface ApplicationxwwwformurlencodedParam2Boxed
-permits
-[ApplicationxwwwformurlencodedParam2BoxedString](#applicationxwwwformurlencodedparam2boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedParam2BoxedString -public record ApplicationxwwwformurlencodedParam2BoxedString
-implements [ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedParam2BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedParam2 -public static class ApplicationxwwwformurlencodedParam2
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -## Description -field2 - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | - -## ApplicationxwwwformurlencodedParamBoxed -public sealed interface ApplicationxwwwformurlencodedParamBoxed
-permits
-[ApplicationxwwwformurlencodedParamBoxedString](#applicationxwwwformurlencodedparamboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedParamBoxedString -public record ApplicationxwwwformurlencodedParamBoxedString
-implements [ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedParamBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedParam -public static class ApplicationxwwwformurlencodedParam
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -## Description -field1 - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.md deleted file mode 100644 index c7ae900e122..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakejsonformdataGetCode200Response - -public class FakejsonformdataGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakejsonformdataGetCode200Response.FakejsonformdataGetCode200Response1](#fakejsonformdatagetcode200response1)
class that deserializes responses | - -## FakejsonformdataGetCode200Response1 -public static class FakejsonformdataGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md deleted file mode 100644 index ee3b3912645..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md +++ /dev/null @@ -1,146 +0,0 @@ -# FakejsonpatchPatch - -public class FakejsonpatchPatch - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Patch](#patch)
The class that has a patch method to call the endpoint | -| interface | [JsonPatchOperation](#jsonpatchoperation)
The interface that has a jsonPatch method to call the endpoint | -| static class | [PatchRequest](#patchrequest)
The request inputs class | -| static class | [PatchRequestBuilder](#patchrequestbuilder)
A builder for the request input class | - -## Patch -public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
- -a class that allows one to call the endpoint using a method named patch - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; -import org.openapijsonschematools.client.components.schemas.JSONPatchRequest; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.FakejsonpatchPatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakejsonpatch.FakejsonpatchPatch; -import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakejsonpatchPatch.Patch apiClient = new FakejsonpatchPatch.Patch(apiConfiguration, schemaConfiguration); - - -var request = new FakejsonpatchPatch.PatchRequestBuilder().build(); - -FakejsonpatchPatchResponses.EndpointResponse response; -try { - response = apiClient.patch(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response castResponse = (FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | - -## JsonPatchOperation -public interface JsonPatchOperation
- -an interface that allows one to call the endpoint using a method named jsonPatch by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | jsonPatch([PatchRequest](#patchrequest) request) | - -## PatchRequest -public static class PatchRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakejsonpatchPatchRequestBody.@Nullable SealedRequestBody](../../paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PatchRequestBuilder -public static class PatchRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PatchRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | -| [PatchRequestBuilder](#patchrequestbuilder) | requestBody([FakejsonpatchPatchRequestBody.SealedRequestBody](../../paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PatchRequestBuilder](#patchrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PatchRequestBuilder](#patchrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md deleted file mode 100644 index 1b5ffa82e1b..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakejsonpatchPatchRequestBody - -public class FakejsonpatchPatchRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakejsonpatchPatchRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakejsonpatchPatchRequestBody.ApplicationjsonpatchjsonMediaType](#applicationjsonpatchjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakejsonpatchPatchRequestBody.FakejsonpatchPatchRequestBody1](#fakejsonpatchpatchrequestbody1)
class that serializes request bodies | -| sealed interface | [FakejsonpatchPatchRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakejsonpatchPatchRequestBody.ApplicationjsonpatchjsonRequestBody](#applicationjsonpatchjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonpatchjsonMediaType](#applicationjsonpatchjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonpatchjsonMediaType -public record ApplicationjsonpatchjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1](../../../paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md#applicationjsonpatchjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonpatchjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1](../../../paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md#applicationjsonpatchjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakejsonpatchPatchRequestBody1 -public static class FakejsonpatchPatchRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakejsonpatchPatchRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json-patch+json", new [ApplicationjsonpatchjsonMediaType](#applicationjsonpatchjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonpatchjsonRequestBody](#applicationjsonpatchjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonpatchjsonRequestBody -public record ApplicationjsonpatchjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json-patch+json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonpatchjsonRequestBody(ApplicationjsonpatchjsonSchema.[JSONPatchRequest1Boxed](../../../components/schemas/JSONPatchRequest.md#jsonpatchrequest1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json-patch+json" | -| ApplicationjsonpatchjsonSchema.[JSONPatchRequest1Boxed](../../../components/schemas/JSONPatchRequest.md#jsonpatchrequest1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md deleted file mode 100644 index c0ece525307..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakejsonpatchPatchResponses - -public class FakejsonpatchPatchResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakejsonpatchPatchCode200Response](#endpointfakejsonpatchpatchcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakejsonpatchPatchCode200Response](#endpointfakejsonpatchpatchcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakejsonpatchPatchCode200Response -public record EndpointFakejsonpatchPatchCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md deleted file mode 100644 index c8f50418586..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonpatchjsonSchema -public class ApplicationjsonpatchjsonSchema
-extends [JSONPatchRequest1](../../../../../../components/schemas/JSONPatchRequest.md#jsonpatchrequest) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1](#applicationjsonpatchjsonschema1)
schema class | - -## ApplicationjsonpatchjsonSchema1 -public static class ApplicationjsonpatchjsonSchema1
-extends [JSONPatchRequest.JSONPatchRequest1](../../../../../../components/schemas/JSONPatchRequest.md#jsonpatchrequest1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.md deleted file mode 100644 index 72f6aff6618..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakejsonpatchPatchCode200Response - -public class FakejsonpatchPatchCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakejsonpatchPatchCode200Response.FakejsonpatchPatchCode200Response1](#fakejsonpatchpatchcode200response1)
class that deserializes responses | - -## FakejsonpatchPatchCode200Response1 -public static class FakejsonpatchPatchCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md deleted file mode 100644 index a305c97c97c..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakejsonwithcharsetPost - -public class FakejsonwithcharsetPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [JsonWithCharsetOperation](#jsonwithcharsetoperation)
The interface that has a jsonWithCharset method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.FakejsonwithcharsetPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.FakejsonwithcharsetPost; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakejsonwithcharsetPost.Post apiClient = new FakejsonwithcharsetPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakejsonwithcharsetPost.PostRequestBuilder().build(); - -FakejsonwithcharsetPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakejsonwithcharsetPostResponses.EndpointFakejsonwithcharsetPostCode200Response castResponse = (FakejsonwithcharsetPostResponses.EndpointFakejsonwithcharsetPostCode200Response) response; -FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody deserializedBody = (FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## JsonWithCharsetOperation -public interface JsonWithCharsetOperation
- -an interface that allows one to call the endpoint using a method named jsonWithCharset by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | jsonWithCharset([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakejsonwithcharsetPostRequestBody.@Nullable SealedRequestBody](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakejsonwithcharsetPostRequestBody.SealedRequestBody](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md deleted file mode 100644 index 5e338880026..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakejsonwithcharsetPostRequestBody - -public class FakejsonwithcharsetPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakejsonwithcharsetPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakejsonwithcharsetPostRequestBody.Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakejsonwithcharsetPostRequestBody.FakejsonwithcharsetPostRequestBody1](#fakejsonwithcharsetpostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakejsonwithcharsetPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakejsonwithcharsetPostRequestBody.Applicationjsoncharsetutf8RequestBody](#applicationjsoncharsetutf8requestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype) - -sealed interface that stores schema and encoding info - - -## Applicationjsoncharsetutf8MediaType -public record Applicationjsoncharsetutf8MediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8MediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakejsonwithcharsetPostRequestBody1 -public static class FakejsonwithcharsetPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakejsonwithcharsetPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new [Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[Applicationjsoncharsetutf8RequestBody](#applicationjsoncharsetutf8requestbody) - -sealed interface that stores request contentType + validated schema data - -## Applicationjsoncharsetutf8RequestBody -public record Applicationjsoncharsetutf8RequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json; charset=utf-8" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8RequestBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json; charset=utf-8" | -| Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md deleted file mode 100644 index f47d58cd759..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakejsonwithcharsetPostResponses - -public class FakejsonwithcharsetPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakejsonwithcharsetPostCode200Response](#endpointfakejsonwithcharsetpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakejsonwithcharsetPostCode200Response](#endpointfakejsonwithcharsetpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakejsonwithcharsetPostCode200Response -public record EndpointFakejsonwithcharsetPostCode200Response( - HttpResponse response, - [FakejsonwithcharsetPostCode200Response.SealedResponseBody](../../../paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md deleted file mode 100644 index 1465105b55d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ /dev/null @@ -1,144 +0,0 @@ -# Applicationjsoncharsetutf8Schema -public class Applicationjsoncharsetutf8Schema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
sealed interface for validated payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | - -## Applicationjsoncharsetutf8Schema1Boxed -public sealed interface Applicationjsoncharsetutf8Schema1Boxed
-permits
-[Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid), -[Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean), -[Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber), -[Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring), -[Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist), -[Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Applicationjsoncharsetutf8Schema1BoxedVoid -public record Applicationjsoncharsetutf8Schema1BoxedVoid
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedBoolean -public record Applicationjsoncharsetutf8Schema1BoxedBoolean
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedNumber -public record Applicationjsoncharsetutf8Schema1BoxedNumber
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedString -public record Applicationjsoncharsetutf8Schema1BoxedString
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedList -public record Applicationjsoncharsetutf8Schema1BoxedList
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedMap -public record Applicationjsoncharsetutf8Schema1BoxedMap
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1 -public static class Applicationjsoncharsetutf8Schema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md deleted file mode 100644 index fe4f16ce9f8..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakejsonwithcharsetPostCode200Response - -public class FakejsonwithcharsetPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakejsonwithcharsetPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakejsonwithcharsetPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody](#applicationjsoncharsetutf8responsebody)
implements sealed interface to store response body | -| static class | [FakejsonwithcharsetPostCode200Response.FakejsonwithcharsetPostCode200Response1](#fakejsonwithcharsetpostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype) - -sealed interface that stores schema and encoding info - -## Applicationjsoncharsetutf8MediaType -public record Applicationjsoncharsetutf8MediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../../paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8MediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../../paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[Applicationjsoncharsetutf8ResponseBody](#applicationjsoncharsetutf8responsebody) - -sealed interface that stores response body - -## Applicationjsoncharsetutf8ResponseBody -public record Applicationjsoncharsetutf8ResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json; charset=utf-8" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8ResponseBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakejsonwithcharsetPostCode200Response1 -public static class FakejsonwithcharsetPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakejsonwithcharsetPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new [Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md deleted file mode 100644 index 1465105b55d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md +++ /dev/null @@ -1,144 +0,0 @@ -# Applicationjsoncharsetutf8Schema -public class Applicationjsoncharsetutf8Schema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
sealed interface for validated payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | -| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | -| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | - -## Applicationjsoncharsetutf8Schema1Boxed -public sealed interface Applicationjsoncharsetutf8Schema1Boxed
-permits
-[Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid), -[Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean), -[Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber), -[Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring), -[Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist), -[Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Applicationjsoncharsetutf8Schema1BoxedVoid -public record Applicationjsoncharsetutf8Schema1BoxedVoid
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedBoolean -public record Applicationjsoncharsetutf8Schema1BoxedBoolean
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedNumber -public record Applicationjsoncharsetutf8Schema1BoxedNumber
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedString -public record Applicationjsoncharsetutf8Schema1BoxedString
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedList -public record Applicationjsoncharsetutf8Schema1BoxedList
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1BoxedMap -public record Applicationjsoncharsetutf8Schema1BoxedMap
-implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Applicationjsoncharsetutf8Schema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Applicationjsoncharsetutf8Schema1 -public static class Applicationjsoncharsetutf8Schema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md deleted file mode 100644 index 1574a873838..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakemultiplerequestbodycontenttypesPost - -public class FakemultiplerequestbodycontenttypesPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [MultipleRequestBodyContentTypesOperation](#multiplerequestbodycontenttypesoperation)
The interface that has a multipleRequestBodyContentTypes method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.FakemultiplerequestbodycontenttypesPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.FakemultiplerequestbodycontenttypesPost; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakemultiplerequestbodycontenttypesPost.Post apiClient = new FakemultiplerequestbodycontenttypesPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakemultiplerequestbodycontenttypesPost.PostRequestBuilder().build(); - -FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakemultiplerequestbodycontenttypesPostResponses.EndpointFakemultiplerequestbodycontenttypesPostCode200Response castResponse = (FakemultiplerequestbodycontenttypesPostResponses.EndpointFakemultiplerequestbodycontenttypesPostCode200Response) response; -FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## MultipleRequestBodyContentTypesOperation -public interface MultipleRequestBodyContentTypesOperation
- -an interface that allows one to call the endpoint using a method named multipleRequestBodyContentTypes by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | multipleRequestBodyContentTypes([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakemultiplerequestbodycontenttypesPostRequestBody.@Nullable SealedRequestBody](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakemultiplerequestbodycontenttypesPostRequestBody.SealedRequestBody](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md deleted file mode 100644 index 8c3563ecad3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md +++ /dev/null @@ -1,128 +0,0 @@ -# FakemultiplerequestbodycontenttypesPostRequestBody - -public class FakemultiplerequestbodycontenttypesPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakemultiplerequestbodycontenttypesPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakemultiplerequestbodycontenttypesPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| record | [FakemultiplerequestbodycontenttypesPostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakemultiplerequestbodycontenttypesPostRequestBody.FakemultiplerequestbodycontenttypesPostRequestBody1](#fakemultiplerequestbodycontenttypespostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakemultiplerequestbodycontenttypesPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakemultiplerequestbodycontenttypesPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | -| record | [FakemultiplerequestbodycontenttypesPostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype), -[MultipartformdataMediaType](#multipartformdatamediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## MultipartformdataMediaType -public record MultipartformdataMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakemultiplerequestbodycontenttypesPostRequestBody1 -public static class FakemultiplerequestbodycontenttypesPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakemultiplerequestbodycontenttypesPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)()),
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody), -[MultipartformdataRequestBody](#multipartformdatarequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | -## MultipartformdataRequestBody -public record MultipartformdataRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="multipart/form-data" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "multipart/form-data" | -| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md deleted file mode 100644 index cb74256a8d0..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakemultiplerequestbodycontenttypesPostResponses - -public class FakemultiplerequestbodycontenttypesPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakemultiplerequestbodycontenttypesPostCode200Response](#endpointfakemultiplerequestbodycontenttypespostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakemultiplerequestbodycontenttypesPostCode200Response](#endpointfakemultiplerequestbodycontenttypespostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakemultiplerequestbodycontenttypesPostCode200Response -public record EndpointFakemultiplerequestbodycontenttypesPostCode200Response( - HttpResponse response, - [FakemultiplerequestbodycontenttypesPostCode200Response.SealedResponseBody](../../../paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1a451c294b9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,166 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonABoxed](#applicationjsonaboxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonABoxedString](#applicationjsonaboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonA](#applicationjsona)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = - ApplicationjsonSchema.ApplicationjsonSchema1.validate( - new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() - .a("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("a", [ApplicationjsonA.class](#applicationjsona)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationjsonSchemaMapBuilder -public class ApplicationjsonSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | a(String value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Void value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, boolean value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, String value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, int value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, float value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, long value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, double value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, List value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Map value) | - -## ApplicationjsonSchemaMap -public static class ApplicationjsonSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [ApplicationjsonSchemaMap](#applicationjsonschemamap) | of([Map](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| String | a()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## ApplicationjsonABoxed -public sealed interface ApplicationjsonABoxed
-permits
-[ApplicationjsonABoxedString](#applicationjsonaboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonABoxedString -public record ApplicationjsonABoxedString
-implements [ApplicationjsonABoxed](#applicationjsonaboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonABoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonA -public static class ApplicationjsonA
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md deleted file mode 100644 index c09adef6e02..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ /dev/null @@ -1,166 +0,0 @@ -# MultipartformdataSchema -public class MultipartformdataSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataBBoxed](#multipartformdatabboxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataBBoxedString](#multipartformdatabboxedstring)
boxed class to store validated String payloads | -| static class | [MultipartformdataSchema.MultipartformdataB](#multipartformdatab)
schema class | - -## MultipartformdataSchema1Boxed -public sealed interface MultipartformdataSchema1Boxed
-permits
-[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSchema1BoxedMap -public record MultipartformdataSchema1BoxedMap
-implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSchema1 -public static class MultipartformdataSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = - MultipartformdataSchema.MultipartformdataSchema1.validate( - new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() - .b("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("b", [MultipartformdataB.class](#multipartformdatab)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## MultipartformdataSchemaMapBuilder -public class MultipartformdataSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | b(String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | - -## MultipartformdataSchemaMap -public static class MultipartformdataSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| String | b()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## MultipartformdataBBoxed -public sealed interface MultipartformdataBBoxed
-permits
-[MultipartformdataBBoxedString](#multipartformdatabboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataBBoxedString -public record MultipartformdataBBoxedString
-implements [MultipartformdataBBoxed](#multipartformdatabboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataBBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataB -public static class MultipartformdataB
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md deleted file mode 100644 index c6bb2c77dfd..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakemultiplerequestbodycontenttypesPostCode200Response - -public class FakemultiplerequestbodycontenttypesPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakemultiplerequestbodycontenttypesPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakemultiplerequestbodycontenttypesPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakemultiplerequestbodycontenttypesPostCode200Response.FakemultiplerequestbodycontenttypesPostCode200Response1](#fakemultiplerequestbodycontenttypespostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakemultiplerequestbodycontenttypesPostCode200Response1 -public static class FakemultiplerequestbodycontenttypesPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakemultiplerequestbodycontenttypesPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md deleted file mode 100644 index ddc2f477f50..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md +++ /dev/null @@ -1,150 +0,0 @@ -# FakemultipleresponsebodiesGet - -public class FakemultipleresponsebodiesGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [MultipleResponseBodiesOperation](#multipleresponsebodiesoperation)
The interface that has a multipleResponseBodies method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode200Response; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode202Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.FakemultipleresponsebodiesGet; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakemultipleresponsebodiesGet.Get apiClient = new FakemultipleresponsebodiesGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakemultipleresponsebodiesGet.GetRequestBuilder().build(); - -FakemultipleresponsebodiesGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -if (response instanceof FakemultipleresponsebodiesGetResponses.EndpointFakemultipleresponsebodiesGetCode200Response castResponse) { -FakemultipleresponsebodiesGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultipleresponsebodiesGetCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -} else { - FakemultipleresponsebodiesGetResponses.EndpointFakemultipleresponsebodiesGetCode202Response castResponse = (FakemultipleresponsebodiesGetResponses.EndpointFakemultipleresponsebodiesGetCode202Response) response; -FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody deserializedBody = (FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## MultipleResponseBodiesOperation -public interface MultipleResponseBodiesOperation
- -an interface that allows one to call the endpoint using a method named multipleResponseBodies by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | multipleResponseBodies([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md deleted file mode 100644 index 526882905f0..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md +++ /dev/null @@ -1,40 +0,0 @@ -# FakemultipleresponsebodiesGetResponses - -public class FakemultipleresponsebodiesGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakemultipleresponsebodiesGetCode200Response](#endpointfakemultipleresponsebodiesgetcode200response)
the response for 200 | -| record | [EndpointFakemultipleresponsebodiesGetCode202Response](#endpointfakemultipleresponsebodiesgetcode202response)
the response for 202 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakemultipleresponsebodiesGetCode200Response](#endpointfakemultipleresponsebodiesgetcode200response), -[EndpointFakemultipleresponsebodiesGetCode202Response](#endpointfakemultipleresponsebodiesgetcode202response) - -a sealed interface that stores endpoint responses - -## EndpointFakemultipleresponsebodiesGetCode200Response -public record EndpointFakemultipleresponsebodiesGetCode200Response( - HttpResponse response, - [FakemultipleresponsebodiesGetCode200Response.SealedResponseBody](../../../paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - -## EndpointFakemultipleresponsebodiesGetCode202Response -public record EndpointFakemultipleresponsebodiesGetCode202Response( - HttpResponse response, - [FakemultipleresponsebodiesGetCode202Response.SealedResponseBody](../../../paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md deleted file mode 100644 index 43977a02fe7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakemultipleresponsebodiesGetCode200Response - -public class FakemultipleresponsebodiesGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakemultipleresponsebodiesGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakemultipleresponsebodiesGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakemultipleresponsebodiesGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakemultipleresponsebodiesGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakemultipleresponsebodiesGetCode200Response.FakemultipleresponsebodiesGetCode200Response1](#fakemultipleresponsebodiesgetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakemultipleresponsebodiesGetCode200Response1 -public static class FakemultipleresponsebodiesGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakemultipleresponsebodiesGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md deleted file mode 100644 index 75f30c5f0f3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakemultipleresponsebodiesGetCode202Response - -public class FakemultipleresponsebodiesGetCode202Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakemultipleresponsebodiesGetCode202Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakemultipleresponsebodiesGetCode202Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakemultipleresponsebodiesGetCode202Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakemultipleresponsebodiesGetCode202Response.FakemultipleresponsebodiesGetCode202Response1](#fakemultipleresponsebodiesgetcode202response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakemultipleresponsebodiesGetCode202Response1 -public static class FakemultipleresponsebodiesGetCode202Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakemultipleresponsebodiesGetCode202Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md deleted file mode 100644 index 1ce5ef85b5a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md +++ /dev/null @@ -1,163 +0,0 @@ -# FakemultiplesecuritiesGet - -public class FakemultiplesecuritiesGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [MultipleSecuritiesOperation](#multiplesecuritiesoperation)
The interface that has a multipleSecurities method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.FakemultiplesecuritiesGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.FakemultiplesecuritiesGet; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -securitySchemes.add( - new HttpBasicTest("someUserId", "somePassword"); -); -securitySchemes.add( - new ApiKey("someApiKey"); -); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .fakemultiplesecuritiesGetSecurityRequirementObject0SecurityIndex(FakemultiplesecuritiesGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakemultiplesecuritiesGet.Get apiClient = new FakemultiplesecuritiesGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakemultiplesecuritiesGet.GetRequestBuilder().build(); - -FakemultiplesecuritiesGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakemultiplesecuritiesGetResponses.EndpointFakemultiplesecuritiesGetCode200Response castResponse = (FakemultiplesecuritiesGetResponses.EndpointFakemultiplesecuritiesGetCode200Response) response; -FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## MultipleSecuritiesOperation -public interface MultipleSecuritiesOperation
- -an interface that allows one to call the endpoint using a method named multipleSecurities by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | multipleSecurities([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [FakemultiplesecuritiesGetSecurityInfo.@Nullable SecurityIndex](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | securityIndex([FakemultiplesecuritiesGetSecurityInfo.SecurityIndex](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md deleted file mode 100644 index 10182841698..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakemultiplesecuritiesGetResponses - -public class FakemultiplesecuritiesGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakemultiplesecuritiesGetCode200Response](#endpointfakemultiplesecuritiesgetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakemultiplesecuritiesGetCode200Response](#endpointfakemultiplesecuritiesgetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakemultiplesecuritiesGetCode200Response -public record EndpointFakemultiplesecuritiesGetCode200Response( - HttpResponse response, - [FakemultiplesecuritiesGetCode200Response.SealedResponseBody](../../../paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md deleted file mode 100644 index dfdd24f765d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md +++ /dev/null @@ -1,44 +0,0 @@ -# FakemultiplesecuritiesGetSecurityInfo -FakemultiplesecuritiesGetSecurityInfo.java - -public class FakemultiplesecuritiesGetSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakemultiplesecuritiesGetSecurityInfo.FakemultiplesecuritiesGetSecurityInfo1](#fakemultiplesecuritiesgetsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [FakemultiplesecuritiesGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## FakemultiplesecuritiesGetSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakemultiplesecuritiesGetSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakemultiplesecuritiesGetSecurityRequirementObject0](../../../paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md) | security0 | -| [FakemultiplesecuritiesGetSecurityRequirementObject1](../../../paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md) | security1 | -| [FakemultiplesecuritiesGetSecurityRequirementObject2](../../../paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md) | security2 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | -| SECURITY_1
security 1 | -| SECURITY_2
security 2 | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md deleted file mode 100644 index fe4134ce780..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakemultiplesecuritiesGetCode200Response - -public class FakemultiplesecuritiesGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakemultiplesecuritiesGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakemultiplesecuritiesGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakemultiplesecuritiesGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakemultiplesecuritiesGetCode200Response.FakemultiplesecuritiesGetCode200Response1](#fakemultiplesecuritiesgetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakemultiplesecuritiesGetCode200Response1 -public static class FakemultiplesecuritiesGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakemultiplesecuritiesGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md deleted file mode 100644 index e762a030213..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# FakemultiplesecuritiesGetSecurityRequirementObject0 -FakemultiplesecuritiesGetSecurityRequirementObject0.java - -public class FakemultiplesecuritiesGetSecurityRequirementObject0 -extends EmptySecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakemultiplesecuritiesGetSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries() | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md deleted file mode 100644 index 2fc62ae0497..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md +++ /dev/null @@ -1,15 +0,0 @@ -# FakemultiplesecuritiesGetSecurityRequirementObject1 -FakemultiplesecuritiesGetSecurityRequirementObject1.java - -public class FakemultiplesecuritiesGetSecurityRequirementObject1 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakemultiplesecuritiesGetSecurityRequirementObject1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpBasicTest.class](../../../../components/securityschemes/HttpBasicTest.md),
        List.of()
    ),
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md deleted file mode 100644 index b073e315c8b..00000000000 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md +++ /dev/null @@ -1,15 +0,0 @@ -# FakemultiplesecuritiesGetSecurityRequirementObject2 -FakemultiplesecuritiesGetSecurityRequirementObject2.java - -public class FakemultiplesecuritiesGetSecurityRequirementObject2 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakemultiplesecuritiesGetSecurityRequirementObject2()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md deleted file mode 100644 index 0c831e06c23..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md +++ /dev/null @@ -1,145 +0,0 @@ -# FakeobjinqueryGet - -public class FakeobjinqueryGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [ObjectInQueryOperation](#objectinqueryoperation)
The interface that has a objectInQuery method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.FakeobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeobjinquery.FakeobjinqueryGet; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeobjinqueryGet.Get apiClient = new FakeobjinqueryGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakeobjinqueryGet.GetRequestBuilder().build(); - -FakeobjinqueryGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response castResponse = (FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## ObjectInQueryOperation -public interface ObjectInQueryOperation
- -an interface that allows one to call the endpoint using a method named objectInQuery by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | objectInQuery([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeobjinqueryGetQueryParameters.@Nullable QueryParametersMap](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#queryparametersmap) | queryParameters
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeobjinqueryGetQueryParametersQueryParametersMap](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md deleted file mode 100644 index f5b52436710..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md +++ /dev/null @@ -1,258 +0,0 @@ -# FakeobjinqueryGetQueryParameters -public class FakeobjinqueryGetQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed)
sealed interface for validated payloads | -| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1](#fakeobjinquerygetqueryparameters1)
schema class | -| static class | [FakeobjinqueryGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [FakeobjinqueryGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakeobjinqueryGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakeobjinqueryGetQueryParameters1Boxed -public sealed interface FakeobjinqueryGetQueryParameters1Boxed
-permits
-[FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakeobjinqueryGetQueryParameters1BoxedMap -public record FakeobjinqueryGetQueryParameters1BoxedMap
-implements [FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeobjinqueryGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakeobjinqueryGetQueryParameters1 -public static class FakeobjinqueryGetQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakeobjinqueryGetQueryParameters.QueryParametersMap validatedPayload = - FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1.validate( - new FakeobjinqueryGetQueryParameters.QueryParametersMapBuilder() - .mapBean( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "keyword", - "a" - ) - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("mapBean", [Schema0.Schema01.class](../../../paths/fakeobjinquery/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map>` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map> | build()
Returns map input that should be used with Schema.validate | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | mapBean(Map value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Schema0.SchemaMap0](../../../paths/fakeobjinquery/get/parameters/parameter0/Schema0.md#schemamap0) | mapBean()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md deleted file mode 100644 index edf71dc70ce..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeobjinqueryGetResponses - -public class FakeobjinqueryGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeobjinqueryGetCode200Response](#endpointfakeobjinquerygetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeobjinqueryGetCode200Response](#endpointfakeobjinquerygetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeobjinqueryGetCode200Response -public record EndpointFakeobjinqueryGetCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md deleted file mode 100644 index 9272e5e5527..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,166 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.SchemaMapBuilder0](#schemamapbuilder0)
builder for Map payloads | -| static class | [Schema0.SchemaMap0](#schemamap0)
output class for Map payloads | -| sealed interface | [Schema0.Keyword0Boxed](#keyword0boxed)
sealed interface for validated payloads | -| record | [Schema0.Keyword0BoxedString](#keyword0boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Keyword0](#keyword0)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedMap](#schema01boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedMap -public record Schema01BoxedMap
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedMap([SchemaMap0](#schemamap0) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaMap0](#schemamap0) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters.parameter0.Schema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -Schema0.SchemaMap0 validatedPayload = - Schema0.Schema01.validate( - new Schema0.SchemaMapBuilder0() - .keyword("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("keyword", [Keyword0.class](#keyword0)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaMap0](#schemamap0) | validate([Map<?, ?>](#schemamapbuilder0) arg, SchemaConfiguration configuration) | -| [Schema01BoxedMap](#schema01boxedmap) | validateAndBox([Map<?, ?>](#schemamapbuilder0) arg, SchemaConfiguration configuration) | -| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaMapBuilder0 -public class SchemaMapBuilder0
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaMapBuilder0()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [SchemaMapBuilder0](#schemamapbuilder0) | keyword(String value) | -| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, Void value) | -| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, boolean value) | -| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, String value) | -| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, int value) | -| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, float value) | -| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, long value) | -| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, double value) | -| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, List value) | -| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, Map value) | - -## SchemaMap0 -public static class SchemaMap0
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaMap0](#schemamap0) | of([Map](#schemamapbuilder0) arg, SchemaConfiguration configuration) | -| String | keyword()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## Keyword0Boxed -public sealed interface Keyword0Boxed
-permits
-[Keyword0BoxedString](#keyword0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Keyword0BoxedString -public record Keyword0BoxedString
-implements [Keyword0Boxed](#keyword0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Keyword0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Keyword0 -public static class Keyword0
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.md deleted file mode 100644 index 6ff3fdb9b67..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakeobjinqueryGetCode200Response - -public class FakeobjinqueryGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakeobjinqueryGetCode200Response.FakeobjinqueryGetCode200Response1](#fakeobjinquerygetcode200response1)
class that deserializes responses | - -## FakeobjinqueryGetCode200Response1 -public static class FakeobjinqueryGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md deleted file mode 100644 index 9300b1a2e23..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md +++ /dev/null @@ -1,211 +0,0 @@ -# Fakeparametercollisions1ababselfabPost - -public class Fakeparametercollisions1ababselfabPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [ParameterCollisionsOperation](#parametercollisionsoperation)
The interface that has a parameterCollisions method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostRequestBody; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Fakeparametercollisions1ababselfabPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Fakeparametercollisions1ababselfabPost; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -Fakeparametercollisions1ababselfabPost.Post apiClient = new Fakeparametercollisions1ababselfabPost.Post(apiConfiguration, schemaConfiguration); - - -// Map validation -Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters = - Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( - new Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder() - .positive1("a") - - .aHyphenMinusB("a") - - .Ab("a") - - .aB("a") - - .self("a") - - .build(), - schemaConfiguration -); - -var request = new Fakeparametercollisions1ababselfabPost.PostRequestBuilder() - .pathParameters(pathParameters) - .build(); - -Fakeparametercollisions1ababselfabPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -Fakeparametercollisions1ababselfabPostResponses.EndpointFakeparametercollisions1ababselfabPostCode200Response castResponse = (Fakeparametercollisions1ababselfabPostResponses.EndpointFakeparametercollisions1ababselfabPostCode200Response) response; -Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBody deserializedBody = (Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## ParameterCollisionsOperation -public interface ParameterCollisionsOperation
- -an interface that allows one to call the endpoint using a method named parameterCollisions by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | parameterCollisions([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#pathparametersmap) | pathParameters | -| [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#headerparametersmap) | headerParameters
optional | -| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#queryparametersmap) | queryParameters
optional | -| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#cookieparametersmap) | cookieParameters
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [Fakeparametercollisions1ababselfabPostPathParameters.@Nullable PathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#pathparametersmap) | pathParameters | -| [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody | -| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#headerparametersmap) | headerParameters | -| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#queryparametersmap) | queryParameters | -| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#cookieparametersmap) | cookieParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([Fakeparametercollisions1ababselfabPostHeaderParametersHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | queryParameters([Fakeparametercollisions1ababselfabPostQueryParametersQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | cookieParameters([Fakeparametercollisions1ababselfabPostCookieParametersCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#cookieparametersmap) cookieParameters)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([Fakeparametercollisions1ababselfabPostPathParametersPathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md deleted file mode 100644 index 02b21681818..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md +++ /dev/null @@ -1,267 +0,0 @@ -# Fakeparametercollisions1ababselfabPostCookieParameters -public class Fakeparametercollisions1ababselfabPostCookieParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1](#fakeparametercollisions1ababselfabpostcookieparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMapBuilder](#cookieparametersmapbuilder)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMap](#cookieparametersmap)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalProperties](#additionalproperties)
schema class | - -## Fakeparametercollisions1ababselfabPostCookieParameters1Boxed -public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters1Boxed
-permits
-[Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap -public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap
-implements [Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap([CookieParametersMap](#cookieparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [CookieParametersMap](#cookieparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Fakeparametercollisions1ababselfabPostCookieParameters1 -public static class Fakeparametercollisions1ababselfabPostCookieParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMap validatedPayload = - Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1.validate( - new Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMapBuilder() - .positive1("a") - - .aB("a") - - .Ab("a") - - .aHyphenMinusB("a") - - .self("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema14.Schema141.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md#schema141)),
    new PropertyEntry("aB", [Schema15.Schema151.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md#schema151)),
    new PropertyEntry("Ab", [Schema16.Schema161.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md#schema161)),
    new PropertyEntry("A-B", [Schema18.Schema181.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md#schema181)),
    new PropertyEntry("self", [Schema17.Schema171.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md#schema171))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [CookieParametersMap](#cookieparametersmap) | validate([Map<?, ?>](#cookieparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap) | validateAndBox([Map<?, ?>](#cookieparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## CookieParametersMapBuilder -public class CookieParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| CookieParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | positive1(String value) | -| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | aB(String value) | -| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | Ab(String value) | -| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | aHyphenMinusB(String value) | -| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | self(String value) | - -## CookieParametersMap -public static class CookieParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [CookieParametersMap](#cookieparametersmap) | of([Map](#cookieparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | aB()
[optional] | -| String | Ab()
[optional] | -| String | self()
[optional] | -| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md deleted file mode 100644 index 35e45166b63..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md +++ /dev/null @@ -1,263 +0,0 @@ -# Fakeparametercollisions1ababselfabPostHeaderParameters -public class Fakeparametercollisions1ababselfabPostHeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1](#fakeparametercollisions1ababselfabpostheaderparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed -public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed
-permits
-[Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap -public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap
-implements [Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Fakeparametercollisions1ababselfabPostHeaderParameters1 -public static class Fakeparametercollisions1ababselfabPostHeaderParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMap validatedPayload = - Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1.validate( - new Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMapBuilder() - .positive1("a") - - .aB("a") - - .aHyphenMinusB("a") - - .self("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema5.Schema51.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("aB", [Schema6.Schema61.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md#schema61)),
    new PropertyEntry("A-B", [Schema8.Schema81.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md#schema81)),
    new PropertyEntry("self", [Schema7.Schema71.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md#schema71))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## HeaderParametersMapBuilder -public class HeaderParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | positive1(String value) | -| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | aB(String value) | -| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | aHyphenMinusB(String value) | -| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | self(String value) | - -## HeaderParametersMap -public static class HeaderParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | aB()
[optional] | -| String | self()
[optional] | -| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md deleted file mode 100644 index 923dee054a3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md +++ /dev/null @@ -1,808 +0,0 @@ -# Fakeparametercollisions1ababselfabPostPathParameters -public class Fakeparametercollisions1ababselfabPostPathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1](#fakeparametercollisions1ababselfabpostpathparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## Fakeparametercollisions1ababselfabPostPathParameters1Boxed -public sealed interface Fakeparametercollisions1ababselfabPostPathParameters1Boxed
-permits
-[Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap -public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap
-implements [Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Fakeparametercollisions1ababselfabPostPathParameters1 -public static class Fakeparametercollisions1ababselfabPostPathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap validatedPayload = - Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( - new Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder() - .positive1("a") - - .aHyphenMinusB("a") - - .Ab("a") - - .aB("a") - - .self("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema9.Schema91.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md#schema91)),
    new PropertyEntry("aB", [Schema10.Schema101.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md#schema101)),
    new PropertyEntry("Ab", [Schema11.Schema111.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md#schema111)),
    new PropertyEntry("A-B", [Schema13.Schema131.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md#schema131)),
    new PropertyEntry("self", [Schema12.Schema121.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md#schema121))
)
| -| Set | required = Set.of(
    "1",
    "A-B",
    "Ab",
    "aB",
    "self"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap00000Builder -public class PathParametersMap00000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap00000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMap00001Builder -public class PathParametersMap00001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap00001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00000Builder](#pathparametersmap00000builder) | self(String value) | - -## PathParametersMap00010Builder -public class PathParametersMap00010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap00010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00000Builder](#pathparametersmap00000builder) | aB(String value) | - -## PathParametersMap00011Builder -public class PathParametersMap00011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap00011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00001Builder](#pathparametersmap00001builder) | aB(String value) | -| [PathParametersMap00010Builder](#pathparametersmap00010builder) | self(String value) | - -## PathParametersMap00100Builder -public class PathParametersMap00100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap00100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00000Builder](#pathparametersmap00000builder) | Ab(String value) | - -## PathParametersMap00101Builder -public class PathParametersMap00101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap00101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00001Builder](#pathparametersmap00001builder) | Ab(String value) | -| [PathParametersMap00100Builder](#pathparametersmap00100builder) | self(String value) | - -## PathParametersMap00110Builder -public class PathParametersMap00110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap00110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00010Builder](#pathparametersmap00010builder) | Ab(String value) | -| [PathParametersMap00100Builder](#pathparametersmap00100builder) | aB(String value) | - -## PathParametersMap00111Builder -public class PathParametersMap00111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap00111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00011Builder](#pathparametersmap00011builder) | Ab(String value) | -| [PathParametersMap00101Builder](#pathparametersmap00101builder) | aB(String value) | -| [PathParametersMap00110Builder](#pathparametersmap00110builder) | self(String value) | - -## PathParametersMap01000Builder -public class PathParametersMap01000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap01000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00000Builder](#pathparametersmap00000builder) | aHyphenMinusB(String value) | - -## PathParametersMap01001Builder -public class PathParametersMap01001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap01001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00001Builder](#pathparametersmap00001builder) | aHyphenMinusB(String value) | -| [PathParametersMap01000Builder](#pathparametersmap01000builder) | self(String value) | - -## PathParametersMap01010Builder -public class PathParametersMap01010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap01010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00010Builder](#pathparametersmap00010builder) | aHyphenMinusB(String value) | -| [PathParametersMap01000Builder](#pathparametersmap01000builder) | aB(String value) | - -## PathParametersMap01011Builder -public class PathParametersMap01011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap01011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00011Builder](#pathparametersmap00011builder) | aHyphenMinusB(String value) | -| [PathParametersMap01001Builder](#pathparametersmap01001builder) | aB(String value) | -| [PathParametersMap01010Builder](#pathparametersmap01010builder) | self(String value) | - -## PathParametersMap01100Builder -public class PathParametersMap01100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap01100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00100Builder](#pathparametersmap00100builder) | aHyphenMinusB(String value) | -| [PathParametersMap01000Builder](#pathparametersmap01000builder) | Ab(String value) | - -## PathParametersMap01101Builder -public class PathParametersMap01101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap01101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00101Builder](#pathparametersmap00101builder) | aHyphenMinusB(String value) | -| [PathParametersMap01001Builder](#pathparametersmap01001builder) | Ab(String value) | -| [PathParametersMap01100Builder](#pathparametersmap01100builder) | self(String value) | - -## PathParametersMap01110Builder -public class PathParametersMap01110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap01110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00110Builder](#pathparametersmap00110builder) | aHyphenMinusB(String value) | -| [PathParametersMap01010Builder](#pathparametersmap01010builder) | Ab(String value) | -| [PathParametersMap01100Builder](#pathparametersmap01100builder) | aB(String value) | - -## PathParametersMap01111Builder -public class PathParametersMap01111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap01111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00111Builder](#pathparametersmap00111builder) | aHyphenMinusB(String value) | -| [PathParametersMap01011Builder](#pathparametersmap01011builder) | Ab(String value) | -| [PathParametersMap01101Builder](#pathparametersmap01101builder) | aB(String value) | -| [PathParametersMap01110Builder](#pathparametersmap01110builder) | self(String value) | - -## PathParametersMap10000Builder -public class PathParametersMap10000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap10000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00000Builder](#pathparametersmap00000builder) | positive1(String value) | - -## PathParametersMap10001Builder -public class PathParametersMap10001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap10001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00001Builder](#pathparametersmap00001builder) | positive1(String value) | -| [PathParametersMap10000Builder](#pathparametersmap10000builder) | self(String value) | - -## PathParametersMap10010Builder -public class PathParametersMap10010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap10010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00010Builder](#pathparametersmap00010builder) | positive1(String value) | -| [PathParametersMap10000Builder](#pathparametersmap10000builder) | aB(String value) | - -## PathParametersMap10011Builder -public class PathParametersMap10011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap10011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00011Builder](#pathparametersmap00011builder) | positive1(String value) | -| [PathParametersMap10001Builder](#pathparametersmap10001builder) | aB(String value) | -| [PathParametersMap10010Builder](#pathparametersmap10010builder) | self(String value) | - -## PathParametersMap10100Builder -public class PathParametersMap10100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap10100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00100Builder](#pathparametersmap00100builder) | positive1(String value) | -| [PathParametersMap10000Builder](#pathparametersmap10000builder) | Ab(String value) | - -## PathParametersMap10101Builder -public class PathParametersMap10101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap10101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00101Builder](#pathparametersmap00101builder) | positive1(String value) | -| [PathParametersMap10001Builder](#pathparametersmap10001builder) | Ab(String value) | -| [PathParametersMap10100Builder](#pathparametersmap10100builder) | self(String value) | - -## PathParametersMap10110Builder -public class PathParametersMap10110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap10110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00110Builder](#pathparametersmap00110builder) | positive1(String value) | -| [PathParametersMap10010Builder](#pathparametersmap10010builder) | Ab(String value) | -| [PathParametersMap10100Builder](#pathparametersmap10100builder) | aB(String value) | - -## PathParametersMap10111Builder -public class PathParametersMap10111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap10111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap00111Builder](#pathparametersmap00111builder) | positive1(String value) | -| [PathParametersMap10011Builder](#pathparametersmap10011builder) | Ab(String value) | -| [PathParametersMap10101Builder](#pathparametersmap10101builder) | aB(String value) | -| [PathParametersMap10110Builder](#pathparametersmap10110builder) | self(String value) | - -## PathParametersMap11000Builder -public class PathParametersMap11000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap11000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap01000Builder](#pathparametersmap01000builder) | positive1(String value) | -| [PathParametersMap10000Builder](#pathparametersmap10000builder) | aHyphenMinusB(String value) | - -## PathParametersMap11001Builder -public class PathParametersMap11001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap11001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap01001Builder](#pathparametersmap01001builder) | positive1(String value) | -| [PathParametersMap10001Builder](#pathparametersmap10001builder) | aHyphenMinusB(String value) | -| [PathParametersMap11000Builder](#pathparametersmap11000builder) | self(String value) | - -## PathParametersMap11010Builder -public class PathParametersMap11010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap11010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap01010Builder](#pathparametersmap01010builder) | positive1(String value) | -| [PathParametersMap10010Builder](#pathparametersmap10010builder) | aHyphenMinusB(String value) | -| [PathParametersMap11000Builder](#pathparametersmap11000builder) | aB(String value) | - -## PathParametersMap11011Builder -public class PathParametersMap11011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap11011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap01011Builder](#pathparametersmap01011builder) | positive1(String value) | -| [PathParametersMap10011Builder](#pathparametersmap10011builder) | aHyphenMinusB(String value) | -| [PathParametersMap11001Builder](#pathparametersmap11001builder) | aB(String value) | -| [PathParametersMap11010Builder](#pathparametersmap11010builder) | self(String value) | - -## PathParametersMap11100Builder -public class PathParametersMap11100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap11100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap01100Builder](#pathparametersmap01100builder) | positive1(String value) | -| [PathParametersMap10100Builder](#pathparametersmap10100builder) | aHyphenMinusB(String value) | -| [PathParametersMap11000Builder](#pathparametersmap11000builder) | Ab(String value) | - -## PathParametersMap11101Builder -public class PathParametersMap11101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap11101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap01101Builder](#pathparametersmap01101builder) | positive1(String value) | -| [PathParametersMap10101Builder](#pathparametersmap10101builder) | aHyphenMinusB(String value) | -| [PathParametersMap11001Builder](#pathparametersmap11001builder) | Ab(String value) | -| [PathParametersMap11100Builder](#pathparametersmap11100builder) | self(String value) | - -## PathParametersMap11110Builder -public class PathParametersMap11110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap11110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap01110Builder](#pathparametersmap01110builder) | positive1(String value) | -| [PathParametersMap10110Builder](#pathparametersmap10110builder) | aHyphenMinusB(String value) | -| [PathParametersMap11010Builder](#pathparametersmap11010builder) | Ab(String value) | -| [PathParametersMap11100Builder](#pathparametersmap11100builder) | aB(String value) | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap01111Builder](#pathparametersmap01111builder) | positive1(String value) | -| [PathParametersMap10111Builder](#pathparametersmap10111builder) | aHyphenMinusB(String value) | -| [PathParametersMap11011Builder](#pathparametersmap11011builder) | Ab(String value) | -| [PathParametersMap11101Builder](#pathparametersmap11101builder) | aB(String value) | -| [PathParametersMap11110Builder](#pathparametersmap11110builder) | self(String value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | Ab()
| -| String | aB()
| -| String | self()
| -| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md deleted file mode 100644 index 5c8d38d4e68..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md +++ /dev/null @@ -1,267 +0,0 @@ -# Fakeparametercollisions1ababselfabPostQueryParameters -public class Fakeparametercollisions1ababselfabPostQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1](#fakeparametercollisions1ababselfabpostqueryparameters1)
schema class | -| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## Fakeparametercollisions1ababselfabPostQueryParameters1Boxed -public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters1Boxed
-permits
-[Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap -public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap
-implements [Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Fakeparametercollisions1ababselfabPostQueryParameters1 -public static class Fakeparametercollisions1ababselfabPostQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMap validatedPayload = - Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1.validate( - new Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMapBuilder() - .positive1("a") - - .aB("a") - - .Ab("a") - - .aHyphenMinusB("a") - - .self("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema0.Schema01.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("aB", [Schema1.Schema11.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("Ab", [Schema2.Schema21.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("A-B", [Schema4.Schema41.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("self", [Schema3.Schema31.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md#schema31))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | positive1(String value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | aB(String value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | Ab(String value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | aHyphenMinusB(String value) | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | self(String value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | aB()
[optional] | -| String | Ab()
[optional] | -| String | self()
[optional] | -| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md deleted file mode 100644 index a1386452447..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# Fakeparametercollisions1ababselfabPostRequestBody - -public class Fakeparametercollisions1ababselfabPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [Fakeparametercollisions1ababselfabPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Fakeparametercollisions1ababselfabPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [Fakeparametercollisions1ababselfabPostRequestBody.Fakeparametercollisions1ababselfabPostRequestBody1](#fakeparametercollisions1ababselfabpostrequestbody1)
class that serializes request bodies | -| sealed interface | [Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [Fakeparametercollisions1ababselfabPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## Fakeparametercollisions1ababselfabPostRequestBody1 -public static class Fakeparametercollisions1ababselfabPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Fakeparametercollisions1ababselfabPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md deleted file mode 100644 index 950f7cf471d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# Fakeparametercollisions1ababselfabPostResponses - -public class Fakeparametercollisions1ababselfabPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeparametercollisions1ababselfabPostCode200Response](#endpointfakeparametercollisions1ababselfabpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeparametercollisions1ababselfabPostCode200Response](#endpointfakeparametercollisions1ababselfabpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeparametercollisions1ababselfabPostCode200Response -public record EndpointFakeparametercollisions1ababselfabPostCode200Response( - HttpResponse response, - [Fakeparametercollisions1ababselfabPostCode200Response.SealedResponseBody](../../../paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md deleted file mode 100644 index 63ec3a884fc..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema1 -public class Schema1
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | -| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | -| static class | [Schema1.Schema11](#schema11)
schema class | - -## Schema11Boxed -public sealed interface Schema11Boxed
-permits
-[Schema11BoxedString](#schema11boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema11BoxedString -public record Schema11BoxedString
-implements [Schema11Boxed](#schema11boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema11BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema11 -public static class Schema11
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md deleted file mode 100644 index f2313e921f9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema10 -public class Schema10
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema10.Schema101Boxed](#schema101boxed)
sealed interface for validated payloads | -| record | [Schema10.Schema101BoxedString](#schema101boxedstring)
boxed class to store validated String payloads | -| static class | [Schema10.Schema101](#schema101)
schema class | - -## Schema101Boxed -public sealed interface Schema101Boxed
-permits
-[Schema101BoxedString](#schema101boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema101BoxedString -public record Schema101BoxedString
-implements [Schema101Boxed](#schema101boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema101BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema101 -public static class Schema101
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md deleted file mode 100644 index c309cbd677b..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema11 -public class Schema11
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema11.Schema111Boxed](#schema111boxed)
sealed interface for validated payloads | -| record | [Schema11.Schema111BoxedString](#schema111boxedstring)
boxed class to store validated String payloads | -| static class | [Schema11.Schema111](#schema111)
schema class | - -## Schema111Boxed -public sealed interface Schema111Boxed
-permits
-[Schema111BoxedString](#schema111boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema111BoxedString -public record Schema111BoxedString
-implements [Schema111Boxed](#schema111boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema111BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema111 -public static class Schema111
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md deleted file mode 100644 index fa969e69734..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema12 -public class Schema12
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema12.Schema121Boxed](#schema121boxed)
sealed interface for validated payloads | -| record | [Schema12.Schema121BoxedString](#schema121boxedstring)
boxed class to store validated String payloads | -| static class | [Schema12.Schema121](#schema121)
schema class | - -## Schema121Boxed -public sealed interface Schema121Boxed
-permits
-[Schema121BoxedString](#schema121boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema121BoxedString -public record Schema121BoxedString
-implements [Schema121Boxed](#schema121boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema121BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema121 -public static class Schema121
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md deleted file mode 100644 index 8b6ce934c35..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema13 -public class Schema13
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema13.Schema131Boxed](#schema131boxed)
sealed interface for validated payloads | -| record | [Schema13.Schema131BoxedString](#schema131boxedstring)
boxed class to store validated String payloads | -| static class | [Schema13.Schema131](#schema131)
schema class | - -## Schema131Boxed -public sealed interface Schema131Boxed
-permits
-[Schema131BoxedString](#schema131boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema131BoxedString -public record Schema131BoxedString
-implements [Schema131Boxed](#schema131boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema131BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema131 -public static class Schema131
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md deleted file mode 100644 index b6987c8c80f..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema14 -public class Schema14
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema14.Schema141Boxed](#schema141boxed)
sealed interface for validated payloads | -| record | [Schema14.Schema141BoxedString](#schema141boxedstring)
boxed class to store validated String payloads | -| static class | [Schema14.Schema141](#schema141)
schema class | - -## Schema141Boxed -public sealed interface Schema141Boxed
-permits
-[Schema141BoxedString](#schema141boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema141BoxedString -public record Schema141BoxedString
-implements [Schema141Boxed](#schema141boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema141BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema141 -public static class Schema141
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md deleted file mode 100644 index 272a98b600d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema15 -public class Schema15
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema15.Schema151Boxed](#schema151boxed)
sealed interface for validated payloads | -| record | [Schema15.Schema151BoxedString](#schema151boxedstring)
boxed class to store validated String payloads | -| static class | [Schema15.Schema151](#schema151)
schema class | - -## Schema151Boxed -public sealed interface Schema151Boxed
-permits
-[Schema151BoxedString](#schema151boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema151BoxedString -public record Schema151BoxedString
-implements [Schema151Boxed](#schema151boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema151BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema151 -public static class Schema151
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md deleted file mode 100644 index 059eeb943a7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema16 -public class Schema16
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema16.Schema161Boxed](#schema161boxed)
sealed interface for validated payloads | -| record | [Schema16.Schema161BoxedString](#schema161boxedstring)
boxed class to store validated String payloads | -| static class | [Schema16.Schema161](#schema161)
schema class | - -## Schema161Boxed -public sealed interface Schema161Boxed
-permits
-[Schema161BoxedString](#schema161boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema161BoxedString -public record Schema161BoxedString
-implements [Schema161Boxed](#schema161boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema161BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema161 -public static class Schema161
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md deleted file mode 100644 index 4bf4ae7e510..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema17 -public class Schema17
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema17.Schema171Boxed](#schema171boxed)
sealed interface for validated payloads | -| record | [Schema17.Schema171BoxedString](#schema171boxedstring)
boxed class to store validated String payloads | -| static class | [Schema17.Schema171](#schema171)
schema class | - -## Schema171Boxed -public sealed interface Schema171Boxed
-permits
-[Schema171BoxedString](#schema171boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema171BoxedString -public record Schema171BoxedString
-implements [Schema171Boxed](#schema171boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema171BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema171 -public static class Schema171
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md deleted file mode 100644 index 962dca4cbb3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema18 -public class Schema18
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema18.Schema181Boxed](#schema181boxed)
sealed interface for validated payloads | -| record | [Schema18.Schema181BoxedString](#schema181boxedstring)
boxed class to store validated String payloads | -| static class | [Schema18.Schema181](#schema181)
schema class | - -## Schema181Boxed -public sealed interface Schema181Boxed
-permits
-[Schema181BoxedString](#schema181boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema181BoxedString -public record Schema181BoxedString
-implements [Schema181Boxed](#schema181boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema181BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema181 -public static class Schema181
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md deleted file mode 100644 index 4a7d57953eb..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema2 -public class Schema2
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | -| record | [Schema2.Schema21BoxedString](#schema21boxedstring)
boxed class to store validated String payloads | -| static class | [Schema2.Schema21](#schema21)
schema class | - -## Schema21Boxed -public sealed interface Schema21Boxed
-permits
-[Schema21BoxedString](#schema21boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema21BoxedString -public record Schema21BoxedString
-implements [Schema21Boxed](#schema21boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema21BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema21 -public static class Schema21
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md deleted file mode 100644 index 41d54a1d930..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema3 -public class Schema3
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | -| record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | -| static class | [Schema3.Schema31](#schema31)
schema class | - -## Schema31Boxed -public sealed interface Schema31Boxed
-permits
-[Schema31BoxedString](#schema31boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema31BoxedString -public record Schema31BoxedString
-implements [Schema31Boxed](#schema31boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema31BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema31 -public static class Schema31
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md deleted file mode 100644 index 7bc2523d7af..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema4 -public class Schema4
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | -| record | [Schema4.Schema41BoxedString](#schema41boxedstring)
boxed class to store validated String payloads | -| static class | [Schema4.Schema41](#schema41)
schema class | - -## Schema41Boxed -public sealed interface Schema41Boxed
-permits
-[Schema41BoxedString](#schema41boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema41BoxedString -public record Schema41BoxedString
-implements [Schema41Boxed](#schema41boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema41BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema41 -public static class Schema41
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md deleted file mode 100644 index ff888c33afd..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema5 -public class Schema5
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
sealed interface for validated payloads | -| record | [Schema5.Schema51BoxedString](#schema51boxedstring)
boxed class to store validated String payloads | -| static class | [Schema5.Schema51](#schema51)
schema class | - -## Schema51Boxed -public sealed interface Schema51Boxed
-permits
-[Schema51BoxedString](#schema51boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema51BoxedString -public record Schema51BoxedString
-implements [Schema51Boxed](#schema51boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema51BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema51 -public static class Schema51
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md deleted file mode 100644 index ba0b2fad7df..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema6 -public class Schema6
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema6.Schema61Boxed](#schema61boxed)
sealed interface for validated payloads | -| record | [Schema6.Schema61BoxedString](#schema61boxedstring)
boxed class to store validated String payloads | -| static class | [Schema6.Schema61](#schema61)
schema class | - -## Schema61Boxed -public sealed interface Schema61Boxed
-permits
-[Schema61BoxedString](#schema61boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema61BoxedString -public record Schema61BoxedString
-implements [Schema61Boxed](#schema61boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema61BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema61 -public static class Schema61
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md deleted file mode 100644 index a4e0ad0106a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema7 -public class Schema7
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema7.Schema71Boxed](#schema71boxed)
sealed interface for validated payloads | -| record | [Schema7.Schema71BoxedString](#schema71boxedstring)
boxed class to store validated String payloads | -| static class | [Schema7.Schema71](#schema71)
schema class | - -## Schema71Boxed -public sealed interface Schema71Boxed
-permits
-[Schema71BoxedString](#schema71boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema71BoxedString -public record Schema71BoxedString
-implements [Schema71Boxed](#schema71boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema71BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema71 -public static class Schema71
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md deleted file mode 100644 index 63b13965df9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema8 -public class Schema8
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema8.Schema81Boxed](#schema81boxed)
sealed interface for validated payloads | -| record | [Schema8.Schema81BoxedString](#schema81boxedstring)
boxed class to store validated String payloads | -| static class | [Schema8.Schema81](#schema81)
schema class | - -## Schema81Boxed -public sealed interface Schema81Boxed
-permits
-[Schema81BoxedString](#schema81boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema81BoxedString -public record Schema81BoxedString
-implements [Schema81Boxed](#schema81boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema81BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema81 -public static class Schema81
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md deleted file mode 100644 index 359fd15e9c6..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema9 -public class Schema9
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema9.Schema91Boxed](#schema91boxed)
sealed interface for validated payloads | -| record | [Schema9.Schema91BoxedString](#schema91boxedstring)
boxed class to store validated String payloads | -| static class | [Schema9.Schema91](#schema91)
schema class | - -## Schema91Boxed -public sealed interface Schema91Boxed
-permits
-[Schema91BoxedString](#schema91boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema91BoxedString -public record Schema91BoxedString
-implements [Schema91Boxed](#schema91boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema91BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema91 -public static class Schema91
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md deleted file mode 100644 index 2080fb2adb3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# Fakeparametercollisions1ababselfabPostCode200Response - -public class Fakeparametercollisions1ababselfabPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [Fakeparametercollisions1ababselfabPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [Fakeparametercollisions1ababselfabPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [Fakeparametercollisions1ababselfabPostCode200Response.Fakeparametercollisions1ababselfabPostCode200Response1](#fakeparametercollisions1ababselfabpostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## Fakeparametercollisions1ababselfabPostCode200Response1 -public static class Fakeparametercollisions1ababselfabPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Fakeparametercollisions1ababselfabPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md deleted file mode 100644 index df6fe8e554f..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakepemcontenttypeGet - -public class FakepemcontenttypeGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [PemContentTypeOperation](#pemcontenttypeoperation)
The interface that has a pemContentType method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile.ApplicationxpemfileSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.FakepemcontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakepemcontenttype.FakepemcontenttypeGet; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakepemcontenttypeGet.Get apiClient = new FakepemcontenttypeGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakepemcontenttypeGet.GetRequestBuilder().build(); - -FakepemcontenttypeGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakepemcontenttypeGetResponses.EndpointFakepemcontenttypeGetCode200Response castResponse = (FakepemcontenttypeGetResponses.EndpointFakepemcontenttypeGetCode200Response) response; -FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody deserializedBody = (FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## PemContentTypeOperation -public interface PemContentTypeOperation
- -an interface that allows one to call the endpoint using a method named pemContentType by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | pemContentType([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakepemcontenttypeGetRequestBody.@Nullable SealedRequestBody](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | requestBody([FakepemcontenttypeGetRequestBody.SealedRequestBody](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md deleted file mode 100644 index 4601113bc84..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakepemcontenttypeGetRequestBody - -public class FakepemcontenttypeGetRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakepemcontenttypeGetRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakepemcontenttypeGetRequestBody.ApplicationxpemfileMediaType](#applicationxpemfilemediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakepemcontenttypeGetRequestBody.FakepemcontenttypeGetRequestBody1](#fakepemcontenttypegetrequestbody1)
class that serializes request bodies | -| sealed interface | [FakepemcontenttypeGetRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakepemcontenttypeGetRequestBody.ApplicationxpemfileRequestBody](#applicationxpemfilerequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxpemfileMediaType](#applicationxpemfilemediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationxpemfileMediaType -public record ApplicationxpemfileMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxpemfileMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakepemcontenttypeGetRequestBody1 -public static class FakepemcontenttypeGetRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakepemcontenttypeGetRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-pem-file", new [ApplicationxpemfileMediaType](#applicationxpemfilemediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationxpemfileRequestBody](#applicationxpemfilerequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationxpemfileRequestBody -public record ApplicationxpemfileRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/x-pem-file" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxpemfileRequestBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/x-pem-file" | -| ApplicationxpemfileSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md deleted file mode 100644 index 50c4184e734..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakepemcontenttypeGetResponses - -public class FakepemcontenttypeGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakepemcontenttypeGetCode200Response](#endpointfakepemcontenttypegetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakepemcontenttypeGetCode200Response](#endpointfakepemcontenttypegetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakepemcontenttypeGetCode200Response -public record EndpointFakepemcontenttypeGetCode200Response( - HttpResponse response, - [FakepemcontenttypeGetCode200Response.SealedResponseBody](../../../paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md deleted file mode 100644 index 91a1e361623..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationxpemfileSchema -public class ApplicationxpemfileSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | - -## ApplicationxpemfileSchema1Boxed -public sealed interface ApplicationxpemfileSchema1Boxed
-permits
-[ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxpemfileSchema1BoxedString -public record ApplicationxpemfileSchema1BoxedString
-implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxpemfileSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxpemfileSchema1 -public static class ApplicationxpemfileSchema1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md deleted file mode 100644 index f89129a2374..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakepemcontenttypeGetCode200Response - -public class FakepemcontenttypeGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakepemcontenttypeGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakepemcontenttypeGetCode200Response.ApplicationxpemfileMediaType](#applicationxpemfilemediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakepemcontenttypeGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody](#applicationxpemfileresponsebody)
implements sealed interface to store response body | -| static class | [FakepemcontenttypeGetCode200Response.FakepemcontenttypeGetCode200Response1](#fakepemcontenttypegetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxpemfileMediaType](#applicationxpemfilemediatype) - -sealed interface that stores schema and encoding info - -## ApplicationxpemfileMediaType -public record ApplicationxpemfileMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../../paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxpemfileMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../../paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationxpemfileResponseBody](#applicationxpemfileresponsebody) - -sealed interface that stores response body - -## ApplicationxpemfileResponseBody -public record ApplicationxpemfileResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/x-pem-file" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxpemfileResponseBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationxpemfileSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakepemcontenttypeGetCode200Response1 -public static class FakepemcontenttypeGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakepemcontenttypeGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-pem-file", new [ApplicationxpemfileMediaType](#applicationxpemfilemediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md deleted file mode 100644 index 91a1e361623..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationxpemfileSchema -public class ApplicationxpemfileSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | - -## ApplicationxpemfileSchema1Boxed -public sealed interface ApplicationxpemfileSchema1Boxed
-permits
-[ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxpemfileSchema1BoxedString -public record ApplicationxpemfileSchema1BoxedString
-implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxpemfileSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxpemfileSchema1 -public static class ApplicationxpemfileSchema1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md deleted file mode 100644 index 02a20fa4996..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md +++ /dev/null @@ -1,203 +0,0 @@ -# FakepetiduploadimagewithrequiredfilePost - -public class FakepetiduploadimagewithrequiredfilePost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [UploadFileWithRequiredFileOperation](#uploadfilewithrequiredfileoperation)
The interface that has a uploadFileWithRequiredFile method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.FakepetiduploadimagewithrequiredfilePostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.FakepetiduploadimagewithrequiredfilePost; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .fakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0SecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakepetiduploadimagewithrequiredfilePost.Post apiClient = new FakepetiduploadimagewithrequiredfilePost.Post(apiConfiguration, schemaConfiguration); - - -// Map validation -FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters = - FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( - new FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder() - .petId(1L) - - .build(), - schemaConfiguration -); - -var request = new FakepetiduploadimagewithrequiredfilePost.PostRequestBuilder() - .pathParameters(pathParameters) - .build(); - -FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakepetiduploadimagewithrequiredfilePostResponses.EndpointFakepetiduploadimagewithrequiredfilePostCode200Response castResponse = (FakepetiduploadimagewithrequiredfilePostResponses.EndpointFakepetiduploadimagewithrequiredfilePostCode200Response) response; -FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## UploadFileWithRequiredFileOperation -public interface UploadFileWithRequiredFileOperation
- -an interface that allows one to call the endpoint using a method named uploadFileWithRequiredFile by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | uploadFileWithRequiredFile([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#pathparametersmap) | pathParameters | -| [FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable PathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#pathparametersmap) | pathParameters | -| [FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([FakepetiduploadimagewithrequiredfilePostRequestBody.SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | securityIndex([FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([FakepetiduploadimagewithrequiredfilePostPathParametersPathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md deleted file mode 100644 index d8238bf62e8..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# FakepetiduploadimagewithrequiredfilePostPathParameters -public class FakepetiduploadimagewithrequiredfilePostPathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed)
sealed interface for validated payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1](#fakepetiduploadimagewithrequiredfilepostpathparameters1)
schema class | -| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed -public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed
-permits
-[FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap -public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap
-implements [FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakepetiduploadimagewithrequiredfilePostPathParameters1 -public static class FakepetiduploadimagewithrequiredfilePostPathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap validatedPayload = - FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( - new FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder() - .petId(1L) - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| Number | petId()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md deleted file mode 100644 index 1bb49435994..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakepetiduploadimagewithrequiredfilePostRequestBody - -public class FakepetiduploadimagewithrequiredfilePostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakepetiduploadimagewithrequiredfilePostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakepetiduploadimagewithrequiredfilePostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakepetiduploadimagewithrequiredfilePostRequestBody.FakepetiduploadimagewithrequiredfilePostRequestBody1](#fakepetiduploadimagewithrequiredfilepostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakepetiduploadimagewithrequiredfilePostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakepetiduploadimagewithrequiredfilePostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[MultipartformdataMediaType](#multipartformdatamediatype) - -sealed interface that stores schema and encoding info - - -## MultipartformdataMediaType -public record MultipartformdataMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakepetiduploadimagewithrequiredfilePostRequestBody1 -public static class FakepetiduploadimagewithrequiredfilePostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakepetiduploadimagewithrequiredfilePostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[MultipartformdataRequestBody](#multipartformdatarequestbody) - -sealed interface that stores request contentType + validated schema data - -## MultipartformdataRequestBody -public record MultipartformdataRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="multipart/form-data" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "multipart/form-data" | -| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md deleted file mode 100644 index 4c28cb1368a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakepetiduploadimagewithrequiredfilePostResponses - -public class FakepetiduploadimagewithrequiredfilePostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakepetiduploadimagewithrequiredfilePostCode200Response](#endpointfakepetiduploadimagewithrequiredfilepostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakepetiduploadimagewithrequiredfilePostCode200Response](#endpointfakepetiduploadimagewithrequiredfilepostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakepetiduploadimagewithrequiredfilePostCode200Response -public record EndpointFakepetiduploadimagewithrequiredfilePostCode200Response( - HttpResponse response, - [FakepetiduploadimagewithrequiredfilePostCode200Response.SealedResponseBody](../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md deleted file mode 100644 index 7d31590a6a5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md +++ /dev/null @@ -1,40 +0,0 @@ -# FakepetiduploadimagewithrequiredfilePostSecurityInfo -FakepetiduploadimagewithrequiredfilePostSecurityInfo.java - -public class FakepetiduploadimagewithrequiredfilePostSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.FakepetiduploadimagewithrequiredfilePostSecurityInfo1](#fakepetiduploadimagewithrequiredfilepostsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## FakepetiduploadimagewithrequiredfilePostSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakepetiduploadimagewithrequiredfilePostSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0](../../../paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md) | security0 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md deleted file mode 100644 index 55e4e5cb238..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedNumber](#schema01boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedNumber -public record Schema01BoxedNumber
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends Int64JsonSchema.Int64JsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md deleted file mode 100644 index 033b1b81980..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ /dev/null @@ -1,206 +0,0 @@ -# MultipartformdataSchema -public class MultipartformdataSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataRequiredFileBoxed](#multipartformdatarequiredfileboxed)
sealed interface for validated payloads | -| static class | [MultipartformdataSchema.MultipartformdataRequiredFile](#multipartformdatarequiredfile)
schema class | -| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | -| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | - -## MultipartformdataSchema1Boxed -public sealed interface MultipartformdataSchema1Boxed
-permits
-[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSchema1BoxedMap -public record MultipartformdataSchema1BoxedMap
-implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSchema1 -public static class MultipartformdataSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = - MultipartformdataSchema.MultipartformdataSchema1.validate( - new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() - .requiredFile("a") - - .additionalMetadata("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("additionalMetadata", [MultipartformdataAdditionalMetadata.class](#multipartformdataadditionalmetadata))),
    new PropertyEntry("requiredFile", [MultipartformdataRequiredFile.class](#multipartformdatarequiredfile)))
)
| -| Set | required = Set.of(
    "requiredFile"
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## MultipartformdataSchemaMap0Builder -public class MultipartformdataSchemaMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalMetadata(String value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, Void value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, boolean value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, String value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, int value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, float value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, long value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, double value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, List value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, Map value) | - -## MultipartformdataSchemaMapBuilder -public class MultipartformdataSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | requiredFile(String value) | - -## MultipartformdataSchemaMap -public static class MultipartformdataSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| String | requiredFile()
| -| String | additionalMetadata()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## MultipartformdataRequiredFileBoxed -public sealed interface MultipartformdataRequiredFileBoxed
-permits
- -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataRequiredFile -public static class MultipartformdataRequiredFile
-extends JsonSchema - -A schema class that validates payloads - -## Description -file to upload - -## MultipartformdataAdditionalMetadataBoxed -public sealed interface MultipartformdataAdditionalMetadataBoxed
-permits
-[MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataAdditionalMetadataBoxedString -public record MultipartformdataAdditionalMetadataBoxedString
-implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataAdditionalMetadataBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataAdditionalMetadata -public static class MultipartformdataAdditionalMetadata
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -## Description -Additional data to pass to server - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md deleted file mode 100644 index fecda0a9b1d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakepetiduploadimagewithrequiredfilePostCode200Response - -public class FakepetiduploadimagewithrequiredfilePostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakepetiduploadimagewithrequiredfilePostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakepetiduploadimagewithrequiredfilePostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakepetiduploadimagewithrequiredfilePostCode200Response.FakepetiduploadimagewithrequiredfilePostCode200Response1](#fakepetiduploadimagewithrequiredfilepostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | - -## FakepetiduploadimagewithrequiredfilePostCode200Response1 -public static class FakepetiduploadimagewithrequiredfilePostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakepetiduploadimagewithrequiredfilePostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index bb60c5776fb..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md deleted file mode 100644 index 3e58c101d48..00000000000 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 -FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java - -public class FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md deleted file mode 100644 index fdad63ddf22..00000000000 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md +++ /dev/null @@ -1,185 +0,0 @@ -# FakequeryparamwithjsoncontenttypeGet - -public class FakequeryparamwithjsoncontenttypeGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [QueryParamWithJsonContentTypeOperation](#queryparamwithjsoncontenttypeoperation)
The interface that has a queryParamWithJsonContentType method to call the endpoint | -| static class | [GetRequest](#getrequest)
The final request inputs class | -| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | -| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.FakequeryparamwithjsoncontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.FakequeryparamwithjsoncontenttypeGet; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakequeryparamwithjsoncontenttypeGet.Get apiClient = new FakequeryparamwithjsoncontenttypeGet.Get(apiConfiguration, schemaConfiguration); - - -// Map validation -FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters = - FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( - new FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder() - .build(), - schemaConfiguration -); - -var request = new FakequeryparamwithjsoncontenttypeGet.GetRequestBuilder() - .queryParameters(queryParameters) - .build(); - -FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakequeryparamwithjsoncontenttypeGetResponses.EndpointFakequeryparamwithjsoncontenttypeGetCode200Response castResponse = (FakequeryparamwithjsoncontenttypeGetResponses.EndpointFakequeryparamwithjsoncontenttypeGetCode200Response) response; -FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## QueryParamWithJsonContentTypeOperation -public interface QueryParamWithJsonContentTypeOperation
- -an interface that allows one to call the endpoint using a method named queryParamWithJsonContentType by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | queryParamWithJsonContentType([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetNullableRequest -public static class GetNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable QueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Get0RequestBuilder -public static class Get0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([FakequeryparamwithjsoncontenttypeGetQueryParametersQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md deleted file mode 100644 index da36f1e2a11..00000000000 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md +++ /dev/null @@ -1,274 +0,0 @@ -# FakequeryparamwithjsoncontenttypeGetQueryParameters -public class FakequeryparamwithjsoncontenttypeGetQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed)
sealed interface for validated payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1](#fakequeryparamwithjsoncontenttypegetqueryparameters1)
schema class | -| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed -public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed
-permits
-[FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap -public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap
-implements [FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakequeryparamwithjsoncontenttypeGetQueryParameters1 -public static class FakequeryparamwithjsoncontenttypeGetQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap validatedPayload = - FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( - new FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder() - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("someParam", [Schema0.Schema01.class](../../../paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "someParam"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMap0Builder -public class QueryParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(Void value) | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(boolean value) | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(String value) | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(int value) | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(float value) | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(long value) | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(double value) | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(List value) | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(Map value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| @Nullable Object | someParam()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md deleted file mode 100644 index 8d267310181..00000000000 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakequeryparamwithjsoncontenttypeGetResponses - -public class FakequeryparamwithjsoncontenttypeGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakequeryparamwithjsoncontenttypeGetCode200Response](#endpointfakequeryparamwithjsoncontenttypegetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakequeryparamwithjsoncontenttypeGetCode200Response](#endpointfakequeryparamwithjsoncontenttypegetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakequeryparamwithjsoncontenttypeGetCode200Response -public record EndpointFakequeryparamwithjsoncontenttypeGetCode200Response( - HttpResponse response, - [FakequeryparamwithjsoncontenttypeGetCode200Response.SealedResponseBody](../../../paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md deleted file mode 100644 index d2b7bf3b598..00000000000 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md +++ /dev/null @@ -1,144 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedVoid](#schema01boxedvoid)
boxed class to store validated null payloads | -| record | [Schema0.Schema01BoxedBoolean](#schema01boxedboolean)
boxed class to store validated boolean payloads | -| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | -| record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedVoid](#schema01boxedvoid), -[Schema01BoxedBoolean](#schema01boxedboolean), -[Schema01BoxedNumber](#schema01boxednumber), -[Schema01BoxedString](#schema01boxedstring), -[Schema01BoxedList](#schema01boxedlist), -[Schema01BoxedMap](#schema01boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedVoid -public record Schema01BoxedVoid
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01BoxedBoolean -public record Schema01BoxedBoolean
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01BoxedNumber -public record Schema01BoxedNumber
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01BoxedList -public record Schema01BoxedList
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01BoxedMap -public record Schema01BoxedMap
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md deleted file mode 100644 index 9ec99947bbf..00000000000 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakequeryparamwithjsoncontenttypeGetCode200Response - -public class FakequeryparamwithjsoncontenttypeGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakequeryparamwithjsoncontenttypeGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakequeryparamwithjsoncontenttypeGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakequeryparamwithjsoncontenttypeGetCode200Response.FakequeryparamwithjsoncontenttypeGetCode200Response1](#fakequeryparamwithjsoncontenttypegetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakequeryparamwithjsoncontenttypeGetCode200Response1 -public static class FakequeryparamwithjsoncontenttypeGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakequeryparamwithjsoncontenttypeGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md deleted file mode 100644 index 48816548d49..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md +++ /dev/null @@ -1,146 +0,0 @@ -# FakeredirectionGet - -public class FakeredirectionGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [RedirectionOperation](#redirectionoperation)
The interface that has a redirection method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode303Response; -import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode3XXResponse; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeredirection.FakeredirectionGet; -import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeredirectionGet.Get apiClient = new FakeredirectionGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakeredirectionGet.GetRequestBuilder().build(); - -FakeredirectionGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -if (response instanceof FakeredirectionGetResponses.EndpointFakeredirectionGetCode3XXResponse castResponse) { -} else { - FakeredirectionGetResponses.EndpointFakeredirectionGetCode303Response castResponse = (FakeredirectionGetResponses.EndpointFakeredirectionGetCode303Response) response; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## RedirectionOperation -public interface RedirectionOperation
- -an interface that allows one to call the endpoint using a method named redirection by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | redirection([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md b/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md deleted file mode 100644 index 98e4c369709..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md +++ /dev/null @@ -1,40 +0,0 @@ -# FakeredirectionGetResponses - -public class FakeredirectionGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeredirectionGetCode3XXResponse](#endpointfakeredirectiongetcode3xxresponse)
the response for 3XX | -| record | [EndpointFakeredirectionGetCode303Response](#endpointfakeredirectiongetcode303response)
the response for 303 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeredirectionGetCode3XXResponse](#endpointfakeredirectiongetcode3xxresponse), -[EndpointFakeredirectionGetCode303Response](#endpointfakeredirectiongetcode303response) - -a sealed interface that stores endpoint responses - -## EndpointFakeredirectionGetCode3XXResponse -public record EndpointFakeredirectionGetCode3XXResponse( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - -## EndpointFakeredirectionGetCode303Response -public record EndpointFakeredirectionGetCode303Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.md b/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.md deleted file mode 100644 index 25474489f32..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# FakeredirectionGetCode303Response - -public class FakeredirectionGetCode303Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakeredirectionGetCode303Response.FakeredirectionGetCode303Response1](#fakeredirectiongetcode303response1)
class that deserializes responses | - -## FakeredirectionGetCode303Response1 -public static class FakeredirectionGetCode303Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeredirectionGetCode303Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.md b/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.md deleted file mode 100644 index f79a85bb494..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# FakeredirectionGetCode3XXResponse - -public class FakeredirectionGetCode3XXResponse - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakeredirectionGetCode3XXResponse.FakeredirectionGetCode3XXResponse1](#fakeredirectiongetcode3xxresponse1)
class that deserializes responses | - -## FakeredirectionGetCode3XXResponse1 -public static class FakeredirectionGetCode3XXResponse1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeredirectionGetCode3XXResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md deleted file mode 100644 index 5e51c24f147..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md +++ /dev/null @@ -1,145 +0,0 @@ -# FakerefobjinqueryGet - -public class FakerefobjinqueryGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [RefObjectInQueryOperation](#refobjectinqueryoperation)
The interface that has a refObjectInQuery method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.FakerefobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefobjinquery.FakerefobjinqueryGet; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefobjinqueryGet.Get apiClient = new FakerefobjinqueryGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakerefobjinqueryGet.GetRequestBuilder().build(); - -FakerefobjinqueryGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response castResponse = (FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## RefObjectInQueryOperation -public interface RefObjectInQueryOperation
- -an interface that allows one to call the endpoint using a method named refObjectInQuery by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | refObjectInQuery([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefobjinqueryGetQueryParameters.@Nullable QueryParametersMap](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#queryparametersmap) | queryParameters
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakerefobjinqueryGetQueryParametersQueryParametersMap](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md deleted file mode 100644 index 4929ddf41e2..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md +++ /dev/null @@ -1,258 +0,0 @@ -# FakerefobjinqueryGetQueryParameters -public class FakerefobjinqueryGetQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed)
sealed interface for validated payloads | -| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1](#fakerefobjinquerygetqueryparameters1)
schema class | -| static class | [FakerefobjinqueryGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [FakerefobjinqueryGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FakerefobjinqueryGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FakerefobjinqueryGetQueryParameters1Boxed -public sealed interface FakerefobjinqueryGetQueryParameters1Boxed
-permits
-[FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FakerefobjinqueryGetQueryParameters1BoxedMap -public record FakerefobjinqueryGetQueryParameters1BoxedMap
-implements [FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefobjinqueryGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FakerefobjinqueryGetQueryParameters1 -public static class FakerefobjinqueryGetQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FakerefobjinqueryGetQueryParameters.QueryParametersMap validatedPayload = - FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1.validate( - new FakerefobjinqueryGetQueryParameters.QueryParametersMapBuilder() - .mapBean( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "bar", - "a" - ) - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("mapBean", [Foo.Foo1.class](../../../components/schemas/Foo.md#foo1))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map>` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map> | build()
Returns map input that should be used with Schema.validate | -| [QueryParametersMapBuilder](#queryparametersmapbuilder) | mapBean(Map value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Foo.FooMap](../../../components/schemas/Foo.md#foomap) | mapBean()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md deleted file mode 100644 index 304f571b661..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakerefobjinqueryGetResponses - -public class FakerefobjinqueryGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakerefobjinqueryGetCode200Response](#endpointfakerefobjinquerygetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakerefobjinqueryGetCode200Response](#endpointfakerefobjinquerygetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakerefobjinqueryGetCode200Response -public record EndpointFakerefobjinqueryGetCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md deleted file mode 100644 index 22b82242cfb..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,19 +0,0 @@ -# Schema0 -public class Schema0
-extends [Foo1](../../../components/schemas/Foo.md#foo) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01 -public static class Schema01
-extends [Foo.Foo1](../../../components/schemas/Foo.md#foo1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.md deleted file mode 100644 index 01ca962f7f5..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FakerefobjinqueryGetCode200Response - -public class FakerefobjinqueryGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakerefobjinqueryGetCode200Response.FakerefobjinqueryGetCode200Response1](#fakerefobjinquerygetcode200response1)
class that deserializes responses | - -## FakerefobjinqueryGetCode200Response1 -public static class FakerefobjinqueryGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md deleted file mode 100644 index 40c24be58c1..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakerefsarraymodelPost - -public class FakerefsarraymodelPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [ArrayModelOperation](#arraymodeloperation)
The interface that has a arrayModel method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; -import org.openapijsonschematools.client.components.schemas.AnimalFarm; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.FakerefsarraymodelPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.FakerefsarraymodelPost; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsarraymodelPost.Post apiClient = new FakerefsarraymodelPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakerefsarraymodelPost.PostRequestBuilder().build(); - -FakerefsarraymodelPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakerefsarraymodelPostResponses.EndpointFakerefsarraymodelPostCode200Response castResponse = (FakerefsarraymodelPostResponses.EndpointFakerefsarraymodelPostCode200Response) response; -FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## ArrayModelOperation -public interface ArrayModelOperation
- -an interface that allows one to call the endpoint using a method named arrayModel by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | arrayModel([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefsarraymodelPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsarraymodelPostRequestBody.SealedRequestBody](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md deleted file mode 100644 index b0185b64bfb..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsarraymodelPostRequestBody - -public class FakerefsarraymodelPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsarraymodelPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsarraymodelPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsarraymodelPostRequestBody.FakerefsarraymodelPostRequestBody1](#fakerefsarraymodelpostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsarraymodelPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsarraymodelPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakerefsarraymodelPostRequestBody1 -public static class FakerefsarraymodelPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsarraymodelPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[AnimalFarm1Boxed](../../../components/schemas/AnimalFarm.md#animalfarm1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[AnimalFarm1Boxed](../../../components/schemas/AnimalFarm.md#animalfarm1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md deleted file mode 100644 index b6954fefd6a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakerefsarraymodelPostResponses - -public class FakerefsarraymodelPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakerefsarraymodelPostCode200Response](#endpointfakerefsarraymodelpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakerefsarraymodelPostCode200Response](#endpointfakerefsarraymodelpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakerefsarraymodelPostCode200Response -public record EndpointFakerefsarraymodelPostCode200Response( - HttpResponse response, - [FakerefsarraymodelPostCode200Response.SealedResponseBody](../../../paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1418728fbd4..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [AnimalFarm1](../../../../../../components/schemas/AnimalFarm.md#animalfarm) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [AnimalFarm.AnimalFarm1](../../../../../../components/schemas/AnimalFarm.md#animalfarm1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md deleted file mode 100644 index 1642d910d0d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakerefsarraymodelPostCode200Response - -public class FakerefsarraymodelPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsarraymodelPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsarraymodelPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakerefsarraymodelPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakerefsarraymodelPostCode200Response.FakerefsarraymodelPostCode200Response1](#fakerefsarraymodelpostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[AnimalFarm1Boxed](../../../../components/schemas/AnimalFarm.md#animalfarm1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[AnimalFarm1Boxed](../../../../components/schemas/AnimalFarm.md#animalfarm1boxed) | body()
returns the body passed in in the constructor | - -## FakerefsarraymodelPostCode200Response1 -public static class FakerefsarraymodelPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsarraymodelPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index f4786efc35d..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [AnimalFarm1](../../../../../../../components/schemas/AnimalFarm.md#animalfarm) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [AnimalFarm.AnimalFarm1](../../../../../../../components/schemas/AnimalFarm.md#animalfarm1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md deleted file mode 100644 index eb95d25e876..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakerefsarrayofenumsPost - -public class FakerefsarrayofenumsPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [ArrayOfEnumsOperation](#arrayofenumsoperation)
The interface that has a arrayOfEnums method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; -import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.FakerefsarrayofenumsPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.FakerefsarrayofenumsPost; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsarrayofenumsPost.Post apiClient = new FakerefsarrayofenumsPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakerefsarrayofenumsPost.PostRequestBuilder().build(); - -FakerefsarrayofenumsPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakerefsarrayofenumsPostResponses.EndpointFakerefsarrayofenumsPostCode200Response castResponse = (FakerefsarrayofenumsPostResponses.EndpointFakerefsarrayofenumsPostCode200Response) response; -FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## ArrayOfEnumsOperation -public interface ArrayOfEnumsOperation
- -an interface that allows one to call the endpoint using a method named arrayOfEnums by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | arrayOfEnums([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefsarrayofenumsPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsarrayofenumsPostRequestBody.SealedRequestBody](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md deleted file mode 100644 index 985f2555e68..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsarrayofenumsPostRequestBody - -public class FakerefsarrayofenumsPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsarrayofenumsPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsarrayofenumsPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsarrayofenumsPostRequestBody.FakerefsarrayofenumsPostRequestBody1](#fakerefsarrayofenumspostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsarrayofenumsPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsarrayofenumsPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakerefsarrayofenumsPostRequestBody1 -public static class FakerefsarrayofenumsPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsarrayofenumsPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md deleted file mode 100644 index 45c6dbc66be..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakerefsarrayofenumsPostResponses - -public class FakerefsarrayofenumsPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakerefsarrayofenumsPostCode200Response](#endpointfakerefsarrayofenumspostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakerefsarrayofenumsPostCode200Response](#endpointfakerefsarrayofenumspostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakerefsarrayofenumsPostCode200Response -public record EndpointFakerefsarrayofenumsPostCode200Response( - HttpResponse response, - [FakerefsarrayofenumsPostCode200Response.SealedResponseBody](../../../paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index c49c361c228..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ArrayOfEnums1](../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ArrayOfEnums.ArrayOfEnums1](../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md deleted file mode 100644 index 0fac3a28e7a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakerefsarrayofenumsPostCode200Response - -public class FakerefsarrayofenumsPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsarrayofenumsPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsarrayofenumsPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakerefsarrayofenumsPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakerefsarrayofenumsPostCode200Response.FakerefsarrayofenumsPostCode200Response1](#fakerefsarrayofenumspostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) | body()
returns the body passed in in the constructor | - -## FakerefsarrayofenumsPostCode200Response1 -public static class FakerefsarrayofenumsPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsarrayofenumsPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 82450aa4900..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ArrayOfEnums1](../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ArrayOfEnums.ArrayOfEnums1](../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md deleted file mode 100644 index 14aaf0ebbbf..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakerefsbooleanPost - -public class FakerefsbooleanPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [ModelBooleanOperation](#modelbooleanoperation)
The interface that has a modelBoolean method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; -import org.openapijsonschematools.client.components.schemas.BooleanSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.FakerefsbooleanPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsboolean.FakerefsbooleanPost; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsbooleanPost.Post apiClient = new FakerefsbooleanPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakerefsbooleanPost.PostRequestBuilder().build(); - -FakerefsbooleanPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakerefsbooleanPostResponses.EndpointFakerefsbooleanPostCode200Response castResponse = (FakerefsbooleanPostResponses.EndpointFakerefsbooleanPostCode200Response) response; -FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## ModelBooleanOperation -public interface ModelBooleanOperation
- -an interface that allows one to call the endpoint using a method named modelBoolean by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | modelBoolean([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefsbooleanPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsbooleanPostRequestBody.SealedRequestBody](../../paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md deleted file mode 100644 index a03b0522105..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsbooleanPostRequestBody - -public class FakerefsbooleanPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsbooleanPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsbooleanPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsbooleanPostRequestBody.FakerefsbooleanPostRequestBody1](#fakerefsbooleanpostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsbooleanPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsbooleanPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakerefsbooleanPostRequestBody1 -public static class FakerefsbooleanPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsbooleanPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.BooleanJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md deleted file mode 100644 index 6a39490ec8f..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakerefsbooleanPostResponses - -public class FakerefsbooleanPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakerefsbooleanPostCode200Response](#endpointfakerefsbooleanpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakerefsbooleanPostCode200Response](#endpointfakerefsbooleanpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakerefsbooleanPostCode200Response -public record EndpointFakerefsbooleanPostCode200Response( - HttpResponse response, - [FakerefsbooleanPostCode200Response.SealedResponseBody](../../../paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index d0446d3d804..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [BooleanSchema1](../../../../../../components/schemas/BooleanSchema.md#booleanschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [BooleanSchema.BooleanSchema1](../../../../../../components/schemas/BooleanSchema.md#booleanschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md deleted file mode 100644 index c85cd66f858..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakerefsbooleanPostCode200Response - -public class FakerefsbooleanPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsbooleanPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsbooleanPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakerefsbooleanPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakerefsbooleanPostCode200Response.FakerefsbooleanPostCode200Response1](#fakerefsbooleanpostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.BooleanJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakerefsbooleanPostCode200Response1 -public static class FakerefsbooleanPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsbooleanPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1694ac4a00a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [BooleanSchema1](../../../../../../../components/schemas/BooleanSchema.md#booleanschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [BooleanSchema.BooleanSchema1](../../../../../../../components/schemas/BooleanSchema.md#booleanschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md deleted file mode 100644 index 81b3b672f7a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakerefscomposedoneofnumberwithvalidationsPost - -public class FakerefscomposedoneofnumberwithvalidationsPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [ComposedOneOfDifferentTypesOperation](#composedoneofdifferenttypesoperation)
The interface that has a composedOneOfDifferentTypes method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; -import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.FakerefscomposedoneofnumberwithvalidationsPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.FakerefscomposedoneofnumberwithvalidationsPost; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefscomposedoneofnumberwithvalidationsPost.Post apiClient = new FakerefscomposedoneofnumberwithvalidationsPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakerefscomposedoneofnumberwithvalidationsPost.PostRequestBuilder().build(); - -FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response castResponse = (FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response) response; -FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## ComposedOneOfDifferentTypesOperation -public interface ComposedOneOfDifferentTypesOperation
- -an interface that allows one to call the endpoint using a method named composedOneOfDifferentTypes by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | composedOneOfDifferentTypes([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedRequestBody](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md deleted file mode 100644 index f93cdc72bd3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefscomposedoneofnumberwithvalidationsPostRequestBody - -public class FakerefscomposedoneofnumberwithvalidationsPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.FakerefscomposedoneofnumberwithvalidationsPostRequestBody1](#fakerefscomposedoneofnumberwithvalidationspostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakerefscomposedoneofnumberwithvalidationsPostRequestBody1 -public static class FakerefscomposedoneofnumberwithvalidationsPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefscomposedoneofnumberwithvalidationsPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md deleted file mode 100644 index e692dc2a79f..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakerefscomposedoneofnumberwithvalidationsPostResponses - -public class FakerefscomposedoneofnumberwithvalidationsPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response](#endpointfakerefscomposedoneofnumberwithvalidationspostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response](#endpointfakerefscomposedoneofnumberwithvalidationspostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response -public record EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response( - HttpResponse response, - [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.SealedResponseBody](../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 6d15e5f1438..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ComposedOneOfDifferentTypes1](../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md deleted file mode 100644 index 9ba53ab13ea..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakerefscomposedoneofnumberwithvalidationsPostCode200Response - -public class FakerefscomposedoneofnumberwithvalidationsPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.FakerefscomposedoneofnumberwithvalidationsPostCode200Response1](#fakerefscomposedoneofnumberwithvalidationspostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) | body()
returns the body passed in in the constructor | - -## FakerefscomposedoneofnumberwithvalidationsPostCode200Response1 -public static class FakerefscomposedoneofnumberwithvalidationsPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefscomposedoneofnumberwithvalidationsPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 1e3738551c2..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ComposedOneOfDifferentTypes1](../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md deleted file mode 100644 index f202f5d00e2..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakerefsenumPost - -public class FakerefsenumPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [StringEnumOperation](#stringenumoperation)
The interface that has a stringEnum method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; -import org.openapijsonschematools.client.components.schemas.StringEnum; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.FakerefsenumPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsenum.FakerefsenumPost; -import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsenumPost.Post apiClient = new FakerefsenumPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakerefsenumPost.PostRequestBuilder().build(); - -FakerefsenumPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakerefsenumPostResponses.EndpointFakerefsenumPostCode200Response castResponse = (FakerefsenumPostResponses.EndpointFakerefsenumPostCode200Response) response; -FakerefsenumPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsenumPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## StringEnumOperation -public interface StringEnumOperation
- -an interface that allows one to call the endpoint using a method named stringEnum by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | stringEnum([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefsenumPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsenum/post/FakerefsenumPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsenumPostRequestBody.SealedRequestBody](../../paths/fakerefsenum/post/FakerefsenumPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md deleted file mode 100644 index 37075fb26b1..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsenumPostRequestBody - -public class FakerefsenumPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsenumPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsenumPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsenumPostRequestBody.FakerefsenumPostRequestBody1](#fakerefsenumpostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsenumPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsenumPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakerefsenumPostRequestBody1 -public static class FakerefsenumPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsenumPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[StringEnum1Boxed](../../../components/schemas/StringEnum.md#stringenum1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[StringEnum1Boxed](../../../components/schemas/StringEnum.md#stringenum1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md deleted file mode 100644 index 90cd1977718..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakerefsenumPostResponses - -public class FakerefsenumPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakerefsenumPostCode200Response](#endpointfakerefsenumpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakerefsenumPostCode200Response](#endpointfakerefsenumpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakerefsenumPostCode200Response -public record EndpointFakerefsenumPostCode200Response( - HttpResponse response, - [FakerefsenumPostCode200Response.SealedResponseBody](../../../paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index d83adaf246f..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [StringEnum1](../../../../../../components/schemas/StringEnum.md#stringenum) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [StringEnum.StringEnum1](../../../../../../components/schemas/StringEnum.md#stringenum1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md deleted file mode 100644 index b5f96c362a3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakerefsenumPostCode200Response - -public class FakerefsenumPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsenumPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsenumPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakerefsenumPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakerefsenumPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakerefsenumPostCode200Response.FakerefsenumPostCode200Response1](#fakerefsenumpostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[StringEnum1Boxed](../../../../components/schemas/StringEnum.md#stringenum1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[StringEnum1Boxed](../../../../components/schemas/StringEnum.md#stringenum1boxed) | body()
returns the body passed in in the constructor | - -## FakerefsenumPostCode200Response1 -public static class FakerefsenumPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsenumPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 2ac02fd09b9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [StringEnum1](../../../../../../../components/schemas/StringEnum.md#stringenum) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [StringEnum.StringEnum1](../../../../../../../components/schemas/StringEnum.md#stringenum1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md deleted file mode 100644 index 46a3c32b0a6..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md +++ /dev/null @@ -1,179 +0,0 @@ -# FakerefsmammalPost - -public class FakerefsmammalPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [MammalOperation](#mammaloperation)
The interface that has a mammal method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; -import org.openapijsonschematools.client.components.schemas.Mammal; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.FakerefsmammalPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsmammal.FakerefsmammalPost; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsmammalPost.Post apiClient = new FakerefsmammalPost.Post(apiConfiguration, schemaConfiguration); - -FakerefsmammalPost.SealedRequestBody requestBody = new FakerefsmammalPost.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new FakerefsmammalPost.PostRequestBuilder() - .requestBody(requestBody) - .build(); - -FakerefsmammalPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakerefsmammalPostResponses.EndpointFakerefsmammalPostCode200Response castResponse = (FakerefsmammalPostResponses.EndpointFakerefsmammalPostCode200Response) response; -FakerefsmammalPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsmammalPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## MammalOperation -public interface MammalOperation
- -an interface that allows one to call the endpoint using a method named mammal by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | mammal([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefsmammalPostRequestBody.SealedRequestBody](../../paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefsmammalPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([FakerefsmammalPostRequestBody.SealedRequestBody](../../paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md deleted file mode 100644 index c690512c787..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsmammalPostRequestBody - -public class FakerefsmammalPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsmammalPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsmammalPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsmammalPostRequestBody.FakerefsmammalPostRequestBody1](#fakerefsmammalpostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsmammalPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsmammalPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakerefsmammalPostRequestBody1 -public static class FakerefsmammalPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsmammalPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = true
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[Mammal1Boxed](../../../components/schemas/Mammal.md#mammal1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[Mammal1Boxed](../../../components/schemas/Mammal.md#mammal1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md deleted file mode 100644 index 7f56fbe1cc0..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakerefsmammalPostResponses - -public class FakerefsmammalPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakerefsmammalPostCode200Response](#endpointfakerefsmammalpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakerefsmammalPostCode200Response](#endpointfakerefsmammalpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakerefsmammalPostCode200Response -public record EndpointFakerefsmammalPostCode200Response( - HttpResponse response, - [FakerefsmammalPostCode200Response.SealedResponseBody](../../../paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index b1b525d94da..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Mammal1](../../../../../../components/schemas/Mammal.md#mammal) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Mammal.Mammal1](../../../../../../components/schemas/Mammal.md#mammal1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md deleted file mode 100644 index efd2fc83196..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakerefsmammalPostCode200Response - -public class FakerefsmammalPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsmammalPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsmammalPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakerefsmammalPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakerefsmammalPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakerefsmammalPostCode200Response.FakerefsmammalPostCode200Response1](#fakerefsmammalpostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Mammal1Boxed](../../../../components/schemas/Mammal.md#mammal1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[Mammal1Boxed](../../../../components/schemas/Mammal.md#mammal1boxed) | body()
returns the body passed in in the constructor | - -## FakerefsmammalPostCode200Response1 -public static class FakerefsmammalPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsmammalPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index f0a5b53544f..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Mammal1](../../../../../../../components/schemas/Mammal.md#mammal) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Mammal.Mammal1](../../../../../../../components/schemas/Mammal.md#mammal1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md deleted file mode 100644 index 68d8e5e3687..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakerefsnumberPost - -public class FakerefsnumberPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [NumberWithValidationsOperation](#numberwithvalidationsoperation)
The interface that has a numberWithValidations method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; -import org.openapijsonschematools.client.components.schemas.NumberWithValidations; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.FakerefsnumberPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsnumber.FakerefsnumberPost; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsnumberPost.Post apiClient = new FakerefsnumberPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakerefsnumberPost.PostRequestBuilder().build(); - -FakerefsnumberPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakerefsnumberPostResponses.EndpointFakerefsnumberPostCode200Response castResponse = (FakerefsnumberPostResponses.EndpointFakerefsnumberPostCode200Response) response; -FakerefsnumberPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsnumberPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## NumberWithValidationsOperation -public interface NumberWithValidationsOperation
- -an interface that allows one to call the endpoint using a method named numberWithValidations by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | numberWithValidations([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefsnumberPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsnumberPostRequestBody.SealedRequestBody](../../paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md deleted file mode 100644 index b17bef8adae..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsnumberPostRequestBody - -public class FakerefsnumberPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsnumberPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsnumberPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsnumberPostRequestBody.FakerefsnumberPostRequestBody1](#fakerefsnumberpostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsnumberPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsnumberPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakerefsnumberPostRequestBody1 -public static class FakerefsnumberPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsnumberPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md deleted file mode 100644 index 210666926f6..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakerefsnumberPostResponses - -public class FakerefsnumberPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakerefsnumberPostCode200Response](#endpointfakerefsnumberpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakerefsnumberPostCode200Response](#endpointfakerefsnumberpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakerefsnumberPostCode200Response -public record EndpointFakerefsnumberPostCode200Response( - HttpResponse response, - [FakerefsnumberPostCode200Response.SealedResponseBody](../../../paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index a6a485e5657..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [NumberWithValidations1](../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [NumberWithValidations.NumberWithValidations1](../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md deleted file mode 100644 index 872b78c9847..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakerefsnumberPostCode200Response - -public class FakerefsnumberPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsnumberPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsnumberPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakerefsnumberPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakerefsnumberPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakerefsnumberPostCode200Response.FakerefsnumberPostCode200Response1](#fakerefsnumberpostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) | body()
returns the body passed in in the constructor | - -## FakerefsnumberPostCode200Response1 -public static class FakerefsnumberPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsnumberPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index a903474b2ee..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [NumberWithValidations1](../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [NumberWithValidations.NumberWithValidations1](../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md deleted file mode 100644 index de47405e4ff..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakerefsobjectmodelwithrefpropsPost - -public class FakerefsobjectmodelwithrefpropsPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [ObjectModelWithRefPropsOperation](#objectmodelwithrefpropsoperation)
The interface that has a objectModelWithRefProps method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; -import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.FakerefsobjectmodelwithrefpropsPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.FakerefsobjectmodelwithrefpropsPost; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsobjectmodelwithrefpropsPost.Post apiClient = new FakerefsobjectmodelwithrefpropsPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakerefsobjectmodelwithrefpropsPost.PostRequestBuilder().build(); - -FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakerefsobjectmodelwithrefpropsPostResponses.EndpointFakerefsobjectmodelwithrefpropsPostCode200Response castResponse = (FakerefsobjectmodelwithrefpropsPostResponses.EndpointFakerefsobjectmodelwithrefpropsPostCode200Response) response; -FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## ObjectModelWithRefPropsOperation -public interface ObjectModelWithRefPropsOperation
- -an interface that allows one to call the endpoint using a method named objectModelWithRefProps by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | objectModelWithRefProps([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefsobjectmodelwithrefpropsPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsobjectmodelwithrefpropsPostRequestBody.SealedRequestBody](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md deleted file mode 100644 index e0846150c44..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsobjectmodelwithrefpropsPostRequestBody - -public class FakerefsobjectmodelwithrefpropsPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsobjectmodelwithrefpropsPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsobjectmodelwithrefpropsPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsobjectmodelwithrefpropsPostRequestBody.FakerefsobjectmodelwithrefpropsPostRequestBody1](#fakerefsobjectmodelwithrefpropspostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsobjectmodelwithrefpropsPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsobjectmodelwithrefpropsPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakerefsobjectmodelwithrefpropsPostRequestBody1 -public static class FakerefsobjectmodelwithrefpropsPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsobjectmodelwithrefpropsPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md deleted file mode 100644 index 27e6230d866..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakerefsobjectmodelwithrefpropsPostResponses - -public class FakerefsobjectmodelwithrefpropsPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakerefsobjectmodelwithrefpropsPostCode200Response](#endpointfakerefsobjectmodelwithrefpropspostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakerefsobjectmodelwithrefpropsPostCode200Response](#endpointfakerefsobjectmodelwithrefpropspostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakerefsobjectmodelwithrefpropsPostCode200Response -public record EndpointFakerefsobjectmodelwithrefpropsPostCode200Response( - HttpResponse response, - [FakerefsobjectmodelwithrefpropsPostCode200Response.SealedResponseBody](../../../paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 0cdc2140e3a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ObjectModelWithRefProps1](../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ObjectModelWithRefProps.ObjectModelWithRefProps1](../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md deleted file mode 100644 index 920816b5528..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakerefsobjectmodelwithrefpropsPostCode200Response - -public class FakerefsobjectmodelwithrefpropsPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsobjectmodelwithrefpropsPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakerefsobjectmodelwithrefpropsPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakerefsobjectmodelwithrefpropsPostCode200Response.FakerefsobjectmodelwithrefpropsPostCode200Response1](#fakerefsobjectmodelwithrefpropspostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) | body()
returns the body passed in in the constructor | - -## FakerefsobjectmodelwithrefpropsPostCode200Response1 -public static class FakerefsobjectmodelwithrefpropsPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsobjectmodelwithrefpropsPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 495e07e6094..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ObjectModelWithRefProps1](../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ObjectModelWithRefProps.ObjectModelWithRefProps1](../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md deleted file mode 100644 index 89b5e8c92a4..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakerefsstringPost - -public class FakerefsstringPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [ModelStringOperation](#modelstringoperation)
The interface that has a modelString method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; -import org.openapijsonschematools.client.components.schemas.StringSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.FakerefsstringPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsstring.FakerefsstringPost; -import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakerefsstringPost.Post apiClient = new FakerefsstringPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakerefsstringPost.PostRequestBuilder().build(); - -FakerefsstringPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakerefsstringPostResponses.EndpointFakerefsstringPostCode200Response castResponse = (FakerefsstringPostResponses.EndpointFakerefsstringPostCode200Response) response; -FakerefsstringPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsstringPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## ModelStringOperation -public interface ModelStringOperation
- -an interface that allows one to call the endpoint using a method named modelString by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | modelString([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakerefsstringPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsstring/post/FakerefsstringPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsstringPostRequestBody.SealedRequestBody](../../paths/fakerefsstring/post/FakerefsstringPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md deleted file mode 100644 index d9351381bcf..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakerefsstringPostRequestBody - -public class FakerefsstringPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsstringPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsstringPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakerefsstringPostRequestBody.FakerefsstringPostRequestBody1](#fakerefsstringpostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakerefsstringPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakerefsstringPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakerefsstringPostRequestBody1 -public static class FakerefsstringPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsstringPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.StringJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md deleted file mode 100644 index dc00e6ebc01..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakerefsstringPostResponses - -public class FakerefsstringPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakerefsstringPostCode200Response](#endpointfakerefsstringpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakerefsstringPostCode200Response](#endpointfakerefsstringpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakerefsstringPostCode200Response -public record EndpointFakerefsstringPostCode200Response( - HttpResponse response, - [FakerefsstringPostCode200Response.SealedResponseBody](../../../paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index abe4f0713c9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [StringSchema1](../../../../../../components/schemas/StringSchema.md#stringschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [StringSchema.StringSchema1](../../../../../../components/schemas/StringSchema.md#stringschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md deleted file mode 100644 index d01efb93215..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakerefsstringPostCode200Response - -public class FakerefsstringPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakerefsstringPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakerefsstringPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakerefsstringPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakerefsstringPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakerefsstringPostCode200Response.FakerefsstringPostCode200Response1](#fakerefsstringpostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakerefsstringPostCode200Response1 -public static class FakerefsstringPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakerefsstringPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 8fadd779761..00000000000 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [StringSchema1](../../../../../../../components/schemas/StringSchema.md#stringschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [StringSchema.StringSchema1](../../../../../../../components/schemas/StringSchema.md#stringschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md deleted file mode 100644 index 4ff109d72d3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md +++ /dev/null @@ -1,142 +0,0 @@ -# FakeresponsewithoutschemaGet - -public class FakeresponsewithoutschemaGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [ResponseWithoutSchemaOperation](#responsewithoutschemaoperation)
The interface that has a responseWithoutSchema method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.FakeresponsewithoutschemaGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.FakeresponsewithoutschemaGet; -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeresponsewithoutschemaGet.Get apiClient = new FakeresponsewithoutschemaGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakeresponsewithoutschemaGet.GetRequestBuilder().build(); - -FakeresponsewithoutschemaGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode200Response castResponse = (FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## ResponseWithoutSchemaOperation -public interface ResponseWithoutSchemaOperation
- -an interface that allows one to call the endpoint using a method named responseWithoutSchema by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | responseWithoutSchema([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md deleted file mode 100644 index 0927c61dc2a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeresponsewithoutschemaGetResponses - -public class FakeresponsewithoutschemaGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeresponsewithoutschemaGetCode200Response](#endpointfakeresponsewithoutschemagetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeresponsewithoutschemaGetCode200Response](#endpointfakeresponsewithoutschemagetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeresponsewithoutschemaGetCode200Response -public record EndpointFakeresponsewithoutschemaGetCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md deleted file mode 100644 index 79949c77d66..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# FakeresponsewithoutschemaGetCode200Response - -public class FakeresponsewithoutschemaGetCode200Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FakeresponsewithoutschemaGetCode200Response.FakeresponsewithoutschemaGetCode200Response1](#fakeresponsewithoutschemagetcode200response1)
class that deserializes responses | - -## FakeresponsewithoutschemaGetCode200Response1 -public static class FakeresponsewithoutschemaGetCode200Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeresponsewithoutschemaGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
    new AbstractMap.SimpleEntry<>("application/json", null),
    new AbstractMap.SimpleEntry<>("application/xml", null)
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md deleted file mode 100644 index 39603298e1f..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md +++ /dev/null @@ -1,210 +0,0 @@ -# FaketestqueryparamtersPut - -public class FaketestqueryparamtersPut - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Put](#put)
The class that has a put method to call the endpoint | -| interface | [QueryParameterCollectionFormatOperation](#queryparametercollectionformatoperation)
The interface that has a queryParameterCollectionFormat method to call the endpoint | -| static class | [PutRequest](#putrequest)
The final request inputs class | -| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | -| static class | [Put0RequestBuilder](#put0requestbuilder)
A builder for the request input class | -| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | - -## Put -public static class Put extends ApiClient.ApiClient1 implements PutOperation
- -a class that allows one to call the endpoint using a method named put - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.FaketestqueryparamtersPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.faketestqueryparamters.FaketestqueryparamtersPut; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FaketestqueryparamtersPut.Put apiClient = new FaketestqueryparamtersPut.Put(apiConfiguration, schemaConfiguration); - - -// Map validation -FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters = - FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( - new FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder() - .context( - Arrays.asList( - "a" - ) - ) - .http( - Arrays.asList( - "a" - ) - ) - .ioutil( - Arrays.asList( - "a" - ) - ) - .pipe( - Arrays.asList( - "a" - ) - ) - .refParam("a") - - .url( - Arrays.asList( - "a" - ) - ) - .build(), - schemaConfiguration -); - -var request = new FaketestqueryparamtersPut.PutRequestBuilder() - .queryParameters(queryParameters) - .build(); - -FaketestqueryparamtersPutResponses.EndpointResponse response; -try { - response = apiClient.put(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Response castResponse = (FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | - -## QueryParameterCollectionFormatOperation -public interface QueryParameterCollectionFormatOperation
- -an interface that allows one to call the endpoint using a method named queryParameterCollectionFormat by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | queryParameterCollectionFormat([PutRequest](#putrequest) request) | - -## PutRequest -public static class PutRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FaketestqueryparamtersPutQueryParameters.QueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PutNullableRequest -public static class PutNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FaketestqueryparamtersPutQueryParameters.@Nullable QueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Put0RequestBuilder -public static class Put0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put0RequestBuilder(Put0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PutRequestBuilder -public static class PutRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PutRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FaketestqueryparamtersPutQueryParametersQueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md deleted file mode 100644 index f2fb841bf9f..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md +++ /dev/null @@ -1,1419 +0,0 @@ -# FaketestqueryparamtersPutQueryParameters -public class FaketestqueryparamtersPutQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed)
sealed interface for validated payloads | -| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1](#faketestqueryparamtersputqueryparameters1)
schema class | -| static class | [FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [FaketestqueryparamtersPutQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FaketestqueryparamtersPutQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## FaketestqueryparamtersPutQueryParameters1Boxed -public sealed interface FaketestqueryparamtersPutQueryParameters1Boxed
-permits
-[FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FaketestqueryparamtersPutQueryParameters1BoxedMap -public record FaketestqueryparamtersPutQueryParameters1BoxedMap
-implements [FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FaketestqueryparamtersPutQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FaketestqueryparamtersPutQueryParameters1 -public static class FaketestqueryparamtersPutQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FaketestqueryparamtersPutQueryParameters.QueryParametersMap validatedPayload = - FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( - new FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder() - .context( - Arrays.asList( - "a" - ) - ) - .http( - Arrays.asList( - "a" - ) - ) - .ioutil( - Arrays.asList( - "a" - ) - ) - .pipe( - Arrays.asList( - "a" - ) - ) - .refParam("a") - - .url( - Arrays.asList( - "a" - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("refParam", [StringWithValidation.StringWithValidation1.class](../../../components/schemas/StringWithValidation.md#stringwithvalidation1)),
    new PropertyEntry("ioutil", [Schema1.Schema11.class](../../../paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("context", [Schema4.Schema41.class](../../../paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("http", [Schema2.Schema21.class](../../../paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("pipe", [Schema0.Schema01.class](../../../paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("url", [Schema3.Schema31.class](../../../paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md#schema31))
)
| -| Set | required = Set.of(
    "context",
    "http",
    "ioutil",
    "pipe",
    "refParam",
    "url"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMap000000Builder -public class QueryParametersMap000000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap000000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## QueryParametersMap000001Builder -public class QueryParametersMap000001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap000001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | url(List value) | - -## QueryParametersMap000010Builder -public class QueryParametersMap000010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap000010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | refParam(String value) | - -## QueryParametersMap000011Builder -public class QueryParametersMap000011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap000011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | refParam(String value) | -| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | url(List value) | - -## QueryParametersMap000100Builder -public class QueryParametersMap000100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap000100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | pipe(List value) | - -## QueryParametersMap000101Builder -public class QueryParametersMap000101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap000101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | pipe(List value) | -| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | url(List value) | - -## QueryParametersMap000110Builder -public class QueryParametersMap000110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap000110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | pipe(List value) | -| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | refParam(String value) | - -## QueryParametersMap000111Builder -public class QueryParametersMap000111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap000111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | pipe(List value) | -| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | refParam(String value) | -| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | url(List value) | - -## QueryParametersMap001000Builder -public class QueryParametersMap001000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap001000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | ioutil(List value) | - -## QueryParametersMap001001Builder -public class QueryParametersMap001001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap001001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | ioutil(List value) | -| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | url(List value) | - -## QueryParametersMap001010Builder -public class QueryParametersMap001010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap001010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | ioutil(List value) | -| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | refParam(String value) | - -## QueryParametersMap001011Builder -public class QueryParametersMap001011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap001011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | ioutil(List value) | -| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | refParam(String value) | -| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | url(List value) | - -## QueryParametersMap001100Builder -public class QueryParametersMap001100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap001100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | ioutil(List value) | -| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | pipe(List value) | - -## QueryParametersMap001101Builder -public class QueryParametersMap001101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap001101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | ioutil(List value) | -| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | pipe(List value) | -| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | url(List value) | - -## QueryParametersMap001110Builder -public class QueryParametersMap001110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap001110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | ioutil(List value) | -| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | pipe(List value) | -| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | refParam(String value) | - -## QueryParametersMap001111Builder -public class QueryParametersMap001111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap001111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000111Builder](#queryparametersmap000111builder) | ioutil(List value) | -| [QueryParametersMap001011Builder](#queryparametersmap001011builder) | pipe(List value) | -| [QueryParametersMap001101Builder](#queryparametersmap001101builder) | refParam(String value) | -| [QueryParametersMap001110Builder](#queryparametersmap001110builder) | url(List value) | - -## QueryParametersMap010000Builder -public class QueryParametersMap010000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap010000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | http(List value) | - -## QueryParametersMap010001Builder -public class QueryParametersMap010001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap010001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | http(List value) | -| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | url(List value) | - -## QueryParametersMap010010Builder -public class QueryParametersMap010010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap010010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | http(List value) | -| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | refParam(String value) | - -## QueryParametersMap010011Builder -public class QueryParametersMap010011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap010011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | http(List value) | -| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | refParam(String value) | -| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | url(List value) | - -## QueryParametersMap010100Builder -public class QueryParametersMap010100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap010100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | http(List value) | -| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | pipe(List value) | - -## QueryParametersMap010101Builder -public class QueryParametersMap010101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap010101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | http(List value) | -| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | pipe(List value) | -| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | url(List value) | - -## QueryParametersMap010110Builder -public class QueryParametersMap010110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap010110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | http(List value) | -| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | pipe(List value) | -| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | refParam(String value) | - -## QueryParametersMap010111Builder -public class QueryParametersMap010111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap010111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000111Builder](#queryparametersmap000111builder) | http(List value) | -| [QueryParametersMap010011Builder](#queryparametersmap010011builder) | pipe(List value) | -| [QueryParametersMap010101Builder](#queryparametersmap010101builder) | refParam(String value) | -| [QueryParametersMap010110Builder](#queryparametersmap010110builder) | url(List value) | - -## QueryParametersMap011000Builder -public class QueryParametersMap011000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap011000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | http(List value) | -| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | ioutil(List value) | - -## QueryParametersMap011001Builder -public class QueryParametersMap011001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap011001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | http(List value) | -| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | ioutil(List value) | -| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | url(List value) | - -## QueryParametersMap011010Builder -public class QueryParametersMap011010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap011010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | http(List value) | -| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | ioutil(List value) | -| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | refParam(String value) | - -## QueryParametersMap011011Builder -public class QueryParametersMap011011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap011011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001011Builder](#queryparametersmap001011builder) | http(List value) | -| [QueryParametersMap010011Builder](#queryparametersmap010011builder) | ioutil(List value) | -| [QueryParametersMap011001Builder](#queryparametersmap011001builder) | refParam(String value) | -| [QueryParametersMap011010Builder](#queryparametersmap011010builder) | url(List value) | - -## QueryParametersMap011100Builder -public class QueryParametersMap011100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap011100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | http(List value) | -| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | ioutil(List value) | -| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | pipe(List value) | - -## QueryParametersMap011101Builder -public class QueryParametersMap011101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap011101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001101Builder](#queryparametersmap001101builder) | http(List value) | -| [QueryParametersMap010101Builder](#queryparametersmap010101builder) | ioutil(List value) | -| [QueryParametersMap011001Builder](#queryparametersmap011001builder) | pipe(List value) | -| [QueryParametersMap011100Builder](#queryparametersmap011100builder) | url(List value) | - -## QueryParametersMap011110Builder -public class QueryParametersMap011110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap011110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001110Builder](#queryparametersmap001110builder) | http(List value) | -| [QueryParametersMap010110Builder](#queryparametersmap010110builder) | ioutil(List value) | -| [QueryParametersMap011010Builder](#queryparametersmap011010builder) | pipe(List value) | -| [QueryParametersMap011100Builder](#queryparametersmap011100builder) | refParam(String value) | - -## QueryParametersMap011111Builder -public class QueryParametersMap011111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap011111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001111Builder](#queryparametersmap001111builder) | http(List value) | -| [QueryParametersMap010111Builder](#queryparametersmap010111builder) | ioutil(List value) | -| [QueryParametersMap011011Builder](#queryparametersmap011011builder) | pipe(List value) | -| [QueryParametersMap011101Builder](#queryparametersmap011101builder) | refParam(String value) | -| [QueryParametersMap011110Builder](#queryparametersmap011110builder) | url(List value) | - -## QueryParametersMap100000Builder -public class QueryParametersMap100000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap100000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | context(List value) | - -## QueryParametersMap100001Builder -public class QueryParametersMap100001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap100001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | context(List value) | -| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | url(List value) | - -## QueryParametersMap100010Builder -public class QueryParametersMap100010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap100010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | context(List value) | -| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | refParam(String value) | - -## QueryParametersMap100011Builder -public class QueryParametersMap100011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap100011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | context(List value) | -| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | refParam(String value) | -| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | url(List value) | - -## QueryParametersMap100100Builder -public class QueryParametersMap100100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap100100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | context(List value) | -| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | pipe(List value) | - -## QueryParametersMap100101Builder -public class QueryParametersMap100101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap100101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | context(List value) | -| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | pipe(List value) | -| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | url(List value) | - -## QueryParametersMap100110Builder -public class QueryParametersMap100110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap100110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | context(List value) | -| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | pipe(List value) | -| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | refParam(String value) | - -## QueryParametersMap100111Builder -public class QueryParametersMap100111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap100111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap000111Builder](#queryparametersmap000111builder) | context(List value) | -| [QueryParametersMap100011Builder](#queryparametersmap100011builder) | pipe(List value) | -| [QueryParametersMap100101Builder](#queryparametersmap100101builder) | refParam(String value) | -| [QueryParametersMap100110Builder](#queryparametersmap100110builder) | url(List value) | - -## QueryParametersMap101000Builder -public class QueryParametersMap101000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap101000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | context(List value) | -| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | ioutil(List value) | - -## QueryParametersMap101001Builder -public class QueryParametersMap101001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap101001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | context(List value) | -| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | ioutil(List value) | -| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | url(List value) | - -## QueryParametersMap101010Builder -public class QueryParametersMap101010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap101010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | context(List value) | -| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | ioutil(List value) | -| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | refParam(String value) | - -## QueryParametersMap101011Builder -public class QueryParametersMap101011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap101011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001011Builder](#queryparametersmap001011builder) | context(List value) | -| [QueryParametersMap100011Builder](#queryparametersmap100011builder) | ioutil(List value) | -| [QueryParametersMap101001Builder](#queryparametersmap101001builder) | refParam(String value) | -| [QueryParametersMap101010Builder](#queryparametersmap101010builder) | url(List value) | - -## QueryParametersMap101100Builder -public class QueryParametersMap101100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap101100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | context(List value) | -| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | ioutil(List value) | -| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | pipe(List value) | - -## QueryParametersMap101101Builder -public class QueryParametersMap101101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap101101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001101Builder](#queryparametersmap001101builder) | context(List value) | -| [QueryParametersMap100101Builder](#queryparametersmap100101builder) | ioutil(List value) | -| [QueryParametersMap101001Builder](#queryparametersmap101001builder) | pipe(List value) | -| [QueryParametersMap101100Builder](#queryparametersmap101100builder) | url(List value) | - -## QueryParametersMap101110Builder -public class QueryParametersMap101110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap101110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001110Builder](#queryparametersmap001110builder) | context(List value) | -| [QueryParametersMap100110Builder](#queryparametersmap100110builder) | ioutil(List value) | -| [QueryParametersMap101010Builder](#queryparametersmap101010builder) | pipe(List value) | -| [QueryParametersMap101100Builder](#queryparametersmap101100builder) | refParam(String value) | - -## QueryParametersMap101111Builder -public class QueryParametersMap101111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap101111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap001111Builder](#queryparametersmap001111builder) | context(List value) | -| [QueryParametersMap100111Builder](#queryparametersmap100111builder) | ioutil(List value) | -| [QueryParametersMap101011Builder](#queryparametersmap101011builder) | pipe(List value) | -| [QueryParametersMap101101Builder](#queryparametersmap101101builder) | refParam(String value) | -| [QueryParametersMap101110Builder](#queryparametersmap101110builder) | url(List value) | - -## QueryParametersMap110000Builder -public class QueryParametersMap110000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap110000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | context(List value) | -| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | http(List value) | - -## QueryParametersMap110001Builder -public class QueryParametersMap110001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap110001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | context(List value) | -| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | http(List value) | -| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | url(List value) | - -## QueryParametersMap110010Builder -public class QueryParametersMap110010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap110010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | context(List value) | -| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | http(List value) | -| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | refParam(String value) | - -## QueryParametersMap110011Builder -public class QueryParametersMap110011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap110011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap010011Builder](#queryparametersmap010011builder) | context(List value) | -| [QueryParametersMap100011Builder](#queryparametersmap100011builder) | http(List value) | -| [QueryParametersMap110001Builder](#queryparametersmap110001builder) | refParam(String value) | -| [QueryParametersMap110010Builder](#queryparametersmap110010builder) | url(List value) | - -## QueryParametersMap110100Builder -public class QueryParametersMap110100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap110100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | context(List value) | -| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | http(List value) | -| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | pipe(List value) | - -## QueryParametersMap110101Builder -public class QueryParametersMap110101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap110101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap010101Builder](#queryparametersmap010101builder) | context(List value) | -| [QueryParametersMap100101Builder](#queryparametersmap100101builder) | http(List value) | -| [QueryParametersMap110001Builder](#queryparametersmap110001builder) | pipe(List value) | -| [QueryParametersMap110100Builder](#queryparametersmap110100builder) | url(List value) | - -## QueryParametersMap110110Builder -public class QueryParametersMap110110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap110110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap010110Builder](#queryparametersmap010110builder) | context(List value) | -| [QueryParametersMap100110Builder](#queryparametersmap100110builder) | http(List value) | -| [QueryParametersMap110010Builder](#queryparametersmap110010builder) | pipe(List value) | -| [QueryParametersMap110100Builder](#queryparametersmap110100builder) | refParam(String value) | - -## QueryParametersMap110111Builder -public class QueryParametersMap110111Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap110111Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap010111Builder](#queryparametersmap010111builder) | context(List value) | -| [QueryParametersMap100111Builder](#queryparametersmap100111builder) | http(List value) | -| [QueryParametersMap110011Builder](#queryparametersmap110011builder) | pipe(List value) | -| [QueryParametersMap110101Builder](#queryparametersmap110101builder) | refParam(String value) | -| [QueryParametersMap110110Builder](#queryparametersmap110110builder) | url(List value) | - -## QueryParametersMap111000Builder -public class QueryParametersMap111000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap111000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | context(List value) | -| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | http(List value) | -| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | ioutil(List value) | - -## QueryParametersMap111001Builder -public class QueryParametersMap111001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap111001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap011001Builder](#queryparametersmap011001builder) | context(List value) | -| [QueryParametersMap101001Builder](#queryparametersmap101001builder) | http(List value) | -| [QueryParametersMap110001Builder](#queryparametersmap110001builder) | ioutil(List value) | -| [QueryParametersMap111000Builder](#queryparametersmap111000builder) | url(List value) | - -## QueryParametersMap111010Builder -public class QueryParametersMap111010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap111010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap011010Builder](#queryparametersmap011010builder) | context(List value) | -| [QueryParametersMap101010Builder](#queryparametersmap101010builder) | http(List value) | -| [QueryParametersMap110010Builder](#queryparametersmap110010builder) | ioutil(List value) | -| [QueryParametersMap111000Builder](#queryparametersmap111000builder) | refParam(String value) | - -## QueryParametersMap111011Builder -public class QueryParametersMap111011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap111011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap011011Builder](#queryparametersmap011011builder) | context(List value) | -| [QueryParametersMap101011Builder](#queryparametersmap101011builder) | http(List value) | -| [QueryParametersMap110011Builder](#queryparametersmap110011builder) | ioutil(List value) | -| [QueryParametersMap111001Builder](#queryparametersmap111001builder) | refParam(String value) | -| [QueryParametersMap111010Builder](#queryparametersmap111010builder) | url(List value) | - -## QueryParametersMap111100Builder -public class QueryParametersMap111100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap111100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap011100Builder](#queryparametersmap011100builder) | context(List value) | -| [QueryParametersMap101100Builder](#queryparametersmap101100builder) | http(List value) | -| [QueryParametersMap110100Builder](#queryparametersmap110100builder) | ioutil(List value) | -| [QueryParametersMap111000Builder](#queryparametersmap111000builder) | pipe(List value) | - -## QueryParametersMap111101Builder -public class QueryParametersMap111101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap111101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap011101Builder](#queryparametersmap011101builder) | context(List value) | -| [QueryParametersMap101101Builder](#queryparametersmap101101builder) | http(List value) | -| [QueryParametersMap110101Builder](#queryparametersmap110101builder) | ioutil(List value) | -| [QueryParametersMap111001Builder](#queryparametersmap111001builder) | pipe(List value) | -| [QueryParametersMap111100Builder](#queryparametersmap111100builder) | url(List value) | - -## QueryParametersMap111110Builder -public class QueryParametersMap111110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap111110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap011110Builder](#queryparametersmap011110builder) | context(List value) | -| [QueryParametersMap101110Builder](#queryparametersmap101110builder) | http(List value) | -| [QueryParametersMap110110Builder](#queryparametersmap110110builder) | ioutil(List value) | -| [QueryParametersMap111010Builder](#queryparametersmap111010builder) | pipe(List value) | -| [QueryParametersMap111100Builder](#queryparametersmap111100builder) | refParam(String value) | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap011111Builder](#queryparametersmap011111builder) | context(List value) | -| [QueryParametersMap101111Builder](#queryparametersmap101111builder) | http(List value) | -| [QueryParametersMap110111Builder](#queryparametersmap110111builder) | ioutil(List value) | -| [QueryParametersMap111011Builder](#queryparametersmap111011builder) | pipe(List value) | -| [QueryParametersMap111101Builder](#queryparametersmap111101builder) | refParam(String value) | -| [QueryParametersMap111110Builder](#queryparametersmap111110builder) | url(List value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Schema4.SchemaList4](../../../paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md#schemalist4) | context()
| -| [Schema2.SchemaList2](../../../paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md#schemalist2) | http()
| -| [Schema1.SchemaList1](../../../paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md#schemalist1) | ioutil()
| -| [Schema0.SchemaList0](../../../paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md#schemalist0) | pipe()
| -| String | refParam()
| -| [Schema3.SchemaList3](../../../paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md#schemalist3) | url()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md deleted file mode 100644 index 2107a4d5471..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FaketestqueryparamtersPutResponses - -public class FaketestqueryparamtersPutResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFaketestqueryparamtersPutCode200Response](#endpointfaketestqueryparamtersputcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFaketestqueryparamtersPutCode200Response](#endpointfaketestqueryparamtersputcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFaketestqueryparamtersPutCode200Response -public record EndpointFaketestqueryparamtersPutCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md deleted file mode 100644 index a4efd071e64..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,156 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | -| static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | -| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Items0](#items0)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedList](#schema01boxedlist) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedList -public record Schema01BoxedList
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedList([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter0.Schema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -Schema0.SchemaList0 validatedPayload = - Schema0.Schema01.validate( - new Schema0.SchemaListBuilder0() - .add("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [Items0.class](#items0) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | -| [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | -| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaListBuilder0 -public class SchemaListBuilder0
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaListBuilder0()
Creates an empty list | -| SchemaListBuilder0(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SchemaListBuilder0 | add(String item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## SchemaList0 -public class SchemaList0
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | - -## Items0Boxed -public sealed interface Items0Boxed
-permits
-[Items0BoxedString](#items0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Items0BoxedString -public record Items0BoxedString
-implements [Items0Boxed](#items0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Items0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Items0 -public static class Items0
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md deleted file mode 100644 index d0d8efab32e..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md +++ /dev/null @@ -1,156 +0,0 @@ -# Schema1 -public class Schema1
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | -| record | [Schema1.Schema11BoxedList](#schema11boxedlist)
boxed class to store validated List payloads | -| static class | [Schema1.Schema11](#schema11)
schema class | -| static class | [Schema1.SchemaListBuilder1](#schemalistbuilder1)
builder for List payloads | -| static class | [Schema1.SchemaList1](#schemalist1)
output class for List payloads | -| sealed interface | [Schema1.Items1Boxed](#items1boxed)
sealed interface for validated payloads | -| record | [Schema1.Items1BoxedString](#items1boxedstring)
boxed class to store validated String payloads | -| static class | [Schema1.Items1](#items1)
schema class | - -## Schema11Boxed -public sealed interface Schema11Boxed
-permits
-[Schema11BoxedList](#schema11boxedlist) - -sealed interface that stores validated payloads using boxed classes - -## Schema11BoxedList -public record Schema11BoxedList
-implements [Schema11Boxed](#schema11boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema11BoxedList([SchemaList1](#schemalist1) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList1](#schemalist1) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema11 -public static class Schema11
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter1.Schema1; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -Schema1.SchemaList1 validatedPayload = - Schema1.Schema11.validate( - new Schema1.SchemaListBuilder1() - .add("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [Items1.class](#items1) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList1](#schemalist1) | validate([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | -| [Schema11BoxedList](#schema11boxedlist) | validateAndBox([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | -| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaListBuilder1 -public class SchemaListBuilder1
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaListBuilder1()
Creates an empty list | -| SchemaListBuilder1(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SchemaListBuilder1 | add(String item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## SchemaList1 -public class SchemaList1
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaList1](#schemalist1) | of([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | - -## Items1Boxed -public sealed interface Items1Boxed
-permits
-[Items1BoxedString](#items1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Items1BoxedString -public record Items1BoxedString
-implements [Items1Boxed](#items1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Items1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Items1 -public static class Items1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md deleted file mode 100644 index 3357a64749a..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md +++ /dev/null @@ -1,156 +0,0 @@ -# Schema2 -public class Schema2
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | -| record | [Schema2.Schema21BoxedList](#schema21boxedlist)
boxed class to store validated List payloads | -| static class | [Schema2.Schema21](#schema21)
schema class | -| static class | [Schema2.SchemaListBuilder2](#schemalistbuilder2)
builder for List payloads | -| static class | [Schema2.SchemaList2](#schemalist2)
output class for List payloads | -| sealed interface | [Schema2.Items2Boxed](#items2boxed)
sealed interface for validated payloads | -| record | [Schema2.Items2BoxedString](#items2boxedstring)
boxed class to store validated String payloads | -| static class | [Schema2.Items2](#items2)
schema class | - -## Schema21Boxed -public sealed interface Schema21Boxed
-permits
-[Schema21BoxedList](#schema21boxedlist) - -sealed interface that stores validated payloads using boxed classes - -## Schema21BoxedList -public record Schema21BoxedList
-implements [Schema21Boxed](#schema21boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema21BoxedList([SchemaList2](#schemalist2) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList2](#schemalist2) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema21 -public static class Schema21
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter2.Schema2; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -Schema2.SchemaList2 validatedPayload = - Schema2.Schema21.validate( - new Schema2.SchemaListBuilder2() - .add("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [Items2.class](#items2) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList2](#schemalist2) | validate([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | -| [Schema21BoxedList](#schema21boxedlist) | validateAndBox([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | -| [Schema21Boxed](#schema21boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaListBuilder2 -public class SchemaListBuilder2
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaListBuilder2()
Creates an empty list | -| SchemaListBuilder2(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SchemaListBuilder2 | add(String item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## SchemaList2 -public class SchemaList2
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaList2](#schemalist2) | of([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | - -## Items2Boxed -public sealed interface Items2Boxed
-permits
-[Items2BoxedString](#items2boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Items2BoxedString -public record Items2BoxedString
-implements [Items2Boxed](#items2boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Items2BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Items2 -public static class Items2
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md deleted file mode 100644 index cede783379d..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md +++ /dev/null @@ -1,156 +0,0 @@ -# Schema3 -public class Schema3
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | -| record | [Schema3.Schema31BoxedList](#schema31boxedlist)
boxed class to store validated List payloads | -| static class | [Schema3.Schema31](#schema31)
schema class | -| static class | [Schema3.SchemaListBuilder3](#schemalistbuilder3)
builder for List payloads | -| static class | [Schema3.SchemaList3](#schemalist3)
output class for List payloads | -| sealed interface | [Schema3.Items3Boxed](#items3boxed)
sealed interface for validated payloads | -| record | [Schema3.Items3BoxedString](#items3boxedstring)
boxed class to store validated String payloads | -| static class | [Schema3.Items3](#items3)
schema class | - -## Schema31Boxed -public sealed interface Schema31Boxed
-permits
-[Schema31BoxedList](#schema31boxedlist) - -sealed interface that stores validated payloads using boxed classes - -## Schema31BoxedList -public record Schema31BoxedList
-implements [Schema31Boxed](#schema31boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema31BoxedList([SchemaList3](#schemalist3) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList3](#schemalist3) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema31 -public static class Schema31
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter3.Schema3; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -Schema3.SchemaList3 validatedPayload = - Schema3.Schema31.validate( - new Schema3.SchemaListBuilder3() - .add("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [Items3.class](#items3) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList3](#schemalist3) | validate([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | -| [Schema31BoxedList](#schema31boxedlist) | validateAndBox([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | -| [Schema31Boxed](#schema31boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaListBuilder3 -public class SchemaListBuilder3
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaListBuilder3()
Creates an empty list | -| SchemaListBuilder3(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SchemaListBuilder3 | add(String item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## SchemaList3 -public class SchemaList3
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaList3](#schemalist3) | of([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | - -## Items3Boxed -public sealed interface Items3Boxed
-permits
-[Items3BoxedString](#items3boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Items3BoxedString -public record Items3BoxedString
-implements [Items3Boxed](#items3boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Items3BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Items3 -public static class Items3
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md deleted file mode 100644 index 17c3da4dab2..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md +++ /dev/null @@ -1,156 +0,0 @@ -# Schema4 -public class Schema4
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | -| record | [Schema4.Schema41BoxedList](#schema41boxedlist)
boxed class to store validated List payloads | -| static class | [Schema4.Schema41](#schema41)
schema class | -| static class | [Schema4.SchemaListBuilder4](#schemalistbuilder4)
builder for List payloads | -| static class | [Schema4.SchemaList4](#schemalist4)
output class for List payloads | -| sealed interface | [Schema4.Items4Boxed](#items4boxed)
sealed interface for validated payloads | -| record | [Schema4.Items4BoxedString](#items4boxedstring)
boxed class to store validated String payloads | -| static class | [Schema4.Items4](#items4)
schema class | - -## Schema41Boxed -public sealed interface Schema41Boxed
-permits
-[Schema41BoxedList](#schema41boxedlist) - -sealed interface that stores validated payloads using boxed classes - -## Schema41BoxedList -public record Schema41BoxedList
-implements [Schema41Boxed](#schema41boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema41BoxedList([SchemaList4](#schemalist4) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList4](#schemalist4) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema41 -public static class Schema41
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter4.Schema4; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -Schema4.SchemaList4 validatedPayload = - Schema4.Schema41.validate( - new Schema4.SchemaListBuilder4() - .add("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [Items4.class](#items4) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList4](#schemalist4) | validate([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | -| [Schema41BoxedList](#schema41boxedlist) | validateAndBox([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | -| [Schema41Boxed](#schema41boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaListBuilder4 -public class SchemaListBuilder4
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaListBuilder4()
Creates an empty list | -| SchemaListBuilder4(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SchemaListBuilder4 | add(String item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## SchemaList4 -public class SchemaList4
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaList4](#schemalist4) | of([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | - -## Items4Boxed -public sealed interface Items4Boxed
-permits
-[Items4BoxedString](#items4boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Items4BoxedString -public record Items4BoxedString
-implements [Items4Boxed](#items4boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Items4BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Items4 -public static class Items4
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md deleted file mode 100644 index f566af62cf0..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md +++ /dev/null @@ -1,19 +0,0 @@ -# Schema5 -public class Schema5
-extends [StringWithValidation1](../../../components/schemas/StringWithValidation.md#stringwithvalidation) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [Schema5.Schema51](#schema51)
schema class | - -## Schema51 -public static class Schema51
-extends [StringWithValidation.StringWithValidation1](../../../components/schemas/StringWithValidation.md#stringwithvalidation1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.md deleted file mode 100644 index 078eb74fdbe..00000000000 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FaketestqueryparamtersPutCode200Response - -public class FaketestqueryparamtersPutCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FaketestqueryparamtersPutCode200Response.FaketestqueryparamtersPutCode200Response1](#faketestqueryparamtersputcode200response1)
class that deserializes responses | - -## FaketestqueryparamtersPutCode200Response1 -public static class FaketestqueryparamtersPutCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md deleted file mode 100644 index 11391db5f7a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md +++ /dev/null @@ -1,184 +0,0 @@ -# FakeuploaddownloadfilePost - -public class FakeuploaddownloadfilePost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [UploadDownloadFileOperation](#uploaddownloadfileoperation)
The interface that has a uploadDownloadFile method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream.ApplicationoctetstreamSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.FakeuploaddownloadfilePostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.FakeuploaddownloadfilePost; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeuploaddownloadfilePost.Post apiClient = new FakeuploaddownloadfilePost.Post(apiConfiguration, schemaConfiguration); - - -ApplicationoctetstreamSchema1BoxedString requestBodyPayload = ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.validateAndBox( - "a", - schemaConfiguration -); -FakeuploaddownloadfilePost.SealedRequestBody requestBody = new FakeuploaddownloadfilePost.ApplicationoctetstreamRequestBody(requestBodyPayload); - -var request = new FakeuploaddownloadfilePost.PostRequestBuilder() - .requestBody(requestBody) - .build(); - -FakeuploaddownloadfilePostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeuploaddownloadfilePostResponses.EndpointFakeuploaddownloadfilePostCode200Response castResponse = (FakeuploaddownloadfilePostResponses.EndpointFakeuploaddownloadfilePostCode200Response) response; -FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody deserializedBody = (FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## UploadDownloadFileOperation -public interface UploadDownloadFileOperation
- -an interface that allows one to call the endpoint using a method named uploadDownloadFile by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | uploadDownloadFile([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeuploaddownloadfilePostRequestBody.SealedRequestBody](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeuploaddownloadfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([FakeuploaddownloadfilePostRequestBody.SealedRequestBody](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md deleted file mode 100644 index 42fa7a21828..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeuploaddownloadfilePostRequestBody - -public class FakeuploaddownloadfilePostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeuploaddownloadfilePostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeuploaddownloadfilePostRequestBody.ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeuploaddownloadfilePostRequestBody.FakeuploaddownloadfilePostRequestBody1](#fakeuploaddownloadfilepostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeuploaddownloadfilePostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeuploaddownloadfilePostRequestBody.ApplicationoctetstreamRequestBody](#applicationoctetstreamrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationoctetstreamMediaType](#applicationoctetstreammediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationoctetstreamMediaType -public record ApplicationoctetstreamMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationoctetstreamMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakeuploaddownloadfilePostRequestBody1 -public static class FakeuploaddownloadfilePostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeuploaddownloadfilePostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = true
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/octet-stream", new [ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationoctetstreamRequestBody](#applicationoctetstreamrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationoctetstreamRequestBody -public record ApplicationoctetstreamRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/octet-stream" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationoctetstreamRequestBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/octet-stream" | -| ApplicationoctetstreamSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md deleted file mode 100644 index f5e6266e68f..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeuploaddownloadfilePostResponses - -public class FakeuploaddownloadfilePostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeuploaddownloadfilePostCode200Response](#endpointfakeuploaddownloadfilepostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeuploaddownloadfilePostCode200Response](#endpointfakeuploaddownloadfilepostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeuploaddownloadfilePostCode200Response -public record EndpointFakeuploaddownloadfilePostCode200Response( - HttpResponse response, - [FakeuploaddownloadfilePostCode200Response.SealedResponseBody](../../../paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md deleted file mode 100644 index 757329e0634..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md +++ /dev/null @@ -1,28 +0,0 @@ -# ApplicationoctetstreamSchema -public class ApplicationoctetstreamSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
sealed interface for validated payloads | -| static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | - -## ApplicationoctetstreamSchema1Boxed -public sealed interface ApplicationoctetstreamSchema1Boxed
-permits
- -sealed interface that stores validated payloads using boxed classes - -## ApplicationoctetstreamSchema1 -public static class ApplicationoctetstreamSchema1
-extends JsonSchema - -A schema class that validates payloads - -## Description -file to upload diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md deleted file mode 100644 index 3a7e22da29c..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakeuploaddownloadfilePostCode200Response - -public class FakeuploaddownloadfilePostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeuploaddownloadfilePostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakeuploaddownloadfilePostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody](#applicationoctetstreamresponsebody)
implements sealed interface to store response body | -| static class | [FakeuploaddownloadfilePostCode200Response.FakeuploaddownloadfilePostCode200Response1](#fakeuploaddownloadfilepostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationoctetstreamMediaType](#applicationoctetstreammediatype) - -sealed interface that stores schema and encoding info - -## ApplicationoctetstreamMediaType -public record ApplicationoctetstreamMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../../paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationoctetstreamMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../../paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationoctetstreamResponseBody](#applicationoctetstreamresponsebody) - -sealed interface that stores response body - -## ApplicationoctetstreamResponseBody -public record ApplicationoctetstreamResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/octet-stream" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationoctetstreamResponseBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationoctetstreamSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakeuploaddownloadfilePostCode200Response1 -public static class FakeuploaddownloadfilePostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeuploaddownloadfilePostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/octet-stream", new [ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md deleted file mode 100644 index c1498d3a5a3..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md +++ /dev/null @@ -1,28 +0,0 @@ -# ApplicationoctetstreamSchema -public class ApplicationoctetstreamSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
sealed interface for validated payloads | -| static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | - -## ApplicationoctetstreamSchema1Boxed -public sealed interface ApplicationoctetstreamSchema1Boxed
-permits
- -sealed interface that stores validated payloads using boxed classes - -## ApplicationoctetstreamSchema1 -public static class ApplicationoctetstreamSchema1
-extends JsonSchema - -A schema class that validates payloads - -## Description -file to download diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md deleted file mode 100644 index 748ecb3f9c2..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakeuploadfilePost - -public class FakeuploadfilePost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [UploadFileOperation](#uploadfileoperation)
The interface that has a uploadFile method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.FakeuploadfilePostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeuploadfile.FakeuploadfilePost; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeuploadfilePost.Post apiClient = new FakeuploadfilePost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakeuploadfilePost.PostRequestBuilder().build(); - -FakeuploadfilePostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeuploadfilePostResponses.EndpointFakeuploadfilePostCode200Response castResponse = (FakeuploadfilePostResponses.EndpointFakeuploadfilePostCode200Response) response; -FakeuploadfilePostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeuploadfilePostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## UploadFileOperation -public interface UploadFileOperation
- -an interface that allows one to call the endpoint using a method named uploadFile by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | uploadFile([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeuploadfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeuploadfilePostRequestBody.SealedRequestBody](../../paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md deleted file mode 100644 index eab07bac01a..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeuploadfilePostRequestBody - -public class FakeuploadfilePostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeuploadfilePostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeuploadfilePostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeuploadfilePostRequestBody.FakeuploadfilePostRequestBody1](#fakeuploadfilepostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeuploadfilePostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeuploadfilePostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[MultipartformdataMediaType](#multipartformdatamediatype) - -sealed interface that stores schema and encoding info - - -## MultipartformdataMediaType -public record MultipartformdataMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakeuploadfilePostRequestBody1 -public static class FakeuploadfilePostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeuploadfilePostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[MultipartformdataRequestBody](#multipartformdatarequestbody) - -sealed interface that stores request contentType + validated schema data - -## MultipartformdataRequestBody -public record MultipartformdataRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="multipart/form-data" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "multipart/form-data" | -| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md deleted file mode 100644 index 19391fd23db..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeuploadfilePostResponses - -public class FakeuploadfilePostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeuploadfilePostCode200Response](#endpointfakeuploadfilepostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeuploadfilePostCode200Response](#endpointfakeuploadfilepostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeuploadfilePostCode200Response -public record EndpointFakeuploadfilePostCode200Response( - HttpResponse response, - [FakeuploadfilePostCode200Response.SealedResponseBody](../../../paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md deleted file mode 100644 index 21d6b7a79c7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ /dev/null @@ -1,206 +0,0 @@ -# MultipartformdataSchema -public class MultipartformdataSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
sealed interface for validated payloads | -| static class | [MultipartformdataSchema.MultipartformdataFile](#multipartformdatafile)
schema class | -| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | -| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | - -## MultipartformdataSchema1Boxed -public sealed interface MultipartformdataSchema1Boxed
-permits
-[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSchema1BoxedMap -public record MultipartformdataSchema1BoxedMap
-implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSchema1 -public static class MultipartformdataSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = - MultipartformdataSchema.MultipartformdataSchema1.validate( - new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() - .file("a") - - .additionalMetadata("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("additionalMetadata", [MultipartformdataAdditionalMetadata.class](#multipartformdataadditionalmetadata))),
    new PropertyEntry("file", [MultipartformdataFile.class](#multipartformdatafile)))
)
| -| Set | required = Set.of(
    "file"
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## MultipartformdataSchemaMap0Builder -public class MultipartformdataSchemaMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalMetadata(String value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, Void value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, boolean value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, String value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, int value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, float value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, long value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, double value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, List value) | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, Map value) | - -## MultipartformdataSchemaMapBuilder -public class MultipartformdataSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | file(String value) | - -## MultipartformdataSchemaMap -public static class MultipartformdataSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| String | file()
| -| String | additionalMetadata()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## MultipartformdataFileBoxed -public sealed interface MultipartformdataFileBoxed
-permits
- -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataFile -public static class MultipartformdataFile
-extends JsonSchema - -A schema class that validates payloads - -## Description -file to upload - -## MultipartformdataAdditionalMetadataBoxed -public sealed interface MultipartformdataAdditionalMetadataBoxed
-permits
-[MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataAdditionalMetadataBoxedString -public record MultipartformdataAdditionalMetadataBoxedString
-implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataAdditionalMetadataBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataAdditionalMetadata -public static class MultipartformdataAdditionalMetadata
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -## Description -Additional data to pass to server - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md deleted file mode 100644 index 9d6a4abeeb9..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakeuploadfilePostCode200Response - -public class FakeuploadfilePostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeuploadfilePostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeuploadfilePostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakeuploadfilePostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakeuploadfilePostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakeuploadfilePostCode200Response.FakeuploadfilePostCode200Response1](#fakeuploadfilepostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | - -## FakeuploadfilePostCode200Response1 -public static class FakeuploadfilePostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeuploadfilePostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index bb60c5776fb..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md deleted file mode 100644 index d26a9b67cd4..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md +++ /dev/null @@ -1,148 +0,0 @@ -# FakeuploadfilesPost - -public class FakeuploadfilesPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [UploadFilesOperation](#uploadfilesoperation)
The interface that has a uploadFiles method to call the endpoint | -| static class | [PostRequest](#postrequest)
The request inputs class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.FakeuploadfilesPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakeuploadfiles.FakeuploadfilesPost; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakeuploadfilesPost.Post apiClient = new FakeuploadfilesPost.Post(apiConfiguration, schemaConfiguration); - - -var request = new FakeuploadfilesPost.PostRequestBuilder().build(); - -FakeuploadfilesPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FakeuploadfilesPostResponses.EndpointFakeuploadfilesPostCode200Response castResponse = (FakeuploadfilesPostResponses.EndpointFakeuploadfilesPostCode200Response) response; -FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## UploadFilesOperation -public interface UploadFilesOperation
- -an interface that allows one to call the endpoint using a method named uploadFiles by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | uploadFiles([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FakeuploadfilesPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeuploadfilesPostRequestBody.SealedRequestBody](../../paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [PostRequestBuilder](#postrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md deleted file mode 100644 index 9a0de54b7ef..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# FakeuploadfilesPostRequestBody - -public class FakeuploadfilesPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeuploadfilesPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeuploadfilesPostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [FakeuploadfilesPostRequestBody.FakeuploadfilesPostRequestBody1](#fakeuploadfilespostrequestbody1)
class that serializes request bodies | -| sealed interface | [FakeuploadfilesPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [FakeuploadfilesPostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[MultipartformdataMediaType](#multipartformdatamediatype) - -sealed interface that stores schema and encoding info - - -## MultipartformdataMediaType -public record MultipartformdataMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## FakeuploadfilesPostRequestBody1 -public static class FakeuploadfilesPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeuploadfilesPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[MultipartformdataRequestBody](#multipartformdatarequestbody) - -sealed interface that stores request contentType + validated schema data - -## MultipartformdataRequestBody -public record MultipartformdataRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="multipart/form-data" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "multipart/form-data" | -| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md deleted file mode 100644 index 711c48ffd60..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FakeuploadfilesPostResponses - -public class FakeuploadfilesPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakeuploadfilesPostCode200Response](#endpointfakeuploadfilespostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakeuploadfilesPostCode200Response](#endpointfakeuploadfilespostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointFakeuploadfilesPostCode200Response -public record EndpointFakeuploadfilesPostCode200Response( - HttpResponse response, - [FakeuploadfilesPostCode200Response.SealedResponseBody](../../../paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md deleted file mode 100644 index 64907a9f9cf..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ /dev/null @@ -1,252 +0,0 @@ -# MultipartformdataSchema -public class MultipartformdataSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataFilesBoxed](#multipartformdatafilesboxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist)
boxed class to store validated List payloads | -| static class | [MultipartformdataSchema.MultipartformdataFiles](#multipartformdatafiles)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataFilesListBuilder](#multipartformdatafileslistbuilder)
builder for List payloads | -| static class | [MultipartformdataSchema.MultipartformdataFilesList](#multipartformdatafileslist)
output class for List payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataItemsBoxed](#multipartformdataitemsboxed)
sealed interface for validated payloads | -| static class | [MultipartformdataSchema.MultipartformdataItems](#multipartformdataitems)
schema class | - -## MultipartformdataSchema1Boxed -public sealed interface MultipartformdataSchema1Boxed
-permits
-[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSchema1BoxedMap -public record MultipartformdataSchema1BoxedMap
-implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSchema1 -public static class MultipartformdataSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = - MultipartformdataSchema.MultipartformdataSchema1.validate( - new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() - .files( - Arrays.asList( - "a" - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("files", [MultipartformdataFiles.class](#multipartformdatafiles)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## MultipartformdataSchemaMapBuilder -public class MultipartformdataSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | files(List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | - -## MultipartformdataSchemaMap -public static class MultipartformdataSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataFilesList](#multipartformdatafileslist) | files()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## MultipartformdataFilesBoxed -public sealed interface MultipartformdataFilesBoxed
-permits
-[MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataFilesBoxedList -public record MultipartformdataFilesBoxedList
-implements [MultipartformdataFilesBoxed](#multipartformdatafilesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataFilesBoxedList([MultipartformdataFilesList](#multipartformdatafileslist) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataFilesList](#multipartformdatafileslist) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataFiles -public static class MultipartformdataFiles
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -MultipartformdataSchema.MultipartformdataFilesList validatedPayload = - MultipartformdataSchema.MultipartformdataFiles.validate( - new MultipartformdataSchema.MultipartformdataFilesListBuilder() - .add("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [MultipartformdataItems.class](#multipartformdataitems) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataFilesList](#multipartformdatafileslist) | validate([List](#multipartformdatafileslistbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist) | validateAndBox([List](#multipartformdatafileslistbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataFilesBoxed](#multipartformdatafilesboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## MultipartformdataFilesListBuilder -public class MultipartformdataFilesListBuilder
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataFilesListBuilder()
Creates an empty list | -| MultipartformdataFilesListBuilder(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| MultipartformdataFilesListBuilder | add(String item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## MultipartformdataFilesList -public class MultipartformdataFilesList
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [MultipartformdataFilesList](#multipartformdatafileslist) | of([List](#multipartformdatafileslistbuilder) arg, SchemaConfiguration configuration) | - -## MultipartformdataItemsBoxed -public sealed interface MultipartformdataItemsBoxed
-permits
- -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataItems -public static class MultipartformdataItems
-extends JsonSchema - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md deleted file mode 100644 index 995bbba0333..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakeuploadfilesPostCode200Response - -public class FakeuploadfilesPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakeuploadfilesPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakeuploadfilesPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakeuploadfilesPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakeuploadfilesPostCode200Response.FakeuploadfilesPostCode200Response1](#fakeuploadfilespostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | - -## FakeuploadfilesPostCode200Response1 -public static class FakeuploadfilesPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakeuploadfilesPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index bb60c5776fb..00000000000 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md deleted file mode 100644 index c7c901b699c..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md +++ /dev/null @@ -1,163 +0,0 @@ -# FakewildcardresponsesGet - -public class FakewildcardresponsesGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [WildCardResponsesOperation](#wildcardresponsesoperation)
The interface that has a wildCardResponses method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode1XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode200Response; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode2XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode3XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode4XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode5XXResponse; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.fakewildcardresponses.FakewildcardresponsesGet; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FakewildcardresponsesGet.Get apiClient = new FakewildcardresponsesGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FakewildcardresponsesGet.GetRequestBuilder().build(); - -FakewildcardresponsesGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (FakewildcardresponsesGetCode4XXResponse.ResponseApiException | FakewildcardresponsesGetCode5XXResponse.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -if (response instanceof FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode1XXResponse castResponse) { -FakewildcardresponsesGetCode1XXResponse.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode1XXResponse.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -} else if (response instanceof FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode2XXResponse castResponse) { -FakewildcardresponsesGetCode2XXResponse.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode2XXResponse.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -} else if (response instanceof FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode200Response castResponse) { -FakewildcardresponsesGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode200Response.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -} else { - FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode3XXResponse castResponse = (FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode3XXResponse) response; -FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## WildCardResponsesOperation -public interface WildCardResponsesOperation
- -an interface that allows one to call the endpoint using a method named wildCardResponses by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | wildCardResponses([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md deleted file mode 100644 index 9a356985f83..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md +++ /dev/null @@ -1,62 +0,0 @@ -# FakewildcardresponsesGetResponses - -public class FakewildcardresponsesGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFakewildcardresponsesGetCode1XXResponse](#endpointfakewildcardresponsesgetcode1xxresponse)
the response for 1XX | -| record | [EndpointFakewildcardresponsesGetCode2XXResponse](#endpointfakewildcardresponsesgetcode2xxresponse)
the response for 2XX | -| record | [EndpointFakewildcardresponsesGetCode200Response](#endpointfakewildcardresponsesgetcode200response)
the response for 200 | -| record | [EndpointFakewildcardresponsesGetCode3XXResponse](#endpointfakewildcardresponsesgetcode3xxresponse)
the response for 3XX | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFakewildcardresponsesGetCode1XXResponse](#endpointfakewildcardresponsesgetcode1xxresponse), -[EndpointFakewildcardresponsesGetCode2XXResponse](#endpointfakewildcardresponsesgetcode2xxresponse), -[EndpointFakewildcardresponsesGetCode200Response](#endpointfakewildcardresponsesgetcode200response), -[EndpointFakewildcardresponsesGetCode3XXResponse](#endpointfakewildcardresponsesgetcode3xxresponse) - -a sealed interface that stores endpoint responses - -## EndpointFakewildcardresponsesGetCode1XXResponse -public record EndpointFakewildcardresponsesGetCode1XXResponse( - HttpResponse response, - [FakewildcardresponsesGetCode1XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - -## EndpointFakewildcardresponsesGetCode2XXResponse -public record EndpointFakewildcardresponsesGetCode2XXResponse( - HttpResponse response, - [FakewildcardresponsesGetCode2XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - -## EndpointFakewildcardresponsesGetCode200Response -public record EndpointFakewildcardresponsesGetCode200Response( - HttpResponse response, - [FakewildcardresponsesGetCode200Response.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - -## EndpointFakewildcardresponsesGetCode3XXResponse -public record EndpointFakewildcardresponsesGetCode3XXResponse( - HttpResponse response, - [FakewildcardresponsesGetCode3XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md deleted file mode 100644 index 23636633dee..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakewildcardresponsesGetCode1XXResponse - -public class FakewildcardresponsesGetCode1XXResponse - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakewildcardresponsesGetCode1XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakewildcardresponsesGetCode1XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakewildcardresponsesGetCode1XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakewildcardresponsesGetCode1XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakewildcardresponsesGetCode1XXResponse.FakewildcardresponsesGetCode1XXResponse1](#fakewildcardresponsesgetcode1xxresponse1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakewildcardresponsesGetCode1XXResponse1 -public static class FakewildcardresponsesGetCode1XXResponse1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakewildcardresponsesGetCode1XXResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md deleted file mode 100644 index fa140c39b02..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakewildcardresponsesGetCode200Response - -public class FakewildcardresponsesGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakewildcardresponsesGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakewildcardresponsesGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakewildcardresponsesGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakewildcardresponsesGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakewildcardresponsesGetCode200Response.FakewildcardresponsesGetCode200Response1](#fakewildcardresponsesgetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakewildcardresponsesGetCode200Response1 -public static class FakewildcardresponsesGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakewildcardresponsesGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md deleted file mode 100644 index dc0e68874f8..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakewildcardresponsesGetCode2XXResponse - -public class FakewildcardresponsesGetCode2XXResponse - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakewildcardresponsesGetCode2XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakewildcardresponsesGetCode2XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakewildcardresponsesGetCode2XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakewildcardresponsesGetCode2XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakewildcardresponsesGetCode2XXResponse.FakewildcardresponsesGetCode2XXResponse1](#fakewildcardresponsesgetcode2xxresponse1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakewildcardresponsesGetCode2XXResponse1 -public static class FakewildcardresponsesGetCode2XXResponse1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakewildcardresponsesGetCode2XXResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md deleted file mode 100644 index bb7f367daab..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakewildcardresponsesGetCode3XXResponse - -public class FakewildcardresponsesGetCode3XXResponse - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakewildcardresponsesGetCode3XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakewildcardresponsesGetCode3XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakewildcardresponsesGetCode3XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakewildcardresponsesGetCode3XXResponse.FakewildcardresponsesGetCode3XXResponse1](#fakewildcardresponsesgetcode3xxresponse1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakewildcardresponsesGetCode3XXResponse1 -public static class FakewildcardresponsesGetCode3XXResponse1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakewildcardresponsesGetCode3XXResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md deleted file mode 100644 index a8fab3d2cf1..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakewildcardresponsesGetCode4XXResponse - -public class FakewildcardresponsesGetCode4XXResponse - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakewildcardresponsesGetCode4XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakewildcardresponsesGetCode4XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakewildcardresponsesGetCode4XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakewildcardresponsesGetCode4XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakewildcardresponsesGetCode4XXResponse.FakewildcardresponsesGetCode4XXResponse1](#fakewildcardresponsesgetcode4xxresponse1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakewildcardresponsesGetCode4XXResponse1 -public static class FakewildcardresponsesGetCode4XXResponse1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakewildcardresponsesGetCode4XXResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md deleted file mode 100644 index 4b06440cd06..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md +++ /dev/null @@ -1,87 +0,0 @@ -# FakewildcardresponsesGetCode5XXResponse - -public class FakewildcardresponsesGetCode5XXResponse - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FakewildcardresponsesGetCode5XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FakewildcardresponsesGetCode5XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FakewildcardresponsesGetCode5XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FakewildcardresponsesGetCode5XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FakewildcardresponsesGetCode5XXResponse.FakewildcardresponsesGetCode5XXResponse1](#fakewildcardresponsesgetcode5xxresponse1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## FakewildcardresponsesGetCode5XXResponse1 -public static class FakewildcardresponsesGetCode5XXResponse1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FakewildcardresponsesGetCode5XXResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 98eb062fdd7..00000000000 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,144 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), -[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), -[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), -[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), -[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), -[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedVoid -public record ApplicationjsonSchema1BoxedVoid
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedBoolean -public record ApplicationjsonSchema1BoxedBoolean
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedNumber -public record ApplicationjsonSchema1BoxedNumber
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedList -public record ApplicationjsonSchema1BoxedList
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends AnyTypeJsonSchema.AnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/foo/FooGet.md b/samples/client/petstore/java/docs/paths/foo/FooGet.md deleted file mode 100644 index da4a2fc69ce..00000000000 --- a/samples/client/petstore/java/docs/paths/foo/FooGet.md +++ /dev/null @@ -1,143 +0,0 @@ -# FooGet - -public class FooGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [FooGetOperation](#foogetoperation)
The interface that has a fooGet method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; -import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer0; -import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer1; -import org.openapijsonschematools.client.paths.foo.get.responses.FooGetCodedefaultResponse; -import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; -import org.openapijsonschematools.client.paths.foo.FooGet; -import org.openapijsonschematools.client.paths.foo.get.FooGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .fooGetServerInfo( - new FooGetServerInfo.FooGetServerInfoBuilder() - .fooGetServer0(new FooGetServer0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -FooGet.Get apiClient = new FooGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new FooGet.GetRequestBuilder().build(); - -FooGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -FooGetResponses.EndpointFooGetCodedefaultResponse castResponse = (FooGetResponses.EndpointFooGetCodedefaultResponse) response; -FooGetCodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (FooGetCodedefaultResponse.ApplicationjsonResponseBody) castResponse.body; -// handle deserialized body here -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## FooGetOperation -public interface FooGetOperation
- -an interface that allows one to call the endpoint using a method named fooGet by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | fooGet([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FooGetServerInfo.@Nullable ServerIndex](../../paths/foo/get/FooGetServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([FooGetServerInfo.ServerIndex](../../paths/foo/get/FooGetServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md b/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md deleted file mode 100644 index 5bf9bb7e45b..00000000000 --- a/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# FooGetResponses - -public class FooGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointFooGetCodedefaultResponse](#endpointfoogetcodedefaultresponse)
the response for default | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointFooGetCodedefaultResponse](#endpointfoogetcodedefaultresponse) - -a sealed interface that stores endpoint responses - -## EndpointFooGetCodedefaultResponse -public record EndpointFooGetCodedefaultResponse( - HttpResponse response, - [FooGetCodedefaultResponse.SealedResponseBody](../../../paths/foo/get/responses/FooGetCodedefaultResponse.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md b/samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md deleted file mode 100644 index 67aede6fd0e..00000000000 --- a/samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md +++ /dev/null @@ -1,62 +0,0 @@ -# FooGetServerInfo -FooGetServerInfo.java - -public class FooGetServerInfo - -A class that provides a server, and any needed server info classes -- a class that is a ServerProvider -- a builder for the ServerProvider -- an enum class that stores server index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [FooGetServerInfo.FooGetServerInfo1](#foogetserverinfo1)
class that stores a server index | -| static class | [FooGetServerInfo.FooGetServerInfoBuilder](#foogetserverinfobuilder)
class that stores a server index | -| enum | [FooGetServerInfo.ServerIndex](#serverindex)
class that stores a server index | - -## FooGetServerInfo1 -implements ServerProvider<[ServerIndex](#serverindex)>
- -A class that stores servers and allows one to be returned with a ServerIndex instance - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FooGetServerInfo1(@Nullable [FooGetServer0](../../../paths/foo/get/servers/FooGetServer0.md) server0,@Nullable [FooGetServer1](../../../paths/foo/get/servers/FooGetServer1.md) server1)
Creates an instance using passed in servers | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [FooGetServer0](../../../paths/foo/get/servers/FooGetServer0.md) | server0 | -| [FooGetServer1](../../../paths/foo/get/servers/FooGetServer1.md) | server1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Server | getServer([ServerIndex](#serverindex) serverIndex) | - -## FooGetServerInfoBuilder - -a builder for [FooGetServerInfo1](#foogetserverinfo1) - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FooGetServerInfoBuilder()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [FooGetServerInfoBuilder](#foogetserverinfobuilder) | fooGetServer0([FooGetServer0](../../../paths/foo/get/servers/FooGetServer0.md) server0)
sets the server | -| [FooGetServerInfoBuilder](#foogetserverinfobuilder) | fooGetServer1([FooGetServer1](../../../paths/foo/get/servers/FooGetServer1.md) server1)
sets the server | -| [FooGetServerInfo1](#foogetserverinfo1) | build() | - -## ServerIndex -enum ServerIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SERVER_0
server 0 | -| SERVER_1
server 1 | diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md deleted file mode 100644 index 5a45e3ba6d9..00000000000 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md +++ /dev/null @@ -1,87 +0,0 @@ -# FooGetCodedefaultResponse - -public class FooGetCodedefaultResponse - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [FooGetCodedefaultResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [FooGetCodedefaultResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [FooGetCodedefaultResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [FooGetCodedefaultResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [FooGetCodedefaultResponse.FooGetCodedefaultResponse1](#foogetcodedefaultresponse1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | - -## FooGetCodedefaultResponse1 -public static class FooGetCodedefaultResponse1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FooGetCodedefaultResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index e7695fd64d2..00000000000 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | -| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedMap -public record ApplicationjsonSchema1BoxedMap
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.foo.get.responses.codedefaultresponse.content.applicationjson.ApplicationjsonSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = - ApplicationjsonSchema.ApplicationjsonSchema1.validate( - new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() - .setString( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "bar", - "a" - ) - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("string", [Foo.Foo1.class](../../../../../../../components/schemas/Foo.md#foo1))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationjsonSchemaMapBuilder -public class ApplicationjsonSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | setString(Map value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Void value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, boolean value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, String value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, int value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, float value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, long value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, double value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, List value) | -| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Map value) | - -## ApplicationjsonSchemaMap -public static class ApplicationjsonSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [ApplicationjsonSchemaMap](#applicationjsonschemamap) | of([Map](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | -| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["string"], | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer0.md b/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer0.md deleted file mode 100644 index 31c72b6c42f..00000000000 --- a/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer0.md +++ /dev/null @@ -1,14 +0,0 @@ -# Server FooGetServer0 -public class FooGetServer0 - -A class that stores a server url - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FooGetServer0()
Creates a server | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| String | url = "https://path-server-test.petstore.local/v2" | diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md b/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md deleted file mode 100644 index eb4569697ef..00000000000 --- a/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md +++ /dev/null @@ -1,16 +0,0 @@ -# Server FooGetServer1 -public class FooGetServer1 - -A class that stores a server url - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FooGetServer1()
Creates a server using default values for variables | -| FooGetServer1([FooGetServer1Variables.VariablesMap](../../../../paths/foo/get/servers/server1/Variables.md#variablesmap) variables)
Creates a server using input values for variables | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| String | url = "https://petstore.swagger.io/{version}" | -| [FooGetServer1Variables.VariablesMap](../../../../paths/foo/get/servers/server1/Variables.md#variablesmap) | variables | diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md b/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md deleted file mode 100644 index 4ce7ff26e50..00000000000 --- a/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md +++ /dev/null @@ -1,355 +0,0 @@ -# FooGetServer1Variables -public class FooGetServer1Variables
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [FooGetServer1Variables.FooGetServer1Variables1Boxed](#foogetserver1variables1boxed)
sealed interface for validated payloads | -| record | [FooGetServer1Variables.FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap)
boxed class to store validated Map payloads | -| static class | [FooGetServer1Variables.FooGetServer1Variables1](#foogetserver1variables1)
schema class | -| static class | [FooGetServer1Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | -| static class | [FooGetServer1Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| sealed interface | [FooGetServer1Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | -| record | [FooGetServer1Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | -| static class | [FooGetServer1Variables.Version](#version)
schema class | -| enum | [FooGetServer1Variables.StringVersionEnums](#stringversionenums)
String enum | -| sealed interface | [FooGetServer1Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [FooGetServer1Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [FooGetServer1Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [FooGetServer1Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [FooGetServer1Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [FooGetServer1Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [FooGetServer1Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [FooGetServer1Variables.AdditionalProperties](#additionalproperties)
schema class | - -## FooGetServer1Variables1Boxed -public sealed interface FooGetServer1Variables1Boxed
-permits
-[FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## FooGetServer1Variables1BoxedMap -public record FooGetServer1Variables1BoxedMap
-implements [FooGetServer1Variables1Boxed](#foogetserver1variables1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| FooGetServer1Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## FooGetServer1Variables1 -public static class FooGetServer1Variables1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.foo.get.servers.server1.FooGetServer1Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -FooGetServer1Variables.VariablesMap validatedPayload = - FooGetServer1Variables.FooGetServer1Variables1.validate( - new FooGetServer1Variables.VariablesMapBuilder() - .version("v1") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| -| Set | required = Set.of(
    "version"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [FooGetServer1Variables1Boxed](#foogetserver1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## VariablesMap0Builder -public class VariablesMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## VariablesMapBuilder -public class VariablesMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VariablesMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | -| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | - -## VariablesMap -public static class VariablesMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v1 | - -## VersionBoxed -public sealed interface VersionBoxed
-permits
-[VersionBoxedString](#versionboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## VersionBoxedString -public record VersionBoxedString
-implements [VersionBoxed](#versionboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VersionBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Version -public static class Version
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.foo.get.servers.server1.FooGetServer1Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = FooGetServer1Variables.Version.validate( - "v1", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "v1",
    "v2"
)
| -| @Nullable Object | defaultValue = "v1" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | -| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringVersionEnums -public enum StringVersionEnums
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| V1 | value = "v1" | -| V2 | value = "v2" | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/pet/PetPost.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md deleted file mode 100644 index 2e27fdc6e7a..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/PetPost.md +++ /dev/null @@ -1,238 +0,0 @@ -# PetPost - -public class PetPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [AddPetOperation](#addpetoperation)
The interface that has a addPet method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; -import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; -import org.openapijsonschematools.client.components.schemas.Pet; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; -import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; -import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode200Response; -import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode405Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.pet.PetPost; -import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -securitySchemes.add( - new ApiKey("someApiKey"); -); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .petPostSecurityRequirementObject0SecurityIndex(PetPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetPost.Post apiClient = new PetPost.Post(apiConfiguration, schemaConfiguration); - - -Pet1BoxedMap requestBodyPayload = - Pet.Pet1.validateAndBox( - new Pet.PetMapBuilder() - .name("a") - - .photoUrls( - Arrays.asList( - "a" - ) - ) - .id(1L) - - .category( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "name", - "a" - ), - new AbstractMap.SimpleEntry( - "id", - 1L - ) - ) - ) - .tags( - Arrays.asList( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "name", - "a" - ) - ) - ) - ) - .status("available") - - .build(), - schemaConfiguration -); -PetPostRequestBody.SealedRequestBody requestBody = new PetPostRequestBody.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new PetPost.PostRequestBuilder() - .requestBody(requestBody) - .build(); - -PetPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (PetPostCode405Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -PetPostResponses.EndpointPetPostCode200Response castResponse = (PetPostResponses.EndpointPetPostCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## AddPetOperation -public interface AddPetOperation
- -an interface that allows one to call the endpoint using a method named addPet by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | addPet([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetPostRequestBody.SealedRequestBody](../../paths/pet/post/PetPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [PetPostSecurityInfo.@Nullable SecurityIndex](../../paths/pet/post/PetPostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetPostRequestBody.@Nullable SealedRequestBody](../../paths/pet/post/PetPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| [PetPostSecurityInfo.@Nullable SecurityIndex](../../paths/pet/post/PetPostSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | securityIndex([PetPostSecurityInfo.SecurityIndex](../../paths/pet/post/PetPostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([PetPostRequestBody.SealedRequestBody](../../paths/pet/post/PetPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/pet/PetPut.md b/samples/client/petstore/java/docs/paths/pet/PetPut.md deleted file mode 100644 index 3d25ceceba2..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/PetPut.md +++ /dev/null @@ -1,234 +0,0 @@ -# PetPut - -public class PetPut - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Put](#put)
The class that has a put method to call the endpoint | -| interface | [UpdatePetOperation](#updatepetoperation)
The interface that has a updatePet method to call the endpoint | -| static class | [PutRequest](#putrequest)
The final request inputs class | -| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | -| static class | [Put0RequestBuilder](#put0requestbuilder)
A builder for the request input class | -| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | - -## Put -public static class Put extends ApiClient.ApiClient1 implements PutOperation
- -a class that allows one to call the endpoint using a method named put - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; -import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; -import org.openapijsonschematools.client.components.schemas.Pet; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; -import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode400Response; -import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode404Response; -import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode405Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.pet.PetPut; -import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .petPutSecurityRequirementObject0SecurityIndex(PetPutSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetPut.Put apiClient = new PetPut.Put(apiConfiguration, schemaConfiguration); - - -Pet1BoxedMap requestBodyPayload = - Pet.Pet1.validateAndBox( - new Pet.PetMapBuilder() - .name("a") - - .photoUrls( - Arrays.asList( - "a" - ) - ) - .id(1L) - - .category( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "name", - "a" - ), - new AbstractMap.SimpleEntry( - "id", - 1L - ) - ) - ) - .tags( - Arrays.asList( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "name", - "a" - ) - ) - ) - ) - .status("available") - - .build(), - schemaConfiguration -); -PetPutRequestBody.SealedRequestBody requestBody = new PetPutRequestBody.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new PetPut.PutRequestBuilder() - .requestBody(requestBody) - .build(); - -Void response; -try { - response = apiClient.put(request); -} catch (PetPutCode400Response.ResponseApiException | PetPutCode404Response.ResponseApiException | PetPutCode405Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | put([PutRequest](#putrequest) request) | - -## UpdatePetOperation -public interface UpdatePetOperation
- -an interface that allows one to call the endpoint using a method named updatePet by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | updatePet([PutRequest](#putrequest) request) | - -## PutRequest -public static class PutRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetPutRequestBody.SealedRequestBody](../../paths/pet/put/PetPutRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [PetPutSecurityInfo.@Nullable SecurityIndex](../../paths/pet/put/PetPutSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PutNullableRequest -public static class PutNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetPutRequestBody.@Nullable SealedRequestBody](../../paths/pet/put/PetPutRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| [PetPutSecurityInfo.@Nullable SecurityIndex](../../paths/pet/put/PetPutSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Put0RequestBuilder -public static class Put0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put0RequestBuilder(Put0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Put0RequestBuilder](#put0requestbuilder) | securityIndex([PetPutSecurityInfo.SecurityIndex](../../paths/pet/put/PetPutSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PutRequestBuilder -public static class PutRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PutRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Put0RequestBuilder](#put0requestbuilder) | requestBody([PetPutRequestBody.SealedRequestBody](../../paths/pet/put/PetPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/pet/post/PetPostRequestBody.md b/samples/client/petstore/java/docs/paths/pet/post/PetPostRequestBody.md deleted file mode 100644 index bd9f8d276f1..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/PetPostRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# PetPostRequestBody - -public class PetPostRequestBody extends [Pet](../../../components/requestbodies/Pet.md) - -A class (extended from the $ref class) that contains necessary nested request body classes -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetPostRequestBody.PetPostRequestBody1](#petpostrequestbody1)
class that serializes request bodies | - -## PetPostRequestBody1 -public static class PetPostRequestBody1 extends [Pet1](../../../components/requestbodies/Pet.md#pet1)
- -a class that serializes SealedRequestBody request bodies, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md b/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md deleted file mode 100644 index d44b66c86e5..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# PetPostResponses - -public class PetPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointPetPostCode200Response](#endpointpetpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointPetPostCode200Response](#endpointpetpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointPetPostCode200Response -public record EndpointPetPostCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md b/samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md deleted file mode 100644 index 233fdd10e78..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md +++ /dev/null @@ -1,44 +0,0 @@ -# PetPostSecurityInfo -PetPostSecurityInfo.java - -public class PetPostSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetPostSecurityInfo.PetPostSecurityInfo1](#petpostsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [PetPostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## PetPostSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPostSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetPostSecurityRequirementObject0](../../../paths/pet/post/security/PetPostSecurityRequirementObject0.md) | security0 | -| [PetPostSecurityRequirementObject1](../../../paths/pet/post/security/PetPostSecurityRequirementObject1.md) | security1 | -| [PetPostSecurityRequirementObject2](../../../paths/pet/post/security/PetPostSecurityRequirementObject2.md) | security2 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | -| SECURITY_1
security 1 | -| SECURITY_2
security 2 | diff --git a/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode200Response.md b/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode200Response.md deleted file mode 100644 index 3c59da4cc88..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# PetPostCode200Response - -public class PetPostCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetPostCode200Response.PetPostCode200Response1](#petpostcode200response1)
class that deserializes responses | - -## PetPostCode200Response1 -public static class PetPostCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md b/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md deleted file mode 100644 index 6125c5e2063..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# PetPostCode405Response - -public class PetPostCode405Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetPostCode405Response.PetPostCode405Response1](#petpostcode405response1)
class that deserializes responses | - -## PetPostCode405Response1 -public static class PetPostCode405Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPostCode405Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md deleted file mode 100644 index dc904ae9529..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetPostSecurityRequirementObject0 -PetPostSecurityRequirementObject0.java - -public class PetPostSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPostSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md deleted file mode 100644 index 4ffc2e46b31..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetPostSecurityRequirementObject1 -PetPostSecurityRequirementObject1.java - -public class PetPostSecurityRequirementObject1 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPostSecurityRequirementObject1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md deleted file mode 100644 index 88db581a2d6..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetPostSecurityRequirementObject2 -PetPostSecurityRequirementObject2.java - -public class PetPostSecurityRequirementObject2 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPostSecurityRequirementObject2()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md b/samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md deleted file mode 100644 index e732123f8df..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# PetPutRequestBody - -public class PetPutRequestBody extends [Pet](../../../components/requestbodies/Pet.md) - -A class (extended from the $ref class) that contains necessary nested request body classes -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetPutRequestBody.PetPutRequestBody1](#petputrequestbody1)
class that serializes request bodies | - -## PetPutRequestBody1 -public static class PetPutRequestBody1 extends [Pet1](../../../components/requestbodies/Pet.md#pet1)
- -a class that serializes SealedRequestBody request bodies, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md b/samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md deleted file mode 100644 index fb9a8a6388a..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md +++ /dev/null @@ -1,10 +0,0 @@ -# PetPutResponses - -public class PetPutResponses - -A class that contains necessary responses classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | - diff --git a/samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md b/samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md deleted file mode 100644 index 1136055dad2..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md +++ /dev/null @@ -1,42 +0,0 @@ -# PetPutSecurityInfo -PetPutSecurityInfo.java - -public class PetPutSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetPutSecurityInfo.PetPutSecurityInfo1](#petputsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [PetPutSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## PetPutSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPutSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetPutSecurityRequirementObject0](../../../paths/pet/put/security/PetPutSecurityRequirementObject0.md) | security0 | -| [PetPutSecurityRequirementObject1](../../../paths/pet/put/security/PetPutSecurityRequirementObject1.md) | security1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | -| SECURITY_1
security 1 | diff --git a/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md deleted file mode 100644 index d44abff6808..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# PetPutCode400Response - -public class PetPutCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetPutCode400Response.PetPutCode400Response1](#petputcode400response1)
class that deserializes responses | - -## PetPutCode400Response1 -public static class PetPutCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPutCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md deleted file mode 100644 index 9643229862a..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# PetPutCode404Response - -public class PetPutCode404Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetPutCode404Response.PetPutCode404Response1](#petputcode404response1)
class that deserializes responses | - -## PetPutCode404Response1 -public static class PetPutCode404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPutCode404Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md deleted file mode 100644 index 51dbe825682..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# PetPutCode405Response - -public class PetPutCode405Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetPutCode405Response.PetPutCode405Response1](#petputcode405response1)
class that deserializes responses | - -## PetPutCode405Response1 -public static class PetPutCode405Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPutCode405Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md deleted file mode 100644 index a0bb52235ba..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetPutSecurityRequirementObject0 -PetPutSecurityRequirementObject0.java - -public class PetPutSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPutSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md deleted file mode 100644 index 9dd305982f5..00000000000 --- a/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetPutSecurityRequirementObject1 -PetPutSecurityRequirementObject1.java - -public class PetPutSecurityRequirementObject1 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetPutSecurityRequirementObject1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md deleted file mode 100644 index 209dbc6912b..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md +++ /dev/null @@ -1,209 +0,0 @@ -# PetfindbystatusGet - -public class PetfindbystatusGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [FindPetsByStatusOperation](#findpetsbystatusoperation)
The interface that has a findPetsByStatus method to call the endpoint | -| static class | [GetRequest](#getrequest)
The final request inputs class | -| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | -| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; -import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetSecurityInfo; -import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetQueryParameters; -import org.openapijsonschematools.client.paths.petfindbystatus.servers.PetfindbystatusServer0; -import org.openapijsonschematools.client.paths.petfindbystatus.servers.PetfindbystatusServer1; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; -import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; -import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.PetfindbystatusGetCode200Response; -import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.PetfindbystatusGetCode400Response; -import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; -import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusGet; -import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .petfindbystatusServerInfo( - new PetfindbystatusServerInfo.PetfindbystatusServerInfoBuilder() - .petfindbystatusServer0(new PetfindbystatusServer0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .petfindbystatusServerInfoServerIndex(PetfindbystatusServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -securitySchemes.add( - new ApiKey("someApiKey"); -); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .petfindbystatusGetSecurityRequirementObject0SecurityIndex(PetfindbystatusGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetfindbystatusGet.Get apiClient = new PetfindbystatusGet.Get(apiConfiguration, schemaConfiguration); - - -// Map validation -PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters = - PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( - new PetfindbystatusGetQueryParameters.QueryParametersMapBuilder() - .status( - Arrays.asList( - "available" - ) - ) - .build(), - schemaConfiguration -); - -var request = new PetfindbystatusGet.GetRequestBuilder() - .queryParameters(queryParameters) - .build(); - -PetfindbystatusGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (PetfindbystatusGetCode400Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -PetfindbystatusGetResponses.EndpointPetfindbystatusGetCode200Response castResponse = (PetfindbystatusGetResponses.EndpointPetfindbystatusGetCode200Response) response; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## FindPetsByStatusOperation -public interface FindPetsByStatusOperation
- -an interface that allows one to call the endpoint using a method named findPetsByStatus by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | findPetsByStatus([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetfindbystatusGetQueryParameters.QueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#queryparametersmap) | queryParameters | -| [PetfindbystatusServerInfo.@Nullable ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetNullableRequest -public static class GetNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetfindbystatusGetQueryParameters.@Nullable QueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#queryparametersmap) | queryParameters | -| [PetfindbystatusServerInfo.@Nullable ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) | serverIndex | -| [PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Get0RequestBuilder -public static class Get0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([PetfindbystatusServerInfo.ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | securityIndex([PetfindbystatusGetSecurityInfo.SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbystatusGetQueryParametersQueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md deleted file mode 100644 index fefcf6ae3de..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md +++ /dev/null @@ -1,62 +0,0 @@ -# PetfindbystatusServerInfo -PetfindbystatusServerInfo.java - -public class PetfindbystatusServerInfo - -A class that provides a server, and any needed server info classes -- a class that is a ServerProvider -- a builder for the ServerProvider -- an enum class that stores server index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetfindbystatusServerInfo.PetfindbystatusServerInfo1](#petfindbystatusserverinfo1)
class that stores a server index | -| static class | [PetfindbystatusServerInfo.PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder)
class that stores a server index | -| enum | [PetfindbystatusServerInfo.ServerIndex](#serverindex)
class that stores a server index | - -## PetfindbystatusServerInfo1 -implements ServerProvider<[ServerIndex](#serverindex)>
- -A class that stores servers and allows one to be returned with a ServerIndex instance - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusServerInfo1(@Nullable [PetfindbystatusServer0](../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) server0,@Nullable [PetfindbystatusServer1](../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) server1)
Creates an instance using passed in servers | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetfindbystatusServer0](../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) | server0 | -| [PetfindbystatusServer1](../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) | server1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Server | getServer([ServerIndex](#serverindex) serverIndex) | - -## PetfindbystatusServerInfoBuilder - -a builder for [PetfindbystatusServerInfo1](#petfindbystatusserverinfo1) - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusServerInfoBuilder()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder) | petfindbystatusServer0([PetfindbystatusServer0](../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) server0)
sets the server | -| [PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder) | petfindbystatusServer1([PetfindbystatusServer1](../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) server1)
sets the server | -| [PetfindbystatusServerInfo1](#petfindbystatusserverinfo1) | build() | - -## ServerIndex -enum ServerIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SERVER_0
server 0 | -| SERVER_1
server 1 | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md deleted file mode 100644 index 5e8081098ca..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PetfindbystatusGetQueryParameters -public class PetfindbystatusGetQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed)
sealed interface for validated payloads | -| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1](#petfindbystatusgetqueryparameters1)
schema class | -| static class | [PetfindbystatusGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [PetfindbystatusGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbystatusGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PetfindbystatusGetQueryParameters1Boxed -public sealed interface PetfindbystatusGetQueryParameters1Boxed
-permits
-[PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PetfindbystatusGetQueryParameters1BoxedMap -public record PetfindbystatusGetQueryParameters1BoxedMap
-implements [PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## PetfindbystatusGetQueryParameters1 -public static class PetfindbystatusGetQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PetfindbystatusGetQueryParameters.QueryParametersMap validatedPayload = - PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( - new PetfindbystatusGetQueryParameters.QueryParametersMapBuilder() - .status( - Arrays.asList( - "available" - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("status", [Schema0.Schema01.class](../../../paths/petfindbystatus/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "status"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMap0Builder -public class QueryParametersMap0Builder
-builder for `Map>` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap0Builder(Map> instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map> | build()
Returns map input that should be used with Schema.validate | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map>` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | status(List value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Schema0.SchemaList0](../../../paths/petfindbystatus/get/parameters/parameter0/Schema0.md#schemalist0) | status()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md deleted file mode 100644 index 79ad32a583c..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# PetfindbystatusGetResponses - -public class PetfindbystatusGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointPetfindbystatusGetCode200Response](#endpointpetfindbystatusgetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointPetfindbystatusGetCode200Response](#endpointpetfindbystatusgetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointPetfindbystatusGetCode200Response -public record EndpointPetfindbystatusGetCode200Response( - HttpResponse response, - [PetfindbystatusGetCode200Response.SealedResponseBody](../../../paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md deleted file mode 100644 index a0bc58eb967..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md +++ /dev/null @@ -1,44 +0,0 @@ -# PetfindbystatusGetSecurityInfo -PetfindbystatusGetSecurityInfo.java - -public class PetfindbystatusGetSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetfindbystatusGetSecurityInfo.PetfindbystatusGetSecurityInfo1](#petfindbystatusgetsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [PetfindbystatusGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## PetfindbystatusGetSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusGetSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetfindbystatusGetSecurityRequirementObject0](../../../paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md) | security0 | -| [PetfindbystatusGetSecurityRequirementObject1](../../../paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md) | security1 | -| [PetfindbystatusGetSecurityRequirementObject2](../../../paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md) | security2 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | -| SECURITY_1
security 1 | -| SECURITY_2
security 2 | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md deleted file mode 100644 index cbe534fe3c5..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,206 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | -| static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | -| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Items0](#items0)
schema class | -| enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedList](#schema01boxedlist) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedList -public record Schema01BoxedList
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedList([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.parameter0.Schema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -Schema0.SchemaList0 validatedPayload = - Schema0.Schema01.validate( - new Schema0.SchemaListBuilder0() - .add("available") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [Items0.class](#items0) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | -| [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | -| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaListBuilder0 -public class SchemaListBuilder0
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaListBuilder0()
Creates an empty list | -| SchemaListBuilder0(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SchemaListBuilder0 | add(String item) | -| SchemaListBuilder0 | add([StringItemsEnums0](#stringitemsenums0) item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## SchemaList0 -public class SchemaList0
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | - -## Items0Boxed -public sealed interface Items0Boxed
-permits
-[Items0BoxedString](#items0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Items0BoxedString -public record Items0BoxedString
-implements [Items0Boxed](#items0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Items0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Items0 -public static class Items0
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.parameter0.Schema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Schema0.Items0.validate( - "available", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "available",
    "pending",
    "sold"
)
| -| @Nullable Object | defaultValue = "available" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringItemsEnums0](#stringitemsenums0) arg, SchemaConfiguration configuration) | -| [Items0BoxedString](#items0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [Items0Boxed](#items0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringItemsEnums0 -public enum StringItemsEnums0
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| AVAILABLE | value = "available" | -| PENDING | value = "pending" | -| SOLD | value = "sold" | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md deleted file mode 100644 index a6a3459b37a..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# PetfindbystatusGetCode200Response - -public class PetfindbystatusGetCode200Response extends [SuccessfulXmlAndJsonArrayOfPet](../../components/responses/SuccessfulXmlAndJsonArrayOfPet.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetfindbystatusGetCode200Response.PetfindbystatusGetCode200Response1](#petfindbystatusgetcode200response1)
class that deserializes responses | - -## PetfindbystatusGetCode200Response1 -public static class PetfindbystatusGetCode200Response1 extends [SuccessfulXmlAndJsonArrayOfPet1](../../components/responses/SuccessfulXmlAndJsonArrayOfPet.md#successfulxmlandjsonarrayofpet1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.md deleted file mode 100644 index 19c777ba542..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# PetfindbystatusGetCode400Response - -public class PetfindbystatusGetCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetfindbystatusGetCode400Response.PetfindbystatusGetCode400Response1](#petfindbystatusgetcode400response1)
class that deserializes responses | - -## PetfindbystatusGetCode400Response1 -public static class PetfindbystatusGetCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusGetCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md deleted file mode 100644 index 608eb248028..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetfindbystatusGetSecurityRequirementObject0 -PetfindbystatusGetSecurityRequirementObject0.java - -public class PetfindbystatusGetSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusGetSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md deleted file mode 100644 index 6749160f760..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetfindbystatusGetSecurityRequirementObject1 -PetfindbystatusGetSecurityRequirementObject1.java - -public class PetfindbystatusGetSecurityRequirementObject1 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusGetSecurityRequirementObject1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md deleted file mode 100644 index 7f0527ce9f7..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetfindbystatusGetSecurityRequirementObject2 -PetfindbystatusGetSecurityRequirementObject2.java - -public class PetfindbystatusGetSecurityRequirementObject2 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusGetSecurityRequirementObject2()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md deleted file mode 100644 index 475550269b3..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md +++ /dev/null @@ -1,14 +0,0 @@ -# Server PetfindbystatusServer0 -public class PetfindbystatusServer0 - -A class that stores a server url - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusServer0()
Creates a server | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| String | url = "https://path-server-test.petstore.local/v2" | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md deleted file mode 100644 index 51b2599d0c7..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md +++ /dev/null @@ -1,16 +0,0 @@ -# Server PetfindbystatusServer1 -public class PetfindbystatusServer1 - -A class that stores a server url - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusServer1()
Creates a server using default values for variables | -| PetfindbystatusServer1([PetfindbystatusServer1Variables.VariablesMap](../../../paths/petfindbystatus/servers/server1/Variables.md#variablesmap) variables)
Creates a server using input values for variables | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| String | url = "https://petstore.swagger.io/{version}" | -| [PetfindbystatusServer1Variables.VariablesMap](../../../paths/petfindbystatus/servers/server1/Variables.md#variablesmap) | variables | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md deleted file mode 100644 index b2df6fc9a8b..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md +++ /dev/null @@ -1,355 +0,0 @@ -# PetfindbystatusServer1Variables -public class PetfindbystatusServer1Variables
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed)
sealed interface for validated payloads | -| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1](#petfindbystatusserver1variables1)
schema class | -| static class | [PetfindbystatusServer1Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | -| static class | [PetfindbystatusServer1Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| sealed interface | [PetfindbystatusServer1Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | -| record | [PetfindbystatusServer1Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | -| static class | [PetfindbystatusServer1Variables.Version](#version)
schema class | -| enum | [PetfindbystatusServer1Variables.StringVersionEnums](#stringversionenums)
String enum | -| sealed interface | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbystatusServer1Variables.AdditionalProperties](#additionalproperties)
schema class | - -## PetfindbystatusServer1Variables1Boxed -public sealed interface PetfindbystatusServer1Variables1Boxed
-permits
-[PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PetfindbystatusServer1Variables1BoxedMap -public record PetfindbystatusServer1Variables1BoxedMap
-implements [PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbystatusServer1Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## PetfindbystatusServer1Variables1 -public static class PetfindbystatusServer1Variables1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.PetfindbystatusServer1Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PetfindbystatusServer1Variables.VariablesMap validatedPayload = - PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1.validate( - new PetfindbystatusServer1Variables.VariablesMapBuilder() - .version("v1") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| -| Set | required = Set.of(
    "version"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## VariablesMap0Builder -public class VariablesMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## VariablesMapBuilder -public class VariablesMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VariablesMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | -| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | - -## VariablesMap -public static class VariablesMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v1 | - -## VersionBoxed -public sealed interface VersionBoxed
-permits
-[VersionBoxedString](#versionboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## VersionBoxedString -public record VersionBoxedString
-implements [VersionBoxed](#versionboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VersionBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Version -public static class Version
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.PetfindbystatusServer1Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = PetfindbystatusServer1Variables.Version.validate( - "v1", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "v1",
    "v2"
)
| -| @Nullable Object | defaultValue = "v1" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | -| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringVersionEnums -public enum StringVersionEnums
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| V1 | value = "v1" | -| V2 | value = "v2" | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md deleted file mode 100644 index fe05d311a2e..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md +++ /dev/null @@ -1,206 +0,0 @@ -# PetfindbytagsGet - -public class PetfindbytagsGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [FindPetsByTagsOperation](#findpetsbytagsoperation)
The interface that has a findPetsByTags method to call the endpoint | -| static class | [GetRequest](#getrequest)
The final request inputs class | -| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | -| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; -import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; -import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode200Response; -import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.petfindbytags.PetfindbytagsGet; -import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .petfindbytagsGetSecurityRequirementObject0SecurityIndex(PetfindbytagsGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetfindbytagsGet.Get apiClient = new PetfindbytagsGet.Get(apiConfiguration, schemaConfiguration); - - -// Map validation -PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters = - PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( - new PetfindbytagsGetQueryParameters.QueryParametersMapBuilder() - .tags( - Arrays.asList( - "a" - ) - ) - .build(), - schemaConfiguration -); - -var request = new PetfindbytagsGet.GetRequestBuilder() - .queryParameters(queryParameters) - .build(); - -PetfindbytagsGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (PetfindbytagsGetCode400Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -PetfindbytagsGetResponses.EndpointPetfindbytagsGetCode200Response castResponse = (PetfindbytagsGetResponses.EndpointPetfindbytagsGetCode200Response) response; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## FindPetsByTagsOperation -public interface FindPetsByTagsOperation
- -an interface that allows one to call the endpoint using a method named findPetsByTags by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | findPetsByTags([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetfindbytagsGetQueryParameters.QueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetNullableRequest -public static class GetNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetfindbytagsGetQueryParameters.@Nullable QueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Get0RequestBuilder -public static class Get0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | securityIndex([PetfindbytagsGetSecurityInfo.SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbytagsGetQueryParametersQueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md deleted file mode 100644 index 5560afd593c..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PetfindbytagsGetQueryParameters -public class PetfindbytagsGetQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed)
sealed interface for validated payloads | -| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1](#petfindbytagsgetqueryparameters1)
schema class | -| static class | [PetfindbytagsGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [PetfindbytagsGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetfindbytagsGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PetfindbytagsGetQueryParameters1Boxed -public sealed interface PetfindbytagsGetQueryParameters1Boxed
-permits
-[PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PetfindbytagsGetQueryParameters1BoxedMap -public record PetfindbytagsGetQueryParameters1BoxedMap
-implements [PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbytagsGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## PetfindbytagsGetQueryParameters1 -public static class PetfindbytagsGetQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PetfindbytagsGetQueryParameters.QueryParametersMap validatedPayload = - PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( - new PetfindbytagsGetQueryParameters.QueryParametersMapBuilder() - .tags( - Arrays.asList( - "a" - ) - ) - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("tags", [Schema0.Schema01.class](../../../paths/petfindbytags/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "tags"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMap0Builder -public class QueryParametersMap0Builder
-builder for `Map>` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap0Builder(Map> instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map> | build()
Returns map input that should be used with Schema.validate | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map>` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap0Builder](#queryparametersmap0builder) | tags(List value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [Schema0.SchemaList0](../../../paths/petfindbytags/get/parameters/parameter0/Schema0.md#schemalist0) | tags()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md deleted file mode 100644 index fcdbec4dfbe..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# PetfindbytagsGetResponses - -public class PetfindbytagsGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointPetfindbytagsGetCode200Response](#endpointpetfindbytagsgetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointPetfindbytagsGetCode200Response](#endpointpetfindbytagsgetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointPetfindbytagsGetCode200Response -public record EndpointPetfindbytagsGetCode200Response( - HttpResponse response, - [PetfindbytagsGetCode200Response.SealedResponseBody](../../../paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md deleted file mode 100644 index ea6339e8f26..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md +++ /dev/null @@ -1,42 +0,0 @@ -# PetfindbytagsGetSecurityInfo -PetfindbytagsGetSecurityInfo.java - -public class PetfindbytagsGetSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetfindbytagsGetSecurityInfo.PetfindbytagsGetSecurityInfo1](#petfindbytagsgetsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [PetfindbytagsGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## PetfindbytagsGetSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbytagsGetSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetfindbytagsGetSecurityRequirementObject0](../../../paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md) | security0 | -| [PetfindbytagsGetSecurityRequirementObject1](../../../paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md) | security1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | -| SECURITY_1
security 1 | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md deleted file mode 100644 index 8c3322c09f9..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,156 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated list payloads, extends FrozenList -- classes to build inputs for list payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | -| static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | -| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | -| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Items0](#items0)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedList](#schema01boxedlist) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedList -public record Schema01BoxedList
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedList([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petfindbytags.get.parameters.parameter0.Schema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// List validation -Schema0.SchemaList0 validatedPayload = - Schema0.Schema01.validate( - new Schema0.SchemaListBuilder0() - .add("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(List.class) | -| Class | items = [Items0.class](#items0) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | -| [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | -| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## SchemaListBuilder0 -public class SchemaListBuilder0
-builder for `List` - -A class that builds the List input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| SchemaListBuilder0()
Creates an empty list | -| SchemaListBuilder0(List items)
Stores the items in a list | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SchemaListBuilder0 | add(String item) | -| List | build()
Returns list input that should be used with Schema.validate | - -## SchemaList0 -public class SchemaList0
-extends `FrozenList` - -A class to store validated List payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | - -## Items0Boxed -public sealed interface Items0Boxed
-permits
-[Items0BoxedString](#items0boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Items0BoxedString -public record Items0BoxedString
-implements [Items0Boxed](#items0boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Items0BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Items0 -public static class Items0
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md deleted file mode 100644 index e2de5e1fab7..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# PetfindbytagsGetCode200Response - -public class PetfindbytagsGetCode200Response extends [RefSuccessfulXmlAndJsonArrayOfPet](../../components/responses/RefSuccessfulXmlAndJsonArrayOfPet.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetfindbytagsGetCode200Response.PetfindbytagsGetCode200Response1](#petfindbytagsgetcode200response1)
class that deserializes responses | - -## PetfindbytagsGetCode200Response1 -public static class PetfindbytagsGetCode200Response1 extends [RefSuccessfulXmlAndJsonArrayOfPet1](../../components/responses/RefSuccessfulXmlAndJsonArrayOfPet.md#refsuccessfulxmlandjsonarrayofpet1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.md deleted file mode 100644 index b542fd57299..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# PetfindbytagsGetCode400Response - -public class PetfindbytagsGetCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetfindbytagsGetCode400Response.PetfindbytagsGetCode400Response1](#petfindbytagsgetcode400response1)
class that deserializes responses | - -## PetfindbytagsGetCode400Response1 -public static class PetfindbytagsGetCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbytagsGetCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md deleted file mode 100644 index 256a672a40f..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetfindbytagsGetSecurityRequirementObject0 -PetfindbytagsGetSecurityRequirementObject0.java - -public class PetfindbytagsGetSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbytagsGetSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md deleted file mode 100644 index 39a130b834f..00000000000 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetfindbytagsGetSecurityRequirementObject1 -PetfindbytagsGetSecurityRequirementObject1.java - -public class PetfindbytagsGetSecurityRequirementObject1 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetfindbytagsGetSecurityRequirementObject1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md deleted file mode 100644 index 4558531942b..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md +++ /dev/null @@ -1,207 +0,0 @@ -# PetpetidDelete - -public class PetpetidDelete - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | -| interface | [DeletePetOperation](#deletepetoperation)
The interface that has a deletePet method to call the endpoint | -| static class | [DeleteRequest](#deleterequest)
The final request inputs class | -| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | -| static class | [Delete0RequestBuilder](#delete0requestbuilder)
A builder for the request input class | -| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | - -## Delete -public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
- -a class that allows one to call the endpoint using a method named delete - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; -import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; -import org.openapijsonschematools.client.paths.petpetid.delete.responses.PetpetidDeleteCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.petpetid.PetpetidDelete; -import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -securitySchemes.add( - new ApiKey("someApiKey"); -); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .petpetidDeleteSecurityRequirementObject0SecurityIndex(PetpetidDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetidDelete.Delete apiClient = new PetpetidDelete.Delete(apiConfiguration, schemaConfiguration); - - -// Map validation -PetpetidDeletePathParameters.PathParametersMap pathParameters = - PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( - new PetpetidDeletePathParameters.PathParametersMapBuilder() - .petId(1L) - - .build(), - schemaConfiguration -); - -var request = new PetpetidDelete.DeleteRequestBuilder() - .pathParameters(pathParameters) - .build(); - -Void response; -try { - response = apiClient.delete(request); -} catch (PetpetidDeleteCode400Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | delete([DeleteRequest](#deleterequest) request) | - -## DeletePetOperation -public interface DeletePetOperation
- -an interface that allows one to call the endpoint using a method named deletePet by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | deletePet([DeleteRequest](#deleterequest) request) | - -## DeleteRequest -public static class DeleteRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetidDeletePathParameters.PathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#pathparametersmap) | pathParameters | -| [PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#headerparametersmap) | headerParameters
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## DeleteNullableRequest -public static class DeleteNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetidDeletePathParameters.@Nullable PathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#pathparametersmap) | pathParameters | -| [PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#headerparametersmap) | headerParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Delete0RequestBuilder -public static class Delete0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete0RequestBuilder(Delete0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([PetpetidDeleteHeaderParametersHeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | -| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Delete0RequestBuilder](#delete0requestbuilder) | securityIndex([PetpetidDeleteSecurityInfo.SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## DeleteRequestBuilder -public static class DeleteRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PetpetidDeletePathParametersPathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md deleted file mode 100644 index 5a9abe00904..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md +++ /dev/null @@ -1,211 +0,0 @@ -# PetpetidGet - -public class PetpetidGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [GetPetByIdOperation](#getpetbyidoperation)
The interface that has a getPetById method to call the endpoint | -| static class | [GetRequest](#getrequest)
The final request inputs class | -| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | -| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; -import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; -import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode200Response; -import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode400Response; -import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.petpetid.PetpetidGet; -import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -securitySchemes.add( - new ApiKey("someApiKey"); -); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .petpetidGetSecurityRequirementObject0SecurityIndex(PetpetidGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetidGet.Get apiClient = new PetpetidGet.Get(apiConfiguration, schemaConfiguration); - - -// Map validation -PetpetidGetPathParameters.PathParametersMap pathParameters = - PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( - new PetpetidGetPathParameters.PathParametersMapBuilder() - .petId(1L) - - .build(), - schemaConfiguration -); - -var request = new PetpetidGet.GetRequestBuilder() - .pathParameters(pathParameters) - .build(); - -PetpetidGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (PetpetidGetCode400Response.ResponseApiException | PetpetidGetCode404Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -PetpetidGetResponses.EndpointPetpetidGetCode200Response castResponse = (PetpetidGetResponses.EndpointPetpetidGetCode200Response) response; -if (castResponse.body instanceof PetpetidGetCode200Response.ApplicationxmlResponseBody deserializedBody) { - // handle deserialized body here -} else { - PetpetidGetCode200Response.ApplicationjsonResponseBody deserializedBody = (PetpetidGetCode200Response.ApplicationjsonResponseBody) castResponse.body; - // handle deserialized body here -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## GetPetByIdOperation -public interface GetPetByIdOperation
- -an interface that allows one to call the endpoint using a method named getPetById by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | getPetById([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetidGetPathParameters.PathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetNullableRequest -public static class GetNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetidGetPathParameters.@Nullable PathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Get0RequestBuilder -public static class Get0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | securityIndex([PetpetidGetSecurityInfo.SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PetpetidGetPathParametersPathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md deleted file mode 100644 index db4efe1552e..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md +++ /dev/null @@ -1,207 +0,0 @@ -# PetpetidPost - -public class PetpetidPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [UpdatePetWithFormOperation](#updatepetwithformoperation)
The interface that has a updatePetWithForm method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; -import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; -import org.openapijsonschematools.client.paths.petpetid.post.responses.PetpetidPostCode405Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.petpetid.PetpetidPost; -import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -securitySchemes.add( - new ApiKey("someApiKey"); -); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .petpetidPostSecurityRequirementObject0SecurityIndex(PetpetidPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetidPost.Post apiClient = new PetpetidPost.Post(apiConfiguration, schemaConfiguration); - - -// Map validation -PetpetidPostPathParameters.PathParametersMap pathParameters = - PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( - new PetpetidPostPathParameters.PathParametersMapBuilder() - .petId(1L) - - .build(), - schemaConfiguration -); - -var request = new PetpetidPost.PostRequestBuilder() - .pathParameters(pathParameters) - .build(); - -Void response; -try { - response = apiClient.post(request); -} catch (PetpetidPostCode405Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | post([PostRequest](#postrequest) request) | - -## UpdatePetWithFormOperation -public interface UpdatePetWithFormOperation
- -an interface that allows one to call the endpoint using a method named updatePetWithForm by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | updatePetWithForm([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetidPostPathParameters.PathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#pathparametersmap) | pathParameters | -| [PetpetidPostRequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetidPostPathParameters.@Nullable PathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#pathparametersmap) | pathParameters | -| [PetpetidPostRequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([PetpetidPostRequestBody.SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | securityIndex([PetpetidPostSecurityInfo.SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetidPostPathParametersPathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md deleted file mode 100644 index 15cf0486a40..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md +++ /dev/null @@ -1,252 +0,0 @@ -# PetpetidDeleteHeaderParameters -public class PetpetidDeleteHeaderParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed)
sealed interface for validated payloads | -| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1](#petpetiddeleteheaderparameters1)
schema class | -| static class | [PetpetidDeleteHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | -| static class | [PetpetidDeleteHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | -| sealed interface | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidDeleteHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PetpetidDeleteHeaderParameters1Boxed -public sealed interface PetpetidDeleteHeaderParameters1Boxed
-permits
-[PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PetpetidDeleteHeaderParameters1BoxedMap -public record PetpetidDeleteHeaderParameters1BoxedMap
-implements [PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidDeleteHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## PetpetidDeleteHeaderParameters1 -public static class PetpetidDeleteHeaderParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PetpetidDeleteHeaderParameters.HeaderParametersMap validatedPayload = - PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1.validate( - new PetpetidDeleteHeaderParameters.HeaderParametersMapBuilder() - .api_key("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("api_key", [Schema0.Schema01.class](../../../paths/petpetid/delete/parameters/parameter0/Schema0.md#schema01))
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## HeaderParametersMapBuilder -public class HeaderParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | api_key(String value) | - -## HeaderParametersMap -public static class HeaderParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | api_key()
[optional] | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md deleted file mode 100644 index f5c5b699f52..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PetpetidDeletePathParameters -public class PetpetidDeletePathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed)
sealed interface for validated payloads | -| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1](#petpetiddeletepathparameters1)
schema class | -| static class | [PetpetidDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PetpetidDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PetpetidDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PetpetidDeletePathParameters1Boxed -public sealed interface PetpetidDeletePathParameters1Boxed
-permits
-[PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PetpetidDeletePathParameters1BoxedMap -public record PetpetidDeletePathParameters1BoxedMap
-implements [PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## PetpetidDeletePathParameters1 -public static class PetpetidDeletePathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PetpetidDeletePathParameters.PathParametersMap validatedPayload = - PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( - new PetpetidDeletePathParameters.PathParametersMapBuilder() - .petId(1L) - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema1.Schema11.class](../../../paths/petpetid/delete/parameters/parameter1/Schema1.md#schema11))
)
| -| Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| Number | petId()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md deleted file mode 100644 index 393d3ca7126..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md +++ /dev/null @@ -1,10 +0,0 @@ -# PetpetidDeleteResponses - -public class PetpetidDeleteResponses - -A class that contains necessary responses classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | - diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md deleted file mode 100644 index 0a71b0d01f1..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md +++ /dev/null @@ -1,42 +0,0 @@ -# PetpetidDeleteSecurityInfo -PetpetidDeleteSecurityInfo.java - -public class PetpetidDeleteSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetpetidDeleteSecurityInfo.PetpetidDeleteSecurityInfo1](#petpetiddeletesecurityinfo1)
SecurityRequirementObjectProvider -| enum | [PetpetidDeleteSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## PetpetidDeleteSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidDeleteSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetidDeleteSecurityRequirementObject0](../../../paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md) | security0 | -| [PetpetidDeleteSecurityRequirementObject1](../../../paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md) | security1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | -| SECURITY_1
security 1 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md deleted file mode 100644 index d8a770d95a5..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema1 -public class Schema1
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | -| record | [Schema1.Schema11BoxedNumber](#schema11boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema1.Schema11](#schema11)
schema class | - -## Schema11Boxed -public sealed interface Schema11Boxed
-permits
-[Schema11BoxedNumber](#schema11boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema11BoxedNumber -public record Schema11BoxedNumber
-implements [Schema11Boxed](#schema11boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema11BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema11 -public static class Schema11
-extends Int64JsonSchema.Int64JsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.md b/samples/client/petstore/java/docs/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.md deleted file mode 100644 index 0f2dd979eaa..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# PetpetidDeleteCode400Response - -public class PetpetidDeleteCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetpetidDeleteCode400Response.PetpetidDeleteCode400Response1](#petpetiddeletecode400response1)
class that deserializes responses | - -## PetpetidDeleteCode400Response1 -public static class PetpetidDeleteCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidDeleteCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md deleted file mode 100644 index f80b6f15b40..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetpetidDeleteSecurityRequirementObject0 -PetpetidDeleteSecurityRequirementObject0.java - -public class PetpetidDeleteSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidDeleteSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md deleted file mode 100644 index 8877bdea9a3..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetpetidDeleteSecurityRequirementObject1 -PetpetidDeleteSecurityRequirementObject1.java - -public class PetpetidDeleteSecurityRequirementObject1 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidDeleteSecurityRequirementObject1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md deleted file mode 100644 index fd600b22cd4..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PetpetidGetPathParameters -public class PetpetidGetPathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [PetpetidGetPathParameters.PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed)
sealed interface for validated payloads | -| record | [PetpetidGetPathParameters.PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidGetPathParameters.PetpetidGetPathParameters1](#petpetidgetpathparameters1)
schema class | -| static class | [PetpetidGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PetpetidGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PetpetidGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PetpetidGetPathParameters1Boxed -public sealed interface PetpetidGetPathParameters1Boxed
-permits
-[PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PetpetidGetPathParameters1BoxedMap -public record PetpetidGetPathParameters1BoxedMap
-implements [PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## PetpetidGetPathParameters1 -public static class PetpetidGetPathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PetpetidGetPathParameters.PathParametersMap validatedPayload = - PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( - new PetpetidGetPathParameters.PathParametersMapBuilder() - .petId(1L) - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetid/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| Number | petId()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md deleted file mode 100644 index 12cc6f49fef..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# PetpetidGetResponses - -public class PetpetidGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointPetpetidGetCode200Response](#endpointpetpetidgetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointPetpetidGetCode200Response](#endpointpetpetidgetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointPetpetidGetCode200Response -public record EndpointPetpetidGetCode200Response( - HttpResponse response, - [PetpetidGetCode200Response.SealedResponseBody](../../../paths/petpetid/get/responses/PetpetidGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md deleted file mode 100644 index c6615ea3fa9..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md +++ /dev/null @@ -1,40 +0,0 @@ -# PetpetidGetSecurityInfo -PetpetidGetSecurityInfo.java - -public class PetpetidGetSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetpetidGetSecurityInfo.PetpetidGetSecurityInfo1](#petpetidgetsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [PetpetidGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## PetpetidGetSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidGetSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetidGetSecurityRequirementObject0](../../../paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md) | security0 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md deleted file mode 100644 index 55e4e5cb238..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedNumber](#schema01boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedNumber -public record Schema01BoxedNumber
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends Int64JsonSchema.Int64JsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md deleted file mode 100644 index 45e02b46ba7..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md +++ /dev/null @@ -1,123 +0,0 @@ -# PetpetidGetCode200Response - -public class PetpetidGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [PetpetidGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [PetpetidGetCode200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | -| record | [PetpetidGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [PetpetidGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [PetpetidGetCode200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | -| record | [PetpetidGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [PetpetidGetCode200Response.PetpetidGetCode200Response1](#petpetidgetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxmlMediaType](#applicationxmlmediatype), -[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationxmlMediaType -public record ApplicationxmlMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationxmlResponseBody](#applicationxmlresponsebody), -[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationxmlResponseBody -public record ApplicationxmlResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/xml" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlResponseBody(ApplicationxmlSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationxmlSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) | body()
returns the body passed in in the constructor | -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) | body()
returns the body passed in in the constructor | - -## PetpetidGetCode200Response1 -public static class PetpetidGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode400Response.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode400Response.md deleted file mode 100644 index 34f0d6ab74e..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# PetpetidGetCode400Response - -public class PetpetidGetCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetpetidGetCode400Response.PetpetidGetCode400Response1](#petpetidgetcode400response1)
class that deserializes responses | - -## PetpetidGetCode400Response1 -public static class PetpetidGetCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidGetCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode404Response.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode404Response.md deleted file mode 100644 index c1e0bfd8b7e..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# PetpetidGetCode404Response - -public class PetpetidGetCode404Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetpetidGetCode404Response.PetpetidGetCode404Response1](#petpetidgetcode404response1)
class that deserializes responses | - -## PetpetidGetCode404Response1 -public static class PetpetidGetCode404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidGetCode404Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index d5c13efb07f..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [RefPet1](../../../../../../../components/schemas/RefPet.md#refpet) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [RefPet.RefPet1](../../../../../../../components/schemas/RefPet.md#refpet1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index be8b3ac53c8..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [Pet1](../../../../../../../components/schemas/Pet.md#pet) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [Pet.Pet1](../../../../../../../components/schemas/Pet.md#pet1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md deleted file mode 100644 index 77bfdbe2448..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetpetidGetSecurityRequirementObject0 -PetpetidGetSecurityRequirementObject0.java - -public class PetpetidGetSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidGetSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md deleted file mode 100644 index 8a12a161b7f..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PetpetidPostPathParameters -public class PetpetidPostPathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [PetpetidPostPathParameters.PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed)
sealed interface for validated payloads | -| record | [PetpetidPostPathParameters.PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidPostPathParameters.PetpetidPostPathParameters1](#petpetidpostpathparameters1)
schema class | -| static class | [PetpetidPostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PetpetidPostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PetpetidPostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetidPostPathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PetpetidPostPathParameters1Boxed -public sealed interface PetpetidPostPathParameters1Boxed
-permits
-[PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PetpetidPostPathParameters1BoxedMap -public record PetpetidPostPathParameters1BoxedMap
-implements [PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidPostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## PetpetidPostPathParameters1 -public static class PetpetidPostPathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PetpetidPostPathParameters.PathParametersMap validatedPayload = - PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( - new PetpetidPostPathParameters.PathParametersMapBuilder() - .petId(1L) - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetid/post/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| Number | petId()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostRequestBody.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostRequestBody.md deleted file mode 100644 index c69e673f340..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# PetpetidPostRequestBody - -public class PetpetidPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [PetpetidPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [PetpetidPostRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | -| static class | [PetpetidPostRequestBody.PetpetidPostRequestBody1](#petpetidpostrequestbody1)
class that serializes request bodies | -| sealed interface | [PetpetidPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [PetpetidPostRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationxwwwformurlencodedMediaType -public record ApplicationxwwwformurlencodedMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## PetpetidPostRequestBody1 -public static class PetpetidPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new [ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationxwwwformurlencodedRequestBody -public record ApplicationxwwwformurlencodedRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/x-www-form-urlencoded" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/x-www-form-urlencoded" | -| ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md deleted file mode 100644 index 1372e9116b3..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md +++ /dev/null @@ -1,10 +0,0 @@ -# PetpetidPostResponses - -public class PetpetidPostResponses - -A class that contains necessary responses classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | - diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md deleted file mode 100644 index 915b9ce6f7c..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md +++ /dev/null @@ -1,42 +0,0 @@ -# PetpetidPostSecurityInfo -PetpetidPostSecurityInfo.java - -public class PetpetidPostSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetpetidPostSecurityInfo.PetpetidPostSecurityInfo1](#petpetidpostsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [PetpetidPostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## PetpetidPostSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidPostSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetidPostSecurityRequirementObject0](../../../paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md) | security0 | -| [PetpetidPostSecurityRequirementObject1](../../../paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md) | security1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | -| SECURITY_1
security 1 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md deleted file mode 100644 index 55e4e5cb238..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedNumber](#schema01boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedNumber -public record Schema01BoxedNumber
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends Int64JsonSchema.Int64JsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md deleted file mode 100644 index 7995fc75166..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ /dev/null @@ -1,214 +0,0 @@ -# ApplicationxwwwformurlencodedSchema -public class ApplicationxwwwformurlencodedSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxedString](#applicationxwwwformurlencodedstatusboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatus](#applicationxwwwformurlencodedstatus)
schema class | -| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed)
sealed interface for validated payloads | -| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxedString](#applicationxwwwformurlencodednameboxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedName](#applicationxwwwformurlencodedname)
schema class | - -## ApplicationxwwwformurlencodedSchema1Boxed -public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
-permits
-[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedSchema1BoxedMap -public record ApplicationxwwwformurlencodedSchema1BoxedMap
-implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedSchema1 -public static class ApplicationxwwwformurlencodedSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petpetid.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = - ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.validate( - new ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder() - .name("a") - - .status("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("name", [ApplicationxwwwformurlencodedName.class](#applicationxwwwformurlencodedname))),
    new PropertyEntry("status", [ApplicationxwwwformurlencodedStatus.class](#applicationxwwwformurlencodedstatus)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## ApplicationxwwwformurlencodedSchemaMapBuilder -public class ApplicationxwwwformurlencodedSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | name(String value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | status(String value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, Void value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, boolean value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, String value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, int value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, float value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, long value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, double value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, List value) | -| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, Map value) | - -## ApplicationxwwwformurlencodedSchemaMap -public static class ApplicationxwwwformurlencodedSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | of([Map](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | -| String | name()
[optional] | -| String | status()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## ApplicationxwwwformurlencodedStatusBoxed -public sealed interface ApplicationxwwwformurlencodedStatusBoxed
-permits
-[ApplicationxwwwformurlencodedStatusBoxedString](#applicationxwwwformurlencodedstatusboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedStatusBoxedString -public record ApplicationxwwwformurlencodedStatusBoxedString
-implements [ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedStatusBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedStatus -public static class ApplicationxwwwformurlencodedStatus
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -## Description -Updated status of the pet - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | - -## ApplicationxwwwformurlencodedNameBoxed -public sealed interface ApplicationxwwwformurlencodedNameBoxed
-permits
-[ApplicationxwwwformurlencodedNameBoxedString](#applicationxwwwformurlencodednameboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxwwwformurlencodedNameBoxedString -public record ApplicationxwwwformurlencodedNameBoxedString
-implements [ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxwwwformurlencodedNameBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxwwwformurlencodedName -public static class ApplicationxwwwformurlencodedName
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -## Description -Updated name of the pet - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/responses/PetpetidPostCode405Response.md b/samples/client/petstore/java/docs/paths/petpetid/post/responses/PetpetidPostCode405Response.md deleted file mode 100644 index 12fc2c4aa04..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/responses/PetpetidPostCode405Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# PetpetidPostCode405Response - -public class PetpetidPostCode405Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetpetidPostCode405Response.PetpetidPostCode405Response1](#petpetidpostcode405response1)
class that deserializes responses | - -## PetpetidPostCode405Response1 -public static class PetpetidPostCode405Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidPostCode405Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md deleted file mode 100644 index 0e8d3540345..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetpetidPostSecurityRequirementObject0 -PetpetidPostSecurityRequirementObject0.java - -public class PetpetidPostSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidPostSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md deleted file mode 100644 index fb9621d4c1e..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetpetidPostSecurityRequirementObject1 -PetpetidPostSecurityRequirementObject1.java - -public class PetpetidPostSecurityRequirementObject1 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetidPostSecurityRequirementObject1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md deleted file mode 100644 index d5698ed5883..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md +++ /dev/null @@ -1,203 +0,0 @@ -# PetpetiduploadimagePost - -public class PetpetiduploadimagePost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [UploadImageOperation](#uploadimageoperation)
The interface that has a uploadImage method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.PetpetiduploadimagePostCode200Response; -import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.petpetiduploadimage.PetpetiduploadimagePost; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .petpetiduploadimagePostSecurityRequirementObject0SecurityIndex(PetpetiduploadimagePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -PetpetiduploadimagePost.Post apiClient = new PetpetiduploadimagePost.Post(apiConfiguration, schemaConfiguration); - - -// Map validation -PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters = - PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( - new PetpetiduploadimagePostPathParameters.PathParametersMapBuilder() - .petId(1L) - - .build(), - schemaConfiguration -); - -var request = new PetpetiduploadimagePost.PostRequestBuilder() - .pathParameters(pathParameters) - .build(); - -PetpetiduploadimagePostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -PetpetiduploadimagePostResponses.EndpointPetpetiduploadimagePostCode200Response castResponse = (PetpetiduploadimagePostResponses.EndpointPetpetiduploadimagePostCode200Response) response; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## UploadImageOperation -public interface UploadImageOperation
- -an interface that allows one to call the endpoint using a method named uploadImage by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | uploadImage([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetiduploadimagePostPathParameters.PathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#pathparametersmap) | pathParameters | -| [PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) | requestBody
optional | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetiduploadimagePostPathParameters.@Nullable PathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#pathparametersmap) | pathParameters | -| [PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([PetpetiduploadimagePostRequestBody.SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | securityIndex([PetpetiduploadimagePostSecurityInfo.SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetiduploadimagePostPathParametersPathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md deleted file mode 100644 index fa49543e3e7..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# PetpetiduploadimagePostPathParameters -public class PetpetiduploadimagePostPathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed)
sealed interface for validated payloads | -| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1](#petpetiduploadimagepostpathparameters1)
schema class | -| static class | [PetpetiduploadimagePostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [PetpetiduploadimagePostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [PetpetiduploadimagePostPathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## PetpetiduploadimagePostPathParameters1Boxed -public sealed interface PetpetiduploadimagePostPathParameters1Boxed
-permits
-[PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## PetpetiduploadimagePostPathParameters1BoxedMap -public record PetpetiduploadimagePostPathParameters1BoxedMap
-implements [PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetiduploadimagePostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## PetpetiduploadimagePostPathParameters1 -public static class PetpetiduploadimagePostPathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -PetpetiduploadimagePostPathParameters.PathParametersMap validatedPayload = - PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( - new PetpetiduploadimagePostPathParameters.PathParametersMapBuilder() - .petId(1L) - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "petId"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| Number | petId()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md deleted file mode 100644 index d85fbbb4f85..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# PetpetiduploadimagePostRequestBody - -public class PetpetiduploadimagePostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [PetpetiduploadimagePostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [PetpetiduploadimagePostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | -| static class | [PetpetiduploadimagePostRequestBody.PetpetiduploadimagePostRequestBody1](#petpetiduploadimagepostrequestbody1)
class that serializes request bodies | -| sealed interface | [PetpetiduploadimagePostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [PetpetiduploadimagePostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[MultipartformdataMediaType](#multipartformdatamediatype) - -sealed interface that stores schema and encoding info - - -## MultipartformdataMediaType -public record MultipartformdataMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## PetpetiduploadimagePostRequestBody1 -public static class PetpetiduploadimagePostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetiduploadimagePostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = false
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[MultipartformdataRequestBody](#multipartformdatarequestbody) - -sealed interface that stores request contentType + validated schema data - -## MultipartformdataRequestBody -public record MultipartformdataRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="multipart/form-data" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "multipart/form-data" | -| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md deleted file mode 100644 index b961dc0e86b..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# PetpetiduploadimagePostResponses - -public class PetpetiduploadimagePostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointPetpetiduploadimagePostCode200Response](#endpointpetpetiduploadimagepostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointPetpetiduploadimagePostCode200Response](#endpointpetpetiduploadimagepostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointPetpetiduploadimagePostCode200Response -public record EndpointPetpetiduploadimagePostCode200Response( - HttpResponse response, - [PetpetiduploadimagePostCode200Response.SealedResponseBody](../../../paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md#sealedresponsebody) body, - [SuccessWithJsonApiResponseHeadersSchema.SuccessWithJsonApiResponseHeadersSchemaMap](../../../components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.md#successwithjsonapiresponseheadersschemamap) headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md deleted file mode 100644 index a6c84397204..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md +++ /dev/null @@ -1,40 +0,0 @@ -# PetpetiduploadimagePostSecurityInfo -PetpetiduploadimagePostSecurityInfo.java - -public class PetpetiduploadimagePostSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetpetiduploadimagePostSecurityInfo.PetpetiduploadimagePostSecurityInfo1](#petpetiduploadimagepostsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [PetpetiduploadimagePostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## PetpetiduploadimagePostSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetiduploadimagePostSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [PetpetiduploadimagePostSecurityRequirementObject0](../../../paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md) | security0 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md deleted file mode 100644 index 55e4e5cb238..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedNumber](#schema01boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedNumber -public record Schema01BoxedNumber
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends Int64JsonSchema.Int64JsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md deleted file mode 100644 index fc5b38bda26..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ /dev/null @@ -1,190 +0,0 @@ -# MultipartformdataSchema -public class MultipartformdataSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | -| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | -| sealed interface | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
sealed interface for validated payloads | -| static class | [MultipartformdataSchema.MultipartformdataFile](#multipartformdatafile)
schema class | -| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
sealed interface for validated payloads | -| record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | -| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | - -## MultipartformdataSchema1Boxed -public sealed interface MultipartformdataSchema1Boxed
-permits
-[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataSchema1BoxedMap -public record MultipartformdataSchema1BoxedMap
-implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataSchema1 -public static class MultipartformdataSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = - MultipartformdataSchema.MultipartformdataSchema1.validate( - new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() - .additionalMetadata("a") - - .file("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("additionalMetadata", [MultipartformdataAdditionalMetadata.class](#multipartformdataadditionalmetadata))),
    new PropertyEntry("file", [MultipartformdataFile.class](#multipartformdatafile)))
)
| - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## MultipartformdataSchemaMapBuilder -public class MultipartformdataSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalMetadata(String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | file(String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | -| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | - -## MultipartformdataSchemaMap -public static class MultipartformdataSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | -| String | additionalMetadata()
[optional] | -| String | file()
[optional] | -| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | - -## MultipartformdataFileBoxed -public sealed interface MultipartformdataFileBoxed
-permits
- -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataFile -public static class MultipartformdataFile
-extends JsonSchema - -A schema class that validates payloads - -## Description -file to upload - -## MultipartformdataAdditionalMetadataBoxed -public sealed interface MultipartformdataAdditionalMetadataBoxed
-permits
-[MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## MultipartformdataAdditionalMetadataBoxedString -public record MultipartformdataAdditionalMetadataBoxedString
-implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| MultipartformdataAdditionalMetadataBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## MultipartformdataAdditionalMetadata -public static class MultipartformdataAdditionalMetadata
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -## Description -Additional data to pass to server - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md deleted file mode 100644 index 0be7cd47d32..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# PetpetiduploadimagePostCode200Response - -public class PetpetiduploadimagePostCode200Response extends [SuccessWithJsonApiResponse](../../components/responses/SuccessWithJsonApiResponse.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [PetpetiduploadimagePostCode200Response.PetpetiduploadimagePostCode200Response1](#petpetiduploadimagepostcode200response1)
class that deserializes responses | - -## PetpetiduploadimagePostCode200Response1 -public static class PetpetiduploadimagePostCode200Response1 extends [SuccessWithJsonApiResponse1](../../components/responses/SuccessWithJsonApiResponse.md#successwithjsonapiresponse1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md deleted file mode 100644 index adb3502a449..00000000000 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# PetpetiduploadimagePostSecurityRequirementObject0 -PetpetiduploadimagePostSecurityRequirementObject0.java - -public class PetpetiduploadimagePostSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PetpetiduploadimagePostSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md deleted file mode 100644 index ce808d7f2aa..00000000000 --- a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md +++ /dev/null @@ -1,142 +0,0 @@ -# SolidusGet - -public class SolidusGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [SlashRouteOperation](#slashrouteoperation)
The interface that has a slashRoute method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.solidus.SolidusGet; -import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -SolidusGet.Get apiClient = new SolidusGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new SolidusGet.GetRequestBuilder().build(); - -SolidusGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -SolidusGetResponses.EndpointSolidusGetCode200Response castResponse = (SolidusGetResponses.EndpointSolidusGetCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## SlashRouteOperation -public interface SlashRouteOperation
- -an interface that allows one to call the endpoint using a method named slashRoute by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | slashRoute([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md b/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md deleted file mode 100644 index 70dc55d02a0..00000000000 --- a/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# SolidusGetResponses - -public class SolidusGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointSolidusGetCode200Response](#endpointsolidusgetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointSolidusGetCode200Response](#endpointsolidusgetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointSolidusGetCode200Response -public record EndpointSolidusGetCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/solidus/get/responses/SolidusGetCode200Response.md b/samples/client/petstore/java/docs/paths/solidus/get/responses/SolidusGetCode200Response.md deleted file mode 100644 index e00fe1ece0e..00000000000 --- a/samples/client/petstore/java/docs/paths/solidus/get/responses/SolidusGetCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# SolidusGetCode200Response - -public class SolidusGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [SolidusGetCode200Response.SolidusGetCode200Response1](#solidusgetcode200response1)
class that deserializes responses | - -## SolidusGetCode200Response1 -public static class SolidusGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md deleted file mode 100644 index e5c9e1ce8b0..00000000000 --- a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md +++ /dev/null @@ -1,158 +0,0 @@ -# StoreinventoryGet - -public class StoreinventoryGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [GetInventoryOperation](#getinventoryoperation)
The interface that has a getInventory method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; -import org.openapijsonschematools.client.paths.storeinventory.get.responses.StoreinventoryGetCode200Response; -import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.storeinventory.StoreinventoryGet; -import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -List securitySchemes = new ArrayList(); -securitySchemes.add( - new ApiKey("someApiKey"); -); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() - .storeinventoryGetSecurityRequirementObject0SecurityIndex(StoreinventoryGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - securitySchemes, - securityIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreinventoryGet.Get apiClient = new StoreinventoryGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new StoreinventoryGet.GetRequestBuilder().build(); - -StoreinventoryGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -StoreinventoryGetResponses.EndpointStoreinventoryGetCode200Response castResponse = (StoreinventoryGetResponses.EndpointStoreinventoryGetCode200Response) response; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## GetInventoryOperation -public interface GetInventoryOperation
- -an interface that allows one to call the endpoint using a method named getInventory by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | getInventory([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| [StoreinventoryGetSecurityInfo.@Nullable SecurityIndex](../../paths/storeinventory/get/StoreinventoryGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | securityIndex([StoreinventoryGetSecurityInfo.SecurityIndex](../../paths/storeinventory/get/StoreinventoryGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md deleted file mode 100644 index 9f064be5958..00000000000 --- a/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# StoreinventoryGetResponses - -public class StoreinventoryGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointStoreinventoryGetCode200Response](#endpointstoreinventorygetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointStoreinventoryGetCode200Response](#endpointstoreinventorygetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointStoreinventoryGetCode200Response -public record EndpointStoreinventoryGetCode200Response( - HttpResponse response, - [StoreinventoryGetCode200Response.SealedResponseBody](../../../paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md#sealedresponsebody) body, - [SuccessInlineContentAndHeaderHeadersSchema.SuccessInlineContentAndHeaderHeadersSchemaMap](../../../components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.md#successinlinecontentandheaderheadersschemamap) headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md deleted file mode 100644 index 2f5f07f0f26..00000000000 --- a/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md +++ /dev/null @@ -1,40 +0,0 @@ -# StoreinventoryGetSecurityInfo -StoreinventoryGetSecurityInfo.java - -public class StoreinventoryGetSecurityInfo - -A class that provides a security requirement object, and any needed security info classes -- a class that is a SecurityRequirementObjectProvider -- an enum class that describes security index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [StoreinventoryGetSecurityInfo.StoreinventoryGetSecurityInfo1](#storeinventorygetsecurityinfo1)
SecurityRequirementObjectProvider -| enum | [StoreinventoryGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | - -## StoreinventoryGetSecurityInfo1 -implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreinventoryGetSecurityInfo1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [StoreinventoryGetSecurityRequirementObject0](../../../paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md) | security0 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | - -## SecurityIndex -enum SecurityIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md b/samples/client/petstore/java/docs/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md deleted file mode 100644 index 969b8dc35f3..00000000000 --- a/samples/client/petstore/java/docs/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# StoreinventoryGetCode200Response - -public class StoreinventoryGetCode200Response extends [SuccessInlineContentAndHeader](../../components/responses/SuccessInlineContentAndHeader.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [StoreinventoryGetCode200Response.StoreinventoryGetCode200Response1](#storeinventorygetcode200response1)
class that deserializes responses | - -## StoreinventoryGetCode200Response1 -public static class StoreinventoryGetCode200Response1 extends [SuccessInlineContentAndHeader1](../../components/responses/SuccessInlineContentAndHeader.md#successinlinecontentandheader1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md deleted file mode 100644 index d979d8cb08c..00000000000 --- a/samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md +++ /dev/null @@ -1,15 +0,0 @@ -# StoreinventoryGetSecurityRequirementObject0 -StoreinventoryGetSecurityRequirementObject0.java - -public class StoreinventoryGetSecurityRequirementObject0 -extends SecurityRequirementObject - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreinventoryGetSecurityRequirementObject0()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md deleted file mode 100644 index 6c9f06eaee0..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md +++ /dev/null @@ -1,206 +0,0 @@ -# StoreorderPost - -public class StoreorderPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [PlaceOrderOperation](#placeorderoperation)
The interface that has a placeOrder method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; -import org.openapijsonschematools.client.components.schemas.Order; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode200Response; -import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.storeorder.StoreorderPost; -import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreorderPost.Post apiClient = new StoreorderPost.Post(apiConfiguration, schemaConfiguration); - - -Order1BoxedMap requestBodyPayload = - Order.Order1.validateAndBox( - new Order.OrderMapBuilder() - .id(1L) - - .petId(1L) - - .quantity(1) - - .shipDate("1970-01-01T00:00:00.00Z") - - .status("placed") - - .complete(true) - - .build(), - schemaConfiguration -); -StoreorderPost.SealedRequestBody requestBody = new StoreorderPost.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new StoreorderPost.PostRequestBuilder() - .requestBody(requestBody) - .build(); - -StoreorderPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (StoreorderPostCode400Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -StoreorderPostResponses.EndpointStoreorderPostCode200Response castResponse = (StoreorderPostResponses.EndpointStoreorderPostCode200Response) response; -if (castResponse.body instanceof StoreorderPostCode200Response.ApplicationxmlResponseBody deserializedBody) { - // handle deserialized body here -} else { - StoreorderPostCode200Response.ApplicationjsonResponseBody deserializedBody = (StoreorderPostCode200Response.ApplicationjsonResponseBody) castResponse.body; - // handle deserialized body here -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## PlaceOrderOperation -public interface PlaceOrderOperation
- -an interface that allows one to call the endpoint using a method named placeOrder by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | placeOrder([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [StoreorderPostRequestBody.SealedRequestBody](../../paths/storeorder/post/StoreorderPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [StoreorderPostRequestBody.@Nullable SealedRequestBody](../../paths/storeorder/post/StoreorderPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([StoreorderPostRequestBody.SealedRequestBody](../../paths/storeorder/post/StoreorderPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostRequestBody.md b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostRequestBody.md deleted file mode 100644 index 84b67ae8225..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# StoreorderPostRequestBody - -public class StoreorderPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [StoreorderPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [StoreorderPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [StoreorderPostRequestBody.StoreorderPostRequestBody1](#storeorderpostrequestbody1)
class that serializes request bodies | -| sealed interface | [StoreorderPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [StoreorderPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## StoreorderPostRequestBody1 -public static class StoreorderPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = true
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[Order1Boxed](../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[Order1Boxed](../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md deleted file mode 100644 index 48c83e88df4..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# StoreorderPostResponses - -public class StoreorderPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointStoreorderPostCode200Response](#endpointstoreorderpostcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointStoreorderPostCode200Response](#endpointstoreorderpostcode200response) - -a sealed interface that stores endpoint responses - -## EndpointStoreorderPostCode200Response -public record EndpointStoreorderPostCode200Response( - HttpResponse response, - [StoreorderPostCode200Response.SealedResponseBody](../../../paths/storeorder/post/responses/StoreorderPostCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 25524457185..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Order1](../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Order.Order1](../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md deleted file mode 100644 index 0f5af758ef6..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md +++ /dev/null @@ -1,123 +0,0 @@ -# StoreorderPostCode200Response - -public class StoreorderPostCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [StoreorderPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [StoreorderPostCode200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | -| record | [StoreorderPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [StoreorderPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [StoreorderPostCode200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | -| record | [StoreorderPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [StoreorderPostCode200Response.StoreorderPostCode200Response1](#storeorderpostcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxmlMediaType](#applicationxmlmediatype), -[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationxmlMediaType -public record ApplicationxmlMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationxmlResponseBody](#applicationxmlresponsebody), -[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationxmlResponseBody -public record ApplicationxmlResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/xml" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlResponseBody(ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | - -## StoreorderPostCode200Response1 -public static class StoreorderPostCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderPostCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode400Response.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode400Response.md deleted file mode 100644 index d108179be92..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# StoreorderPostCode400Response - -public class StoreorderPostCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [StoreorderPostCode400Response.StoreorderPostCode400Response1](#storeorderpostcode400response1)
class that deserializes responses | - -## StoreorderPostCode400Response1 -public static class StoreorderPostCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderPostCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index e069f9c21c8..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Order1](../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 751649039e1..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [Order1](../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md deleted file mode 100644 index cce45316368..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md +++ /dev/null @@ -1,188 +0,0 @@ -# StoreorderorderidDelete - -public class StoreorderorderidDelete - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | -| interface | [DeleteOrderOperation](#deleteorderoperation)
The interface that has a deleteOrder method to call the endpoint | -| static class | [DeleteRequest](#deleterequest)
The final request inputs class | -| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | -| static class | [Delete0RequestBuilder](#delete0requestbuilder)
A builder for the request input class | -| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | - -## Delete -public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
- -a class that allows one to call the endpoint using a method named delete - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode400Response; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidDelete; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreorderorderidDelete.Delete apiClient = new StoreorderorderidDelete.Delete(apiConfiguration, schemaConfiguration); - - -// Map validation -StoreorderorderidDeletePathParameters.PathParametersMap pathParameters = - StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( - new StoreorderorderidDeletePathParameters.PathParametersMapBuilder() - .order_id("a") - - .build(), - schemaConfiguration -); - -var request = new StoreorderorderidDelete.DeleteRequestBuilder() - .pathParameters(pathParameters) - .build(); - -Void response; -try { - response = apiClient.delete(request); -} catch (StoreorderorderidDeleteCode400Response.ResponseApiException | StoreorderorderidDeleteCode404Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | delete([DeleteRequest](#deleterequest) request) | - -## DeleteOrderOperation -public interface DeleteOrderOperation
- -an interface that allows one to call the endpoint using a method named deleteOrder by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | deleteOrder([DeleteRequest](#deleterequest) request) | - -## DeleteRequest -public static class DeleteRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [StoreorderorderidDeletePathParameters.PathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## DeleteNullableRequest -public static class DeleteNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [StoreorderorderidDeletePathParameters.@Nullable PathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Delete0RequestBuilder -public static class Delete0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete0RequestBuilder(Delete0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## DeleteRequestBuilder -public static class DeleteRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([StoreorderorderidDeletePathParametersPathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md deleted file mode 100644 index 1b8c91e2631..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md +++ /dev/null @@ -1,196 +0,0 @@ -# StoreorderorderidGet - -public class StoreorderorderidGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [GetOrderByIdOperation](#getorderbyidoperation)
The interface that has a getOrderById method to call the endpoint | -| static class | [GetRequest](#getrequest)
The final request inputs class | -| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | -| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode200Response; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode400Response; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidGet; -import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -StoreorderorderidGet.Get apiClient = new StoreorderorderidGet.Get(apiConfiguration, schemaConfiguration); - - -// Map validation -StoreorderorderidGetPathParameters.PathParametersMap pathParameters = - StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( - new StoreorderorderidGetPathParameters.PathParametersMapBuilder() - .order_id(1L) - - .build(), - schemaConfiguration -); - -var request = new StoreorderorderidGet.GetRequestBuilder() - .pathParameters(pathParameters) - .build(); - -StoreorderorderidGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (StoreorderorderidGetCode400Response.ResponseApiException | StoreorderorderidGetCode404Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -StoreorderorderidGetResponses.EndpointStoreorderorderidGetCode200Response castResponse = (StoreorderorderidGetResponses.EndpointStoreorderorderidGetCode200Response) response; -if (castResponse.body instanceof StoreorderorderidGetCode200Response.ApplicationxmlResponseBody deserializedBody) { - // handle deserialized body here -} else { - StoreorderorderidGetCode200Response.ApplicationjsonResponseBody deserializedBody = (StoreorderorderidGetCode200Response.ApplicationjsonResponseBody) castResponse.body; - // handle deserialized body here -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## GetOrderByIdOperation -public interface GetOrderByIdOperation
- -an interface that allows one to call the endpoint using a method named getOrderById by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | getOrderById([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [StoreorderorderidGetPathParameters.PathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetNullableRequest -public static class GetNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [StoreorderorderidGetPathParameters.@Nullable PathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Get0RequestBuilder -public static class Get0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([StoreorderorderidGetPathParametersPathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md deleted file mode 100644 index 9add70eca1d..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# StoreorderorderidDeletePathParameters -public class StoreorderorderidDeletePathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed)
sealed interface for validated payloads | -| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1](#storeorderorderiddeletepathparameters1)
schema class | -| static class | [StoreorderorderidDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [StoreorderorderidDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [StoreorderorderidDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## StoreorderorderidDeletePathParameters1Boxed -public sealed interface StoreorderorderidDeletePathParameters1Boxed
-permits
-[StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## StoreorderorderidDeletePathParameters1BoxedMap -public record StoreorderorderidDeletePathParameters1BoxedMap
-implements [StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderorderidDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## StoreorderorderidDeletePathParameters1 -public static class StoreorderorderidDeletePathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -StoreorderorderidDeletePathParameters.PathParametersMap validatedPayload = - StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( - new StoreorderorderidDeletePathParameters.PathParametersMapBuilder() - .order_id("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("order_id", [Schema0.Schema01.class](../../../paths/storeorderorderid/delete/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "order_id"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(String value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | order_id()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md deleted file mode 100644 index e4447a09189..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md +++ /dev/null @@ -1,10 +0,0 @@ -# StoreorderorderidDeleteResponses - -public class StoreorderorderidDeleteResponses - -A class that contains necessary responses classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | - diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.md deleted file mode 100644 index 75463df967c..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# StoreorderorderidDeleteCode400Response - -public class StoreorderorderidDeleteCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [StoreorderorderidDeleteCode400Response.StoreorderorderidDeleteCode400Response1](#storeorderorderiddeletecode400response1)
class that deserializes responses | - -## StoreorderorderidDeleteCode400Response1 -public static class StoreorderorderidDeleteCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderorderidDeleteCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.md deleted file mode 100644 index 2f0b5d4407c..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# StoreorderorderidDeleteCode404Response - -public class StoreorderorderidDeleteCode404Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [StoreorderorderidDeleteCode404Response.StoreorderorderidDeleteCode404Response1](#storeorderorderiddeletecode404response1)
class that deserializes responses | - -## StoreorderorderidDeleteCode404Response1 -public static class StoreorderorderidDeleteCode404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderorderidDeleteCode404Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md deleted file mode 100644 index e5c288385e7..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md +++ /dev/null @@ -1,271 +0,0 @@ -# StoreorderorderidGetPathParameters -public class StoreorderorderidGetPathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed)
sealed interface for validated payloads | -| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1](#storeorderorderidgetpathparameters1)
schema class | -| static class | [StoreorderorderidGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [StoreorderorderidGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [StoreorderorderidGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## StoreorderorderidGetPathParameters1Boxed -public sealed interface StoreorderorderidGetPathParameters1Boxed
-permits
-[StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## StoreorderorderidGetPathParameters1BoxedMap -public record StoreorderorderidGetPathParameters1BoxedMap
-implements [StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderorderidGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## StoreorderorderidGetPathParameters1 -public static class StoreorderorderidGetPathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -StoreorderorderidGetPathParameters.PathParametersMap validatedPayload = - StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( - new StoreorderorderidGetPathParameters.PathParametersMapBuilder() - .order_id(1L) - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("order_id", [Schema0.Schema01.class](../../../paths/storeorderorderid/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "order_id"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(int value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(float value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(long value) | -| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(double value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| Number | order_id()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md deleted file mode 100644 index 307f363c7c5..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# StoreorderorderidGetResponses - -public class StoreorderorderidGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointStoreorderorderidGetCode200Response](#endpointstoreorderorderidgetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointStoreorderorderidGetCode200Response](#endpointstoreorderorderidgetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointStoreorderorderidGetCode200Response -public record EndpointStoreorderorderidGetCode200Response( - HttpResponse response, - [StoreorderorderidGetCode200Response.SealedResponseBody](../../../paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md deleted file mode 100644 index d6ff718bbf9..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,83 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedNumber](#schema01boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedNumber -public record Schema01BoxedNumber
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.storeorderorderid.get.parameters.parameter0.Schema0; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// long validation -long validatedPayload = Schema0.Schema01.validate( - 1L, - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| -| String | type = "int64"; | -| Number | maximum = 5 | -| Number | minimum = 1 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| long | validate(long arg, SchemaConfiguration configuration) | -| [Schema01BoxedNumber](#schema01boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | -| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md deleted file mode 100644 index fe8b3a5b61d..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md +++ /dev/null @@ -1,123 +0,0 @@ -# StoreorderorderidGetCode200Response - -public class StoreorderorderidGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [StoreorderorderidGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [StoreorderorderidGetCode200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | -| record | [StoreorderorderidGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [StoreorderorderidGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [StoreorderorderidGetCode200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | -| record | [StoreorderorderidGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [StoreorderorderidGetCode200Response.StoreorderorderidGetCode200Response1](#storeorderorderidgetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxmlMediaType](#applicationxmlmediatype), -[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationxmlMediaType -public record ApplicationxmlMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationxmlResponseBody](#applicationxmlresponsebody), -[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationxmlResponseBody -public record ApplicationxmlResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/xml" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlResponseBody(ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | - -## StoreorderorderidGetCode200Response1 -public static class StoreorderorderidGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderorderidGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.md deleted file mode 100644 index 9abfdee4f94..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# StoreorderorderidGetCode400Response - -public class StoreorderorderidGetCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [StoreorderorderidGetCode400Response.StoreorderorderidGetCode400Response1](#storeorderorderidgetcode400response1)
class that deserializes responses | - -## StoreorderorderidGetCode400Response1 -public static class StoreorderorderidGetCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderorderidGetCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.md deleted file mode 100644 index 65dd947e134..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# StoreorderorderidGetCode404Response - -public class StoreorderorderidGetCode404Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [StoreorderorderidGetCode404Response.StoreorderorderidGetCode404Response1](#storeorderorderidgetcode404response1)
class that deserializes responses | - -## StoreorderorderidGetCode404Response1 -public static class StoreorderorderidGetCode404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| StoreorderorderidGetCode404Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index e069f9c21c8..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [Order1](../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 751649039e1..00000000000 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [Order1](../../../../../../../components/schemas/Order.md#order) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/user/UserPost.md b/samples/client/petstore/java/docs/paths/user/UserPost.md deleted file mode 100644 index 56bf1935d56..00000000000 --- a/samples/client/petstore/java/docs/paths/user/UserPost.md +++ /dev/null @@ -1,202 +0,0 @@ -# UserPost - -public class UserPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [CreateUserOperation](#createuseroperation)
The interface that has a createUser method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; -import org.openapijsonschematools.client.components.schemas.User; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.user.post.responses.UserPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.user.UserPost; -import org.openapijsonschematools.client.paths.user.post.UserPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserPost.Post apiClient = new UserPost.Post(apiConfiguration, schemaConfiguration); - - -User1BoxedMap requestBodyPayload = - User.User1.validateAndBox( - new User.UserMapBuilder() - .id(1L) - - .username("a") - - .firstName("a") - - .lastName("a") - - .email("a") - - .password("a") - - .phone("a") - - .userStatus(1) - - .objectWithNoDeclaredPropsNullable(null) - - .build(), - schemaConfiguration -); -UserPost.SealedRequestBody requestBody = new UserPost.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new UserPost.PostRequestBuilder() - .requestBody(requestBody) - .build(); - -UserPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -UserPostResponses.EndpointUserPostCodedefaultResponse castResponse = (UserPostResponses.EndpointUserPostCodedefaultResponse) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## CreateUserOperation -public interface CreateUserOperation
- -an interface that allows one to call the endpoint using a method named createUser by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | createUser([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UserPostRequestBody.SealedRequestBody](../../paths/user/post/UserPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UserPostRequestBody.@Nullable SealedRequestBody](../../paths/user/post/UserPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([UserPostRequestBody.SealedRequestBody](../../paths/user/post/UserPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/user/post/UserPostRequestBody.md b/samples/client/petstore/java/docs/paths/user/post/UserPostRequestBody.md deleted file mode 100644 index 9d8ea2c758c..00000000000 --- a/samples/client/petstore/java/docs/paths/user/post/UserPostRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# UserPostRequestBody - -public class UserPostRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [UserPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [UserPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [UserPostRequestBody.UserPostRequestBody1](#userpostrequestbody1)
class that serializes request bodies | -| sealed interface | [UserPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [UserPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## UserPostRequestBody1 -public static class UserPostRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserPostRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = true
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md b/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md deleted file mode 100644 index 50ad602e72f..00000000000 --- a/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# UserPostResponses - -public class UserPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointUserPostCodedefaultResponse](#endpointuserpostcodedefaultresponse)
the response for default | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointUserPostCodedefaultResponse](#endpointuserpostcodedefaultresponse) - -a sealed interface that stores endpoint responses - -## EndpointUserPostCodedefaultResponse -public record EndpointUserPostCodedefaultResponse( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 87ec51870cc..00000000000 --- a/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [User1](../../../../../../components/schemas/User.md#user) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [User.User1](../../../../../../components/schemas/User.md#user1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/user/post/responses/UserPostCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/user/post/responses/UserPostCodedefaultResponse.md deleted file mode 100644 index 54d8a2d8398..00000000000 --- a/samples/client/petstore/java/docs/paths/user/post/responses/UserPostCodedefaultResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# UserPostCodedefaultResponse - -public class UserPostCodedefaultResponse - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UserPostCodedefaultResponse.UserPostCodedefaultResponse1](#userpostcodedefaultresponse1)
class that deserializes responses | - -## UserPostCodedefaultResponse1 -public static class UserPostCodedefaultResponse1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserPostCodedefaultResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md deleted file mode 100644 index 1e06ba10bb3..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md +++ /dev/null @@ -1,224 +0,0 @@ -# UsercreatewitharrayPost - -public class UsercreatewitharrayPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [CreateUsersWithArrayInputOperation](#createuserswitharrayinputoperation)
The interface that has a createUsersWithArrayInput method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; -import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.UsercreatewitharrayPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.usercreatewitharray.UsercreatewitharrayPost; -import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UsercreatewitharrayPost.Post apiClient = new UsercreatewitharrayPost.Post(apiConfiguration, schemaConfiguration); - - -ApplicationjsonSchema1BoxedList requestBodyPayload = - ApplicationjsonSchema.ApplicationjsonSchema1.validateAndBox( - new ApplicationjsonSchema.ApplicationjsonSchemaListBuilder() - .add( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "id", - 1L - ), - new AbstractMap.SimpleEntry( - "username", - "a" - ), - new AbstractMap.SimpleEntry( - "firstName", - "a" - ), - new AbstractMap.SimpleEntry( - "lastName", - "a" - ), - new AbstractMap.SimpleEntry( - "email", - "a" - ), - new AbstractMap.SimpleEntry( - "password", - "a" - ), - new AbstractMap.SimpleEntry( - "phone", - "a" - ), - new AbstractMap.SimpleEntry( - "userStatus", - 1 - ), - new AbstractMap.SimpleEntry( - "objectWithNoDeclaredPropsNullable", - null - ) - ) - ) - .build(), - schemaConfiguration -); -UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody = new UsercreatewitharrayPostRequestBody.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new UsercreatewitharrayPost.PostRequestBuilder() - .requestBody(requestBody) - .build(); - -UsercreatewitharrayPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultResponse castResponse = (UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultResponse) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## CreateUsersWithArrayInputOperation -public interface CreateUsersWithArrayInputOperation
- -an interface that allows one to call the endpoint using a method named createUsersWithArrayInput by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | createUsersWithArrayInput([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UsercreatewitharrayPostRequestBody.SealedRequestBody](../../paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UsercreatewitharrayPostRequestBody.@Nullable SealedRequestBody](../../paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([UsercreatewitharrayPostRequestBody.SealedRequestBody](../../paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md deleted file mode 100644 index b96ec049cfe..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# UsercreatewitharrayPostRequestBody - -public class UsercreatewitharrayPostRequestBody extends [UserArray](../../../components/requestbodies/UserArray.md) - -A class (extended from the $ref class) that contains necessary nested request body classes -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UsercreatewitharrayPostRequestBody.UsercreatewitharrayPostRequestBody1](#usercreatewitharraypostrequestbody1)
class that serializes request bodies | - -## UsercreatewitharrayPostRequestBody1 -public static class UsercreatewitharrayPostRequestBody1 extends [UserArray1](../../../components/requestbodies/UserArray.md#userarray1)
- -a class that serializes SealedRequestBody request bodies, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md deleted file mode 100644 index c50e9f127c5..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# UsercreatewitharrayPostResponses - -public class UsercreatewitharrayPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointUsercreatewitharrayPostCodedefaultResponse](#endpointusercreatewitharraypostcodedefaultresponse)
the response for default | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointUsercreatewitharrayPostCodedefaultResponse](#endpointusercreatewitharraypostcodedefaultresponse) - -a sealed interface that stores endpoint responses - -## EndpointUsercreatewitharrayPostCodedefaultResponse -public record EndpointUsercreatewitharrayPostCodedefaultResponse( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.md deleted file mode 100644 index 163464d78b5..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# UsercreatewitharrayPostCodedefaultResponse - -public class UsercreatewitharrayPostCodedefaultResponse - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UsercreatewitharrayPostCodedefaultResponse.UsercreatewitharrayPostCodedefaultResponse1](#usercreatewitharraypostcodedefaultresponse1)
class that deserializes responses | - -## UsercreatewitharrayPostCodedefaultResponse1 -public static class UsercreatewitharrayPostCodedefaultResponse1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UsercreatewitharrayPostCodedefaultResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md deleted file mode 100644 index e4e6b7115f8..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md +++ /dev/null @@ -1,224 +0,0 @@ -# UsercreatewithlistPost - -public class UsercreatewithlistPost - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Post](#post)
The class that has a post method to call the endpoint | -| interface | [CreateUsersWithListInputOperation](#createuserswithlistinputoperation)
The interface that has a createUsersWithListInput method to call the endpoint | -| static class | [PostRequest](#postrequest)
The final request inputs class | -| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | -| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | -| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | - -## Post -public static class Post extends ApiClient.ApiClient1 implements PostOperation
- -a class that allows one to call the endpoint using a method named post - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; -import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.UsercreatewithlistPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.usercreatewithlist.UsercreatewithlistPost; -import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UsercreatewithlistPost.Post apiClient = new UsercreatewithlistPost.Post(apiConfiguration, schemaConfiguration); - - -ApplicationjsonSchema1BoxedList requestBodyPayload = - ApplicationjsonSchema.ApplicationjsonSchema1.validateAndBox( - new ApplicationjsonSchema.ApplicationjsonSchemaListBuilder() - .add( - MapUtils.makeMap( - new AbstractMap.SimpleEntry( - "id", - 1L - ), - new AbstractMap.SimpleEntry( - "username", - "a" - ), - new AbstractMap.SimpleEntry( - "firstName", - "a" - ), - new AbstractMap.SimpleEntry( - "lastName", - "a" - ), - new AbstractMap.SimpleEntry( - "email", - "a" - ), - new AbstractMap.SimpleEntry( - "password", - "a" - ), - new AbstractMap.SimpleEntry( - "phone", - "a" - ), - new AbstractMap.SimpleEntry( - "userStatus", - 1 - ), - new AbstractMap.SimpleEntry( - "objectWithNoDeclaredPropsNullable", - null - ) - ) - ) - .build(), - schemaConfiguration -); -UsercreatewithlistPostRequestBody.SealedRequestBody requestBody = new UsercreatewithlistPostRequestBody.ApplicationjsonRequestBody(requestBodyPayload); - -var request = new UsercreatewithlistPost.PostRequestBuilder() - .requestBody(requestBody) - .build(); - -UsercreatewithlistPostResponses.EndpointResponse response; -try { - response = apiClient.post(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -UsercreatewithlistPostResponses.EndpointUsercreatewithlistPostCodedefaultResponse castResponse = (UsercreatewithlistPostResponses.EndpointUsercreatewithlistPostCodedefaultResponse) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | - -## CreateUsersWithListInputOperation -public interface CreateUsersWithListInputOperation
- -an interface that allows one to call the endpoint using a method named createUsersWithListInput by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | createUsersWithListInput([PostRequest](#postrequest) request) | - -## PostRequest -public static class PostRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UsercreatewithlistPostRequestBody.SealedRequestBody](../../paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PostNullableRequest -public static class PostNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UsercreatewithlistPostRequestBody.@Nullable SealedRequestBody](../../paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md#sealedrequestbody) | requestBody | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Post0RequestBuilder -public static class Post0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | -| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## PostRequestBuilder -public static class PostRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PostRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Post0RequestBuilder](#post0requestbuilder) | requestBody([UsercreatewithlistPostRequestBody.SealedRequestBody](../../paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md deleted file mode 100644 index 872f7a38709..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md +++ /dev/null @@ -1,17 +0,0 @@ -# UsercreatewithlistPostRequestBody - -public class UsercreatewithlistPostRequestBody extends [RefUserArray](../../../components/requestbodies/RefUserArray.md) - -A class (extended from the $ref class) that contains necessary nested request body classes -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UsercreatewithlistPostRequestBody.UsercreatewithlistPostRequestBody1](#usercreatewithlistpostrequestbody1)
class that serializes request bodies | - -## UsercreatewithlistPostRequestBody1 -public static class UsercreatewithlistPostRequestBody1 extends [RefUserArray1](../../../components/requestbodies/RefUserArray.md#refuserarray1)
- -a class that serializes SealedRequestBody request bodies, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md deleted file mode 100644 index 05dc4b47005..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# UsercreatewithlistPostResponses - -public class UsercreatewithlistPostResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointUsercreatewithlistPostCodedefaultResponse](#endpointusercreatewithlistpostcodedefaultresponse)
the response for default | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointUsercreatewithlistPostCodedefaultResponse](#endpointusercreatewithlistpostcodedefaultresponse) - -a sealed interface that stores endpoint responses - -## EndpointUsercreatewithlistPostCodedefaultResponse -public record EndpointUsercreatewithlistPostCodedefaultResponse( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.md deleted file mode 100644 index 35bfb7ff687..00000000000 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# UsercreatewithlistPostCodedefaultResponse - -public class UsercreatewithlistPostCodedefaultResponse - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UsercreatewithlistPostCodedefaultResponse.UsercreatewithlistPostCodedefaultResponse1](#usercreatewithlistpostcodedefaultresponse1)
class that deserializes responses | - -## UsercreatewithlistPostCodedefaultResponse1 -public static class UsercreatewithlistPostCodedefaultResponse1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UsercreatewithlistPostCodedefaultResponse1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md deleted file mode 100644 index 8b61002c201..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md +++ /dev/null @@ -1,198 +0,0 @@ -# UserloginGet - -public class UserloginGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [LoginUserOperation](#loginuseroperation)
The interface that has a loginUser method to call the endpoint | -| static class | [GetRequest](#getrequest)
The final request inputs class | -| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | -| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode200Response; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; -import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.userlogin.UserloginGet; -import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserloginGet.Get apiClient = new UserloginGet.Get(apiConfiguration, schemaConfiguration); - - -// Map validation -UserloginGetQueryParameters.QueryParametersMap queryParameters = - UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( - new UserloginGetQueryParameters.QueryParametersMapBuilder() - .password("a") - - .username("a") - - .build(), - schemaConfiguration -); - -var request = new UserloginGet.GetRequestBuilder() - .queryParameters(queryParameters) - .build(); - -UserloginGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (UserloginGetCode400Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -UserloginGetResponses.EndpointUserloginGetCode200Response castResponse = (UserloginGetResponses.EndpointUserloginGetCode200Response) response; -if (castResponse.body instanceof UserloginGetCode200Response.ApplicationxmlResponseBody deserializedBody) { - // handle deserialized body here -} else { - UserloginGetCode200Response.ApplicationjsonResponseBody deserializedBody = (UserloginGetCode200Response.ApplicationjsonResponseBody) castResponse.body; - // handle deserialized body here -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## LoginUserOperation -public interface LoginUserOperation
- -an interface that allows one to call the endpoint using a method named loginUser by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | loginUser([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UserloginGetQueryParameters.QueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetNullableRequest -public static class GetNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UserloginGetQueryParameters.@Nullable QueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#queryparametersmap) | queryParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Get0RequestBuilder -public static class Get0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([UserloginGetQueryParametersQueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md deleted file mode 100644 index 4dbd0a7bd89..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md +++ /dev/null @@ -1,304 +0,0 @@ -# UserloginGetQueryParameters -public class UserloginGetQueryParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [UserloginGetQueryParameters.UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed)
sealed interface for validated payloads | -| record | [UserloginGetQueryParameters.UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [UserloginGetQueryParameters.UserloginGetQueryParameters1](#userlogingetqueryparameters1)
schema class | -| static class | [UserloginGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | -| static class | [UserloginGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | -| sealed interface | [UserloginGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [UserloginGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | - -## UserloginGetQueryParameters1Boxed -public sealed interface UserloginGetQueryParameters1Boxed
-permits
-[UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## UserloginGetQueryParameters1BoxedMap -public record UserloginGetQueryParameters1BoxedMap
-implements [UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserloginGetQueryParameters1 -public static class UserloginGetQueryParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -UserloginGetQueryParameters.QueryParametersMap validatedPayload = - UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( - new UserloginGetQueryParameters.QueryParametersMapBuilder() - .password("a") - - .username("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("password", [Schema1.Schema11.class](../../../paths/userlogin/get/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("username", [Schema0.Schema01.class](../../../paths/userlogin/get/parameters/parameter0/Schema0.md#schema01))
)
| -| Set | required = Set.of(
    "password",
    "username"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## QueryParametersMap00Builder -public class QueryParametersMap00Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap00Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## QueryParametersMap01Builder -public class QueryParametersMap01Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap01Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | username(String value) | - -## QueryParametersMap10Builder -public class QueryParametersMap10Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMap10Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap00Builder](#queryparametersmap00builder) | password(String value) | - -## QueryParametersMapBuilder -public class QueryParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| QueryParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [QueryParametersMap01Builder](#queryparametersmap01builder) | password(String value) | -| [QueryParametersMap10Builder](#queryparametersmap10builder) | username(String value) | - -## QueryParametersMap -public static class QueryParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | password()
| -| String | username()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md deleted file mode 100644 index 2bec55a9491..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# UserloginGetResponses - -public class UserloginGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointUserloginGetCode200Response](#endpointuserlogingetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointUserloginGetCode200Response](#endpointuserlogingetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointUserloginGetCode200Response -public record EndpointUserloginGetCode200Response( - HttpResponse response, - [UserloginGetCode200Response.SealedResponseBody](../../../paths/userlogin/get/responses/UserloginGetCode200Response.md#sealedresponsebody) body, - [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap](../../../paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md#userlogingetcode200responseheadersschemamap) headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md deleted file mode 100644 index 9ff90e0bc35..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema0 -public class Schema0
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | -| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | -| static class | [Schema0.Schema01](#schema01)
schema class | - -## Schema01Boxed -public sealed interface Schema01Boxed
-permits
-[Schema01BoxedString](#schema01boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema01BoxedString -public record Schema01BoxedString
-implements [Schema01Boxed](#schema01boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema01BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema01 -public static class Schema01
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md deleted file mode 100644 index 63ec3a884fc..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md +++ /dev/null @@ -1,49 +0,0 @@ -# Schema1 -public class Schema1
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | -| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | -| static class | [Schema1.Schema11](#schema11)
schema class | - -## Schema11Boxed -public sealed interface Schema11Boxed
-permits
-[Schema11BoxedString](#schema11boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## Schema11BoxedString -public record Schema11BoxedString
-implements [Schema11Boxed](#schema11boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Schema11BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Schema11 -public static class Schema11
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md deleted file mode 100644 index 14b2b09ab89..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md +++ /dev/null @@ -1,123 +0,0 @@ -# UserloginGetCode200Response - -public class UserloginGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [UserloginGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [UserloginGetCode200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | -| record | [UserloginGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [UserloginGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [UserloginGetCode200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | -| record | [UserloginGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [UserloginGetCode200Response.UserloginGetCode200Response1](#userlogingetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxmlMediaType](#applicationxmlmediatype), -[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationxmlMediaType -public record ApplicationxmlMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationxmlResponseBody](#applicationxmlresponsebody), -[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationxmlResponseBody -public record ApplicationxmlResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/xml" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlResponseBody(ApplicationxmlSchema.StringJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationxmlSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | - -## UserloginGetCode200Response1 -public static class UserloginGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap](../../../../paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md#userlogingetcode200responseheadersschemamap), [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap](../../../../paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md#userlogingetcode200responseheadersschemamap)> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode400Response.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode400Response.md deleted file mode 100644 index 6e8fcff275c..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# UserloginGetCode400Response - -public class UserloginGetCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UserloginGetCode400Response.UserloginGetCode400Response1](#userlogingetcode400response1)
class that deserializes responses | - -## UserloginGetCode400Response1 -public static class UserloginGetCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md deleted file mode 100644 index e97c60a1e57..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md +++ /dev/null @@ -1,389 +0,0 @@ -# UserloginGetCode200ResponseHeadersSchema -public class UserloginGetCode200ResponseHeadersSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchema1Boxed](#userlogingetcode200responseheadersschema1boxed)
sealed interface for validated payloads | -| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchema1BoxedMap](#userlogingetcode200responseheadersschema1boxedmap)
boxed class to store validated Map payloads | -| static class | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchema1](#userlogingetcode200responseheadersschema1)
schema class | -| static class | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMapBuilder](#userlogingetcode200responseheadersschemamapbuilder)
builder for Map payloads | -| static class | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap](#userlogingetcode200responseheadersschemamap)
output class for Map payloads | -| sealed interface | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed)
sealed interface for validated payloads | -| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedVoid](#userlogingetcode200responseadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedBoolean](#userlogingetcode200responseadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedNumber](#userlogingetcode200responseadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedString](#userlogingetcode200responseadditionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedList](#userlogingetcode200responseadditionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedMap](#userlogingetcode200responseadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalProperties](#userlogingetcode200responseadditionalproperties)
schema class | - -## UserloginGetCode200ResponseHeadersSchema1Boxed -public sealed interface UserloginGetCode200ResponseHeadersSchema1Boxed
-permits
-[UserloginGetCode200ResponseHeadersSchema1BoxedMap](#userlogingetcode200responseheadersschema1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## UserloginGetCode200ResponseHeadersSchema1BoxedMap -public record UserloginGetCode200ResponseHeadersSchema1BoxedMap
-implements [UserloginGetCode200ResponseHeadersSchema1Boxed](#userlogingetcode200responseheadersschema1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseHeadersSchema1BoxedMap([UserloginGetCode200ResponseHeadersSchemaMap](#userlogingetcode200responseheadersschemamap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetCode200ResponseHeadersSchemaMap](#userlogingetcode200responseheadersschemamap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserloginGetCode200ResponseHeadersSchema1 -public static class UserloginGetCode200ResponseHeadersSchema1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap validatedPayload = - UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchema1.validate( - new UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMapBuilder() - .xHyphenMinusRateHyphenMinusLimit(1) - - .int32(1) - - .refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader("a") - - .xHyphenMinusExpiresHyphenMinusAfter("1970-01-01T00:00:00.00Z") - - .numberHeader("3.14") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("X-Rate-Limit", [XRateLimitSchema.XRateLimitSchema1.class](../../../../../paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md#xratelimitschema1)),
    new PropertyEntry("int32", [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1.class](../../../../../components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md#int32jsoncontenttypeheaderschema1)),
    new PropertyEntry("X-Expires-After", [XExpiresAfterSchema.XExpiresAfterSchema1.class](../../../../../paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md#xexpiresafterschema1)),
    new PropertyEntry("ref-content-schema-header", [StringWithValidation.StringWithValidation1.class](../../../../../components/schemas/StringWithValidation.md#stringwithvalidation1)),
    new PropertyEntry("numberHeader", [NumberHeaderSchema.NumberHeaderSchema1.class](../../../../../components/headers/numberheader/NumberHeaderSchema.md#numberheaderschema1))
)
| -| Set | required = Set.of(
    "X-Rate-Limit",
    "int32",
    "ref-content-schema-header"
)
| -| Class | additionalProperties = [UserloginGetCode200ResponseAdditionalProperties.class](#userlogingetcode200responseadditionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetCode200ResponseHeadersSchemaMap](#userlogingetcode200responseheadersschemamap) | validate([Map<?, ?>](#userlogingetcode200responseheadersschemamapbuilder) arg, SchemaConfiguration configuration) | -| [UserloginGetCode200ResponseHeadersSchema1BoxedMap](#userlogingetcode200responseheadersschema1boxedmap) | validateAndBox([Map<?, ?>](#userlogingetcode200responseheadersschemamapbuilder) arg, SchemaConfiguration configuration) | -| [UserloginGetCode200ResponseHeadersSchema1Boxed](#userlogingetcode200responseheadersschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## UserloginGetCode200ResponseHeadersSchemaMap000Builder -public class UserloginGetCode200ResponseHeadersSchemaMap000Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseHeadersSchemaMap000Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | -| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | xHyphenMinusExpiresHyphenMinusAfter(String value) | -| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | numberHeader(String value) | - -## UserloginGetCode200ResponseHeadersSchemaMap001Builder -public class UserloginGetCode200ResponseHeadersSchemaMap001Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseHeadersSchemaMap001Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | - -## UserloginGetCode200ResponseHeadersSchemaMap010Builder -public class UserloginGetCode200ResponseHeadersSchemaMap010Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseHeadersSchemaMap010Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | int32(int value) | -| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | int32(float value) | - -## UserloginGetCode200ResponseHeadersSchemaMap011Builder -public class UserloginGetCode200ResponseHeadersSchemaMap011Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseHeadersSchemaMap011Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetCode200ResponseHeadersSchemaMap001Builder](#userlogingetcode200responseheadersschemamap001builder) | int32(int value) | -| [UserloginGetCode200ResponseHeadersSchemaMap001Builder](#userlogingetcode200responseheadersschemamap001builder) | int32(float value) | -| [UserloginGetCode200ResponseHeadersSchemaMap010Builder](#userlogingetcode200responseheadersschemamap010builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | - -## UserloginGetCode200ResponseHeadersSchemaMap100Builder -public class UserloginGetCode200ResponseHeadersSchemaMap100Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseHeadersSchemaMap100Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | xHyphenMinusRateHyphenMinusLimit(int value) | -| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | xHyphenMinusRateHyphenMinusLimit(float value) | - -## UserloginGetCode200ResponseHeadersSchemaMap101Builder -public class UserloginGetCode200ResponseHeadersSchemaMap101Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseHeadersSchemaMap101Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetCode200ResponseHeadersSchemaMap001Builder](#userlogingetcode200responseheadersschemamap001builder) | xHyphenMinusRateHyphenMinusLimit(int value) | -| [UserloginGetCode200ResponseHeadersSchemaMap001Builder](#userlogingetcode200responseheadersschemamap001builder) | xHyphenMinusRateHyphenMinusLimit(float value) | -| [UserloginGetCode200ResponseHeadersSchemaMap100Builder](#userlogingetcode200responseheadersschemamap100builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | - -## UserloginGetCode200ResponseHeadersSchemaMap110Builder -public class UserloginGetCode200ResponseHeadersSchemaMap110Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseHeadersSchemaMap110Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetCode200ResponseHeadersSchemaMap010Builder](#userlogingetcode200responseheadersschemamap010builder) | xHyphenMinusRateHyphenMinusLimit(int value) | -| [UserloginGetCode200ResponseHeadersSchemaMap010Builder](#userlogingetcode200responseheadersschemamap010builder) | xHyphenMinusRateHyphenMinusLimit(float value) | -| [UserloginGetCode200ResponseHeadersSchemaMap100Builder](#userlogingetcode200responseheadersschemamap100builder) | int32(int value) | -| [UserloginGetCode200ResponseHeadersSchemaMap100Builder](#userlogingetcode200responseheadersschemamap100builder) | int32(float value) | - -## UserloginGetCode200ResponseHeadersSchemaMapBuilder -public class UserloginGetCode200ResponseHeadersSchemaMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseHeadersSchemaMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserloginGetCode200ResponseHeadersSchemaMap011Builder](#userlogingetcode200responseheadersschemamap011builder) | xHyphenMinusRateHyphenMinusLimit(int value) | -| [UserloginGetCode200ResponseHeadersSchemaMap011Builder](#userlogingetcode200responseheadersschemamap011builder) | xHyphenMinusRateHyphenMinusLimit(float value) | -| [UserloginGetCode200ResponseHeadersSchemaMap101Builder](#userlogingetcode200responseheadersschemamap101builder) | int32(int value) | -| [UserloginGetCode200ResponseHeadersSchemaMap101Builder](#userlogingetcode200responseheadersschemamap101builder) | int32(float value) | -| [UserloginGetCode200ResponseHeadersSchemaMap110Builder](#userlogingetcode200responseheadersschemamap110builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | - -## UserloginGetCode200ResponseHeadersSchemaMap -public static class UserloginGetCode200ResponseHeadersSchemaMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [UserloginGetCode200ResponseHeadersSchemaMap](#userlogingetcode200responseheadersschemamap) | of([Map](#userlogingetcode200responseheadersschemamapbuilder) arg, SchemaConfiguration configuration) | -| Number | int32()
| -| String | numberHeader()
[optional] | -| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["X-Rate-Limit"], instance["ref-content-schema-header"], instance["X-Expires-After"], | - -## UserloginGetCode200ResponseAdditionalPropertiesBoxed -public sealed interface UserloginGetCode200ResponseAdditionalPropertiesBoxed
-permits
-[UserloginGetCode200ResponseAdditionalPropertiesBoxedVoid](#userlogingetcode200responseadditionalpropertiesboxedvoid), -[UserloginGetCode200ResponseAdditionalPropertiesBoxedBoolean](#userlogingetcode200responseadditionalpropertiesboxedboolean), -[UserloginGetCode200ResponseAdditionalPropertiesBoxedNumber](#userlogingetcode200responseadditionalpropertiesboxednumber), -[UserloginGetCode200ResponseAdditionalPropertiesBoxedString](#userlogingetcode200responseadditionalpropertiesboxedstring), -[UserloginGetCode200ResponseAdditionalPropertiesBoxedList](#userlogingetcode200responseadditionalpropertiesboxedlist), -[UserloginGetCode200ResponseAdditionalPropertiesBoxedMap](#userlogingetcode200responseadditionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## UserloginGetCode200ResponseAdditionalPropertiesBoxedVoid -public record UserloginGetCode200ResponseAdditionalPropertiesBoxedVoid
-implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseAdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserloginGetCode200ResponseAdditionalPropertiesBoxedBoolean -public record UserloginGetCode200ResponseAdditionalPropertiesBoxedBoolean
-implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseAdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserloginGetCode200ResponseAdditionalPropertiesBoxedNumber -public record UserloginGetCode200ResponseAdditionalPropertiesBoxedNumber
-implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseAdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserloginGetCode200ResponseAdditionalPropertiesBoxedString -public record UserloginGetCode200ResponseAdditionalPropertiesBoxedString
-implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseAdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserloginGetCode200ResponseAdditionalPropertiesBoxedList -public record UserloginGetCode200ResponseAdditionalPropertiesBoxedList
-implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseAdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserloginGetCode200ResponseAdditionalPropertiesBoxedMap -public record UserloginGetCode200ResponseAdditionalPropertiesBoxedMap
-implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserloginGetCode200ResponseAdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserloginGetCode200ResponseAdditionalProperties -public static class UserloginGetCode200ResponseAdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index fe0b32c3b81..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1Boxed -public sealed interface ApplicationjsonSchema1Boxed
-permits
-[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationjsonSchema1BoxedString -public record ApplicationjsonSchema1BoxedString
-implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index 81b5c1d6689..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
sealed interface for validated payloads | -| record | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring)
boxed class to store validated String payloads | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1Boxed -public sealed interface ApplicationxmlSchema1Boxed
-permits
-[ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ApplicationxmlSchema1BoxedString -public record ApplicationxmlSchema1BoxedString
-implements [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends StringJsonSchema.StringJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md deleted file mode 100644 index 20c88d889d0..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# XExpiresAfterSchema -public class XExpiresAfterSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [XExpiresAfterSchema.XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed)
sealed interface for validated payloads | -| record | [XExpiresAfterSchema.XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring)
boxed class to store validated String payloads | -| static class | [XExpiresAfterSchema.XExpiresAfterSchema1](#xexpiresafterschema1)
schema class | - -## XExpiresAfterSchema1Boxed -public sealed interface XExpiresAfterSchema1Boxed
-permits
-[XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring) - -sealed interface that stores validated payloads using boxed classes - -## XExpiresAfterSchema1BoxedString -public record XExpiresAfterSchema1BoxedString
-implements [XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| XExpiresAfterSchema1BoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## XExpiresAfterSchema1 -public static class XExpiresAfterSchema1
-extends DateTimeJsonSchema.DateTimeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.DateTimeJsonSchema.DateTimeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md deleted file mode 100644 index 76dfd4f33af..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md +++ /dev/null @@ -1,49 +0,0 @@ -# XRateLimitSchema -public class XRateLimitSchema
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [XRateLimitSchema.XRateLimitSchema1Boxed](#xratelimitschema1boxed)
sealed interface for validated payloads | -| record | [XRateLimitSchema.XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber)
boxed class to store validated Number payloads | -| static class | [XRateLimitSchema.XRateLimitSchema1](#xratelimitschema1)
schema class | - -## XRateLimitSchema1Boxed -public sealed interface XRateLimitSchema1Boxed
-permits
-[XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber) - -sealed interface that stores validated payloads using boxed classes - -## XRateLimitSchema1BoxedNumber -public record XRateLimitSchema1BoxedNumber
-implements [XRateLimitSchema1Boxed](#xratelimitschema1boxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| XRateLimitSchema1BoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## XRateLimitSchema1 -public static class XRateLimitSchema1
-extends Int32JsonSchema.Int32JsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.Int32JsonSchema.Int32JsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md deleted file mode 100644 index 956ee1d3dec..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md +++ /dev/null @@ -1,142 +0,0 @@ -# UserlogoutGet - -public class UserlogoutGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [LogoutUserOperation](#logoutuseroperation)
The interface that has a logoutUser method to call the endpoint | -| static class | [GetRequest](#getrequest)
The request inputs class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.userlogout.get.responses.UserlogoutGetCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.userlogout.UserlogoutGet; -import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserlogoutGet.Get apiClient = new UserlogoutGet.Get(apiConfiguration, schemaConfiguration); - - -var request = new UserlogoutGet.GetRequestBuilder().build(); - -UserlogoutGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse castResponse = (UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## LogoutUserOperation -public interface LogoutUserOperation
- -an interface that allows one to call the endpoint using a method named logoutUser by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | logoutUser([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [GetRequestBuilder](#getrequestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md b/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md deleted file mode 100644 index 794cda537cb..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# UserlogoutGetResponses - -public class UserlogoutGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointUserlogoutGetCodedefaultResponse](#endpointuserlogoutgetcodedefaultresponse)
the response for default | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointUserlogoutGetCodedefaultResponse](#endpointuserlogoutgetcodedefaultresponse) - -a sealed interface that stores endpoint responses - -## EndpointUserlogoutGetCodedefaultResponse -public record EndpointUserlogoutGetCodedefaultResponse( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.md deleted file mode 100644 index 7f34ffefe37..00000000000 --- a/samples/client/petstore/java/docs/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# UserlogoutGetCodedefaultResponse - -public class UserlogoutGetCodedefaultResponse extends [RefSuccessDescriptionOnly](../../components/responses/RefSuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UserlogoutGetCodedefaultResponse.UserlogoutGetCodedefaultResponse1](#userlogoutgetcodedefaultresponse1)
class that deserializes responses | - -## UserlogoutGetCodedefaultResponse1 -public static class UserlogoutGetCodedefaultResponse1 extends [RefSuccessDescriptionOnly1](../../components/responses/RefSuccessDescriptionOnly.md#refsuccessdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md deleted file mode 100644 index 003f5a2e4bb..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md +++ /dev/null @@ -1,189 +0,0 @@ -# UserusernameDelete - -public class UserusernameDelete - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | -| interface | [DeleteUserOperation](#deleteuseroperation)
The interface that has a deleteUser method to call the endpoint | -| static class | [DeleteRequest](#deleterequest)
The final request inputs class | -| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | -| static class | [Delete0RequestBuilder](#delete0requestbuilder)
A builder for the request input class | -| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | - -## Delete -public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
- -a class that allows one to call the endpoint using a method named delete - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode200Response; -import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.userusername.UserusernameDelete; -import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserusernameDelete.Delete apiClient = new UserusernameDelete.Delete(apiConfiguration, schemaConfiguration); - - -// Map validation -UserusernameDeletePathParameters.PathParametersMap pathParameters = - UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( - new UserusernameDeletePathParameters.PathParametersMapBuilder() - .username("a") - - .build(), - schemaConfiguration -); - -var request = new UserusernameDelete.DeleteRequestBuilder() - .pathParameters(pathParameters) - .build(); - -UserusernameDeleteResponses.EndpointResponse response; -try { - response = apiClient.delete(request); -} catch (UserusernameDeleteCode404Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response castResponse = (UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response) response; -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | - -## DeleteUserOperation -public interface DeleteUserOperation
- -an interface that allows one to call the endpoint using a method named deleteUser by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | deleteUser([DeleteRequest](#deleterequest) request) | - -## DeleteRequest -public static class DeleteRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UserusernameDeletePathParameters.PathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## DeleteNullableRequest -public static class DeleteNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UserusernameDeletePathParameters.@Nullable PathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Delete0RequestBuilder -public static class Delete0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Delete0RequestBuilder(Delete0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | -| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## DeleteRequestBuilder -public static class DeleteRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([UserusernameDeletePathParametersPathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md deleted file mode 100644 index 4d72635a3b1..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md +++ /dev/null @@ -1,196 +0,0 @@ -# UserusernameGet - -public class UserusernameGet - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Get](#get)
The class that has a get method to call the endpoint | -| interface | [GetUserByNameOperation](#getuserbynameoperation)
The interface that has a getUserByName method to call the endpoint | -| static class | [GetRequest](#getrequest)
The final request inputs class | -| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | -| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | -| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | - -## Get -public static class Get extends ApiClient.ApiClient1 implements GetOperation
- -a class that allows one to call the endpoint using a method named get - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode200Response; -import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode400Response; -import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.userusername.UserusernameGet; -import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserusernameGet.Get apiClient = new UserusernameGet.Get(apiConfiguration, schemaConfiguration); - - -// Map validation -UserusernameGetPathParameters.PathParametersMap pathParameters = - UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( - new UserusernameGetPathParameters.PathParametersMapBuilder() - .username("a") - - .build(), - schemaConfiguration -); - -var request = new UserusernameGet.GetRequestBuilder() - .pathParameters(pathParameters) - .build(); - -UserusernameGetResponses.EndpointResponse response; -try { - response = apiClient.get(request); -} catch (UserusernameGetCode400Response.ResponseApiException | UserusernameGetCode404Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -UserusernameGetResponses.EndpointUserusernameGetCode200Response castResponse = (UserusernameGetResponses.EndpointUserusernameGetCode200Response) response; -if (castResponse.body instanceof UserusernameGetCode200Response.ApplicationxmlResponseBody deserializedBody) { - // handle deserialized body here -} else { - UserusernameGetCode200Response.ApplicationjsonResponseBody deserializedBody = (UserusernameGetCode200Response.ApplicationjsonResponseBody) castResponse.body; - // handle deserialized body here -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | - -## GetUserByNameOperation -public interface GetUserByNameOperation
- -an interface that allows one to call the endpoint using a method named getUserByName by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | getUserByName([GetRequest](#getrequest) request) | - -## GetRequest -public static class GetRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UserusernameGetPathParameters.PathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## GetNullableRequest -public static class GetNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UserusernameGetPathParameters.@Nullable PathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Get0RequestBuilder -public static class Get0RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | -| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## GetRequestBuilder -public static class GetRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| GetRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([UserusernameGetPathParametersPathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md deleted file mode 100644 index ca9aae9c168..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md +++ /dev/null @@ -1,252 +0,0 @@ -# UserusernamePut - -public class UserusernamePut - -A class that contains necessary endpoint classes -- a class that calls the endpoint method using the http verb -- a class that calls the endpoint method using the operationId name -- class(es) to store the request inputs -- builder(s) to set the request input data - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [Put](#put)
The class that has a put method to call the endpoint | -| interface | [UpdateUserOperation](#updateuseroperation)
The interface that has a updateUser method to call the endpoint | -| static class | [PutRequest](#putrequest)
The final request inputs class | -| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | -| static class | [Put00RequestBuilder](#put00requestbuilder)
A builder for the request input class | -| static class | [Put01RequestBuilder](#put01requestbuilder)
A builder for the request input class | -| static class | [Put10RequestBuilder](#put10requestbuilder)
A builder for the request input class | -| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | - -## Put -public static class Put extends ApiClient.ApiClient1 implements PutOperation
- -a class that allows one to call the endpoint using a method named put - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; -import org.openapijsonschematools.client.components.schemas.User; -import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode400Response; -import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; -import org.openapijsonschematools.client.paths.userusername.UserusernamePut; -import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) - .build() - ) - .build(); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) - .build(); -Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); -ApiConfiguration apiConfiguration = new ApiConfiguration( - serverInfo - serverIndexInfo, - timeout, - defaultHeaders -); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); -UserusernamePut.Put apiClient = new UserusernamePut.Put(apiConfiguration, schemaConfiguration); - - -User1BoxedMap requestBodyPayload = - User.User1.validateAndBox( - new User.UserMapBuilder() - .id(1L) - - .username("a") - - .firstName("a") - - .lastName("a") - - .email("a") - - .password("a") - - .phone("a") - - .userStatus(1) - - .objectWithNoDeclaredPropsNullable(null) - - .build(), - schemaConfiguration -); -UserusernamePut.SealedRequestBody requestBody = new UserusernamePut.ApplicationjsonRequestBody(requestBodyPayload); - -// Map validation -UserusernamePutPathParameters.PathParametersMap pathParameters = - UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( - new UserusernamePutPathParameters.PathParametersMapBuilder() - .username("a") - - .build(), - schemaConfiguration -); - -var request = new UserusernamePut.PutRequestBuilder() - .requestBody(requestBody) - .pathParameters(pathParameters) - .build(); - -Void response; -try { - response = apiClient.put(request); -} catch (UserusernamePutCode400Response.ResponseApiException | UserusernamePutCode404Response.ResponseApiException e) { - // server returned an error response defined in the openapi document - throw e; -} catch (ApiException e) { - // server returned a response/contentType not defined in the openapi document - throw e; -} catch (ValidationException e) { - // the returned response body or header values do not conform the the schema validation requirements - throw e; -} catch (IOException | InterruptedException e) { - // an exception happened when making the request - throw e; -} catch (NotImplementedException e) { - // the request body serialization or deserialization has not yet been implemented - // or the header content type deserialization has not yet been implemented for this contentType - throw e; -} -``` -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | put([PutRequest](#putrequest) request) | - -## UpdateUserOperation -public interface UpdateUserOperation
- -an interface that allows one to call the endpoint using a method named updateUser by the operationId - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | updateUser([PutRequest](#putrequest) request) | - -## PutRequest -public static class PutRequest
- -a class that stores the final request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | -| [UserusernamePutPathParameters.PathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | -| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | - -## PutNullableRequest -public static class PutNullableRequest
- -a class that stores the initial request inputs - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [UserusernamePutRequestBody.@Nullable SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | -| [UserusernamePutPathParameters.@Nullable PathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) | pathParameters | -| [ServerInfo.@Nullable ServerIndex](../../ServerInfo.md#serverindex) | serverIndex | -| @Nullable Duration | timeout | - -## Put00RequestBuilder -public static class Put00RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put00RequestBuilder(Put00RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | -| [Put00RequestBuilder](#put00requestbuilder) | serverIndex([ServerInfo.ServerIndex](../../ServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | -| [Put00RequestBuilder](#put00requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | - -## Put01RequestBuilder -public static class Put01RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put01RequestBuilder(Put01RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | pathParameters([UserusernamePutPathParametersPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -## Put10RequestBuilder -public static class Put10RequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Put10RequestBuilder(Put10RequestBuilder instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Put00RequestBuilder](#put00requestbuilder) | requestBody([UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) requestBody)
sets the property | - -## PutRequestBuilder -public static class PutRequestBuilder
- -a builder for request inputs - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PutRequestBuilder()
Creates a builder that contains null for all parameters | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [Put01RequestBuilder](#put01requestbuilder) | requestBody([UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) requestBody)
sets the property | -| [Put10RequestBuilder](#put10requestbuilder) | pathParameters([UserusernamePutPathParametersPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) pathParameters)
sets the property | - -[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md deleted file mode 100644 index bc778942750..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# UserusernameDeletePathParameters -public class UserusernameDeletePathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed)
sealed interface for validated payloads | -| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1](#userusernamedeletepathparameters1)
schema class | -| static class | [UserusernameDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [UserusernameDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [UserusernameDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernameDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## UserusernameDeletePathParameters1Boxed -public sealed interface UserusernameDeletePathParameters1Boxed
-permits
-[UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## UserusernameDeletePathParameters1BoxedMap -public record UserusernameDeletePathParameters1BoxedMap
-implements [UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernameDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserusernameDeletePathParameters1 -public static class UserusernameDeletePathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -UserusernameDeletePathParameters.PathParametersMap validatedPayload = - UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( - new UserusernameDeletePathParameters.PathParametersMapBuilder() - .username("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| -| Set | required = Set.of(
    "username"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | username(String value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | username()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md deleted file mode 100644 index b753c79b8d9..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# UserusernameDeleteResponses - -public class UserusernameDeleteResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointUserusernameDeleteCode200Response](#endpointuserusernamedeletecode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointUserusernameDeleteCode200Response](#endpointuserusernamedeletecode200response) - -a sealed interface that stores endpoint responses - -## EndpointUserusernameDeleteCode200Response -public record EndpointUserusernameDeleteCode200Response( - HttpResponse response, - Void body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode200Response.md b/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode200Response.md deleted file mode 100644 index bf7c6aee09d..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# UserusernameDeleteCode200Response - -public class UserusernameDeleteCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) - -A class (extended from the $ref class) that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UserusernameDeleteCode200Response.UserusernameDeleteCode200Response1](#userusernamedeletecode200response1)
class that deserializes responses | - -## UserusernameDeleteCode200Response1 -public static class UserusernameDeleteCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
- -a class that deserializes responses, extended from the $ref class - diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode404Response.md b/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode404Response.md deleted file mode 100644 index 971ff60ecb9..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# UserusernameDeleteCode404Response - -public class UserusernameDeleteCode404Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UserusernameDeleteCode404Response.UserusernameDeleteCode404Response1](#userusernamedeletecode404response1)
class that deserializes responses | - -## UserusernameDeleteCode404Response1 -public static class UserusernameDeleteCode404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernameDeleteCode404Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md deleted file mode 100644 index ffc84b77fe4..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# UserusernameGetPathParameters -public class UserusernameGetPathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [UserusernameGetPathParameters.UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed)
sealed interface for validated payloads | -| record | [UserusernameGetPathParameters.UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernameGetPathParameters.UserusernameGetPathParameters1](#userusernamegetpathparameters1)
schema class | -| static class | [UserusernameGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [UserusernameGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [UserusernameGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernameGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## UserusernameGetPathParameters1Boxed -public sealed interface UserusernameGetPathParameters1Boxed
-permits
-[UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## UserusernameGetPathParameters1BoxedMap -public record UserusernameGetPathParameters1BoxedMap
-implements [UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernameGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserusernameGetPathParameters1 -public static class UserusernameGetPathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -UserusernameGetPathParameters.PathParametersMap validatedPayload = - UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( - new UserusernameGetPathParameters.PathParametersMapBuilder() - .username("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| -| Set | required = Set.of(
    "username"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | username(String value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | username()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md deleted file mode 100644 index 25ade8993d1..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md +++ /dev/null @@ -1,29 +0,0 @@ -# UserusernameGetResponses - -public class UserusernameGetResponses - -A class that contains necessary responses classes -- a sealed interface, EndpointResponse, that stores endpoint responses -- records for each endpoint response - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | -| record | [EndpointUserusernameGetCode200Response](#endpointuserusernamegetcode200response)
the response for 200 | - -## EndpointResponse -public sealed interface EndpointResponse permits
-[EndpointUserusernameGetCode200Response](#endpointuserusernamegetcode200response) - -a sealed interface that stores endpoint responses - -## EndpointUserusernameGetCode200Response -public record EndpointUserusernameGetCode200Response( - HttpResponse response, - [UserusernameGetCode200Response.SealedResponseBody](../../../paths/userusername/get/responses/UserusernameGetCode200Response.md#sealedresponsebody) body, - Void headers -) implements EndpointResponse, ApiResponse
- -a class that stores an endpoint response - diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md deleted file mode 100644 index cb23ae18478..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md +++ /dev/null @@ -1,123 +0,0 @@ -# UserusernameGetCode200Response - -public class UserusernameGetCode200Response - -A class that contains necessary nested response classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- SealedResponseBody, a sealed interface which contains all the contentType/schema types -- records which implement SealedResponseBody, the concrete response body types -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [UserusernameGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [UserusernameGetCode200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | -| record | [UserusernameGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| sealed interface | [UserusernameGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | -| record | [UserusernameGetCode200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | -| record | [UserusernameGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | -| static class | [UserusernameGetCode200Response.UserusernameGetCode200Response1](#userusernamegetcode200response1)
class that deserializes responses | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationxmlMediaType](#applicationxmlmediatype), -[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - -## ApplicationxmlMediaType -public record ApplicationxmlMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## SealedResponseBody -public sealed interface SealedResponseBody
-permits
-[ApplicationxmlResponseBody](#applicationxmlresponsebody), -[ApplicationjsonResponseBody](#applicationjsonresponsebody) - -sealed interface that stores response body - -## ApplicationxmlResponseBody -public record ApplicationxmlResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/xml" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationxmlResponseBody(ApplicationxmlSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationxmlSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | -## ApplicationjsonResponseBody -public record ApplicationjsonResponseBody
-implements [SealedResponseBody](#sealedresponsebody) - -A record class to store response body for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApplicationjsonSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | - -## UserusernameGetCode200Response1 -public static class UserusernameGetCode200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernameGetCode200Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode400Response.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode400Response.md deleted file mode 100644 index 9e94f8cf6cd..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# UserusernameGetCode400Response - -public class UserusernameGetCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UserusernameGetCode400Response.UserusernameGetCode400Response1](#userusernamegetcode400response1)
class that deserializes responses | - -## UserusernameGetCode400Response1 -public static class UserusernameGetCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernameGetCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode404Response.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode404Response.md deleted file mode 100644 index 8701478bc14..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# UserusernameGetCode404Response - -public class UserusernameGetCode404Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UserusernameGetCode404Response.UserusernameGetCode404Response1](#userusernamegetcode404response1)
class that deserializes responses | - -## UserusernameGetCode404Response1 -public static class UserusernameGetCode404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernameGetCode404Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 3433b43b8a4..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [User1](../../../../../../../components/schemas/User.md#user) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [User.User1](../../../../../../../components/schemas/User.md#user1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md deleted file mode 100644 index b5aa20f221c..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationxmlSchema -public class ApplicationxmlSchema
-extends [User1](../../../../../../../components/schemas/User.md#user) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | - -## ApplicationxmlSchema1 -public static class ApplicationxmlSchema1
-extends [User.User1](../../../../../../../components/schemas/User.md#user1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md deleted file mode 100644 index fbfd5bccc9b..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md +++ /dev/null @@ -1,268 +0,0 @@ -# UserusernamePutPathParameters -public class UserusernamePutPathParameters
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [UserusernamePutPathParameters.UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed)
sealed interface for validated payloads | -| record | [UserusernamePutPathParameters.UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernamePutPathParameters.UserusernamePutPathParameters1](#userusernameputpathparameters1)
schema class | -| static class | [UserusernamePutPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | -| static class | [UserusernamePutPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | -| sealed interface | [UserusernamePutPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [UserusernamePutPathParameters.AdditionalProperties](#additionalproperties)
schema class | - -## UserusernamePutPathParameters1Boxed -public sealed interface UserusernamePutPathParameters1Boxed
-permits
-[UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## UserusernamePutPathParameters1BoxedMap -public record UserusernamePutPathParameters1BoxedMap
-implements [UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernamePutPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## UserusernamePutPathParameters1 -public static class UserusernamePutPathParameters1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -UserusernamePutPathParameters.PathParametersMap validatedPayload = - UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( - new UserusernamePutPathParameters.PathParametersMapBuilder() - .username("a") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| -| Set | required = Set.of(
    "username"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| [UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## PathParametersMap0Builder -public class PathParametersMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## PathParametersMapBuilder -public class PathParametersMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PathParametersMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [PathParametersMap0Builder](#pathparametersmap0builder) | username(String value) | - -## PathParametersMap -public static class PathParametersMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | -| String | username()
| - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutRequestBody.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutRequestBody.md deleted file mode 100644 index c0854704243..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutRequestBody.md +++ /dev/null @@ -1,90 +0,0 @@ -# UserusernamePutRequestBody - -public class UserusernamePutRequestBody - -A class that contains necessary nested request body classes -- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType -- records which implement SealedMediaType, the concrete media types -- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances -- SealedRequestBody, a sealed interface which contains all the contentType/schema input types -- records which implement SealedRequestBody, the concrete request body types - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| sealed interface | [UserusernamePutRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | -| record | [UserusernamePutRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | -| static class | [UserusernamePutRequestBody.UserusernamePutRequestBody1](#userusernameputrequestbody1)
class that serializes request bodies | -| sealed interface | [UserusernamePutRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | -| record | [UserusernamePutRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | - -## SealedMediaType -public sealed interface SealedMediaType
-permits
-[ApplicationjsonMediaType](#applicationjsonmediatype) - -sealed interface that stores schema and encoding info - - -## ApplicationjsonMediaType -public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> - -class storing schema info for a specific contentType - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonMediaType()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | -| Void | encoding()
the encoding info | - -## UserusernamePutRequestBody1 -public static class UserusernamePutRequestBody1
- -a class that serializes SealedRequestBody request bodies - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernamePutRequestBody1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| boolean | required = true
whether the request body is required | -| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | - -## SealedRequestBody -public sealed interface SealedRequestBody
-permits
-[ApplicationjsonRequestBody](#applicationjsonrequestbody) - -sealed interface that stores request contentType + validated schema data - -## ApplicationjsonRequestBody -public record ApplicationjsonRequestBody
-implements [SealedRequestBody](#sealedrequestbody),
-GenericRequestBody
- -A record class to store request body input for contentType="application/json" - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ApplicationjsonRequestBody(ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) body)
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | contentType()
always returns "application/json" | -| ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md deleted file mode 100644 index 13a79a9fefe..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md +++ /dev/null @@ -1,10 +0,0 @@ -# UserusernamePutResponses - -public class UserusernamePutResponses - -A class that contains necessary responses classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | - diff --git a/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md deleted file mode 100644 index 87ec51870cc..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApplicationjsonSchema -public class ApplicationjsonSchema
-extends [User1](../../../../../../components/schemas/User.md#user) - -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | - -## ApplicationjsonSchema1 -public static class ApplicationjsonSchema1
-extends [User.User1](../../../../../../components/schemas/User.md#user1) - -A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode400Response.md b/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode400Response.md deleted file mode 100644 index 6512b98b518..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode400Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# UserusernamePutCode400Response - -public class UserusernamePutCode400Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UserusernamePutCode400Response.UserusernamePutCode400Response1](#userusernameputcode400response1)
class that deserializes responses | - -## UserusernamePutCode400Response1 -public static class UserusernamePutCode400Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernamePutCode400Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode404Response.md b/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode404Response.md deleted file mode 100644 index 7a175514d70..00000000000 --- a/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode404Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# UserusernamePutCode404Response - -public class UserusernamePutCode404Response - -A class that contains necessary nested response classes -- a class that extends ResponseDeserializer and is used to deserialize responses - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [UserusernamePutCode404Response.UserusernamePutCode404Response1](#userusernameputcode404response1)
class that deserializes responses | - -## UserusernamePutCode404Response1 -public static class UserusernamePutCode404Response1
-extends ResponseDeserializer - -a class that deserializes responses - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| UserusernamePutCode404Response1()
Creates an instance | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| Map | content = MapUtils.makeMap(
)
the contentType to schema info | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/servers/Server0.md b/samples/client/petstore/java/docs/servers/Server0.md deleted file mode 100644 index f6fcf83ffa7..00000000000 --- a/samples/client/petstore/java/docs/servers/Server0.md +++ /dev/null @@ -1,22 +0,0 @@ -org.openapijsonschematools.client.servers.Server0 -# Server Server0 -public class Server0 - -A class that stores a server url - -## Description -petstore server - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Server0()
Creates a server using default values for variables | -| Server0([Server0Variables.VariablesMap](../servers/server0/Server0Variables.md#variablesmap) variables)
Creates a server using input values for variables | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| String | url = "http://{server}.swagger.io:{port}/v2" | -| [Server0Variables.VariablesMap](../servers/server0/Server0Variables.md#variablesmap) | variables | - -[[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/Server1.md b/samples/client/petstore/java/docs/servers/Server1.md deleted file mode 100644 index 5111ff6f118..00000000000 --- a/samples/client/petstore/java/docs/servers/Server1.md +++ /dev/null @@ -1,22 +0,0 @@ -org.openapijsonschematools.client.servers.Server1 -# Server Server1 -public class Server1 - -A class that stores a server url - -## Description -The local server - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Server1()
Creates a server using default values for variables | -| Server1([Server1Variables.VariablesMap](../servers/server1/Server1Variables.md#variablesmap) variables)
Creates a server using input values for variables | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| String | url = "https://localhost:8080/{version}" | -| [Server1Variables.VariablesMap](../servers/server1/Server1Variables.md#variablesmap) | variables | - -[[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/Server2.md b/samples/client/petstore/java/docs/servers/Server2.md deleted file mode 100644 index c45cd5211e5..00000000000 --- a/samples/client/petstore/java/docs/servers/Server2.md +++ /dev/null @@ -1,20 +0,0 @@ -org.openapijsonschematools.client.servers.Server2 -# Server Server2 -public class Server2 - -A class that stores a server url - -## Description -staging server with no variables - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Server2()
Creates a server | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| String | url = "https://localhost:8080" | - -[[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/server0/Server0Variables.md b/samples/client/petstore/java/docs/servers/server0/Server0Variables.md deleted file mode 100644 index 38f1e53a380..00000000000 --- a/samples/client/petstore/java/docs/servers/server0/Server0Variables.md +++ /dev/null @@ -1,486 +0,0 @@ -# Server0Variables -public class Server0Variables
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Server0Variables.Server0Variables1Boxed](#server0variables1boxed)
sealed interface for validated payloads | -| record | [Server0Variables.Server0Variables1BoxedMap](#server0variables1boxedmap)
boxed class to store validated Map payloads | -| static class | [Server0Variables.Server0Variables1](#server0variables1)
schema class | -| static class | [Server0Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | -| static class | [Server0Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| sealed interface | [Server0Variables.PortBoxed](#portboxed)
sealed interface for validated payloads | -| record | [Server0Variables.PortBoxedString](#portboxedstring)
boxed class to store validated String payloads | -| static class | [Server0Variables.Port](#port)
schema class | -| enum | [Server0Variables.StringPortEnums](#stringportenums)
String enum | -| sealed interface | [Server0Variables.ServerBoxed](#serverboxed)
sealed interface for validated payloads | -| record | [Server0Variables.ServerBoxedString](#serverboxedstring)
boxed class to store validated String payloads | -| static class | [Server0Variables.Server](#server)
schema class | -| enum | [Server0Variables.StringServerEnums](#stringserverenums)
String enum | -| sealed interface | [Server0Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Server0Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Server0Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Server0Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Server0Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Server0Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Server0Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Server0Variables.AdditionalProperties](#additionalproperties)
schema class | - -## Server0Variables1Boxed -public sealed interface Server0Variables1Boxed
-permits
-[Server0Variables1BoxedMap](#server0variables1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Server0Variables1BoxedMap -public record Server0Variables1BoxedMap
-implements [Server0Variables1Boxed](#server0variables1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Server0Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Server0Variables1 -public static class Server0Variables1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.servers.server0.Server0Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -Server0Variables.VariablesMap validatedPayload = - Server0Variables.Server0Variables1.validate( - new Server0Variables.VariablesMapBuilder() - .port("80") - - .server("petstore") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("server", [Server.class](#server))),
    new PropertyEntry("port", [Port.class](#port)))
)
| -| Set | required = Set.of(
    "port",
    "server"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Server0Variables1BoxedMap](#server0variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Server0Variables1Boxed](#server0variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## VariablesMap00Builder -public class VariablesMap00Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VariablesMap00Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## VariablesMap01Builder -public class VariablesMap01Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VariablesMap01Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap00Builder](#variablesmap00builder) | server(String value) | -| [VariablesMap00Builder](#variablesmap00builder) | server([StringServerEnums](#stringserverenums) value) | - -## VariablesMap10Builder -public class VariablesMap10Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VariablesMap10Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap00Builder](#variablesmap00builder) | port(String value) | -| [VariablesMap00Builder](#variablesmap00builder) | port([StringPortEnums](#stringportenums) value) | - -## VariablesMapBuilder -public class VariablesMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VariablesMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap01Builder](#variablesmap01builder) | port(String value) | -| [VariablesMap01Builder](#variablesmap01builder) | port([StringPortEnums](#stringportenums) value) | -| [VariablesMap10Builder](#variablesmap10builder) | server(String value) | -| [VariablesMap10Builder](#variablesmap10builder) | server([StringServerEnums](#stringserverenums) value) | - -## VariablesMap -public static class VariablesMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| String | port()
must be one of ["80", "8080"] if omitted the server will use the default value of 80 | -| String | server()
must be one of ["petstore", "qa-petstore", "dev-petstore"] if omitted the server will use the default value of petstore | - -## PortBoxed -public sealed interface PortBoxed
-permits
-[PortBoxedString](#portboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## PortBoxedString -public record PortBoxedString
-implements [PortBoxed](#portboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| PortBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Port -public static class Port
-extends JsonSchema - -A schema class that validates payloads - -## Description -the port - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.servers.server0.Server0Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Server0Variables.Port.validate( - "80", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "80",
    "8080"
)
| -| @Nullable Object | defaultValue = "80" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringPortEnums](#stringportenums) arg, SchemaConfiguration configuration) | -| [PortBoxedString](#portboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [PortBoxed](#portboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringPortEnums -public enum StringPortEnums
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| POSITIVE_80 | value = "80" | -| POSITIVE_8080 | value = "8080" | - -## ServerBoxed -public sealed interface ServerBoxed
-permits
-[ServerBoxedString](#serverboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## ServerBoxedString -public record ServerBoxedString
-implements [ServerBoxed](#serverboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ServerBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Server -public static class Server
-extends JsonSchema - -A schema class that validates payloads - -## Description -server host prefix - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.servers.server0.Server0Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Server0Variables.Server.validate( - "petstore", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "petstore",
    "qa-petstore",
    "dev-petstore"
)
| -| @Nullable Object | defaultValue = "petstore" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringServerEnums](#stringserverenums) arg, SchemaConfiguration configuration) | -| [ServerBoxedString](#serverboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [ServerBoxed](#serverboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringServerEnums -public enum StringServerEnums
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| PETSTORE | value = "petstore" | -| QA_HYPHEN_MINUS_PETSTORE | value = "qa-petstore" | -| DEV_HYPHEN_MINUS_PETSTORE | value = "dev-petstore" | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/docs/servers/server1/Server1Variables.md b/samples/client/petstore/java/docs/servers/server1/Server1Variables.md deleted file mode 100644 index 7d52e4c27a7..00000000000 --- a/samples/client/petstore/java/docs/servers/server1/Server1Variables.md +++ /dev/null @@ -1,355 +0,0 @@ -# Server1Variables -public class Server1Variables
- -A class that contains necessary nested -- schema classes (which validate payloads), extends JsonSchema -- sealed interfaces which store validated payloads, java version of a sum type -- boxed classes which store validated payloads, sealed permits class implementations -- classes to store validated map payloads, extends FrozenMap -- classes to build inputs for map payloads -- enum classes - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | ---------------------- | -| sealed interface | [Server1Variables.Server1Variables1Boxed](#server1variables1boxed)
sealed interface for validated payloads | -| record | [Server1Variables.Server1Variables1BoxedMap](#server1variables1boxedmap)
boxed class to store validated Map payloads | -| static class | [Server1Variables.Server1Variables1](#server1variables1)
schema class | -| static class | [Server1Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | -| static class | [Server1Variables.VariablesMap](#variablesmap)
output class for Map payloads | -| sealed interface | [Server1Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | -| record | [Server1Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | -| static class | [Server1Variables.Version](#version)
schema class | -| enum | [Server1Variables.StringVersionEnums](#stringversionenums)
String enum | -| sealed interface | [Server1Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | -| record | [Server1Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | -| record | [Server1Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | -| record | [Server1Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | -| record | [Server1Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | -| record | [Server1Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | -| record | [Server1Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | -| static class | [Server1Variables.AdditionalProperties](#additionalproperties)
schema class | - -## Server1Variables1Boxed -public sealed interface Server1Variables1Boxed
-permits
-[Server1Variables1BoxedMap](#server1variables1boxedmap) - -sealed interface that stores validated payloads using boxed classes - -## Server1Variables1BoxedMap -public record Server1Variables1BoxedMap
-implements [Server1Variables1Boxed](#server1variables1boxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Server1Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Server1Variables1 -public static class Server1Variables1
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.servers.server1.Server1Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// Map validation -Server1Variables.VariablesMap validatedPayload = - Server1Variables.Server1Variables1.validate( - new Server1Variables.VariablesMapBuilder() - .version("v1") - - .build(), - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| -| Set | required = Set.of(
    "version"
)
| -| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Server1Variables1BoxedMap](#server1variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| [Server1Variables1Boxed](#server1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## VariablesMap0Builder -public class VariablesMap0Builder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Map | build()
Returns map input that should be used with Schema.validate | - -## VariablesMapBuilder -public class VariablesMapBuilder
-builder for `Map` - -A class that builds the Map input type - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VariablesMapBuilder()
Creates a builder that contains an empty map | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | -| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | - -## VariablesMap -public static class VariablesMap
-extends FrozenMap - -A class to store validated Map payloads - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | -| String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v2 | - -## VersionBoxed -public sealed interface VersionBoxed
-permits
-[VersionBoxedString](#versionboxedstring) - -sealed interface that stores validated payloads using boxed classes - -## VersionBoxedString -public record VersionBoxedString
-implements [VersionBoxed](#versionboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| VersionBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## Version -public static class Version
-extends JsonSchema - -A schema class that validates payloads - -### Code Sample -``` -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.servers.server1.Server1Variables; - -import java.util.Arrays; -import java.util.List; -import java.util.AbstractMap; - -static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); - -// String validation -String validatedPayload = Server1Variables.Version.validate( - "v1", - configuration -); -``` - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | ---------------------- | -| Set> | type = Set.of(
    String.class
)
| -| Set | enumValues = SetMaker.makeSet(
    "v1",
    "v2"
)
| -| @Nullable Object | defaultValue = "v2" | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | validate(String arg, SchemaConfiguration configuration) | -| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | -| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | -| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | -| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | - -## StringVersionEnums -public enum StringVersionEnums
-extends `Enum` - -A class that stores String enum values - -### Enum Constant Summary -| Enum Constant | Description | -| ------------- | ----------- | -| V1 | value = "v1" | -| V2 | value = "v2" | - -## AdditionalPropertiesBoxed -public sealed interface AdditionalPropertiesBoxed
-permits
-[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), -[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), -[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), -[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), -[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), -[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) - -sealed interface that stores validated payloads using boxed classes - -## AdditionalPropertiesBoxedVoid -public record AdditionalPropertiesBoxedVoid
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated null payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Void | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedBoolean -public record AdditionalPropertiesBoxedBoolean
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated boolean payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| boolean | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedNumber -public record AdditionalPropertiesBoxedNumber
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Number payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Number | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedString -public record AdditionalPropertiesBoxedString
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated String payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| String | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedList -public record AdditionalPropertiesBoxedList
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated List payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenList<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalPropertiesBoxedMap -public record AdditionalPropertiesBoxedMap
-implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) - -record that stores validated Map payloads, sealed permits implementation - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| FrozenMap<@Nullable Object> | data()
validated payload | -| @Nullable Object | getData()
validated payload | - -## AdditionalProperties -public static class AdditionalProperties
-extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 - -A schema class that validates payloads - -| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | -| ------------------------------------------------------------------ | -| validate | -| validateAndBox | diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java deleted file mode 100644 index 7d50300f378..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.openapijsonschematools.client; - -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; -import org.openapijsonschematools.client.servers.Server; -import org.openapijsonschematools.client.servers.ServerProvider; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.Objects; - -public class ServerInfo { - public static class ServerInfo1 implements ServerProvider { - private final Server0 server0; - private final Server1 server1; - private final Server2 server2; - - ServerInfo1( - @Nullable Server0 server0, - @Nullable Server1 server1, - @Nullable Server2 server2 - ) { - this.server0 = Objects.requireNonNullElseGet(server0, Server0::new); - this.server1 = Objects.requireNonNullElseGet(server1, Server1::new); - this.server2 = Objects.requireNonNullElseGet(server2, Server2::new); - } - - @Override - public Server getServer(ServerIndex serverIndex) { - switch (serverIndex) { - case SERVER_0: - return server0; - case SERVER_1: - return server1; - default: - return server2; - } - } - } - - public static class ServerInfoBuilder { - private @Nullable Server0 server0; - private @Nullable Server1 server1; - private @Nullable Server2 server2; - - public ServerInfoBuilder() {} - - public ServerInfoBuilder server0(Server0 server0) { - this.server0 = server0; - return this; - } - - public ServerInfoBuilder server1(Server1 server1) { - this.server1 = server1; - return this; - } - - public ServerInfoBuilder server2(Server2 server2) { - this.server2 = server2; - return this; - } - - public ServerInfo1 build() { - return new ServerInfo1( - server0, - server1, - server2 - ); - } - } - - public enum ServerIndex { - SERVER_0, - SERVER_1, - SERVER_2 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Anotherfakedummy.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Anotherfakedummy.java deleted file mode 100644 index f89bfb988ac..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Anotherfakedummy.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Anotherfakedummy { - public static final String path = "/another-fake/dummy"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Commonparamsubdir.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Commonparamsubdir.java deleted file mode 100644 index 56057955e78..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Commonparamsubdir.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Commonparamsubdir { - public static final String path = "/commonParam/{subDir}/"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fake.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fake.java deleted file mode 100644 index 46cde76f450..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fake.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fake { - public static final String path = "/fake"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeadditionalpropertieswitharrayofenums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeadditionalpropertieswitharrayofenums.java deleted file mode 100644 index 43effb28488..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeadditionalpropertieswitharrayofenums.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeadditionalpropertieswitharrayofenums { - public static final String path = "/fake/additional-properties-with-array-of-enums"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithfileschema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithfileschema.java deleted file mode 100644 index ce66c23f4f0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithfileschema.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakebodywithfileschema { - public static final String path = "/fake/body-with-file-schema"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithqueryparams.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithqueryparams.java deleted file mode 100644 index 8a4d20a641a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithqueryparams.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakebodywithqueryparams { - public static final String path = "/fake/body-with-query-params"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakecasesensitiveparams.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakecasesensitiveparams.java deleted file mode 100644 index c82acc6d50b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakecasesensitiveparams.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakecasesensitiveparams { - public static final String path = "/fake/case-sensitive-params"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeclassnametest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeclassnametest.java deleted file mode 100644 index 2ad877f4897..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeclassnametest.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeclassnametest { - public static final String path = "/fake_classname_test"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakedeletecoffeeid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakedeletecoffeeid.java deleted file mode 100644 index 30eebc6d353..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakedeletecoffeeid.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakedeletecoffeeid { - public static final String path = "/fake/deleteCoffee/{id}"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakehealth.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakehealth.java deleted file mode 100644 index 73fc63a1954..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakehealth.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakehealth { - public static final String path = "/fake/health"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlineadditionalproperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlineadditionalproperties.java deleted file mode 100644 index 26347f6ed75..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlineadditionalproperties.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeinlineadditionalproperties { - public static final String path = "/fake/inline-additionalProperties"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlinecomposition.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlinecomposition.java deleted file mode 100644 index 4c39d95f065..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlinecomposition.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeinlinecomposition { - public static final String path = "/fake/inlineComposition/"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonformdata.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonformdata.java deleted file mode 100644 index f2c24afc0ef..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonformdata.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakejsonformdata { - public static final String path = "/fake/jsonFormData"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonpatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonpatch.java deleted file mode 100644 index 2dfcbc73d55..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonpatch.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakejsonpatch { - public static final String path = "/fake/jsonPatch"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonwithcharset.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonwithcharset.java deleted file mode 100644 index 63ba857f0a0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonwithcharset.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakejsonwithcharset { - public static final String path = "/fake/jsonWithCharset"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplerequestbodycontenttypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplerequestbodycontenttypes.java deleted file mode 100644 index 85fbe08971a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplerequestbodycontenttypes.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakemultiplerequestbodycontenttypes { - public static final String path = "/fake/multipleRequestBodyContentTypes/"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultipleresponsebodies.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultipleresponsebodies.java deleted file mode 100644 index 47bbeb0dbbf..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultipleresponsebodies.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakemultipleresponsebodies { - public static final String path = "/fake/multipleResponseBodies"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplesecurities.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplesecurities.java deleted file mode 100644 index 4052ed98bd0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplesecurities.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakemultiplesecurities { - public static final String path = "/fake/multipleSecurities"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeobjinquery.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeobjinquery.java deleted file mode 100644 index a4a39ca83b9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeobjinquery.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeobjinquery { - public static final String path = "/fake/objInQuery"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeparametercollisions1ababselfab.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeparametercollisions1ababselfab.java deleted file mode 100644 index abcc4667520..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeparametercollisions1ababselfab.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeparametercollisions1ababselfab { - public static final String path = "/fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepemcontenttype.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepemcontenttype.java deleted file mode 100644 index b48b1522786..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepemcontenttype.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakepemcontenttype { - public static final String path = "/fake/pemContentType"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepetiduploadimagewithrequiredfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepetiduploadimagewithrequiredfile.java deleted file mode 100644 index fe1c8da62ed..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepetiduploadimagewithrequiredfile.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakepetiduploadimagewithrequiredfile { - public static final String path = "/fake/{petId}/uploadImageWithRequiredFile"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakequeryparamwithjsoncontenttype.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakequeryparamwithjsoncontenttype.java deleted file mode 100644 index adc814cd4e1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakequeryparamwithjsoncontenttype.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakequeryparamwithjsoncontenttype { - public static final String path = "/fake/queryParamWithJsonContentType"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeredirection.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeredirection.java deleted file mode 100644 index 96ced57ff91..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeredirection.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeredirection { - public static final String path = "/fake/redirection"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefobjinquery.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefobjinquery.java deleted file mode 100644 index 96194250be7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefobjinquery.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakerefobjinquery { - public static final String path = "/fake/refObjInQuery"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarraymodel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarraymodel.java deleted file mode 100644 index c4e1f2d71ba..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarraymodel.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakerefsarraymodel { - public static final String path = "/fake/refs/arraymodel"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarrayofenums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarrayofenums.java deleted file mode 100644 index 2479d833c60..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarrayofenums.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakerefsarrayofenums { - public static final String path = "/fake/refs/array-of-enums"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsboolean.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsboolean.java deleted file mode 100644 index b795df7fe6b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsboolean.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakerefsboolean { - public static final String path = "/fake/refs/boolean"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefscomposedoneofnumberwithvalidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefscomposedoneofnumberwithvalidations.java deleted file mode 100644 index 9146b51293f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefscomposedoneofnumberwithvalidations.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakerefscomposedoneofnumberwithvalidations { - public static final String path = "/fake/refs/composed_one_of_number_with_validations"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsenum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsenum.java deleted file mode 100644 index 5eeb04f8d37..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsenum.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakerefsenum { - public static final String path = "/fake/refs/enum"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsmammal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsmammal.java deleted file mode 100644 index b6271a3061f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsmammal.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakerefsmammal { - public static final String path = "/fake/refs/mammal"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsnumber.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsnumber.java deleted file mode 100644 index 7dd2b5ace64..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsnumber.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakerefsnumber { - public static final String path = "/fake/refs/number"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsobjectmodelwithrefprops.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsobjectmodelwithrefprops.java deleted file mode 100644 index 64dd88b6a6a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsobjectmodelwithrefprops.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakerefsobjectmodelwithrefprops { - public static final String path = "/fake/refs/object_model_with_ref_props"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsstring.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsstring.java deleted file mode 100644 index 08aa4a9afaa..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsstring.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakerefsstring { - public static final String path = "/fake/refs/string"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeresponsewithoutschema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeresponsewithoutschema.java deleted file mode 100644 index 78ae099c8a1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeresponsewithoutschema.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeresponsewithoutschema { - public static final String path = "/fake/responseWithoutSchema"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Faketestqueryparamters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Faketestqueryparamters.java deleted file mode 100644 index 487d92b4122..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Faketestqueryparamters.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Faketestqueryparamters { - public static final String path = "/fake/test-query-paramters"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploaddownloadfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploaddownloadfile.java deleted file mode 100644 index 06871695fc4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploaddownloadfile.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeuploaddownloadfile { - public static final String path = "/fake/uploadDownloadFile"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfile.java deleted file mode 100644 index 4f754cd5d46..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfile.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeuploadfile { - public static final String path = "/fake/uploadFile"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfiles.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfiles.java deleted file mode 100644 index 4c2ba0ab9a5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfiles.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakeuploadfiles { - public static final String path = "/fake/uploadFiles"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakewildcardresponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakewildcardresponses.java deleted file mode 100644 index 991d78912aa..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakewildcardresponses.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Fakewildcardresponses { - public static final String path = "/fake/wildCardResponses"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Foo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Foo.java deleted file mode 100644 index 42d8262a389..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Foo.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Foo { - public static final String path = "/foo"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Pet.java deleted file mode 100644 index 96fb5bcdaf9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Pet.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Pet { - public static final String path = "/pet"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbystatus.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbystatus.java deleted file mode 100644 index 7fe26528c22..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbystatus.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Petfindbystatus { - public static final String path = "/pet/findByStatus"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbytags.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbytags.java deleted file mode 100644 index 634991ab867..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbytags.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Petfindbytags { - public static final String path = "/pet/findByTags"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetid.java deleted file mode 100644 index e376b2b5531..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetid.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Petpetid { - public static final String path = "/pet/{petId}"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetiduploadimage.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetiduploadimage.java deleted file mode 100644 index 0c266715daf..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetiduploadimage.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Petpetiduploadimage { - public static final String path = "/pet/{petId}/uploadImage"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Solidus.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Solidus.java deleted file mode 100644 index b378bf8aa10..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Solidus.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Solidus { - public static final String path = "/"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeinventory.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeinventory.java deleted file mode 100644 index 38824a730f6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeinventory.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Storeinventory { - public static final String path = "/store/inventory"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorder.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorder.java deleted file mode 100644 index 7e037639b4d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorder.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Storeorder { - public static final String path = "/store/order"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorderorderid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorderorderid.java deleted file mode 100644 index b3d78f384d7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorderorderid.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Storeorderorderid { - public static final String path = "/store/order/{order_id}"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/User.java deleted file mode 100644 index c39366684bd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/User.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class User { - public static final String path = "/user"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewitharray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewitharray.java deleted file mode 100644 index 999508b3d42..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewitharray.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Usercreatewitharray { - public static final String path = "/user/createWithArray"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewithlist.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewithlist.java deleted file mode 100644 index a59a7d908a9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewithlist.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Usercreatewithlist { - public static final String path = "/user/createWithList"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogin.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogin.java deleted file mode 100644 index b0d7e4c93f8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogin.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Userlogin { - public static final String path = "/user/login"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogout.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogout.java deleted file mode 100644 index f98e8b3231b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogout.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Userlogout { - public static final String path = "/user/logout"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userusername.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userusername.java deleted file mode 100644 index 4a78ea16ff8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userusername.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths; - -public class Userusername { - public static final String path = "/user/{username}"; -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java deleted file mode 100644 index a5558b7f2b7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.anotherfakedummy; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Anotherfakedummy; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class AnotherfakedummyPatch { - private static class PatchProvider { - private static final String method = "patch"; - - public static AnotherfakedummyPatchResponses.EndpointResponse patch( - PatchRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new AnotherfakedummyPatchRequestBody.AnotherfakedummyPatchRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Anotherfakedummy.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new AnotherfakedummyPatchResponses.AnotherfakedummyPatchResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PatchOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default AnotherfakedummyPatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface Model123TestSpecialTagsOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default AnotherfakedummyPatchResponses.EndpointResponse model123TestSpecialTags(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Patch extends ApiClient implements PatchOperation { - public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PatchRequest { - public AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PatchRequest( - AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PatchNullableRequest { - public AnotherfakedummyPatchRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PatchNullableRequest getInstance(); - T getBuilderAfterServerIndex(PatchNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PatchNullableRequest getInstance(); - T getBuilderAfterTimeout(PatchNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PatchNullableRequest getInstance(); - T getBuilderAfterRequestBody(PatchNullableRequest instance); - default T requestBody(AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PatchNullableRequest instance; - - public Patch0RequestBuilder(PatchNullableRequest instance) { - this.instance = instance; - } - - public PatchRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PatchRequest( - requestBody, - instance.serverIndex, - instance.timeout - ); - } - - public PatchNullableRequest getInstance() { - return instance; - } - - public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { - return this; - } - - public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { - return this; - } - } - public static class PatchRequestBuilder implements SetterForRequestBody { - private final PatchNullableRequest instance; - - public PatchRequestBuilder() { - this.instance = new PatchNullableRequest(); - } - - public PatchNullableRequest getInstance() { - return instance; - } - - public Patch0RequestBuilder getBuilderAfterRequestBody(PatchNullableRequest instance) { - return new Patch0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java deleted file mode 100644 index cc759c48ee1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.anotherfakedummy.patch; - -import org.openapijsonschematools.client.components.requestbodies.Client; - -public class AnotherfakedummyPatchRequestBody extends Client { - public static class AnotherfakedummyPatchRequestBody1 extends Client1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java deleted file mode 100644 index a5f6eda3357..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.anotherfakedummy.patch; - -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.AnotherfakedummyPatchCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class AnotherfakedummyPatchResponses { - public sealed interface EndpointResponse permits EndpointAnotherfakedummyPatchCode200Response {} - - public record EndpointAnotherfakedummyPatchCode200Response( - HttpResponse response, - AnotherfakedummyPatchCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusAnotherfakedummyPatchCode200ResponseDeserializer {} - - public static final class StatusAnotherfakedummyPatchCode200ResponseDeserializer extends AnotherfakedummyPatchCode200Response.AnotherfakedummyPatchCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class AnotherfakedummyPatchResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public AnotherfakedummyPatchResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusAnotherfakedummyPatchCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusAnotherfakedummyPatchCode200ResponseDeserializer castDeserializer = (StatusAnotherfakedummyPatchCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointAnotherfakedummyPatchCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java deleted file mode 100644 index 41c15430532..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class AnotherfakedummyPatchCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - - public static class AnotherfakedummyPatchCode200Response1 extends ResponseDeserializer { - public AnotherfakedummyPatchCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 8e0f8a56f68..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Client; - -public class ApplicationjsonSchema extends Client { - // $refed class - - - public static class ApplicationjsonSchema1 extends Client1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java deleted file mode 100644 index e0d5da9fe6b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java +++ /dev/null @@ -1,205 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Parameters; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Commonparamsubdir; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class CommonparamsubdirDelete { - private static class DeleteProvider { - private static final String method = "delete"; - - public static CommonparamsubdirDeleteResponses.EndpointResponse delete( - DeleteRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - if (request.headerParameters != null) { - var headersSerializer = new Parameters.HeaderParametersSerializer(); - Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); - headers.putAll(serializedHeaders); - } - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Commonparamsubdir.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new CommonparamsubdirDeleteResponses.CommonparamsubdirDeleteResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface DeleteOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default CommonparamsubdirDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface DeleteCommonParamOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default CommonparamsubdirDeleteResponses.EndpointResponse deleteCommonParam(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Delete extends ApiClient implements DeleteOperation { - public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class DeleteRequest { - public CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters; - public CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public DeleteRequest( - CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters, - CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.headerParameters = headerParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class DeleteNullableRequest { - public CommonparamsubdirDeletePathParameters.@Nullable PathParametersMap pathParameters; - public CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForHeaderParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); - default T headerParameters(CommonparamsubdirDeleteHeaderParameters.HeaderParametersMap headerParameters) { - var instance = getInstance(); - instance.headerParameters = headerParameters; - return getBuilderAfterHeaderParameters(instance); - } - } - - public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Delete0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForTimeout { - private final DeleteNullableRequest instance; - - public Delete0RequestBuilder(DeleteNullableRequest instance) { - this.instance = instance; - } - - public DeleteRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new DeleteRequest( - pathParameters, - instance.headerParameters, - instance.serverIndex, - instance.timeout - ); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete0RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { - return this; - } - - public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { - return this; - } - - public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { - return this; - } - } - public static class DeleteRequestBuilder implements SetterForPathParameters { - private final DeleteNullableRequest instance; - - public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { - return new Delete0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java deleted file mode 100644 index 81a2dc03ac3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java +++ /dev/null @@ -1,206 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.Parameters; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Commonparamsubdir; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class CommonparamsubdirGet { - private static class GetProvider { - private static final String method = "get"; - - public static CommonparamsubdirGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Commonparamsubdir.path); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = null; - if (request.queryParameters != null) { - queryMap = querySerializer.getQueryMap(request.queryParameters); - } - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + updatedPath; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new CommonparamsubdirGetResponses.CommonparamsubdirGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default CommonparamsubdirGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface GetCommonParamOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default CommonparamsubdirGetResponses.EndpointResponse getCommonParam(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public CommonparamsubdirGetPathParameters.PathParametersMap pathParameters; - public CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public GetRequest( - CommonparamsubdirGetPathParameters.PathParametersMap pathParameters, - CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap queryParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.queryParameters = queryParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class GetNullableRequest { - public CommonparamsubdirGetPathParameters.@Nullable PathParametersMap pathParameters; - public CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForQueryParameters { - GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(CommonparamsubdirGetQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(CommonparamsubdirGetPathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Get0RequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final GetNullableRequest instance; - - public Get0RequestBuilder(GetNullableRequest instance) { - this.instance = instance; - } - - public GetRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new GetRequest( - pathParameters, - instance.queryParameters, - instance.serverIndex, - instance.timeout - ); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { - return this; - } - } - public static class GetRequestBuilder implements SetterForPathParameters { - private final GetNullableRequest instance; - - public GetRequestBuilder() { - this.instance = new GetNullableRequest(); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { - return new Get0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java deleted file mode 100644 index f5a5a34d431..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java +++ /dev/null @@ -1,205 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.Parameters; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Commonparamsubdir; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class CommonparamsubdirPost { - private static class PostProvider { - private static final String method = "post"; - - public static CommonparamsubdirPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - if (request.headerParameters != null) { - var headersSerializer = new Parameters.HeaderParametersSerializer(); - Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); - headers.putAll(serializedHeaders); - } - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Commonparamsubdir.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new CommonparamsubdirPostResponses.CommonparamsubdirPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default CommonparamsubdirPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface PostCommonParamOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default CommonparamsubdirPostResponses.EndpointResponse postCommonParam(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public CommonparamsubdirPostPathParameters.PathParametersMap pathParameters; - public CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PostRequest( - CommonparamsubdirPostPathParameters.PathParametersMap pathParameters, - CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap headerParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.headerParameters = headerParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public CommonparamsubdirPostPathParameters.@Nullable PathParametersMap pathParameters; - public CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForHeaderParameters { - PostNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(PostNullableRequest instance); - default T headerParameters(CommonparamsubdirPostHeaderParameters.HeaderParametersMap headerParameters) { - var instance = getInstance(); - instance.headerParameters = headerParameters; - return getBuilderAfterHeaderParameters(instance); - } - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(CommonparamsubdirPostPathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Post0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - pathParameters, - instance.headerParameters, - instance.serverIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterHeaderParameters(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForPathParameters { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java deleted file mode 100644 index c54c33bc4bb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java +++ /dev/null @@ -1,191 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class CommonparamsubdirDeleteHeaderParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class HeaderParametersMap extends FrozenMap { - protected HeaderParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "someHeader" - ); - public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return CommonparamsubdirDeleteHeaderParameters1.getInstance().validate(arg, configuration); - } - - public String someHeader() throws UnsetPropertyException { - return getOrThrow("someHeader"); - } - } - - public interface SetterForSomeHeader { - Map getInstance(); - T getBuilderAfterSomeHeader(Map instance); - - default T someHeader(String value) { - var instance = getInstance(); - instance.put("someHeader", value); - return getBuilderAfterSomeHeader(instance); - } - } - - public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSomeHeader { - private final Map instance; - private static final Set knownKeys = Set.of( - "someHeader" - ); - public Set getKnownKeys() { - return knownKeys; - } - public HeaderParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map instance) { - return this; - } - } - - - public sealed interface CommonparamsubdirDeleteHeaderParameters1Boxed permits CommonparamsubdirDeleteHeaderParameters1BoxedMap { - @Nullable Object getData(); - } - - public record CommonparamsubdirDeleteHeaderParameters1BoxedMap(HeaderParametersMap data) implements CommonparamsubdirDeleteHeaderParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class CommonparamsubdirDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable CommonparamsubdirDeleteHeaderParameters1 instance = null; - - protected CommonparamsubdirDeleteHeaderParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("someHeader", Schema0.Schema01.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static CommonparamsubdirDeleteHeaderParameters1 getInstance() { - if (instance == null) { - instance = new CommonparamsubdirDeleteHeaderParameters1(); - } - return instance; - } - - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); - } - - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public CommonparamsubdirDeleteHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new CommonparamsubdirDeleteHeaderParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public CommonparamsubdirDeleteHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java deleted file mode 100644 index e45331271e1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java +++ /dev/null @@ -1,211 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter1.Schema1; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class CommonparamsubdirDeletePathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "subDir" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return CommonparamsubdirDeletePathParameters1.getInstance().validate(arg, configuration); - } - - public String subDir() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForSubDir { - Map getInstance(); - T getBuilderAfterSubDir(Map instance); - - default T subDir(String value) { - var instance = getInstance(); - instance.put("subDir", value); - return getBuilderAfterSubDir(instance); - } - - default T subDir(Schema1.StringSchemaEnums1 value) { - var instance = getInstance(); - instance.put("subDir", value.value()); - return getBuilderAfterSubDir(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "subDir" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForSubDir { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface CommonparamsubdirDeletePathParameters1Boxed permits CommonparamsubdirDeletePathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record CommonparamsubdirDeletePathParameters1BoxedMap(PathParametersMap data) implements CommonparamsubdirDeletePathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class CommonparamsubdirDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable CommonparamsubdirDeletePathParameters1 instance = null; - - protected CommonparamsubdirDeletePathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("subDir", Schema1.Schema11.class) - )) - .required(Set.of( - "subDir" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static CommonparamsubdirDeletePathParameters1 getInstance() { - if (instance == null) { - instance = new CommonparamsubdirDeletePathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public CommonparamsubdirDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new CommonparamsubdirDeletePathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public CommonparamsubdirDeletePathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java deleted file mode 100644 index f5f9155ead2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete; - -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.CommonparamsubdirDeleteCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class CommonparamsubdirDeleteResponses { - public sealed interface EndpointResponse permits EndpointCommonparamsubdirDeleteCode200Response {} - - public record EndpointCommonparamsubdirDeleteCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusCommonparamsubdirDeleteCode200ResponseDeserializer {} - - public static final class StatusCommonparamsubdirDeleteCode200ResponseDeserializer extends CommonparamsubdirDeleteCode200Response.CommonparamsubdirDeleteCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class CommonparamsubdirDeleteResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public CommonparamsubdirDeleteResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusCommonparamsubdirDeleteCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusCommonparamsubdirDeleteCode200ResponseDeserializer castDeserializer = (StatusCommonparamsubdirDeleteCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCommonparamsubdirDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java deleted file mode 100644 index 361ce042d3a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete; - -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.Parameter0; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.Parameter1; -import org.openapijsonschematools.client.parameter.PathSerializer; -import org.openapijsonschematools.client.parameter.HeadersSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("subDir", new Parameter1.Parameter11()) - ) - ); - } - } - - public static class HeaderParametersSerializer extends HeadersSerializer { - public HeaderParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("someHeader", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter0.java deleted file mode 100644 index 1385ce8e488..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "someHeader", - ParameterInType.HEADER, - false, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java deleted file mode 100644 index 13efa3b6c1d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter1.Schema1; - -public class Parameter1 { - - public static class Parameter11 extends SchemaParameter { - public Parameter11() { - super( - "subDir", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema1.Schema11.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java deleted file mode 100644 index a3f940b6e0e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java deleted file mode 100644 index 5e27e6693ae..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter1; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema1 { - // nest classes so all schemas and input/output classes can be public - - public enum StringSchemaEnums1 implements StringValueMethod { - C("c"), - D("d"); - private final String value; - - StringSchemaEnums1(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface Schema11Boxed permits Schema11BoxedString { - @Nullable Object getData(); - } - - public record Schema11BoxedString(String data) implements Schema11Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { - private static @Nullable Schema11 instance = null; - - protected Schema11() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "c", - "d" - )) - ); - } - - public static Schema11 getInstance() { - if (instance == null) { - instance = new Schema11(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringSchemaEnums1 arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema11BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema11BoxedString(validate(arg, configuration)); - } - @Override - public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.java deleted file mode 100644 index ed6bcceb216..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class CommonparamsubdirDeleteCode200Response extends SuccessDescriptionOnly { - public static class CommonparamsubdirDeleteCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java deleted file mode 100644 index 6f36aeb9763..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java +++ /dev/null @@ -1,211 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.routeparameter0.RouteParamSchema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class CommonparamsubdirGetPathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "subDir" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return CommonparamsubdirGetPathParameters1.getInstance().validate(arg, configuration); - } - - public String subDir() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForSubDir { - Map getInstance(); - T getBuilderAfterSubDir(Map instance); - - default T subDir(String value) { - var instance = getInstance(); - instance.put("subDir", value); - return getBuilderAfterSubDir(instance); - } - - default T subDir(RouteParamSchema0.StringRouteParamSchemaEnums0 value) { - var instance = getInstance(); - instance.put("subDir", value.value()); - return getBuilderAfterSubDir(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "subDir" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForSubDir { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface CommonparamsubdirGetPathParameters1Boxed permits CommonparamsubdirGetPathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record CommonparamsubdirGetPathParameters1BoxedMap(PathParametersMap data) implements CommonparamsubdirGetPathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class CommonparamsubdirGetPathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable CommonparamsubdirGetPathParameters1 instance = null; - - protected CommonparamsubdirGetPathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("subDir", RouteParamSchema0.RouteParamSchema01.class) - )) - .required(Set.of( - "subDir" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static CommonparamsubdirGetPathParameters1 getInstance() { - if (instance == null) { - instance = new CommonparamsubdirGetPathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public CommonparamsubdirGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new CommonparamsubdirGetPathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public CommonparamsubdirGetPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java deleted file mode 100644 index 23c81934321..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java +++ /dev/null @@ -1,191 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class CommonparamsubdirGetQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "searchStr" - ); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return CommonparamsubdirGetQueryParameters1.getInstance().validate(arg, configuration); - } - - public String searchStr() throws UnsetPropertyException { - return getOrThrow("searchStr"); - } - } - - public interface SetterForSearchStr { - Map getInstance(); - T getBuilderAfterSearchStr(Map instance); - - default T searchStr(String value) { - var instance = getInstance(); - instance.put("searchStr", value); - return getBuilderAfterSearchStr(instance); - } - } - - public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForSearchStr { - private final Map instance; - private static final Set knownKeys = Set.of( - "searchStr" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMapBuilder getBuilderAfterSearchStr(Map instance) { - return this; - } - } - - - public sealed interface CommonparamsubdirGetQueryParameters1Boxed permits CommonparamsubdirGetQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record CommonparamsubdirGetQueryParameters1BoxedMap(QueryParametersMap data) implements CommonparamsubdirGetQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class CommonparamsubdirGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable CommonparamsubdirGetQueryParameters1 instance = null; - - protected CommonparamsubdirGetQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("searchStr", Schema0.Schema01.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static CommonparamsubdirGetQueryParameters1 getInstance() { - if (instance == null) { - instance = new CommonparamsubdirGetQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public CommonparamsubdirGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new CommonparamsubdirGetQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public CommonparamsubdirGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java deleted file mode 100644 index ec3fa0f14d3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.get; - -import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.CommonparamsubdirGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class CommonparamsubdirGetResponses { - public sealed interface EndpointResponse permits EndpointCommonparamsubdirGetCode200Response {} - - public record EndpointCommonparamsubdirGetCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusCommonparamsubdirGetCode200ResponseDeserializer {} - - public static final class StatusCommonparamsubdirGetCode200ResponseDeserializer extends CommonparamsubdirGetCode200Response.CommonparamsubdirGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class CommonparamsubdirGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public CommonparamsubdirGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusCommonparamsubdirGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusCommonparamsubdirGetCode200ResponseDeserializer castDeserializer = (StatusCommonparamsubdirGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCommonparamsubdirGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java deleted file mode 100644 index a06b3e8445a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.get; - -import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.RouteParameter0; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("subDir", new RouteParameter0.RouteParameter01()) - ) - ); - } - } - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("searchStr", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java deleted file mode 100644 index 0559a9deb6e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.commonparamsubdir.get.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "searchStr", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java deleted file mode 100644 index cd9df3f6b63..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.get.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.java deleted file mode 100644 index 87e8201489f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class CommonparamsubdirGetCode200Response extends SuccessDescriptionOnly { - public static class CommonparamsubdirGetCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java deleted file mode 100644 index ad645a82164..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.routeparameter0.RouteParamSchema0; - -public class RouteParameter0 { - - public static class RouteParameter01 extends SchemaParameter { - public RouteParameter01() { - super( - "subDir", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - RouteParamSchema0.RouteParamSchema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java deleted file mode 100644 index bd8854610b9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.parameters.routeparameter0; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class RouteParamSchema0 { - // nest classes so all schemas and input/output classes can be public - - public enum StringRouteParamSchemaEnums0 implements StringValueMethod { - A("a"), - B("b"); - private final String value; - - StringRouteParamSchemaEnums0(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface RouteParamSchema01Boxed permits RouteParamSchema01BoxedString { - @Nullable Object getData(); - } - - public record RouteParamSchema01BoxedString(String data) implements RouteParamSchema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class RouteParamSchema01 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { - private static @Nullable RouteParamSchema01 instance = null; - - protected RouteParamSchema01() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "a", - "b" - )) - ); - } - - public static RouteParamSchema01 getInstance() { - if (instance == null) { - instance = new RouteParamSchema01(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringRouteParamSchemaEnums0 arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public RouteParamSchema01BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new RouteParamSchema01BoxedString(validate(arg, configuration)); - } - @Override - public RouteParamSchema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java deleted file mode 100644 index d800414c7de..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java +++ /dev/null @@ -1,191 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.post; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class CommonparamsubdirPostHeaderParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class HeaderParametersMap extends FrozenMap { - protected HeaderParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "someHeader" - ); - public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return CommonparamsubdirPostHeaderParameters1.getInstance().validate(arg, configuration); - } - - public String someHeader() throws UnsetPropertyException { - return getOrThrow("someHeader"); - } - } - - public interface SetterForSomeHeader { - Map getInstance(); - T getBuilderAfterSomeHeader(Map instance); - - default T someHeader(String value) { - var instance = getInstance(); - instance.put("someHeader", value); - return getBuilderAfterSomeHeader(instance); - } - } - - public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSomeHeader { - private final Map instance; - private static final Set knownKeys = Set.of( - "someHeader" - ); - public Set getKnownKeys() { - return knownKeys; - } - public HeaderParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map instance) { - return this; - } - } - - - public sealed interface CommonparamsubdirPostHeaderParameters1Boxed permits CommonparamsubdirPostHeaderParameters1BoxedMap { - @Nullable Object getData(); - } - - public record CommonparamsubdirPostHeaderParameters1BoxedMap(HeaderParametersMap data) implements CommonparamsubdirPostHeaderParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class CommonparamsubdirPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable CommonparamsubdirPostHeaderParameters1 instance = null; - - protected CommonparamsubdirPostHeaderParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("someHeader", Schema0.Schema01.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static CommonparamsubdirPostHeaderParameters1 getInstance() { - if (instance == null) { - instance = new CommonparamsubdirPostHeaderParameters1(); - } - return instance; - } - - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); - } - - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public CommonparamsubdirPostHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new CommonparamsubdirPostHeaderParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public CommonparamsubdirPostHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java deleted file mode 100644 index def8072055c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java +++ /dev/null @@ -1,211 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.post; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.routeparameter0.RouteParamSchema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class CommonparamsubdirPostPathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "subDir" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return CommonparamsubdirPostPathParameters1.getInstance().validate(arg, configuration); - } - - public String subDir() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForSubDir { - Map getInstance(); - T getBuilderAfterSubDir(Map instance); - - default T subDir(String value) { - var instance = getInstance(); - instance.put("subDir", value); - return getBuilderAfterSubDir(instance); - } - - default T subDir(RouteParamSchema0.StringRouteParamSchemaEnums0 value) { - var instance = getInstance(); - instance.put("subDir", value.value()); - return getBuilderAfterSubDir(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "subDir" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForSubDir { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface CommonparamsubdirPostPathParameters1Boxed permits CommonparamsubdirPostPathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record CommonparamsubdirPostPathParameters1BoxedMap(PathParametersMap data) implements CommonparamsubdirPostPathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class CommonparamsubdirPostPathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable CommonparamsubdirPostPathParameters1 instance = null; - - protected CommonparamsubdirPostPathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("subDir", RouteParamSchema0.RouteParamSchema01.class) - )) - .required(Set.of( - "subDir" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static CommonparamsubdirPostPathParameters1 getInstance() { - if (instance == null) { - instance = new CommonparamsubdirPostPathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public CommonparamsubdirPostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new CommonparamsubdirPostPathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public CommonparamsubdirPostPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java deleted file mode 100644 index b0290f6651b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.post; - -import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.CommonparamsubdirPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class CommonparamsubdirPostResponses { - public sealed interface EndpointResponse permits EndpointCommonparamsubdirPostCode200Response {} - - public record EndpointCommonparamsubdirPostCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusCommonparamsubdirPostCode200ResponseDeserializer {} - - public static final class StatusCommonparamsubdirPostCode200ResponseDeserializer extends CommonparamsubdirPostCode200Response.CommonparamsubdirPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class CommonparamsubdirPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public CommonparamsubdirPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusCommonparamsubdirPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusCommonparamsubdirPostCode200ResponseDeserializer castDeserializer = (StatusCommonparamsubdirPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointCommonparamsubdirPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java deleted file mode 100644 index 22e2acd3b26..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.post; - -import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.RouteParameter0; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; -import org.openapijsonschematools.client.parameter.HeadersSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("subDir", new RouteParameter0.RouteParameter01()) - ) - ); - } - } - - public static class HeaderParametersSerializer extends HeadersSerializer { - public HeaderParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("someHeader", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java deleted file mode 100644 index 48a0d5b37bb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.commonparamsubdir.post.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "someHeader", - ParameterInType.HEADER, - false, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java deleted file mode 100644 index ff8948ab37f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.post.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.java deleted file mode 100644 index 85eac21263a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.commonparamsubdir.post.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class CommonparamsubdirPostCode200Response extends SuccessDescriptionOnly { - public static class CommonparamsubdirPostCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java deleted file mode 100644 index d0d95d5e9ca..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java +++ /dev/null @@ -1,270 +0,0 @@ -package org.openapijsonschematools.client.paths.fake; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; -import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; -import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; -import org.openapijsonschematools.client.paths.fake.delete.Parameters; -import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fake; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeDelete { - private static class DeleteProvider extends AuthApplier { - private static final String method = "delete"; - - public static FakeDeleteResponses.EndpointResponse delete( - DeleteRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var headersSerializer = new Parameters.HeaderParametersSerializer(); - Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); - headers.putAll(serializedHeaders); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - Fake.path, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + Fake.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeDeleteResponses.FakeDeleteResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface DeleteOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface GroupParametersOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeDeleteResponses.EndpointResponse groupParameters(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Delete extends ApiClient implements DeleteOperation { - public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class DeleteRequest { - public FakeDeleteHeaderParameters.HeaderParametersMap headerParameters; - public FakeDeleteQueryParameters.QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public DeleteRequest( - FakeDeleteHeaderParameters.HeaderParametersMap headerParameters, - FakeDeleteQueryParameters.QueryParametersMap queryParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.headerParameters = headerParameters; - this.queryParameters = queryParameters; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class DeleteNullableRequest { - public FakeDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; - public FakeDeleteQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(DeleteNullableRequest instance); - default T securityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForHeaderParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); - default T headerParameters(FakeDeleteHeaderParameters.HeaderParametersMap headerParameters) { - var instance = getInstance(); - instance.headerParameters = headerParameters; - return getBuilderAfterHeaderParameters(instance); - } - } - - public interface SetterForQueryParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterQueryParameters(DeleteNullableRequest instance); - default T queryParameters(FakeDeleteQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public static class Delete00RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final DeleteNullableRequest instance; - - public Delete00RequestBuilder(DeleteNullableRequest instance) { - this.instance = instance; - } - - public DeleteRequest build() { - var headerParameters = instance.headerParameters; - if (headerParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - var queryParameters = instance.queryParameters; - if (queryParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new DeleteRequest( - headerParameters, - queryParameters, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete00RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { - return this; - } - - public Delete00RequestBuilder getBuilderAfterSecurityIndex(DeleteNullableRequest instance) { - return this; - } - - public Delete00RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { - return this; - } - } - public static class Delete01RequestBuilder implements SetterForQueryParameters { - private final DeleteNullableRequest instance; - - public Delete01RequestBuilder(DeleteNullableRequest instance) { - this.instance = instance; - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete00RequestBuilder getBuilderAfterQueryParameters(DeleteNullableRequest instance) { - return new Delete00RequestBuilder(instance); - } - } - public static class Delete10RequestBuilder implements SetterForHeaderParameters { - private final DeleteNullableRequest instance; - - public Delete10RequestBuilder(DeleteNullableRequest instance) { - this.instance = instance; - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete00RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { - return new Delete00RequestBuilder(instance); - } - } - public static class DeleteRequestBuilder implements SetterForHeaderParameters, SetterForQueryParameters { - private final DeleteNullableRequest instance; - - public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete01RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { - return new Delete01RequestBuilder(instance); - } - - public Delete10RequestBuilder getBuilderAfterQueryParameters(DeleteNullableRequest instance) { - return new Delete10RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java deleted file mode 100644 index d73006c3584..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java +++ /dev/null @@ -1,198 +0,0 @@ -package org.openapijsonschematools.client.paths.fake; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; -import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; -import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fake.get.Parameters; -import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fake; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakeGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakeGetRequestBody.FakeGetRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - - if (request.headerParameters != null) { - var headersSerializer = new Parameters.HeaderParametersSerializer(); - Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); - headers.putAll(serializedHeaders); - } - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = null; - if (request.queryParameters != null) { - queryMap = querySerializer.getQueryMap(request.queryParameters); - } - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fake.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeGetResponses.FakeGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface EnumParametersOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeGetResponses.EndpointResponse enumParameters(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public FakeGetRequestBody.@Nullable SealedRequestBody requestBody; - public FakeGetHeaderParameters.@Nullable HeaderParametersMap headerParameters; - public FakeGetQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - GetRequest getInstance(); - T getBuilderAfterRequestBody(GetRequest instance); - default T requestBody(FakeGetRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForHeaderParameters { - GetRequest getInstance(); - T getBuilderAfterHeaderParameters(GetRequest instance); - default T headerParameters(FakeGetHeaderParameters.HeaderParametersMap headerParameters) { - var instance = getInstance(); - instance.headerParameters = headerParameters; - return getBuilderAfterHeaderParameters(instance); - } - } - - public interface SetterForQueryParameters { - GetRequest getInstance(); - T getBuilderAfterQueryParameters(GetRequest instance); - default T queryParameters(FakeGetQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForRequestBody, SetterForHeaderParameters, SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterHeaderParameters(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java deleted file mode 100644 index 7440117dc17..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.fake; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; -import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fake; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakePatch { - private static class PatchProvider { - private static final String method = "patch"; - - public static FakePatchResponses.EndpointResponse patch( - PatchRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new FakePatchRequestBody.FakePatchRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fake.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakePatchResponses.FakePatchResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PatchOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakePatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ClientModelOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakePatchResponses.EndpointResponse clientModel(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Patch extends ApiClient implements PatchOperation { - public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PatchRequest { - public FakePatchRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PatchRequest( - FakePatchRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PatchNullableRequest { - public FakePatchRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PatchNullableRequest getInstance(); - T getBuilderAfterServerIndex(PatchNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PatchNullableRequest getInstance(); - T getBuilderAfterTimeout(PatchNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PatchNullableRequest getInstance(); - T getBuilderAfterRequestBody(PatchNullableRequest instance); - default T requestBody(FakePatchRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PatchNullableRequest instance; - - public Patch0RequestBuilder(PatchNullableRequest instance) { - this.instance = instance; - } - - public PatchRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PatchRequest( - requestBody, - instance.serverIndex, - instance.timeout - ); - } - - public PatchNullableRequest getInstance() { - return instance; - } - - public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { - return this; - } - - public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { - return this; - } - } - public static class PatchRequestBuilder implements SetterForRequestBody { - private final PatchNullableRequest instance; - - public PatchRequestBuilder() { - this.instance = new PatchNullableRequest(); - } - - public PatchNullableRequest getInstance() { - return instance; - } - - public Patch0RequestBuilder getBuilderAfterRequestBody(PatchNullableRequest instance) { - return new Patch0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java deleted file mode 100644 index 14de68fe22a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java +++ /dev/null @@ -1,180 +0,0 @@ -package org.openapijsonschematools.client.paths.fake; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fake.post.FakePostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; -import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fake; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakePost { - private static class PostProvider extends AuthApplier { - private static final String method = "post"; - - public static FakePostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakePostRequestBody.FakePostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - Fake.path, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + Fake.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakePostResponses.FakePostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface EndpointParametersOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakePostResponses.EndpointResponse endpointParameters(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakePostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public FakePostSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakePostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - PostRequest getInstance(); - T getBuilderAfterSecurityIndex(PostRequest instance); - default T securityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterSecurityIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java deleted file mode 100644 index e9bde480d1f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java +++ /dev/null @@ -1,246 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter1.Schema1; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter4.Schema4; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakeDeleteHeaderParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { - protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "required_boolean_group" - ); - public static final Set optionalKeys = Set.of( - "boolean_group" - ); - public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FakeDeleteHeaderParameters1.getInstance().validate(arg, configuration); - } - - public String required_boolean_group() { - @Nullable Object value = get("required_boolean_group"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for required_boolean_group"); - } - return (String) value; - } - - public String boolean_group() throws UnsetPropertyException { - String key = "boolean_group"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for boolean_group"); - } - return (String) value; - } - } - - public interface SetterForRequiredBooleanGroup { - Map getInstance(); - T getBuilderAfterRequiredBooleanGroup(Map instance); - - default T required_boolean_group(String value) { - var instance = getInstance(); - instance.put("required_boolean_group", value); - return getBuilderAfterRequiredBooleanGroup(instance); - } - - default T required_boolean_group(Schema1.StringSchemaEnums1 value) { - var instance = getInstance(); - instance.put("required_boolean_group", value.value()); - return getBuilderAfterRequiredBooleanGroup(instance); - } - } - - public interface SetterForBooleanGroup { - Map getInstance(); - T getBuilderAfterBooleanGroup(Map instance); - - default T boolean_group(String value) { - var instance = getInstance(); - instance.put("boolean_group", value); - return getBuilderAfterBooleanGroup(instance); - } - - default T boolean_group(Schema4.StringSchemaEnums4 value) { - var instance = getInstance(); - instance.put("boolean_group", value.value()); - return getBuilderAfterBooleanGroup(instance); - } - } - - public static class HeaderParametersMap0Builder implements GenericBuilder>, SetterForBooleanGroup { - private final Map instance; - private static final Set knownKeys = Set.of( - "required_boolean_group", - "boolean_group" - ); - public Set getKnownKeys() { - return knownKeys; - } - public HeaderParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public HeaderParametersMap0Builder getBuilderAfterBooleanGroup(Map instance) { - return this; - } - } - - public static class HeaderParametersMapBuilder implements SetterForRequiredBooleanGroup { - private final Map instance; - public HeaderParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public HeaderParametersMap0Builder getBuilderAfterRequiredBooleanGroup(Map instance) { - return new HeaderParametersMap0Builder(instance); - } - } - - - public sealed interface FakeDeleteHeaderParameters1Boxed permits FakeDeleteHeaderParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakeDeleteHeaderParameters1BoxedMap(HeaderParametersMap data) implements FakeDeleteHeaderParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakeDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakeDeleteHeaderParameters1 instance = null; - - protected FakeDeleteHeaderParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("required_boolean_group", Schema1.Schema11.class), - new PropertyEntry("boolean_group", Schema4.Schema41.class) - )) - .required(Set.of( - "required_boolean_group" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakeDeleteHeaderParameters1 getInstance() { - if (instance == null) { - instance = new FakeDeleteHeaderParameters1(); - } - return instance; - } - - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); - } - - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakeDeleteHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakeDeleteHeaderParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakeDeleteHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java deleted file mode 100644 index f5036456013..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java +++ /dev/null @@ -1,351 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter2.Schema2; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter3.Schema3; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter5.Schema5; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakeDeleteQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "required_int64_group", - "required_string_group" - ); - public static final Set optionalKeys = Set.of( - "int64_group", - "string_group" - ); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FakeDeleteQueryParameters1.getInstance().validate(arg, configuration); - } - - public Number required_int64_group() { - @Nullable Object value = get("required_int64_group"); - if (!(value instanceof Number)) { - throw new RuntimeException("Invalid value stored for required_int64_group"); - } - return (Number) value; - } - - public String required_string_group() { - @Nullable Object value = get("required_string_group"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for required_string_group"); - } - return (String) value; - } - - public Number int64_group() throws UnsetPropertyException { - String key = "int64_group"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof Number)) { - throw new RuntimeException("Invalid value stored for int64_group"); - } - return (Number) value; - } - - public String string_group() throws UnsetPropertyException { - String key = "string_group"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for string_group"); - } - return (String) value; - } - } - - public interface SetterForRequiredInt64Group { - Map getInstance(); - T getBuilderAfterRequiredInt64Group(Map instance); - - default T required_int64_group(int value) { - var instance = getInstance(); - instance.put("required_int64_group", value); - return getBuilderAfterRequiredInt64Group(instance); - } - - default T required_int64_group(float value) { - var instance = getInstance(); - instance.put("required_int64_group", value); - return getBuilderAfterRequiredInt64Group(instance); - } - - default T required_int64_group(long value) { - var instance = getInstance(); - instance.put("required_int64_group", value); - return getBuilderAfterRequiredInt64Group(instance); - } - - default T required_int64_group(double value) { - var instance = getInstance(); - instance.put("required_int64_group", value); - return getBuilderAfterRequiredInt64Group(instance); - } - } - - public interface SetterForRequiredStringGroup { - Map getInstance(); - T getBuilderAfterRequiredStringGroup(Map instance); - - default T required_string_group(String value) { - var instance = getInstance(); - instance.put("required_string_group", value); - return getBuilderAfterRequiredStringGroup(instance); - } - } - - public interface SetterForInt64Group { - Map getInstance(); - T getBuilderAfterInt64Group(Map instance); - - default T int64_group(int value) { - var instance = getInstance(); - instance.put("int64_group", value); - return getBuilderAfterInt64Group(instance); - } - - default T int64_group(float value) { - var instance = getInstance(); - instance.put("int64_group", value); - return getBuilderAfterInt64Group(instance); - } - - default T int64_group(long value) { - var instance = getInstance(); - instance.put("int64_group", value); - return getBuilderAfterInt64Group(instance); - } - - default T int64_group(double value) { - var instance = getInstance(); - instance.put("int64_group", value); - return getBuilderAfterInt64Group(instance); - } - } - - public interface SetterForStringGroup { - Map getInstance(); - T getBuilderAfterStringGroup(Map instance); - - default T string_group(String value) { - var instance = getInstance(); - instance.put("string_group", value); - return getBuilderAfterStringGroup(instance); - } - } - - public static class QueryParametersMap00Builder implements GenericBuilder>, SetterForInt64Group, SetterForStringGroup { - private final Map instance; - private static final Set knownKeys = Set.of( - "required_int64_group", - "required_string_group", - "int64_group", - "string_group" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMap00Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap00Builder getBuilderAfterInt64Group(Map instance) { - return this; - } - public QueryParametersMap00Builder getBuilderAfterStringGroup(Map instance) { - return this; - } - } - - public static class QueryParametersMap01Builder implements SetterForRequiredStringGroup { - private final Map instance; - public QueryParametersMap01Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap00Builder getBuilderAfterRequiredStringGroup(Map instance) { - return new QueryParametersMap00Builder(instance); - } - } - - public static class QueryParametersMap10Builder implements SetterForRequiredInt64Group { - private final Map instance; - public QueryParametersMap10Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap00Builder getBuilderAfterRequiredInt64Group(Map instance) { - return new QueryParametersMap00Builder(instance); - } - } - - public static class QueryParametersMapBuilder implements SetterForRequiredInt64Group, SetterForRequiredStringGroup { - private final Map instance; - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public QueryParametersMap01Builder getBuilderAfterRequiredInt64Group(Map instance) { - return new QueryParametersMap01Builder(instance); - } - public QueryParametersMap10Builder getBuilderAfterRequiredStringGroup(Map instance) { - return new QueryParametersMap10Builder(instance); - } - } - - - public sealed interface FakeDeleteQueryParameters1Boxed permits FakeDeleteQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakeDeleteQueryParameters1BoxedMap(QueryParametersMap data) implements FakeDeleteQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakeDeleteQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakeDeleteQueryParameters1 instance = null; - - protected FakeDeleteQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("required_string_group", Schema0.Schema01.class), - new PropertyEntry("int64_group", Schema5.Schema51.class), - new PropertyEntry("string_group", Schema3.Schema31.class), - new PropertyEntry("required_int64_group", Schema2.Schema21.class) - )) - .required(Set.of( - "required_int64_group", - "required_string_group" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakeDeleteQueryParameters1 getInstance() { - if (instance == null) { - instance = new FakeDeleteQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakeDeleteQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakeDeleteQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakeDeleteQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java deleted file mode 100644 index 6482372de63..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete; - -import org.openapijsonschematools.client.paths.fake.delete.responses.FakeDeleteCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeDeleteResponses { - public sealed interface EndpointResponse permits EndpointFakeDeleteCode200Response {} - - public record EndpointFakeDeleteCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeDeleteCode200ResponseDeserializer {} - - public static final class StatusFakeDeleteCode200ResponseDeserializer extends FakeDeleteCode200Response.FakeDeleteCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeDeleteResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeDeleteResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeDeleteCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeDeleteCode200ResponseDeserializer castDeserializer = (StatusFakeDeleteCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java deleted file mode 100644 index 1d8502b4091..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete; - -import org.openapijsonschematools.client.paths.fake.delete.security.FakeDeleteSecurityRequirementObject0; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class FakeDeleteSecurityInfo { - public static class FakeDeleteSecurityInfo1 implements SecurityRequirementObjectProvider { - public final FakeDeleteSecurityRequirementObject0 security0; - - public FakeDeleteSecurityInfo1() { - security0 = new FakeDeleteSecurityRequirementObject0(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - return security0; - } - } - - public enum SecurityIndex { - SECURITY_0 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java deleted file mode 100644 index ba70280cca5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete; - -import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter0; -import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter1; -import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter2; -import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter3; -import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter4; -import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter5; -import org.openapijsonschematools.client.parameter.HeadersSerializer; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("required_string_group", new Parameter0.Parameter01()), - new AbstractMap.SimpleEntry<>("required_int64_group", new Parameter2.Parameter21()), - new AbstractMap.SimpleEntry<>("string_group", new Parameter3.Parameter31()), - new AbstractMap.SimpleEntry<>("int64_group", new Parameter5.Parameter51()) - ) - ); - } - } - - public static class HeaderParametersSerializer extends HeadersSerializer { - public HeaderParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("required_boolean_group", new Parameter1.Parameter11()), - new AbstractMap.SimpleEntry<>("boolean_group", new Parameter4.Parameter41()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter0.java deleted file mode 100644 index 5872e87f523..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "required_string_group", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter1.java deleted file mode 100644 index d74937b4fc9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter1.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter1.Schema1; - -public class Parameter1 { - - public static class Parameter11 extends SchemaParameter { - public Parameter11() { - super( - "required_boolean_group", - ParameterInType.HEADER, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema1.Schema11.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter2.java deleted file mode 100644 index 9453ce7bcb3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter2.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter2.Schema2; - -public class Parameter2 { - - public static class Parameter21 extends SchemaParameter { - public Parameter21() { - super( - "required_int64_group", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema2.Schema21.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter3.java deleted file mode 100644 index c2121467a18..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter3.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter3.Schema3; - -public class Parameter3 { - - public static class Parameter31 extends SchemaParameter { - public Parameter31() { - super( - "string_group", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema3.Schema31.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter4.java deleted file mode 100644 index c755206ddac..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter4.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter4.Schema4; - -public class Parameter4 { - - public static class Parameter41 extends SchemaParameter { - public Parameter41() { - super( - "boolean_group", - ParameterInType.HEADER, - false, - ParameterStyle.SIMPLE, - false, - false, - Schema4.Schema41.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter5.java deleted file mode 100644 index 91ea65b5be7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter5.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter5.Schema5; - -public class Parameter5 { - - public static class Parameter51 extends SchemaParameter { - public Parameter51() { - super( - "int64_group", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema5.Schema51.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter0/Schema0.java deleted file mode 100644 index 85b207cd05f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java deleted file mode 100644 index ec9ab334ddc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter1; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema1 { - // nest classes so all schemas and input/output classes can be public - - public enum StringSchemaEnums1 implements StringValueMethod { - TRUE("true"), - FALSE("false"); - private final String value; - - StringSchemaEnums1(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface Schema11Boxed permits Schema11BoxedString { - @Nullable Object getData(); - } - - public record Schema11BoxedString(String data) implements Schema11Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { - private static @Nullable Schema11 instance = null; - - protected Schema11() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "true", - "false" - )) - ); - } - - public static Schema11 getInstance() { - if (instance == null) { - instance = new Schema11(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringSchemaEnums1 arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema11BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema11BoxedString(validate(arg, configuration)); - } - @Override - public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter2/Schema2.java deleted file mode 100644 index 93cb91de837..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter2/Schema2.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter2; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.Int64JsonSchema; - -public class Schema2 extends Int64JsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema21 extends Int64JsonSchema.Int64JsonSchema1 { - private static @Nullable Schema21 instance = null; - public static Schema21 getInstance() { - if (instance == null) { - instance = new Schema21(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java deleted file mode 100644 index 4ec69a80fc9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter3; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema3 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema31 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema31 instance = null; - public static Schema31 getInstance() { - if (instance == null) { - instance = new Schema31(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java deleted file mode 100644 index 023f18175d6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter4; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema4 { - // nest classes so all schemas and input/output classes can be public - - public enum StringSchemaEnums4 implements StringValueMethod { - TRUE("true"), - FALSE("false"); - private final String value; - - StringSchemaEnums4(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface Schema41Boxed permits Schema41BoxedString { - @Nullable Object getData(); - } - - public record Schema41BoxedString(String data) implements Schema41Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema41 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { - private static @Nullable Schema41 instance = null; - - protected Schema41() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "true", - "false" - )) - ); - } - - public static Schema41 getInstance() { - if (instance == null) { - instance = new Schema41(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringSchemaEnums4 arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema41BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema41BoxedString(validate(arg, configuration)); - } - @Override - public Schema41Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java deleted file mode 100644 index a15a29b9222..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter5; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.Int64JsonSchema; - -public class Schema5 extends Int64JsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema51 extends Int64JsonSchema.Int64JsonSchema1 { - private static @Nullable Schema51 instance = null; - public static Schema51 getInstance() { - if (instance == null) { - instance = new Schema51(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java deleted file mode 100644 index a9caf9729de..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakeDeleteCode200Response extends SuccessDescriptionOnly { - public static class FakeDeleteCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java deleted file mode 100644 index a615af7f968..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.delete.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.BearerTest; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeDeleteSecurityRequirementObject0 extends SecurityRequirementObject { - - public FakeDeleteSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - BearerTest.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java deleted file mode 100644 index 4ac48925b27..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java +++ /dev/null @@ -1,228 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter1.Schema1; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakeGetHeaderParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { - protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "enum_header_string", - "enum_header_string_array" - ); - public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FakeGetHeaderParameters1.getInstance().validate(arg, configuration); - } - - public String enum_header_string() throws UnsetPropertyException { - String key = "enum_header_string"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for enum_header_string"); - } - return (String) value; - } - - public Schema0.SchemaList0 enum_header_string_array() throws UnsetPropertyException { - String key = "enum_header_string_array"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof Schema0.SchemaList0)) { - throw new RuntimeException("Invalid value stored for enum_header_string_array"); - } - return (Schema0.SchemaList0) value; - } - } - - public interface SetterForEnumHeaderString { - Map getInstance(); - T getBuilderAfterEnumHeaderString(Map instance); - - default T enum_header_string(String value) { - var instance = getInstance(); - instance.put("enum_header_string", value); - return getBuilderAfterEnumHeaderString(instance); - } - - default T enum_header_string(Schema1.StringSchemaEnums1 value) { - var instance = getInstance(); - instance.put("enum_header_string", value.value()); - return getBuilderAfterEnumHeaderString(instance); - } - } - - public interface SetterForEnumHeaderStringArray { - Map getInstance(); - T getBuilderAfterEnumHeaderStringArray(Map instance); - - default T enum_header_string_array(List value) { - var instance = getInstance(); - instance.put("enum_header_string_array", value); - return getBuilderAfterEnumHeaderStringArray(instance); - } - } - - public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForEnumHeaderString, SetterForEnumHeaderStringArray { - private final Map instance; - private static final Set knownKeys = Set.of( - "enum_header_string", - "enum_header_string_array" - ); - public Set getKnownKeys() { - return knownKeys; - } - public HeaderParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public HeaderParametersMapBuilder getBuilderAfterEnumHeaderString(Map instance) { - return this; - } - public HeaderParametersMapBuilder getBuilderAfterEnumHeaderStringArray(Map instance) { - return this; - } - } - - - public sealed interface FakeGetHeaderParameters1Boxed permits FakeGetHeaderParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakeGetHeaderParameters1BoxedMap(HeaderParametersMap data) implements FakeGetHeaderParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakeGetHeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakeGetHeaderParameters1 instance = null; - - protected FakeGetHeaderParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("enum_header_string", Schema1.Schema11.class), - new PropertyEntry("enum_header_string_array", Schema0.Schema01.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakeGetHeaderParameters1 getInstance() { - if (instance == null) { - instance = new FakeGetHeaderParameters1(); - } - return instance; - } - - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); - } - - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakeGetHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakeGetHeaderParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakeGetHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java deleted file mode 100644 index 90bb2fbb2a0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java +++ /dev/null @@ -1,344 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter2.Schema2; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter3.Schema3; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter4.Schema4; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter5.Schema5; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakeGetQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "enum_query_double", - "enum_query_string", - "enum_query_integer", - "enum_query_string_array" - ); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FakeGetQueryParameters1.getInstance().validate(arg, configuration); - } - - public Number enum_query_double() throws UnsetPropertyException { - String key = "enum_query_double"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof Number)) { - throw new RuntimeException("Invalid value stored for enum_query_double"); - } - return (Number) value; - } - - public String enum_query_string() throws UnsetPropertyException { - String key = "enum_query_string"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for enum_query_string"); - } - return (String) value; - } - - public Number enum_query_integer() throws UnsetPropertyException { - String key = "enum_query_integer"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof Number)) { - throw new RuntimeException("Invalid value stored for enum_query_integer"); - } - return (Number) value; - } - - public Schema2.SchemaList2 enum_query_string_array() throws UnsetPropertyException { - String key = "enum_query_string_array"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof Schema2.SchemaList2)) { - throw new RuntimeException("Invalid value stored for enum_query_string_array"); - } - return (Schema2.SchemaList2) value; - } - } - - public interface SetterForEnumQueryDouble { - Map getInstance(); - T getBuilderAfterEnumQueryDouble(Map instance); - - default T enum_query_double(int value) { - var instance = getInstance(); - instance.put("enum_query_double", value); - return getBuilderAfterEnumQueryDouble(instance); - } - - default T enum_query_double(float value) { - var instance = getInstance(); - instance.put("enum_query_double", value); - return getBuilderAfterEnumQueryDouble(instance); - } - - default T enum_query_double(long value) { - var instance = getInstance(); - instance.put("enum_query_double", value); - return getBuilderAfterEnumQueryDouble(instance); - } - - default T enum_query_double(double value) { - var instance = getInstance(); - instance.put("enum_query_double", value); - return getBuilderAfterEnumQueryDouble(instance); - } - - default T enum_query_double(Schema5.DoubleSchemaEnums5 value) { - var instance = getInstance(); - instance.put("enum_query_double", value.value()); - return getBuilderAfterEnumQueryDouble(instance); - } - - default T enum_query_double(Schema5.FloatSchemaEnums5 value) { - var instance = getInstance(); - instance.put("enum_query_double", value.value()); - return getBuilderAfterEnumQueryDouble(instance); - } - } - - public interface SetterForEnumQueryString { - Map getInstance(); - T getBuilderAfterEnumQueryString(Map instance); - - default T enum_query_string(String value) { - var instance = getInstance(); - instance.put("enum_query_string", value); - return getBuilderAfterEnumQueryString(instance); - } - - default T enum_query_string(Schema3.StringSchemaEnums3 value) { - var instance = getInstance(); - instance.put("enum_query_string", value.value()); - return getBuilderAfterEnumQueryString(instance); - } - } - - public interface SetterForEnumQueryInteger { - Map getInstance(); - T getBuilderAfterEnumQueryInteger(Map instance); - - default T enum_query_integer(int value) { - var instance = getInstance(); - instance.put("enum_query_integer", value); - return getBuilderAfterEnumQueryInteger(instance); - } - - default T enum_query_integer(float value) { - var instance = getInstance(); - instance.put("enum_query_integer", value); - return getBuilderAfterEnumQueryInteger(instance); - } - - default T enum_query_integer(Schema4.IntegerSchemaEnums4 value) { - var instance = getInstance(); - instance.put("enum_query_integer", value.value()); - return getBuilderAfterEnumQueryInteger(instance); - } - - default T enum_query_integer(Schema4.LongSchemaEnums4 value) { - var instance = getInstance(); - instance.put("enum_query_integer", value.value()); - return getBuilderAfterEnumQueryInteger(instance); - } - - default T enum_query_integer(Schema4.FloatSchemaEnums4 value) { - var instance = getInstance(); - instance.put("enum_query_integer", value.value()); - return getBuilderAfterEnumQueryInteger(instance); - } - - default T enum_query_integer(Schema4.DoubleSchemaEnums4 value) { - var instance = getInstance(); - instance.put("enum_query_integer", value.value()); - return getBuilderAfterEnumQueryInteger(instance); - } - } - - public interface SetterForEnumQueryStringArray { - Map getInstance(); - T getBuilderAfterEnumQueryStringArray(Map instance); - - default T enum_query_string_array(List value) { - var instance = getInstance(); - instance.put("enum_query_string_array", value); - return getBuilderAfterEnumQueryStringArray(instance); - } - } - - public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForEnumQueryDouble, SetterForEnumQueryString, SetterForEnumQueryInteger, SetterForEnumQueryStringArray { - private final Map instance; - private static final Set knownKeys = Set.of( - "enum_query_double", - "enum_query_string", - "enum_query_integer", - "enum_query_string_array" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMapBuilder getBuilderAfterEnumQueryDouble(Map instance) { - return this; - } - public QueryParametersMapBuilder getBuilderAfterEnumQueryString(Map instance) { - return this; - } - public QueryParametersMapBuilder getBuilderAfterEnumQueryInteger(Map instance) { - return this; - } - public QueryParametersMapBuilder getBuilderAfterEnumQueryStringArray(Map instance) { - return this; - } - } - - - public sealed interface FakeGetQueryParameters1Boxed permits FakeGetQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakeGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakeGetQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakeGetQueryParameters1 instance = null; - - protected FakeGetQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("enum_query_double", Schema5.Schema51.class), - new PropertyEntry("enum_query_string", Schema3.Schema31.class), - new PropertyEntry("enum_query_integer", Schema4.Schema41.class), - new PropertyEntry("enum_query_string_array", Schema2.Schema21.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakeGetQueryParameters1 getInstance() { - if (instance == null) { - instance = new FakeGetQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakeGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakeGetQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakeGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java deleted file mode 100644 index 71470cf4465..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakeGetRequestBody { - public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} - - public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxwwwformurlencodedMediaType() { - this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakeGetRequestBody1 extends RequestBodySerializer { - public FakeGetRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationxwwwformurlencodedRequestBody requestBody0 = (ApplicationxwwwformurlencodedRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} - public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/x-www-form-urlencoded"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java deleted file mode 100644 index ff46bc65ce0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get; - -import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode200Response; -import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode404Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeGetResponses { - public sealed interface EndpointResponse permits EndpointFakeGetCode200Response {} - - public record EndpointFakeGetCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeGetCode200ResponseDeserializer, StatusFakeGetCode404ResponseDeserializer {} - - public static final class StatusFakeGetCode200ResponseDeserializer extends FakeGetCode200Response.FakeGetCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusFakeGetCode404ResponseDeserializer extends FakeGetCode404Response.FakeGetCode404Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeGetCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusFakeGetCode404ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusFakeGetCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else { - StatusFakeGetCode404ResponseDeserializer castDeserializer = (StatusFakeGetCode404ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new FakeGetCode404Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java deleted file mode 100644 index c5b3e142015..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get; - -import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter0; -import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter1; -import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter2; -import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter3; -import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter4; -import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter5; -import org.openapijsonschematools.client.parameter.HeadersSerializer; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("enum_query_string_array", new Parameter2.Parameter21()), - new AbstractMap.SimpleEntry<>("enum_query_string", new Parameter3.Parameter31()), - new AbstractMap.SimpleEntry<>("enum_query_integer", new Parameter4.Parameter41()), - new AbstractMap.SimpleEntry<>("enum_query_double", new Parameter5.Parameter51()) - ) - ); - } - } - - public static class HeaderParametersSerializer extends HeadersSerializer { - public HeaderParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("enum_header_string_array", new Parameter0.Parameter01()), - new AbstractMap.SimpleEntry<>("enum_header_string", new Parameter1.Parameter11()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java deleted file mode 100644 index 3a8537f7fd1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "enum_header_string_array", - ParameterInType.HEADER, - false, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java deleted file mode 100644 index 49e947d6399..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter1.Schema1; - -public class Parameter1 { - - public static class Parameter11 extends SchemaParameter { - public Parameter11() { - super( - "enum_header_string", - ParameterInType.HEADER, - false, - ParameterStyle.SIMPLE, - false, - false, - Schema1.Schema11.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter2.java deleted file mode 100644 index 71e3f589257..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter2.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter2.Schema2; - -public class Parameter2 { - - public static class Parameter21 extends SchemaParameter { - public Parameter21() { - super( - "enum_query_string_array", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema2.Schema21.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter3.java deleted file mode 100644 index 9903092e80d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter3.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter3.Schema3; - -public class Parameter3 { - - public static class Parameter31 extends SchemaParameter { - public Parameter31() { - super( - "enum_query_string", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema3.Schema31.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter4.java deleted file mode 100644 index 21bf1787d8a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter4.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter4.Schema4; - -public class Parameter4 { - - public static class Parameter41 extends SchemaParameter { - public Parameter41() { - super( - "enum_query_integer", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema4.Schema41.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter5.java deleted file mode 100644 index 7fb91fb88f0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter5.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fake.get.parameters.parameter5.Schema5; - -public class Parameter5 { - - public static class Parameter51 extends SchemaParameter { - public Parameter51() { - super( - "enum_query_double", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema5.Schema51.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java deleted file mode 100644 index 0656e20511a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,253 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters.parameter0; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema0 { - // nest classes so all schemas and input/output classes can be public - - public enum StringItemsEnums0 implements StringValueMethod { - GREATER_THAN_SIGN(">"), - DOLLAR_SIGN("$"); - private final String value; - - StringItemsEnums0(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface Items0Boxed permits Items0BoxedString { - @Nullable Object getData(); - } - - public record Items0BoxedString(String data) implements Items0Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Items0 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Items0 instance = null; - - protected Items0() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - ">", - "$" - )) - .defaultValue("$") - ); - } - - public static Items0 getInstance() { - if (instance == null) { - instance = new Items0(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringItemsEnums0 arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public Items0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Items0BoxedString(validate(arg, configuration)); - } - @Override - public Items0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class SchemaList0 extends FrozenList { - protected SchemaList0(FrozenList m) { - super(m); - } - public static SchemaList0 of(List arg, SchemaConfiguration configuration) throws ValidationException { - return Schema01.getInstance().validate(arg, configuration); - } - } - - public static class SchemaListBuilder0 { - // class to build List - private final List list; - - public SchemaListBuilder0() { - list = new ArrayList<>(); - } - - public SchemaListBuilder0(List list) { - this.list = list; - } - - public SchemaListBuilder0 add(String item) { - list.add(item); - return this; - } - - public SchemaListBuilder0 add(StringItemsEnums0 item) { - list.add(item.value()); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface Schema01Boxed permits Schema01BoxedList { - @Nullable Object getData(); - } - - public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema01 extends JsonSchema implements ListSchemaValidator { - private static @Nullable Schema01 instance = null; - - protected Schema01() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(Items0.class) - ); - } - - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - - @Override - public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new SchemaList0(newInstanceItems); - } - - public SchemaList0 validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedList(validate(arg, configuration)); - } - @Override - public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java deleted file mode 100644 index c11fb1b0bf8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters.parameter1; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema1 { - // nest classes so all schemas and input/output classes can be public - - public enum StringSchemaEnums1 implements StringValueMethod { - LOW_LINE_ABC("_abc"), - HYPHEN_MINUS_EFG("-efg"), - LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS("(xyz)"); - private final String value; - - StringSchemaEnums1(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface Schema11Boxed permits Schema11BoxedString { - @Nullable Object getData(); - } - - public record Schema11BoxedString(String data) implements Schema11Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Schema11 instance = null; - - protected Schema11() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "_abc", - "-efg", - "(xyz)" - )) - .defaultValue("-efg") - ); - } - - public static Schema11 getInstance() { - if (instance == null) { - instance = new Schema11(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringSchemaEnums1 arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public Schema11BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema11BoxedString(validate(arg, configuration)); - } - @Override - public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java deleted file mode 100644 index ac7290881ca..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java +++ /dev/null @@ -1,253 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters.parameter2; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema2 { - // nest classes so all schemas and input/output classes can be public - - public enum StringItemsEnums2 implements StringValueMethod { - GREATER_THAN_SIGN(">"), - DOLLAR_SIGN("$"); - private final String value; - - StringItemsEnums2(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface Items2Boxed permits Items2BoxedString { - @Nullable Object getData(); - } - - public record Items2BoxedString(String data) implements Items2Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Items2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Items2 instance = null; - - protected Items2() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - ">", - "$" - )) - .defaultValue("$") - ); - } - - public static Items2 getInstance() { - if (instance == null) { - instance = new Items2(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringItemsEnums2 arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public Items2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Items2BoxedString(validate(arg, configuration)); - } - @Override - public Items2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class SchemaList2 extends FrozenList { - protected SchemaList2(FrozenList m) { - super(m); - } - public static SchemaList2 of(List arg, SchemaConfiguration configuration) throws ValidationException { - return Schema21.getInstance().validate(arg, configuration); - } - } - - public static class SchemaListBuilder2 { - // class to build List - private final List list; - - public SchemaListBuilder2() { - list = new ArrayList<>(); - } - - public SchemaListBuilder2(List list) { - this.list = list; - } - - public SchemaListBuilder2 add(String item) { - list.add(item); - return this; - } - - public SchemaListBuilder2 add(StringItemsEnums2 item) { - list.add(item.value()); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface Schema21Boxed permits Schema21BoxedList { - @Nullable Object getData(); - } - - public record Schema21BoxedList(SchemaList2 data) implements Schema21Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema21 extends JsonSchema implements ListSchemaValidator { - private static @Nullable Schema21 instance = null; - - protected Schema21() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(Items2.class) - ); - } - - public static Schema21 getInstance() { - if (instance == null) { - instance = new Schema21(); - } - return instance; - } - - @Override - public SchemaList2 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new SchemaList2(newInstanceItems); - } - - public SchemaList2 validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema21BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema21BoxedList(validate(arg, configuration)); - } - @Override - public Schema21Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java deleted file mode 100644 index 10b29f05566..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters.parameter3; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema3 { - // nest classes so all schemas and input/output classes can be public - - public enum StringSchemaEnums3 implements StringValueMethod { - LOW_LINE_ABC("_abc"), - HYPHEN_MINUS_EFG("-efg"), - LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS("(xyz)"); - private final String value; - - StringSchemaEnums3(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface Schema31Boxed permits Schema31BoxedString { - @Nullable Object getData(); - } - - public record Schema31BoxedString(String data) implements Schema31Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema31 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Schema31 instance = null; - - protected Schema31() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "_abc", - "-efg", - "(xyz)" - )) - .defaultValue("-efg") - ); - } - - public static Schema31 getInstance() { - if (instance == null) { - instance = new Schema31(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringSchemaEnums3 arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public Schema31BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema31BoxedString(validate(arg, configuration)); - } - @Override - public Schema31Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java deleted file mode 100644 index 31ffdbc7fef..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java +++ /dev/null @@ -1,187 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters.parameter4; -import java.math.BigDecimal; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DoubleEnumValidator; -import org.openapijsonschematools.client.schemas.validation.DoubleValueMethod; -import org.openapijsonschematools.client.schemas.validation.FloatEnumValidator; -import org.openapijsonschematools.client.schemas.validation.FloatValueMethod; -import org.openapijsonschematools.client.schemas.validation.IntegerEnumValidator; -import org.openapijsonschematools.client.schemas.validation.IntegerValueMethod; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.LongEnumValidator; -import org.openapijsonschematools.client.schemas.validation.LongValueMethod; -import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema4 { - // nest classes so all schemas and input/output classes can be public - - public enum IntegerSchemaEnums4 implements IntegerValueMethod { - POSITIVE_1(1), - NEGATIVE_2(-2); - private final int value; - - IntegerSchemaEnums4(int value) { - this.value = value; - } - public int value() { - return this.value; - } - } - - public enum LongSchemaEnums4 implements LongValueMethod { - POSITIVE_1(1L), - NEGATIVE_2(-2L); - private final long value; - - LongSchemaEnums4(long value) { - this.value = value; - } - public long value() { - return this.value; - } - } - - public enum FloatSchemaEnums4 implements FloatValueMethod { - POSITIVE_1(1.0f), - NEGATIVE_2(-2.0f); - private final float value; - - FloatSchemaEnums4(float value) { - this.value = value; - } - public float value() { - return this.value; - } - } - - public enum DoubleSchemaEnums4 implements DoubleValueMethod { - POSITIVE_1(1.0d), - NEGATIVE_2(-2.0d); - private final double value; - - DoubleSchemaEnums4(double value) { - this.value = value; - } - public double value() { - return this.value; - } - } - - - public sealed interface Schema41Boxed permits Schema41BoxedNumber { - @Nullable Object getData(); - } - - public record Schema41BoxedNumber(Number data) implements Schema41Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema41 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { - private static @Nullable Schema41 instance = null; - - protected Schema41() { - super(new JsonSchemaInfo() - .type(Set.of( - Integer.class, - Long.class, - Float.class, - Double.class - )) - .format("int32") - .enumValues(SetMaker.makeSet( - new BigDecimal("1"), - new BigDecimal("-2") - )) - ); - } - - public static Schema41 getInstance() { - if (instance == null) { - instance = new Schema41(); - } - return instance; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - @Override - public int validate(IntegerSchemaEnums4 arg,SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg.value(), configuration); - } - - @Override - public long validate(LongSchemaEnums4 arg,SchemaConfiguration configuration) throws ValidationException { - return (long) validate((Number) arg.value(), configuration); - } - - @Override - public float validate(FloatSchemaEnums4 arg,SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg.value(), configuration); - } - - @Override - public double validate(DoubleSchemaEnums4 arg,SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number) { - return validate((Number) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema41BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema41BoxedNumber(validate(arg, configuration)); - } - @Override - public Schema41Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java deleted file mode 100644 index 061a755133a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java +++ /dev/null @@ -1,142 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.parameters.parameter5; -import java.math.BigDecimal; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DoubleEnumValidator; -import org.openapijsonschematools.client.schemas.validation.DoubleValueMethod; -import org.openapijsonschematools.client.schemas.validation.FloatEnumValidator; -import org.openapijsonschematools.client.schemas.validation.FloatValueMethod; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema5 { - // nest classes so all schemas and input/output classes can be public - - public enum DoubleSchemaEnums5 implements DoubleValueMethod { - POSITIVE_1_PT_1(1.1d), - NEGATIVE_1_PT_2(-1.2d); - private final double value; - - DoubleSchemaEnums5(double value) { - this.value = value; - } - public double value() { - return this.value; - } - } - - public enum FloatSchemaEnums5 implements FloatValueMethod { - POSITIVE_1_PT_1(1.1f), - NEGATIVE_1_PT_2(-1.2f); - private final float value; - - FloatSchemaEnums5(float value) { - this.value = value; - } - public float value() { - return this.value; - } - } - - - public sealed interface Schema51Boxed permits Schema51BoxedNumber { - @Nullable Object getData(); - } - - public record Schema51BoxedNumber(Number data) implements Schema51Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema51 extends JsonSchema implements FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { - private static @Nullable Schema51 instance = null; - - protected Schema51() { - super(new JsonSchemaInfo() - .type(Set.of( - Integer.class, - Long.class, - Float.class, - Double.class - )) - .format("double") - .enumValues(SetMaker.makeSet( - new BigDecimal("1.1"), - new BigDecimal("-1.2") - )) - ); - } - - public static Schema51 getInstance() { - if (instance == null) { - instance = new Schema51(); - } - return instance; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public float validate(FloatSchemaEnums5 arg,SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg.value(), configuration); - } - - @Override - public double validate(DoubleSchemaEnums5 arg,SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number) { - return validate((Number) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema51BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema51BoxedNumber(validate(arg, configuration)); - } - @Override - public Schema51Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java deleted file mode 100644 index 481e0b1b057..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ /dev/null @@ -1,553 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class ApplicationxwwwformurlencodedSchema { - // nest classes so all schemas and input/output classes can be public - - public enum StringApplicationxwwwformurlencodedItemsEnums implements StringValueMethod { - GREATER_THAN_SIGN(">"), - DOLLAR_SIGN("$"); - private final String value; - - StringApplicationxwwwformurlencodedItemsEnums(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface ApplicationxwwwformurlencodedItemsBoxed permits ApplicationxwwwformurlencodedItemsBoxedString { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedItemsBoxedString(String data) implements ApplicationxwwwformurlencodedItemsBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedItems extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable ApplicationxwwwformurlencodedItems instance = null; - - protected ApplicationxwwwformurlencodedItems() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - ">", - "$" - )) - .defaultValue("$") - ); - } - - public static ApplicationxwwwformurlencodedItems getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedItems(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringApplicationxwwwformurlencodedItemsEnums arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public ApplicationxwwwformurlencodedItemsBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedItemsBoxedString(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class ApplicationxwwwformurlencodedEnumFormStringArrayList extends FrozenList { - protected ApplicationxwwwformurlencodedEnumFormStringArrayList(FrozenList m) { - super(m); - } - public static ApplicationxwwwformurlencodedEnumFormStringArrayList of(List arg, SchemaConfiguration configuration) throws ValidationException { - return ApplicationxwwwformurlencodedEnumFormStringArray.getInstance().validate(arg, configuration); - } - } - - public static class ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder { - // class to build List - private final List list; - - public ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder() { - list = new ArrayList<>(); - } - - public ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder(List list) { - this.list = list; - } - - public ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder add(String item) { - list.add(item); - return this; - } - - public ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder add(StringApplicationxwwwformurlencodedItemsEnums item) { - list.add(item.value()); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface ApplicationxwwwformurlencodedEnumFormStringArrayBoxed permits ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList(ApplicationxwwwformurlencodedEnumFormStringArrayList data) implements ApplicationxwwwformurlencodedEnumFormStringArrayBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedEnumFormStringArray extends JsonSchema implements ListSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedEnumFormStringArray instance = null; - - protected ApplicationxwwwformurlencodedEnumFormStringArray() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(ApplicationxwwwformurlencodedItems.class) - ); - } - - public static ApplicationxwwwformurlencodedEnumFormStringArray getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedEnumFormStringArray(); - } - return instance; - } - - @Override - public ApplicationxwwwformurlencodedEnumFormStringArrayList getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new ApplicationxwwwformurlencodedEnumFormStringArrayList(newInstanceItems); - } - - public ApplicationxwwwformurlencodedEnumFormStringArrayList validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedEnumFormStringArrayBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - public enum StringApplicationxwwwformurlencodedEnumFormStringEnums implements StringValueMethod { - LOW_LINE_ABC("_abc"), - HYPHEN_MINUS_EFG("-efg"), - LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS("(xyz)"); - private final String value; - - StringApplicationxwwwformurlencodedEnumFormStringEnums(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface ApplicationxwwwformurlencodedEnumFormStringBoxed permits ApplicationxwwwformurlencodedEnumFormStringBoxedString { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedEnumFormStringBoxedString(String data) implements ApplicationxwwwformurlencodedEnumFormStringBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedEnumFormString extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable ApplicationxwwwformurlencodedEnumFormString instance = null; - - protected ApplicationxwwwformurlencodedEnumFormString() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "_abc", - "-efg", - "(xyz)" - )) - .defaultValue("-efg") - ); - } - - public static ApplicationxwwwformurlencodedEnumFormString getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedEnumFormString(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringApplicationxwwwformurlencodedEnumFormStringEnums arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public ApplicationxwwwformurlencodedEnumFormStringBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedEnumFormStringBoxedString(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedEnumFormStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap extends FrozenMap<@Nullable Object> { - protected ApplicationxwwwformurlencodedSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "enum_form_string_array", - "enum_form_string" - ); - public static ApplicationxwwwformurlencodedSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return ApplicationxwwwformurlencodedSchema1.getInstance().validate(arg, configuration); - } - - public ApplicationxwwwformurlencodedEnumFormStringArrayList enum_form_string_array() throws UnsetPropertyException { - String key = "enum_form_string_array"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof ApplicationxwwwformurlencodedEnumFormStringArrayList)) { - throw new RuntimeException("Invalid value stored for enum_form_string_array"); - } - return (ApplicationxwwwformurlencodedEnumFormStringArrayList) value; - } - - public String enum_form_string() throws UnsetPropertyException { - String key = "enum_form_string"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for enum_form_string"); - } - return (String) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForApplicationxwwwformurlencodedEnumFormStringArray { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedEnumFormStringArray(Map instance); - - default T enum_form_string_array(List value) { - var instance = getInstance(); - instance.put("enum_form_string_array", value); - return getBuilderAfterApplicationxwwwformurlencodedEnumFormStringArray(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedEnumFormString { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedEnumFormString(Map instance); - - default T enum_form_string(String value) { - var instance = getInstance(); - instance.put("enum_form_string", value); - return getBuilderAfterApplicationxwwwformurlencodedEnumFormString(instance); - } - - default T enum_form_string(StringApplicationxwwwformurlencodedEnumFormStringEnums value) { - var instance = getInstance(); - instance.put("enum_form_string", value.value()); - return getBuilderAfterApplicationxwwwformurlencodedEnumFormString(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForApplicationxwwwformurlencodedEnumFormStringArray, SetterForApplicationxwwwformurlencodedEnumFormString { - private final Map instance; - private static final Set knownKeys = Set.of( - "enum_form_string_array", - "enum_form_string" - ); - public Set getKnownKeys() { - return knownKeys; - } - public ApplicationxwwwformurlencodedSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterApplicationxwwwformurlencodedEnumFormStringArray(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterApplicationxwwwformurlencodedEnumFormString(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; - - protected ApplicationxwwwformurlencodedSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("enum_form_string_array", ApplicationxwwwformurlencodedEnumFormStringArray.class), - new PropertyEntry("enum_form_string", ApplicationxwwwformurlencodedEnumFormString.class) - )) - ); - } - - public static ApplicationxwwwformurlencodedSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedSchema1(); - } - return instance; - } - - public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new ApplicationxwwwformurlencodedSchemaMap(castProperties); - } - - public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java deleted file mode 100644 index 5787a626bfc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakeGetCode200Response extends SuccessDescriptionOnly { - public static class FakeGetCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java deleted file mode 100644 index 7ed1e9138ab..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fake.get.responses.code404response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakeGetCode404Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.MapJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakeGetCode404Response1 extends ResponseDeserializer { - public FakeGetCode404Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index b9a4b76bd20..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.get.responses.code404response.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.MapJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; - -public class ApplicationjsonSchema extends MapJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends MapJsonSchema.MapJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java deleted file mode 100644 index a31bc3e33c1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.patch; - -import org.openapijsonschematools.client.components.requestbodies.Client; - -public class FakePatchRequestBody extends Client { - public static class FakePatchRequestBody1 extends Client1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java deleted file mode 100644 index bdd4f5eaf64..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.patch; - -import org.openapijsonschematools.client.paths.fake.patch.responses.FakePatchCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakePatchResponses { - public sealed interface EndpointResponse permits EndpointFakePatchCode200Response {} - - public record EndpointFakePatchCode200Response( - HttpResponse response, - FakePatchCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakePatchCode200ResponseDeserializer {} - - public static final class StatusFakePatchCode200ResponseDeserializer extends FakePatchCode200Response.FakePatchCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakePatchResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakePatchResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakePatchCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakePatchCode200ResponseDeserializer castDeserializer = (StatusFakePatchCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakePatchCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java deleted file mode 100644 index 8e41f415025..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.patch.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fake.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakePatchCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - - public static class FakePatchCode200Response1 extends ResponseDeserializer { - public FakePatchCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index f61bbf1fe44..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.patch.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Client; - -public class ApplicationjsonSchema extends Client { - // $refed class - - - public static class ApplicationjsonSchema1 extends Client1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java deleted file mode 100644 index 77ff9662be2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakePostRequestBody { - public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} - - public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxwwwformurlencodedMediaType() { - this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakePostRequestBody1 extends RequestBodySerializer { - public FakePostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationxwwwformurlencodedRequestBody requestBody0 = (ApplicationxwwwformurlencodedRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} - public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/x-www-form-urlencoded"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java deleted file mode 100644 index 407615511d5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.post; - -import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode200Response; -import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode404Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakePostResponses { - public sealed interface EndpointResponse permits EndpointFakePostCode200Response {} - - public record EndpointFakePostCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakePostCode200ResponseDeserializer, StatusFakePostCode404ResponseDeserializer {} - - public static final class StatusFakePostCode200ResponseDeserializer extends FakePostCode200Response.FakePostCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusFakePostCode404ResponseDeserializer extends FakePostCode404Response.FakePostCode404Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakePostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakePostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakePostCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusFakePostCode404ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusFakePostCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else { - StatusFakePostCode404ResponseDeserializer castDeserializer = (StatusFakePostCode404ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new FakePostCode404Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java deleted file mode 100644 index 013b581a6d4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.post; - -import org.openapijsonschematools.client.paths.fake.post.security.FakePostSecurityRequirementObject0; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class FakePostSecurityInfo { - public static class FakePostSecurityInfo1 implements SecurityRequirementObjectProvider { - public final FakePostSecurityRequirementObject0 security0; - - public FakePostSecurityInfo1() { - security0 = new FakePostSecurityRequirementObject0(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - return security0; - } - } - - public enum SecurityIndex { - SECURITY_0 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java deleted file mode 100644 index 06108b5c1e0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ /dev/null @@ -1,1591 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded; -import java.time.ZonedDateTime; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import java.util.regex.Pattern; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.DateJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.Int64JsonSchema; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class ApplicationxwwwformurlencodedSchema { - // nest classes so all schemas and input/output classes can be public - - - public sealed interface ApplicationxwwwformurlencodedIntegerBoxed permits ApplicationxwwwformurlencodedIntegerBoxedNumber { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedIntegerBoxedNumber(Number data) implements ApplicationxwwwformurlencodedIntegerBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedInteger extends JsonSchema implements NumberSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedInteger instance = null; - - protected ApplicationxwwwformurlencodedInteger() { - super(new JsonSchemaInfo() - .type(Set.of( - Integer.class, - Long.class, - Float.class, - Double.class - )) - .format("int") - .maximum(100) - .minimum(10) - ); - } - - public static ApplicationxwwwformurlencodedInteger getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedInteger(); - } - return instance; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { - return (long) validate((Number) arg, configuration); - } - - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number) { - return validate((Number) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedIntegerBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedIntegerBoxedNumber(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedIntegerBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface ApplicationxwwwformurlencodedInt32Boxed permits ApplicationxwwwformurlencodedInt32BoxedNumber { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedInt32BoxedNumber(Number data) implements ApplicationxwwwformurlencodedInt32Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedInt32 extends JsonSchema implements NumberSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedInt32 instance = null; - - protected ApplicationxwwwformurlencodedInt32() { - super(new JsonSchemaInfo() - .type(Set.of( - Integer.class, - Long.class, - Float.class, - Double.class - )) - .format("int32") - .maximum(200) - .minimum(20) - ); - } - - public static ApplicationxwwwformurlencodedInt32 getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedInt32(); - } - return instance; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number) { - return validate((Number) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedInt32BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedInt32BoxedNumber(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedInt32Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class ApplicationxwwwformurlencodedInt64 extends Int64JsonSchema.Int64JsonSchema1 { - private static @Nullable ApplicationxwwwformurlencodedInt64 instance = null; - public static ApplicationxwwwformurlencodedInt64 getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedInt64(); - } - return instance; - } - } - - - public sealed interface ApplicationxwwwformurlencodedNumberBoxed permits ApplicationxwwwformurlencodedNumberBoxedNumber { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedNumberBoxedNumber(Number data) implements ApplicationxwwwformurlencodedNumberBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedNumber extends JsonSchema implements NumberSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedNumber instance = null; - - protected ApplicationxwwwformurlencodedNumber() { - super(new JsonSchemaInfo() - .type(Set.of( - Integer.class, - Long.class, - Float.class, - Double.class - )) - .maximum(543.2) - .minimum(32.1) - ); - } - - public static ApplicationxwwwformurlencodedNumber getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedNumber(); - } - return instance; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { - return (long) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number) { - return validate((Number) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedNumberBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedNumberBoxedNumber(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedNumberBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface ApplicationxwwwformurlencodedFloatBoxed permits ApplicationxwwwformurlencodedFloatBoxedNumber { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedFloatBoxedNumber(Number data) implements ApplicationxwwwformurlencodedFloatBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedFloat extends JsonSchema implements NumberSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedFloat instance = null; - - protected ApplicationxwwwformurlencodedFloat() { - super(new JsonSchemaInfo() - .type(Set.of( - Integer.class, - Long.class, - Float.class, - Double.class - )) - .format("float") - .maximum(987.6) - ); - } - - public static ApplicationxwwwformurlencodedFloat getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedFloat(); - } - return instance; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number) { - return validate((Number) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedFloatBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedFloatBoxedNumber(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedFloatBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface ApplicationxwwwformurlencodedDoubleBoxed permits ApplicationxwwwformurlencodedDoubleBoxedNumber { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedDoubleBoxedNumber(Number data) implements ApplicationxwwwformurlencodedDoubleBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedDouble extends JsonSchema implements NumberSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedDouble instance = null; - - protected ApplicationxwwwformurlencodedDouble() { - super(new JsonSchemaInfo() - .type(Set.of( - Integer.class, - Long.class, - Float.class, - Double.class - )) - .format("double") - .maximum(123.4) - .minimum(67.8) - ); - } - - public static ApplicationxwwwformurlencodedDouble getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedDouble(); - } - return instance; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number) { - return validate((Number) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedDoubleBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedDoubleBoxedNumber(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedDoubleBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface ApplicationxwwwformurlencodedStringBoxed permits ApplicationxwwwformurlencodedStringBoxedString { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedStringBoxedString(String data) implements ApplicationxwwwformurlencodedStringBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedString extends JsonSchema implements StringSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedString instance = null; - - protected ApplicationxwwwformurlencodedString() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .pattern(Pattern.compile( - "[a-z]", - Pattern.CASE_INSENSITIVE - )) - ); - } - - public static ApplicationxwwwformurlencodedString getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedString(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedStringBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedStringBoxedString(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed permits ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(String data) implements ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedPatternWithoutDelimiter extends JsonSchema implements StringSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedPatternWithoutDelimiter instance = null; - - protected ApplicationxwwwformurlencodedPatternWithoutDelimiter() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .pattern(Pattern.compile( - "^[A-Z].*" - )) - ); - } - - public static ApplicationxwwwformurlencodedPatternWithoutDelimiter getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedPatternWithoutDelimiter(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class ApplicationxwwwformurlencodedByte extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationxwwwformurlencodedByte instance = null; - public static ApplicationxwwwformurlencodedByte getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedByte(); - } - return instance; - } - } - - - public static class ApplicationxwwwformurlencodedBinary extends StringJsonSchema.StringJsonSchema1 { - // BinarySchema - private static @Nullable ApplicationxwwwformurlencodedBinary instance = null; - public static ApplicationxwwwformurlencodedBinary getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedBinary(); - } - return instance; - } - } - - - public static class ApplicationxwwwformurlencodedDate extends DateJsonSchema.DateJsonSchema1 { - private static @Nullable ApplicationxwwwformurlencodedDate instance = null; - public static ApplicationxwwwformurlencodedDate getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedDate(); - } - return instance; - } - } - - - public sealed interface ApplicationxwwwformurlencodedDateTimeBoxed permits ApplicationxwwwformurlencodedDateTimeBoxedString { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedDateTimeBoxedString(String data) implements ApplicationxwwwformurlencodedDateTimeBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedDateTime extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { - private static @Nullable ApplicationxwwwformurlencodedDateTime instance = null; - - protected ApplicationxwwwformurlencodedDateTime() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .format("date-time") - .defaultValue("2010-02-01T10:20:10.111110+01:00") - ); - } - - public static ApplicationxwwwformurlencodedDateTime getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedDateTime(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public ApplicationxwwwformurlencodedDateTimeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedDateTimeBoxedString(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedDateTimeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface ApplicationxwwwformurlencodedPasswordBoxed permits ApplicationxwwwformurlencodedPasswordBoxedString { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedPasswordBoxedString(String data) implements ApplicationxwwwformurlencodedPasswordBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class ApplicationxwwwformurlencodedPassword extends JsonSchema implements StringSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedPassword instance = null; - - protected ApplicationxwwwformurlencodedPassword() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .format("password") - .maxLength(64) - .minLength(10) - ); - } - - public static ApplicationxwwwformurlencodedPassword getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedPassword(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedPasswordBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedPasswordBoxedString(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedPasswordBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class ApplicationxwwwformurlencodedCallback extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationxwwwformurlencodedCallback instance = null; - public static ApplicationxwwwformurlencodedCallback getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedCallback(); - } - return instance; - } - } - - - public static class ApplicationxwwwformurlencodedSchemaMap extends FrozenMap<@Nullable Object> { - protected ApplicationxwwwformurlencodedSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "byte", - "double", - "number", - "pattern_without_delimiter" - ); - public static final Set optionalKeys = Set.of( - "integer", - "int32", - "int64", - "float", - "string", - "binary", - "date", - "dateTime", - "password", - "callback" - ); - public static ApplicationxwwwformurlencodedSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return ApplicationxwwwformurlencodedSchema1.getInstance().validate(arg, configuration); - } - - public String pattern_without_delimiter() { - @Nullable Object value = get("pattern_without_delimiter"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for pattern_without_delimiter"); - } - return (String) value; - } - - public Number int32() throws UnsetPropertyException { - String key = "int32"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof Number)) { - throw new RuntimeException("Invalid value stored for int32"); - } - return (Number) value; - } - - public Number int64() throws UnsetPropertyException { - String key = "int64"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof Number)) { - throw new RuntimeException("Invalid value stored for int64"); - } - return (Number) value; - } - - public String binary() throws UnsetPropertyException { - String key = "binary"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for binary"); - } - return (String) value; - } - - public String date() throws UnsetPropertyException { - String key = "date"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for date"); - } - return (String) value; - } - - public String dateTime() throws UnsetPropertyException { - String key = "dateTime"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for dateTime"); - } - return (String) value; - } - - public String password() throws UnsetPropertyException { - String key = "password"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for password"); - } - return (String) value; - } - - public String callback() throws UnsetPropertyException { - String key = "callback"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for callback"); - } - return (String) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForApplicationxwwwformurlencodedByte { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedByte(Map instance); - - default T setByte(String value) { - var instance = getInstance(); - instance.put("byte", value); - return getBuilderAfterApplicationxwwwformurlencodedByte(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedDouble { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance); - - default T setDouble(int value) { - var instance = getInstance(); - instance.put("double", value); - return getBuilderAfterApplicationxwwwformurlencodedDouble(instance); - } - - default T setDouble(float value) { - var instance = getInstance(); - instance.put("double", value); - return getBuilderAfterApplicationxwwwformurlencodedDouble(instance); - } - - default T setDouble(long value) { - var instance = getInstance(); - instance.put("double", value); - return getBuilderAfterApplicationxwwwformurlencodedDouble(instance); - } - - default T setDouble(double value) { - var instance = getInstance(); - instance.put("double", value); - return getBuilderAfterApplicationxwwwformurlencodedDouble(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedNumber { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance); - - default T setNumber(int value) { - var instance = getInstance(); - instance.put("number", value); - return getBuilderAfterApplicationxwwwformurlencodedNumber(instance); - } - - default T setNumber(float value) { - var instance = getInstance(); - instance.put("number", value); - return getBuilderAfterApplicationxwwwformurlencodedNumber(instance); - } - - default T setNumber(long value) { - var instance = getInstance(); - instance.put("number", value); - return getBuilderAfterApplicationxwwwformurlencodedNumber(instance); - } - - default T setNumber(double value) { - var instance = getInstance(); - instance.put("number", value); - return getBuilderAfterApplicationxwwwformurlencodedNumber(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance); - - default T pattern_without_delimiter(String value) { - var instance = getInstance(); - instance.put("pattern_without_delimiter", value); - return getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedInteger { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedInteger(Map instance); - - default T setInteger(int value) { - var instance = getInstance(); - instance.put("integer", value); - return getBuilderAfterApplicationxwwwformurlencodedInteger(instance); - } - - default T setInteger(float value) { - var instance = getInstance(); - instance.put("integer", value); - return getBuilderAfterApplicationxwwwformurlencodedInteger(instance); - } - - default T setInteger(long value) { - var instance = getInstance(); - instance.put("integer", value); - return getBuilderAfterApplicationxwwwformurlencodedInteger(instance); - } - - default T setInteger(double value) { - var instance = getInstance(); - instance.put("integer", value); - return getBuilderAfterApplicationxwwwformurlencodedInteger(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedInt32 { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedInt32(Map instance); - - default T int32(int value) { - var instance = getInstance(); - instance.put("int32", value); - return getBuilderAfterApplicationxwwwformurlencodedInt32(instance); - } - - default T int32(float value) { - var instance = getInstance(); - instance.put("int32", value); - return getBuilderAfterApplicationxwwwformurlencodedInt32(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedInt64 { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedInt64(Map instance); - - default T int64(int value) { - var instance = getInstance(); - instance.put("int64", value); - return getBuilderAfterApplicationxwwwformurlencodedInt64(instance); - } - - default T int64(float value) { - var instance = getInstance(); - instance.put("int64", value); - return getBuilderAfterApplicationxwwwformurlencodedInt64(instance); - } - - default T int64(long value) { - var instance = getInstance(); - instance.put("int64", value); - return getBuilderAfterApplicationxwwwformurlencodedInt64(instance); - } - - default T int64(double value) { - var instance = getInstance(); - instance.put("int64", value); - return getBuilderAfterApplicationxwwwformurlencodedInt64(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedFloat { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedFloat(Map instance); - - default T setFloat(int value) { - var instance = getInstance(); - instance.put("float", value); - return getBuilderAfterApplicationxwwwformurlencodedFloat(instance); - } - - default T setFloat(float value) { - var instance = getInstance(); - instance.put("float", value); - return getBuilderAfterApplicationxwwwformurlencodedFloat(instance); - } - - default T setFloat(long value) { - var instance = getInstance(); - instance.put("float", value); - return getBuilderAfterApplicationxwwwformurlencodedFloat(instance); - } - - default T setFloat(double value) { - var instance = getInstance(); - instance.put("float", value); - return getBuilderAfterApplicationxwwwformurlencodedFloat(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedString { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedString(Map instance); - - default T setString(String value) { - var instance = getInstance(); - instance.put("string", value); - return getBuilderAfterApplicationxwwwformurlencodedString(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedBinary { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedBinary(Map instance); - - default T binary(String value) { - var instance = getInstance(); - instance.put("binary", value); - return getBuilderAfterApplicationxwwwformurlencodedBinary(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedDate { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedDate(Map instance); - - default T date(String value) { - var instance = getInstance(); - instance.put("date", value); - return getBuilderAfterApplicationxwwwformurlencodedDate(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedDateTime { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedDateTime(Map instance); - - default T dateTime(String value) { - var instance = getInstance(); - instance.put("dateTime", value); - return getBuilderAfterApplicationxwwwformurlencodedDateTime(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedPassword { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedPassword(Map instance); - - default T password(String value) { - var instance = getInstance(); - instance.put("password", value); - return getBuilderAfterApplicationxwwwformurlencodedPassword(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedCallback { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedCallback(Map instance); - - default T callback(String value) { - var instance = getInstance(); - instance.put("callback", value); - return getBuilderAfterApplicationxwwwformurlencodedCallback(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap0000Builder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForApplicationxwwwformurlencodedInteger, SetterForApplicationxwwwformurlencodedInt32, SetterForApplicationxwwwformurlencodedInt64, SetterForApplicationxwwwformurlencodedFloat, SetterForApplicationxwwwformurlencodedString, SetterForApplicationxwwwformurlencodedBinary, SetterForApplicationxwwwformurlencodedDate, SetterForApplicationxwwwformurlencodedDateTime, SetterForApplicationxwwwformurlencodedPassword, SetterForApplicationxwwwformurlencodedCallback { - private final Map instance; - private static final Set knownKeys = Set.of( - "byte", - "double", - "number", - "pattern_without_delimiter", - "integer", - "int32", - "int64", - "float", - "string", - "binary", - "date", - "dateTime", - "password", - "callback" - ); - public Set getKnownKeys() { - return knownKeys; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedInteger(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedInt32(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedInt64(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedFloat(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedString(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedBinary(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedDate(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedDateTime(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedPassword(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedCallback(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap0001Builder implements SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap0001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0000Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap0010Builder implements SetterForApplicationxwwwformurlencodedNumber { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap0010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0000Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap0011Builder implements SetterForApplicationxwwwformurlencodedNumber, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap0011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0001Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0001Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap0010Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0010Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap0100Builder implements SetterForApplicationxwwwformurlencodedDouble { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap0100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0000Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap0101Builder implements SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap0101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0001Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0001Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap0100Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0100Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap0110Builder implements SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedNumber { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap0110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0010Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0010Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap0100Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0100Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap0111Builder implements SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedNumber, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap0111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0011Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0011Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap0101Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0101Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap0110Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0110Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap1000Builder implements SetterForApplicationxwwwformurlencodedByte { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap1000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0000Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap1001Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap1001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0001Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0001Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1000Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1000Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap1010Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedNumber { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap1010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0010Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0010Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1000Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1000Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap1011Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedNumber, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap1011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0011Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0011Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1001Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1001Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1010Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1010Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap1100Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedDouble { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap1100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0100Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0100Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1000Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1000Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap1101Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap1101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0101Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0101Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1001Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1001Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1100Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1100Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap1110Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedNumber { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap1110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0110Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0110Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1010Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1010Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1100Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1100Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMapBuilder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedNumber, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap0111Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap0111Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1011Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1011Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1101Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1101Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap1110Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap1110Builder(instance); - } - } - - - public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; - - protected ApplicationxwwwformurlencodedSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("integer", ApplicationxwwwformurlencodedInteger.class), - new PropertyEntry("int32", ApplicationxwwwformurlencodedInt32.class), - new PropertyEntry("int64", ApplicationxwwwformurlencodedInt64.class), - new PropertyEntry("number", ApplicationxwwwformurlencodedNumber.class), - new PropertyEntry("float", ApplicationxwwwformurlencodedFloat.class), - new PropertyEntry("double", ApplicationxwwwformurlencodedDouble.class), - new PropertyEntry("string", ApplicationxwwwformurlencodedString.class), - new PropertyEntry("pattern_without_delimiter", ApplicationxwwwformurlencodedPatternWithoutDelimiter.class), - new PropertyEntry("byte", ApplicationxwwwformurlencodedByte.class), - new PropertyEntry("binary", ApplicationxwwwformurlencodedBinary.class), - new PropertyEntry("date", ApplicationxwwwformurlencodedDate.class), - new PropertyEntry("dateTime", ApplicationxwwwformurlencodedDateTime.class), - new PropertyEntry("password", ApplicationxwwwformurlencodedPassword.class), - new PropertyEntry("callback", ApplicationxwwwformurlencodedCallback.class) - )) - .required(Set.of( - "byte", - "double", - "number", - "pattern_without_delimiter" - )) - ); - } - - public static ApplicationxwwwformurlencodedSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedSchema1(); - } - return instance; - } - - public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new ApplicationxwwwformurlencodedSchemaMap(castProperties); - } - - public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java deleted file mode 100644 index 1806211707c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.post.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakePostCode200Response extends SuccessDescriptionOnly { - public static class FakePostCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java deleted file mode 100644 index 7da6740e34e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakePostCode404Response { - - public static class FakePostCode404Response1 extends ResponseDeserializer { - public FakePostCode404Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java deleted file mode 100644 index b1305742ad4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.fake.post.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class FakePostSecurityRequirementObject0 extends SecurityRequirementObject { - - public FakePostSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - HttpBasicTest.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java deleted file mode 100644 index f8f5837a798..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakeadditionalpropertieswitharrayofenums; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeadditionalpropertieswitharrayofenumsGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakeadditionalpropertieswitharrayofenumsGetRequestBody.FakeadditionalpropertieswitharrayofenumsGetRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakeadditionalpropertieswitharrayofenums.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeadditionalpropertieswitharrayofenumsGetResponses.FakeadditionalpropertieswitharrayofenumsGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface AdditionalPropertiesWithArrayOfEnumsOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse additionalPropertiesWithArrayOfEnums(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public FakeadditionalpropertieswitharrayofenumsGetRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - GetRequest getInstance(); - T getBuilderAfterRequestBody(GetRequest instance); - default T requestBody(FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java deleted file mode 100644 index c8c59d931be..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakeadditionalpropertieswitharrayofenumsGetRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakeadditionalpropertieswitharrayofenumsGetRequestBody1 extends RequestBodySerializer { - public FakeadditionalpropertieswitharrayofenumsGetRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java deleted file mode 100644 index 072cf25c108..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get; - -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.FakeadditionalpropertieswitharrayofenumsGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeadditionalpropertieswitharrayofenumsGetResponses { - public sealed interface EndpointResponse permits EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response {} - - public record EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response( - HttpResponse response, - FakeadditionalpropertieswitharrayofenumsGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer {} - - public static final class StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer extends FakeadditionalpropertieswitharrayofenumsGetCode200Response.FakeadditionalpropertieswitharrayofenumsGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeadditionalpropertieswitharrayofenumsGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeadditionalpropertieswitharrayofenumsGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer castDeserializer = (StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 23661b2fb49..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; - -public class ApplicationjsonSchema extends AdditionalPropertiesWithArrayOfEnums { - // $refed class - - - public static class ApplicationjsonSchema1 extends AdditionalPropertiesWithArrayOfEnums1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java deleted file mode 100644 index 1e32b3e20ca..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakeadditionalpropertieswitharrayofenumsGetCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body) implements SealedResponseBody { } - - public static class FakeadditionalpropertieswitharrayofenumsGetCode200Response1 extends ResponseDeserializer { - public FakeadditionalpropertieswitharrayofenumsGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 365fe1691e1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; - -public class ApplicationjsonSchema extends AdditionalPropertiesWithArrayOfEnums { - // $refed class - - - public static class ApplicationjsonSchema1 extends AdditionalPropertiesWithArrayOfEnums1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java deleted file mode 100644 index 9a8a862b8c3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithfileschema; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakebodywithfileschema; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakebodywithfileschemaPut { - private static class PutProvider { - private static final String method = "put"; - - public static FakebodywithfileschemaPutResponses.EndpointResponse put( - PutRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new FakebodywithfileschemaPutRequestBody.FakebodywithfileschemaPutRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakebodywithfileschema.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakebodywithfileschemaPutResponses.FakebodywithfileschemaPutResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PutOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakebodywithfileschemaPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface BodyWithFileSchemaOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakebodywithfileschemaPutResponses.EndpointResponse bodyWithFileSchema(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Put extends ApiClient implements PutOperation { - public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PutRequest { - public FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PutRequest( - FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PutNullableRequest { - public FakebodywithfileschemaPutRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(PutNullableRequest instance); - default T requestBody(FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PutNullableRequest instance; - - public Put0RequestBuilder(PutNullableRequest instance) { - this.instance = instance; - } - - public PutRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PutRequest( - requestBody, - instance.serverIndex, - instance.timeout - ); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { - return this; - } - - public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { - return this; - } - } - public static class PutRequestBuilder implements SetterForRequestBody { - private final PutNullableRequest instance; - - public PutRequestBuilder() { - this.instance = new PutNullableRequest(); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put0RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { - return new Put0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java deleted file mode 100644 index 3d130906dc0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithfileschema.put; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakebodywithfileschemaPutRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakebodywithfileschemaPutRequestBody1 extends RequestBodySerializer { - public FakebodywithfileschemaPutRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - true - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.FileSchemaTestClass1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java deleted file mode 100644 index afcdcd2bd1a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithfileschema.put; - -import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.FakebodywithfileschemaPutCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakebodywithfileschemaPutResponses { - public sealed interface EndpointResponse permits EndpointFakebodywithfileschemaPutCode200Response {} - - public record EndpointFakebodywithfileschemaPutCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakebodywithfileschemaPutCode200ResponseDeserializer {} - - public static final class StatusFakebodywithfileschemaPutCode200ResponseDeserializer extends FakebodywithfileschemaPutCode200Response.FakebodywithfileschemaPutCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakebodywithfileschemaPutResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakebodywithfileschemaPutResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakebodywithfileschemaPutCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakebodywithfileschemaPutCode200ResponseDeserializer castDeserializer = (StatusFakebodywithfileschemaPutCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakebodywithfileschemaPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 0bf7ab945f1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithfileschema.put.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.FileSchemaTestClass; - -public class ApplicationjsonSchema extends FileSchemaTestClass { - // $refed class - - - public static class ApplicationjsonSchema1 extends FileSchemaTestClass1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.java deleted file mode 100644 index 83a4cc26665..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakebodywithfileschemaPutCode200Response extends SuccessDescriptionOnly { - public static class FakebodywithfileschemaPutCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java deleted file mode 100644 index c8a63ea1dd6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java +++ /dev/null @@ -1,242 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Parameters; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakebodywithqueryparams; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakebodywithqueryparamsPut { - private static class PutProvider { - private static final String method = "put"; - - public static FakebodywithqueryparamsPutResponses.EndpointResponse put( - PutRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new FakebodywithqueryparamsPutRequestBody.FakebodywithqueryparamsPutRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakebodywithqueryparams.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakebodywithqueryparamsPutResponses.FakebodywithqueryparamsPutResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PutOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakebodywithqueryparamsPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface BodyWithQueryParamsOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakebodywithqueryparamsPutResponses.EndpointResponse bodyWithQueryParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Put extends ApiClient implements PutOperation { - public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PutRequest { - public FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody; - public FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PutRequest( - FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody, - FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.queryParameters = queryParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PutNullableRequest { - public FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody requestBody; - public FakebodywithqueryparamsPutQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(PutNullableRequest instance); - default T requestBody(FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForQueryParameters { - PutNullableRequest getInstance(); - T getBuilderAfterQueryParameters(PutNullableRequest instance); - default T queryParameters(FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public static class Put00RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PutNullableRequest instance; - - public Put00RequestBuilder(PutNullableRequest instance) { - this.instance = instance; - } - - public PutRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - var queryParameters = instance.queryParameters; - if (queryParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PutRequest( - requestBody, - queryParameters, - instance.serverIndex, - instance.timeout - ); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put00RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { - return this; - } - - public Put00RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { - return this; - } - } - public static class Put01RequestBuilder implements SetterForQueryParameters { - private final PutNullableRequest instance; - - public Put01RequestBuilder(PutNullableRequest instance) { - this.instance = instance; - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put00RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { - return new Put00RequestBuilder(instance); - } - } - public static class Put10RequestBuilder implements SetterForRequestBody { - private final PutNullableRequest instance; - - public Put10RequestBuilder(PutNullableRequest instance) { - this.instance = instance; - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put00RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { - return new Put00RequestBuilder(instance); - } - } - public static class PutRequestBuilder implements SetterForRequestBody, SetterForQueryParameters { - private final PutNullableRequest instance; - - public PutRequestBuilder() { - this.instance = new PutNullableRequest(); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put01RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { - return new Put01RequestBuilder(instance); - } - - public Put10RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { - return new Put10RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java deleted file mode 100644 index e2e28ed10d7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java +++ /dev/null @@ -1,205 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakebodywithqueryparamsPutQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "query" - ); - public static final Set optionalKeys = Set.of(); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FakebodywithqueryparamsPutQueryParameters1.getInstance().validate(arg, configuration); - } - - public String query() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForQuery { - Map getInstance(); - T getBuilderAfterQuery(Map instance); - - default T query(String value) { - var instance = getInstance(); - instance.put("query", value); - return getBuilderAfterQuery(instance); - } - } - - public static class QueryParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "query" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class QueryParametersMapBuilder implements SetterForQuery { - private final Map instance; - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public QueryParametersMap0Builder getBuilderAfterQuery(Map instance) { - return new QueryParametersMap0Builder(instance); - } - } - - - public sealed interface FakebodywithqueryparamsPutQueryParameters1Boxed permits FakebodywithqueryparamsPutQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakebodywithqueryparamsPutQueryParameters1BoxedMap(QueryParametersMap data) implements FakebodywithqueryparamsPutQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakebodywithqueryparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakebodywithqueryparamsPutQueryParameters1 instance = null; - - protected FakebodywithqueryparamsPutQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("query", Schema0.Schema01.class) - )) - .required(Set.of( - "query" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakebodywithqueryparamsPutQueryParameters1 getInstance() { - if (instance == null) { - instance = new FakebodywithqueryparamsPutQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakebodywithqueryparamsPutQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakebodywithqueryparamsPutQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakebodywithqueryparamsPutQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java deleted file mode 100644 index f8660d61b4e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakebodywithqueryparamsPutRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakebodywithqueryparamsPutRequestBody1 extends RequestBodySerializer { - public FakebodywithqueryparamsPutRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - true - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java deleted file mode 100644 index ad26d9ceb92..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put; - -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.FakebodywithqueryparamsPutCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakebodywithqueryparamsPutResponses { - public sealed interface EndpointResponse permits EndpointFakebodywithqueryparamsPutCode200Response {} - - public record EndpointFakebodywithqueryparamsPutCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakebodywithqueryparamsPutCode200ResponseDeserializer {} - - public static final class StatusFakebodywithqueryparamsPutCode200ResponseDeserializer extends FakebodywithqueryparamsPutCode200Response.FakebodywithqueryparamsPutCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakebodywithqueryparamsPutResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakebodywithqueryparamsPutResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakebodywithqueryparamsPutCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakebodywithqueryparamsPutCode200ResponseDeserializer castDeserializer = (StatusFakebodywithqueryparamsPutCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakebodywithqueryparamsPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java deleted file mode 100644 index d796a88eb1d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put; - -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("query", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java deleted file mode 100644 index b89f34112a4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "query", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java deleted file mode 100644 index 57b1bddf802..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index c3506f9a79a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.User; - -public class ApplicationjsonSchema extends User { - // $refed class - - - public static class ApplicationjsonSchema1 extends User1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.java deleted file mode 100644 index b193efb7bee..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakebodywithqueryparamsPutCode200Response extends SuccessDescriptionOnly { - public static class FakebodywithqueryparamsPutCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java deleted file mode 100644 index 98b63c2cec9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java +++ /dev/null @@ -1,180 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Parameters; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakecasesensitiveparams; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakecasesensitiveparamsPut { - private static class PutProvider { - private static final String method = "put"; - - public static FakecasesensitiveparamsPutResponses.EndpointResponse put( - PutRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakecasesensitiveparams.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakecasesensitiveparamsPutResponses.FakecasesensitiveparamsPutResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PutOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakecasesensitiveparamsPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface CaseSensitiveParamsOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakecasesensitiveparamsPutResponses.EndpointResponse caseSensitiveParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Put extends ApiClient implements PutOperation { - public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PutRequest { - public FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PutRequest( - FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.queryParameters = queryParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PutNullableRequest { - public FakecasesensitiveparamsPutQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForQueryParameters { - PutNullableRequest getInstance(); - T getBuilderAfterQueryParameters(PutNullableRequest instance); - default T queryParameters(FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PutNullableRequest instance; - - public Put0RequestBuilder(PutNullableRequest instance) { - this.instance = instance; - } - - public PutRequest build() { - var queryParameters = instance.queryParameters; - if (queryParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PutRequest( - queryParameters, - instance.serverIndex, - instance.timeout - ); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { - return this; - } - - public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { - return this; - } - } - public static class PutRequestBuilder implements SetterForQueryParameters { - private final PutNullableRequest instance; - - public PutRequestBuilder() { - this.instance = new PutNullableRequest(); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put0RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { - return new Put0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java deleted file mode 100644 index 67958cf44dd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java +++ /dev/null @@ -1,343 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter1.Schema1; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter2.Schema2; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakecasesensitiveparamsPutQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "SomeVar", - "someVar", - "some_var" - ); - public static final Set optionalKeys = Set.of(); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FakecasesensitiveparamsPutQueryParameters1.getInstance().validate(arg, configuration); - } - - public String SomeVar() { - @Nullable Object value = get("SomeVar"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for SomeVar"); - } - return (String) value; - } - - public String someVar() { - @Nullable Object value = get("someVar"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for someVar"); - } - return (String) value; - } - - public String some_var() { - @Nullable Object value = get("some_var"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for some_var"); - } - return (String) value; - } - } - - public interface SetterForSomeVar2 { - Map getInstance(); - T getBuilderAfterSomeVar2(Map instance); - - default T SomeVar(String value) { - var instance = getInstance(); - instance.put("SomeVar", value); - return getBuilderAfterSomeVar2(instance); - } - } - - public interface SetterForSomeVar { - Map getInstance(); - T getBuilderAfterSomeVar(Map instance); - - default T someVar(String value) { - var instance = getInstance(); - instance.put("someVar", value); - return getBuilderAfterSomeVar(instance); - } - } - - public interface SetterForSomeVar1 { - Map getInstance(); - T getBuilderAfterSomeVar1(Map instance); - - default T some_var(String value) { - var instance = getInstance(); - instance.put("some_var", value); - return getBuilderAfterSomeVar1(instance); - } - } - - public static class QueryParametersMap000Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "SomeVar", - "someVar", - "some_var" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMap000Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class QueryParametersMap001Builder implements SetterForSomeVar1 { - private final Map instance; - public QueryParametersMap001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000Builder getBuilderAfterSomeVar1(Map instance) { - return new QueryParametersMap000Builder(instance); - } - } - - public static class QueryParametersMap010Builder implements SetterForSomeVar { - private final Map instance; - public QueryParametersMap010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000Builder getBuilderAfterSomeVar(Map instance) { - return new QueryParametersMap000Builder(instance); - } - } - - public static class QueryParametersMap011Builder implements SetterForSomeVar, SetterForSomeVar1 { - private final Map instance; - public QueryParametersMap011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001Builder getBuilderAfterSomeVar(Map instance) { - return new QueryParametersMap001Builder(instance); - } - public QueryParametersMap010Builder getBuilderAfterSomeVar1(Map instance) { - return new QueryParametersMap010Builder(instance); - } - } - - public static class QueryParametersMap100Builder implements SetterForSomeVar2 { - private final Map instance; - public QueryParametersMap100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000Builder getBuilderAfterSomeVar2(Map instance) { - return new QueryParametersMap000Builder(instance); - } - } - - public static class QueryParametersMap101Builder implements SetterForSomeVar2, SetterForSomeVar1 { - private final Map instance; - public QueryParametersMap101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001Builder getBuilderAfterSomeVar2(Map instance) { - return new QueryParametersMap001Builder(instance); - } - public QueryParametersMap100Builder getBuilderAfterSomeVar1(Map instance) { - return new QueryParametersMap100Builder(instance); - } - } - - public static class QueryParametersMap110Builder implements SetterForSomeVar2, SetterForSomeVar { - private final Map instance; - public QueryParametersMap110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap010Builder getBuilderAfterSomeVar2(Map instance) { - return new QueryParametersMap010Builder(instance); - } - public QueryParametersMap100Builder getBuilderAfterSomeVar(Map instance) { - return new QueryParametersMap100Builder(instance); - } - } - - public static class QueryParametersMapBuilder implements SetterForSomeVar2, SetterForSomeVar, SetterForSomeVar1 { - private final Map instance; - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public QueryParametersMap011Builder getBuilderAfterSomeVar2(Map instance) { - return new QueryParametersMap011Builder(instance); - } - public QueryParametersMap101Builder getBuilderAfterSomeVar(Map instance) { - return new QueryParametersMap101Builder(instance); - } - public QueryParametersMap110Builder getBuilderAfterSomeVar1(Map instance) { - return new QueryParametersMap110Builder(instance); - } - } - - - public sealed interface FakecasesensitiveparamsPutQueryParameters1Boxed permits FakecasesensitiveparamsPutQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakecasesensitiveparamsPutQueryParameters1BoxedMap(QueryParametersMap data) implements FakecasesensitiveparamsPutQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakecasesensitiveparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakecasesensitiveparamsPutQueryParameters1 instance = null; - - protected FakecasesensitiveparamsPutQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("someVar", Schema0.Schema01.class), - new PropertyEntry("some_var", Schema2.Schema21.class), - new PropertyEntry("SomeVar", Schema1.Schema11.class) - )) - .required(Set.of( - "SomeVar", - "someVar", - "some_var" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakecasesensitiveparamsPutQueryParameters1 getInstance() { - if (instance == null) { - instance = new FakecasesensitiveparamsPutQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakecasesensitiveparamsPutQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakecasesensitiveparamsPutQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakecasesensitiveparamsPutQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java deleted file mode 100644 index 4c72b6a0a50..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put; - -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.FakecasesensitiveparamsPutCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakecasesensitiveparamsPutResponses { - public sealed interface EndpointResponse permits EndpointFakecasesensitiveparamsPutCode200Response {} - - public record EndpointFakecasesensitiveparamsPutCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakecasesensitiveparamsPutCode200ResponseDeserializer {} - - public static final class StatusFakecasesensitiveparamsPutCode200ResponseDeserializer extends FakecasesensitiveparamsPutCode200Response.FakecasesensitiveparamsPutCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakecasesensitiveparamsPutResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakecasesensitiveparamsPutResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakecasesensitiveparamsPutCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakecasesensitiveparamsPutCode200ResponseDeserializer castDeserializer = (StatusFakecasesensitiveparamsPutCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakecasesensitiveparamsPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java deleted file mode 100644 index e153b47414a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put; - -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.Parameter0; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.Parameter1; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.Parameter2; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("someVar", new Parameter0.Parameter01()), - new AbstractMap.SimpleEntry<>("SomeVar", new Parameter1.Parameter11()), - new AbstractMap.SimpleEntry<>("some_var", new Parameter2.Parameter21()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter0.java deleted file mode 100644 index 96db6d8662c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "someVar", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter1.java deleted file mode 100644 index 9923c6e1aee..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter1.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter1.Schema1; - -public class Parameter1 { - - public static class Parameter11 extends SchemaParameter { - public Parameter11() { - super( - "SomeVar", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema1.Schema11.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter2.java deleted file mode 100644 index c3b8320db0f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter2.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter2.Schema2; - -public class Parameter2 { - - public static class Parameter21 extends SchemaParameter { - public Parameter21() { - super( - "some_var", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema2.Schema21.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java deleted file mode 100644 index 82b36aec229..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java deleted file mode 100644 index 8fe5c279258..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter1; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema1 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema11 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema11 instance = null; - public static Schema11 getInstance() { - if (instance == null) { - instance = new Schema11(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java deleted file mode 100644 index ce17de1e932..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter2; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema2 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema21 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema21 instance = null; - public static Schema21 getInstance() { - if (instance == null) { - instance = new Schema21(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.java deleted file mode 100644 index 72eb0975e3a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakecasesensitiveparamsPutCode200Response extends SuccessDescriptionOnly { - public static class FakecasesensitiveparamsPutCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java deleted file mode 100644 index 3ecb1f95471..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java +++ /dev/null @@ -1,215 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeclassnametest; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakeclassnametest; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeclassnametestPatch { - private static class PatchProvider extends AuthApplier { - private static final String method = "patch"; - - public static FakeclassnametestPatchResponses.EndpointResponse patch( - PatchRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new FakeclassnametestPatchRequestBody.FakeclassnametestPatchRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - Fakeclassnametest.path, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + Fakeclassnametest.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeclassnametestPatchResponses.FakeclassnametestPatchResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PatchOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeclassnametestPatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ClassnameOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeclassnametestPatchResponses.EndpointResponse classname(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Patch extends ApiClient implements PatchOperation { - public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PatchRequest { - public FakeclassnametestPatchRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public PatchRequest( - FakeclassnametestPatchRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class PatchNullableRequest { - public FakeclassnametestPatchRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PatchNullableRequest getInstance(); - T getBuilderAfterServerIndex(PatchNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - PatchNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PatchNullableRequest instance); - default T securityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - PatchNullableRequest getInstance(); - T getBuilderAfterTimeout(PatchNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PatchNullableRequest getInstance(); - T getBuilderAfterRequestBody(PatchNullableRequest instance); - default T requestBody(FakeclassnametestPatchRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PatchNullableRequest instance; - - public Patch0RequestBuilder(PatchNullableRequest instance) { - this.instance = instance; - } - - public PatchRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PatchRequest( - requestBody, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public PatchNullableRequest getInstance() { - return instance; - } - - public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { - return this; - } - - public Patch0RequestBuilder getBuilderAfterSecurityIndex(PatchNullableRequest instance) { - return this; - } - - public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { - return this; - } - } - public static class PatchRequestBuilder implements SetterForRequestBody { - private final PatchNullableRequest instance; - - public PatchRequestBuilder() { - this.instance = new PatchNullableRequest(); - } - - public PatchNullableRequest getInstance() { - return instance; - } - - public Patch0RequestBuilder getBuilderAfterRequestBody(PatchNullableRequest instance) { - return new Patch0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java deleted file mode 100644 index 69e81d0f4bc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeclassnametest.patch; - -import org.openapijsonschematools.client.components.requestbodies.Client; - -public class FakeclassnametestPatchRequestBody extends Client { - public static class FakeclassnametestPatchRequestBody1 extends Client1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java deleted file mode 100644 index 4d9a18471e8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeclassnametest.patch; - -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.FakeclassnametestPatchCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeclassnametestPatchResponses { - public sealed interface EndpointResponse permits EndpointFakeclassnametestPatchCode200Response {} - - public record EndpointFakeclassnametestPatchCode200Response( - HttpResponse response, - FakeclassnametestPatchCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeclassnametestPatchCode200ResponseDeserializer {} - - public static final class StatusFakeclassnametestPatchCode200ResponseDeserializer extends FakeclassnametestPatchCode200Response.FakeclassnametestPatchCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeclassnametestPatchResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeclassnametestPatchResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeclassnametestPatchCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeclassnametestPatchCode200ResponseDeserializer castDeserializer = (StatusFakeclassnametestPatchCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeclassnametestPatchCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java deleted file mode 100644 index a4a739aad43..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeclassnametest.patch; - -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.security.FakeclassnametestPatchSecurityRequirementObject0; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class FakeclassnametestPatchSecurityInfo { - public static class FakeclassnametestPatchSecurityInfo1 implements SecurityRequirementObjectProvider { - public final FakeclassnametestPatchSecurityRequirementObject0 security0; - - public FakeclassnametestPatchSecurityInfo1() { - security0 = new FakeclassnametestPatchSecurityRequirementObject0(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - return security0; - } - } - - public enum SecurityIndex { - SECURITY_0 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java deleted file mode 100644 index 93fdc3843da..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakeclassnametestPatchCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } - - public static class FakeclassnametestPatchCode200Response1 extends ResponseDeserializer { - public FakeclassnametestPatchCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index ba79861d2e9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Client; - -public class ApplicationjsonSchema extends Client { - // $refed class - - - public static class ApplicationjsonSchema1 extends Client1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java deleted file mode 100644 index 6b61b1b9a00..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeclassnametest.patch.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeclassnametestPatchSecurityRequirementObject0 extends SecurityRequirementObject { - - public FakeclassnametestPatchSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - ApiKeyQuery.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java deleted file mode 100644 index bef6f75649a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java +++ /dev/null @@ -1,179 +0,0 @@ -package org.openapijsonschematools.client.paths.fakedeletecoffeeid; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Parameters; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakedeletecoffeeid; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakedeletecoffeeidDelete { - private static class DeleteProvider { - private static final String method = "delete"; - - public static FakedeletecoffeeidDeleteResponses.EndpointResponse delete( - DeleteRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Fakedeletecoffeeid.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakedeletecoffeeidDeleteResponses.FakedeletecoffeeidDeleteResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface DeleteOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakedeletecoffeeidDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface DeleteCoffeeOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakedeletecoffeeidDeleteResponses.EndpointResponse deleteCoffee(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Delete extends ApiClient implements DeleteOperation { - public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class DeleteRequest { - public FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public DeleteRequest( - FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class DeleteNullableRequest { - public FakedeletecoffeeidDeletePathParameters.@Nullable PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final DeleteNullableRequest instance; - - public Delete0RequestBuilder(DeleteNullableRequest instance) { - this.instance = instance; - } - - public DeleteRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new DeleteRequest( - pathParameters, - instance.serverIndex, - instance.timeout - ); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { - return this; - } - - public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { - return this; - } - } - public static class DeleteRequestBuilder implements SetterForPathParameters { - private final DeleteNullableRequest instance; - - public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { - return new Delete0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java deleted file mode 100644 index b2171bdfaf0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java +++ /dev/null @@ -1,205 +0,0 @@ -package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakedeletecoffeeidDeletePathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "id" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FakedeletecoffeeidDeletePathParameters1.getInstance().validate(arg, configuration); - } - - public String id() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForId { - Map getInstance(); - T getBuilderAfterId(Map instance); - - default T id(String value) { - var instance = getInstance(); - instance.put("id", value); - return getBuilderAfterId(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "id" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForId { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterId(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface FakedeletecoffeeidDeletePathParameters1Boxed permits FakedeletecoffeeidDeletePathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakedeletecoffeeidDeletePathParameters1BoxedMap(PathParametersMap data) implements FakedeletecoffeeidDeletePathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakedeletecoffeeidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakedeletecoffeeidDeletePathParameters1 instance = null; - - protected FakedeletecoffeeidDeletePathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("id", Schema0.Schema01.class) - )) - .required(Set.of( - "id" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakedeletecoffeeidDeletePathParameters1 getInstance() { - if (instance == null) { - instance = new FakedeletecoffeeidDeletePathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakedeletecoffeeidDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakedeletecoffeeidDeletePathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakedeletecoffeeidDeletePathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java deleted file mode 100644 index d58495afcb2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete; - -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCode200Response; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCodedefaultResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakedeletecoffeeidDeleteResponses { - public sealed interface EndpointResponse permits EndpointFakedeletecoffeeidDeleteCode200Response, EndpointFakedeletecoffeeidDeleteCodedefaultResponse {} - - public record EndpointFakedeletecoffeeidDeleteCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public record EndpointFakedeletecoffeeidDeleteCodedefaultResponse( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer {} - - public static final class StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer extends FakedeletecoffeeidDeleteCode200Response.FakedeletecoffeeidDeleteCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakedeletecoffeeidDeleteResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - private final FakedeletecoffeeidDeleteCodedefaultResponse.FakedeletecoffeeidDeleteCodedefaultResponse1 defaultResponseDeserializer; - public FakedeletecoffeeidDeleteResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer()) - ); - this.defaultResponseDeserializer = new FakedeletecoffeeidDeleteCodedefaultResponse.FakedeletecoffeeidDeleteCodedefaultResponse1(); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer != null) { - StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer castDeserializer = (StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakedeletecoffeeidDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointFakedeletecoffeeidDeleteCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java deleted file mode 100644 index 6e068eebfbc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete; - -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("id", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java deleted file mode 100644 index d16f6b00036..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "id", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java deleted file mode 100644 index 587228fa824..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.java deleted file mode 100644 index 56f5f4b8774..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakedeletecoffeeidDeleteCode200Response extends SuccessDescriptionOnly { - public static class FakedeletecoffeeidDeleteCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java deleted file mode 100644 index 2a5713c9f0d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakedeletecoffeeidDeleteCodedefaultResponse { - - public static class FakedeletecoffeeidDeleteCodedefaultResponse1 extends ResponseDeserializer { - public FakedeletecoffeeidDeleteCodedefaultResponse1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java deleted file mode 100644 index 578d4ab08f3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openapijsonschematools.client.paths.fakehealth; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakehealth; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakehealthGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakehealthGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakehealth.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakehealthGetResponses.FakehealthGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakehealthGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface FakeHealthGetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakehealthGetResponses.EndpointResponse fakeHealthGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java deleted file mode 100644 index e926fe15b5a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakehealth.get; - -import org.openapijsonschematools.client.paths.fakehealth.get.responses.FakehealthGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakehealthGetResponses { - public sealed interface EndpointResponse permits EndpointFakehealthGetCode200Response {} - - public record EndpointFakehealthGetCode200Response( - HttpResponse response, - FakehealthGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakehealthGetCode200ResponseDeserializer {} - - public static final class StatusFakehealthGetCode200ResponseDeserializer extends FakehealthGetCode200Response.FakehealthGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakehealthGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakehealthGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakehealthGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakehealthGetCode200ResponseDeserializer castDeserializer = (StatusFakehealthGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakehealthGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java deleted file mode 100644 index 1d60e2ef28d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakehealth.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakehealth.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakehealthGetCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.HealthCheckResult1Boxed body) implements SealedResponseBody { } - - public static class FakehealthGetCode200Response1 extends ResponseDeserializer { - public FakehealthGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index e9d84e9a57a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakehealth.get.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.HealthCheckResult; - -public class ApplicationjsonSchema extends HealthCheckResult { - // $refed class - - - public static class ApplicationjsonSchema1 extends HealthCheckResult1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java deleted file mode 100644 index 7536494553e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakeinlineadditionalproperties; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeinlineadditionalpropertiesPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakeinlineadditionalpropertiesPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new FakeinlineadditionalpropertiesPostRequestBody.FakeinlineadditionalpropertiesPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakeinlineadditionalproperties.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeinlineadditionalpropertiesPostResponses.FakeinlineadditionalpropertiesPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeinlineadditionalpropertiesPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface InlineAdditionalPropertiesOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeinlineadditionalpropertiesPostResponses.EndpointResponse inlineAdditionalProperties(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PostRequest( - FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public FakeinlineadditionalpropertiesPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - requestBody, - instance.serverIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java deleted file mode 100644 index eb76fe2b4f4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakeinlineadditionalpropertiesPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakeinlineadditionalpropertiesPostRequestBody1 extends RequestBodySerializer { - public FakeinlineadditionalpropertiesPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - true - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java deleted file mode 100644 index 2fa1bf18e40..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post; - -import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.FakeinlineadditionalpropertiesPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeinlineadditionalpropertiesPostResponses { - public sealed interface EndpointResponse permits EndpointFakeinlineadditionalpropertiesPostCode200Response {} - - public record EndpointFakeinlineadditionalpropertiesPostCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer {} - - public static final class StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer extends FakeinlineadditionalpropertiesPostCode200Response.FakeinlineadditionalpropertiesPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeinlineadditionalpropertiesPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeinlineadditionalpropertiesPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer castDeserializer = (StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeinlineadditionalpropertiesPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index da39455be18..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class ApplicationjsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonAdditionalProperties extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationjsonAdditionalProperties instance = null; - public static ApplicationjsonAdditionalProperties getInstance() { - if (instance == null) { - instance = new ApplicationjsonAdditionalProperties(); - } - return instance; - } - } - - - public static class ApplicationjsonSchemaMap extends FrozenMap { - protected ApplicationjsonSchemaMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of(); - public static ApplicationjsonSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return ApplicationjsonSchema1.getInstance().validate(arg, configuration); - } - - public String getAdditionalProperty(String name) throws UnsetPropertyException { - return getOrThrow(name); - } - } - - public interface SetterForApplicationjsonAdditionalProperties { - Set getKnownKeys(); - Map getInstance(); - T getBuilderAfterAdditionalProperty(Map instance); - - default T additionalProperty(String key, String value) throws InvalidAdditionalPropertyException { - MapUtils.throwIfKeyKnown(key, getKnownKeys(), true); - var instance = getInstance(); - instance.put(key, value); - return getBuilderAfterAdditionalProperty(instance); - } - } - - public static class ApplicationjsonSchemaMapBuilder implements GenericBuilder>, SetterForApplicationjsonAdditionalProperties { - private final Map instance; - private static final Set knownKeys = Set.of(); - public Set getKnownKeys() { - return knownKeys; - } - public ApplicationjsonSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public ApplicationjsonSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedMap { - @Nullable Object getData(); - } - - public record ApplicationjsonSchema1BoxedMap(ApplicationjsonSchemaMap data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable ApplicationjsonSchema1 instance = null; - - protected ApplicationjsonSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .additionalProperties(ApplicationjsonAdditionalProperties.class) - ); - } - - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - - public ApplicationjsonSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new ApplicationjsonSchemaMap(castProperties); - } - - public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.java deleted file mode 100644 index f3f0c8ae16c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakeinlineadditionalpropertiesPostCode200Response extends SuccessDescriptionOnly { - public static class FakeinlineadditionalpropertiesPostCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java deleted file mode 100644 index 45e5eefb2a3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java +++ /dev/null @@ -1,176 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Parameters; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakeinlinecomposition; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeinlinecompositionPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakeinlinecompositionPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakeinlinecompositionPostRequestBody.FakeinlinecompositionPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = null; - if (request.queryParameters != null) { - queryMap = querySerializer.getQueryMap(request.queryParameters); - } - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakeinlinecomposition.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeinlinecompositionPostResponses.FakeinlinecompositionPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeinlinecompositionPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface InlineCompositionOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeinlinecompositionPostResponses.EndpointResponse inlineComposition(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody requestBody; - public FakeinlinecompositionPostQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakeinlinecompositionPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForQueryParameters { - PostRequest getInstance(); - T getBuilderAfterQueryParameters(PostRequest instance); - default T queryParameters(FakeinlinecompositionPostQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterQueryParameters(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java deleted file mode 100644 index c4529070458..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java +++ /dev/null @@ -1,270 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter1.Schema1; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakeinlinecompositionPostQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "compositionAtRoot", - "compositionInProperty" - ); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FakeinlinecompositionPostQueryParameters1.getInstance().validate(arg, configuration); - } - - public @Nullable Object compositionAtRoot() throws UnsetPropertyException { - String key = "compositionAtRoot"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof Object)) { - throw new RuntimeException("Invalid value stored for compositionAtRoot"); - } - return (@Nullable Object) value; - } - - public Schema1.SchemaMap1 compositionInProperty() throws UnsetPropertyException { - String key = "compositionInProperty"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof Schema1.SchemaMap1)) { - throw new RuntimeException("Invalid value stored for compositionInProperty"); - } - return (Schema1.SchemaMap1) value; - } - } - - public interface SetterForCompositionAtRoot { - Map getInstance(); - T getBuilderAfterCompositionAtRoot(Map instance); - - default T compositionAtRoot(Void value) { - var instance = getInstance(); - instance.put("compositionAtRoot", null); - return getBuilderAfterCompositionAtRoot(instance); - } - - default T compositionAtRoot(boolean value) { - var instance = getInstance(); - instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); - } - - default T compositionAtRoot(String value) { - var instance = getInstance(); - instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); - } - - default T compositionAtRoot(int value) { - var instance = getInstance(); - instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); - } - - default T compositionAtRoot(float value) { - var instance = getInstance(); - instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); - } - - default T compositionAtRoot(long value) { - var instance = getInstance(); - instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); - } - - default T compositionAtRoot(double value) { - var instance = getInstance(); - instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); - } - - default T compositionAtRoot(List value) { - var instance = getInstance(); - instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); - } - - default T compositionAtRoot(Map value) { - var instance = getInstance(); - instance.put("compositionAtRoot", value); - return getBuilderAfterCompositionAtRoot(instance); - } - } - - public interface SetterForCompositionInProperty { - Map getInstance(); - T getBuilderAfterCompositionInProperty(Map instance); - - default T compositionInProperty(Map value) { - var instance = getInstance(); - instance.put("compositionInProperty", value); - return getBuilderAfterCompositionInProperty(instance); - } - } - - public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForCompositionAtRoot, SetterForCompositionInProperty { - private final Map instance; - private static final Set knownKeys = Set.of( - "compositionAtRoot", - "compositionInProperty" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMapBuilder getBuilderAfterCompositionAtRoot(Map instance) { - return this; - } - public QueryParametersMapBuilder getBuilderAfterCompositionInProperty(Map instance) { - return this; - } - } - - - public sealed interface FakeinlinecompositionPostQueryParameters1Boxed permits FakeinlinecompositionPostQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakeinlinecompositionPostQueryParameters1BoxedMap(QueryParametersMap data) implements FakeinlinecompositionPostQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakeinlinecompositionPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakeinlinecompositionPostQueryParameters1 instance = null; - - protected FakeinlinecompositionPostQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("compositionAtRoot", Schema0.Schema01.class), - new PropertyEntry("compositionInProperty", Schema1.Schema11.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakeinlinecompositionPostQueryParameters1 getInstance() { - if (instance == null) { - instance = new FakeinlinecompositionPostQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakeinlinecompositionPostQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakeinlinecompositionPostQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakeinlinecompositionPostQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java deleted file mode 100644 index 6d85bd751c6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakeinlinecompositionPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { - public MultipartformdataMediaType() { - this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakeinlinecompositionPostRequestBody1 extends RequestBodySerializer { - public FakeinlinecompositionPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), - new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - if (requestBody instanceof ApplicationjsonRequestBody requestBody0) { - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } else { - MultipartformdataRequestBody requestBody1 = (MultipartformdataRequestBody) requestBody; - return serialize(requestBody1.contentType(), requestBody1.body().getData()); - } - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, MultipartformdataRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } - public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "multipart/form-data"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java deleted file mode 100644 index a1799f4cc66..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post; - -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.FakeinlinecompositionPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeinlinecompositionPostResponses { - public sealed interface EndpointResponse permits EndpointFakeinlinecompositionPostCode200Response {} - - public record EndpointFakeinlinecompositionPostCode200Response( - HttpResponse response, - FakeinlinecompositionPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeinlinecompositionPostCode200ResponseDeserializer {} - - public static final class StatusFakeinlinecompositionPostCode200ResponseDeserializer extends FakeinlinecompositionPostCode200Response.FakeinlinecompositionPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeinlinecompositionPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeinlinecompositionPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeinlinecompositionPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeinlinecompositionPostCode200ResponseDeserializer castDeserializer = (StatusFakeinlinecompositionPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeinlinecompositionPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java deleted file mode 100644 index 358e05fde21..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post; - -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.Parameter0; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.Parameter1; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("compositionAtRoot", new Parameter0.Parameter01()), - new AbstractMap.SimpleEntry<>("compositionInProperty", new Parameter1.Parameter11()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java deleted file mode 100644 index 020d186ab95..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "compositionAtRoot", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java deleted file mode 100644 index 94e5c75ccf6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter1.Schema1; - -public class Parameter1 { - - public static class Parameter11 extends SchemaParameter { - public Parameter11() { - super( - "compositionInProperty", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema1.Schema11.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java deleted file mode 100644 index b6bf99f49be..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,393 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter0; -import java.time.LocalDate; -import java.time.ZonedDateTime; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import java.util.UUID; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema0 { - // nest classes so all schemas and input/output classes can be public - - - public sealed interface Schema00Boxed permits Schema00BoxedString { - @Nullable Object getData(); - } - - public record Schema00BoxedString(String data) implements Schema00Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema00 extends JsonSchema implements StringSchemaValidator { - private static @Nullable Schema00 instance = null; - - protected Schema00() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .minLength(1) - ); - } - - public static Schema00 getInstance() { - if (instance == null) { - instance = new Schema00(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema00BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema00BoxedString(validate(arg, configuration)); - } - @Override - public Schema00Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface Schema01Boxed permits Schema01BoxedVoid, Schema01BoxedBoolean, Schema01BoxedNumber, Schema01BoxedString, Schema01BoxedList, Schema01BoxedMap { - @Nullable Object getData(); - } - - public record Schema01BoxedVoid(Void data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record Schema01BoxedBoolean(boolean data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record Schema01BoxedNumber(Number data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record Schema01BoxedString(String data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record Schema01BoxedList(FrozenList<@Nullable Object> data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record Schema01BoxedMap(FrozenMap<@Nullable Object> data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class Schema01 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema01BoxedList>, MapSchemaValidator, Schema01BoxedMap> { - private static @Nullable Schema01 instance = null; - - protected Schema01() { - super(new JsonSchemaInfo() - .allOf(List.of( - Schema00.class - )) - ); - } - - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - - @Override - public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { - return (long) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - @Override - public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List<@Nullable Object> items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - items.add(itemInstance); - i += 1; - } - FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); - return newInstanceItems; - } - - public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return castProperties; - } - - public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - return validate((Void) null, configuration); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return validate(boolArg, configuration); - } else if (arg instanceof Number) { - return validate((Number) arg, configuration); - } else if (arg instanceof String) { - return validate((String) arg, configuration); - } else if (arg instanceof List) { - return validate((List) arg, configuration); - } else if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg == null) { - return getNewInstance((Void) null, pathToItem, pathToSchemas); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return getNewInstance(boolArg, pathToItem, pathToSchemas); - } else if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } else if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } else if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } else if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema01BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedVoid(validate(arg, configuration)); - } - @Override - public Schema01BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedBoolean(validate(arg, configuration)); - } - @Override - public Schema01BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedNumber(validate(arg, configuration)); - } - @Override - public Schema01BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedString(validate(arg, configuration)); - } - @Override - public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedList(validate(arg, configuration)); - } - @Override - public Schema01BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedMap(validate(arg, configuration)); - } - @Override - public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - Void castArg = (Void) arg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof Boolean booleanArg) { - boolean castArg = booleanArg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java deleted file mode 100644 index 360cbe62ac4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java +++ /dev/null @@ -1,596 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter1; -import java.time.LocalDate; -import java.time.ZonedDateTime; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import java.util.UUID; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema1 { - // nest classes so all schemas and input/output classes can be public - - - public sealed interface Schema01Boxed permits Schema01BoxedString { - @Nullable Object getData(); - } - - public record Schema01BoxedString(String data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema01 extends JsonSchema implements StringSchemaValidator { - private static @Nullable Schema01 instance = null; - - protected Schema01() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .minLength(1) - ); - } - - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema01BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedString(validate(arg, configuration)); - } - @Override - public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface SomeProp1Boxed permits SomeProp1BoxedVoid, SomeProp1BoxedBoolean, SomeProp1BoxedNumber, SomeProp1BoxedString, SomeProp1BoxedList, SomeProp1BoxedMap { - @Nullable Object getData(); - } - - public record SomeProp1BoxedVoid(Void data) implements SomeProp1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record SomeProp1BoxedBoolean(boolean data) implements SomeProp1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record SomeProp1BoxedNumber(Number data) implements SomeProp1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record SomeProp1BoxedString(String data) implements SomeProp1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record SomeProp1BoxedList(FrozenList<@Nullable Object> data) implements SomeProp1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record SomeProp1BoxedMap(FrozenMap<@Nullable Object> data) implements SomeProp1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class SomeProp1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SomeProp1BoxedList>, MapSchemaValidator, SomeProp1BoxedMap> { - private static @Nullable SomeProp1 instance = null; - - protected SomeProp1() { - super(new JsonSchemaInfo() - .allOf(List.of( - Schema01.class - )) - ); - } - - public static SomeProp1 getInstance() { - if (instance == null) { - instance = new SomeProp1(); - } - return instance; - } - - @Override - public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { - return (long) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - @Override - public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List<@Nullable Object> items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - items.add(itemInstance); - i += 1; - } - FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); - return newInstanceItems; - } - - public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return castProperties; - } - - public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - return validate((Void) null, configuration); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return validate(boolArg, configuration); - } else if (arg instanceof Number) { - return validate((Number) arg, configuration); - } else if (arg instanceof String) { - return validate((String) arg, configuration); - } else if (arg instanceof List) { - return validate((List) arg, configuration); - } else if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg == null) { - return getNewInstance((Void) null, pathToItem, pathToSchemas); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return getNewInstance(boolArg, pathToItem, pathToSchemas); - } else if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } else if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } else if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } else if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public SomeProp1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { - return new SomeProp1BoxedVoid(validate(arg, configuration)); - } - @Override - public SomeProp1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { - return new SomeProp1BoxedBoolean(validate(arg, configuration)); - } - @Override - public SomeProp1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new SomeProp1BoxedNumber(validate(arg, configuration)); - } - @Override - public SomeProp1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new SomeProp1BoxedString(validate(arg, configuration)); - } - @Override - public SomeProp1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new SomeProp1BoxedList(validate(arg, configuration)); - } - @Override - public SomeProp1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new SomeProp1BoxedMap(validate(arg, configuration)); - } - @Override - public SomeProp1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - Void castArg = (Void) arg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof Boolean booleanArg) { - boolean castArg = booleanArg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class SchemaMap1 extends FrozenMap<@Nullable Object> { - protected SchemaMap1(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "someProp" - ); - public static SchemaMap1 of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Schema11.getInstance().validate(arg, configuration); - } - - public @Nullable Object someProp() throws UnsetPropertyException { - return getOrThrow("someProp"); - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForSomeProp1 { - Map getInstance(); - T getBuilderAfterSomeProp1(Map instance); - - default T someProp(Void value) { - var instance = getInstance(); - instance.put("someProp", null); - return getBuilderAfterSomeProp1(instance); - } - - default T someProp(boolean value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterSomeProp1(instance); - } - - default T someProp(String value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterSomeProp1(instance); - } - - default T someProp(int value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterSomeProp1(instance); - } - - default T someProp(float value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterSomeProp1(instance); - } - - default T someProp(long value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterSomeProp1(instance); - } - - default T someProp(double value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterSomeProp1(instance); - } - - default T someProp(List value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterSomeProp1(instance); - } - - default T someProp(Map value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterSomeProp1(instance); - } - } - - public static class SchemaMapBuilder1 extends UnsetAddPropsSetter implements GenericBuilder>, SetterForSomeProp1 { - private final Map instance; - private static final Set knownKeys = Set.of( - "someProp" - ); - public Set getKnownKeys() { - return knownKeys; - } - public SchemaMapBuilder1() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public SchemaMapBuilder1 getBuilderAfterSomeProp1(Map instance) { - return this; - } - public SchemaMapBuilder1 getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface Schema11Boxed permits Schema11BoxedMap { - @Nullable Object getData(); - } - - public record Schema11BoxedMap(SchemaMap1 data) implements Schema11Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class Schema11 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Schema11 instance = null; - - protected Schema11() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("someProp", SomeProp1.class) - )) - ); - } - - public static Schema11 getInstance() { - if (instance == null) { - instance = new Schema11(); - } - return instance; - } - - public SchemaMap1 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new SchemaMap1(castProperties); - } - - public SchemaMap1 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema11BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema11BoxedMap(validate(arg, configuration)); - } - @Override - public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 0d5501bb071..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,393 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson; -import java.time.LocalDate; -import java.time.ZonedDateTime; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import java.util.UUID; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class ApplicationjsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public sealed interface Applicationjson0Boxed permits Applicationjson0BoxedString { - @Nullable Object getData(); - } - - public record Applicationjson0BoxedString(String data) implements Applicationjson0Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Applicationjson0 extends JsonSchema implements StringSchemaValidator { - private static @Nullable Applicationjson0 instance = null; - - protected Applicationjson0() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .minLength(1) - ); - } - - public static Applicationjson0 getInstance() { - if (instance == null) { - instance = new Applicationjson0(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Applicationjson0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Applicationjson0BoxedString(validate(arg, configuration)); - } - @Override - public Applicationjson0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedVoid, ApplicationjsonSchema1BoxedBoolean, ApplicationjsonSchema1BoxedNumber, ApplicationjsonSchema1BoxedString, ApplicationjsonSchema1BoxedList, ApplicationjsonSchema1BoxedMap { - @Nullable Object getData(); - } - - public record ApplicationjsonSchema1BoxedVoid(Void data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record ApplicationjsonSchema1BoxedBoolean(boolean data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record ApplicationjsonSchema1BoxedNumber(Number data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record ApplicationjsonSchema1BoxedString(String data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class ApplicationjsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ApplicationjsonSchema1BoxedList>, MapSchemaValidator, ApplicationjsonSchema1BoxedMap> { - private static @Nullable ApplicationjsonSchema1 instance = null; - - protected ApplicationjsonSchema1() { - super(new JsonSchemaInfo() - .allOf(List.of( - Applicationjson0.class - )) - ); - } - - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - - @Override - public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { - return (long) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - @Override - public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List<@Nullable Object> items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - items.add(itemInstance); - i += 1; - } - FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); - return newInstanceItems; - } - - public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return castProperties; - } - - public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - return validate((Void) null, configuration); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return validate(boolArg, configuration); - } else if (arg instanceof Number) { - return validate((Number) arg, configuration); - } else if (arg instanceof String) { - return validate((String) arg, configuration); - } else if (arg instanceof List) { - return validate((List) arg, configuration); - } else if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg == null) { - return getNewInstance((Void) null, pathToItem, pathToSchemas); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return getNewInstance(boolArg, pathToItem, pathToSchemas); - } else if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } else if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } else if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } else if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationjsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedVoid(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedBoolean(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedNumber(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedString(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedList(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - Void castArg = (Void) arg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof Boolean booleanArg) { - boolean castArg = booleanArg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java deleted file mode 100644 index 61278aa23d3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ /dev/null @@ -1,596 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.multipartformdata; -import java.time.LocalDate; -import java.time.ZonedDateTime; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import java.util.UUID; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class MultipartformdataSchema { - // nest classes so all schemas and input/output classes can be public - - - public sealed interface Multipartformdata0Boxed permits Multipartformdata0BoxedString { - @Nullable Object getData(); - } - - public record Multipartformdata0BoxedString(String data) implements Multipartformdata0Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Multipartformdata0 extends JsonSchema implements StringSchemaValidator { - private static @Nullable Multipartformdata0 instance = null; - - protected Multipartformdata0() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .minLength(1) - ); - } - - public static Multipartformdata0 getInstance() { - if (instance == null) { - instance = new Multipartformdata0(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Multipartformdata0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Multipartformdata0BoxedString(validate(arg, configuration)); - } - @Override - public Multipartformdata0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { - @Nullable Object getData(); - } - - public record MultipartformdataSomePropBoxedVoid(Void data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record MultipartformdataSomePropBoxedBoolean(boolean data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record MultipartformdataSomePropBoxedNumber(Number data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record MultipartformdataSomePropBoxedString(String data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class MultipartformdataSomeProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipartformdataSomePropBoxedList>, MapSchemaValidator, MultipartformdataSomePropBoxedMap> { - private static @Nullable MultipartformdataSomeProp instance = null; - - protected MultipartformdataSomeProp() { - super(new JsonSchemaInfo() - .allOf(List.of( - Multipartformdata0.class - )) - ); - } - - public static MultipartformdataSomeProp getInstance() { - if (instance == null) { - instance = new MultipartformdataSomeProp(); - } - return instance; - } - - @Override - public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { - return (long) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - @Override - public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List<@Nullable Object> items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - items.add(itemInstance); - i += 1; - } - FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); - return newInstanceItems; - } - - public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return castProperties; - } - - public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - return validate((Void) null, configuration); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return validate(boolArg, configuration); - } else if (arg instanceof Number) { - return validate((Number) arg, configuration); - } else if (arg instanceof String) { - return validate((String) arg, configuration); - } else if (arg instanceof List) { - return validate((List) arg, configuration); - } else if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg == null) { - return getNewInstance((Void) null, pathToItem, pathToSchemas); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return getNewInstance(boolArg, pathToItem, pathToSchemas); - } else if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } else if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } else if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } else if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public MultipartformdataSomePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedVoid(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedBoolean(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedNumber(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedString(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedList(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedMap(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - Void castArg = (Void) arg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof Boolean booleanArg) { - boolean castArg = booleanArg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { - protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "someProp" - ); - public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return MultipartformdataSchema1.getInstance().validate(arg, configuration); - } - - public @Nullable Object someProp() throws UnsetPropertyException { - return getOrThrow("someProp"); - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForMultipartformdataSomeProp { - Map getInstance(); - T getBuilderAfterMultipartformdataSomeProp(Map instance); - - default T someProp(Void value) { - var instance = getInstance(); - instance.put("someProp", null); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(boolean value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(String value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(int value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(float value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(long value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(double value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(List value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(Map value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - } - - public static class MultipartformdataSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataSomeProp { - private final Map instance; - private static final Set knownKeys = Set.of( - "someProp" - ); - public Set getKnownKeys() { - return knownKeys; - } - public MultipartformdataSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataSomeProp(Map instance) { - return this; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - @Nullable Object getData(); - } - - public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable MultipartformdataSchema1 instance = null; - - protected MultipartformdataSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("someProp", MultipartformdataSomeProp.class) - )) - ); - } - - public static MultipartformdataSchema1 getInstance() { - if (instance == null) { - instance = new MultipartformdataSchema1(); - } - return instance; - } - - public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new MultipartformdataSchemaMap(castProperties); - } - - public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java deleted file mode 100644 index 11da1d76b4a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.multipartformdata.MultipartformdataSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakeinlinecompositionPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { - public MultipartformdataMediaType() { - this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody, MultipartformdataResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } - public record MultipartformdataResponseBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedResponseBody { } - - public static class FakeinlinecompositionPostCode200Response1 extends ResponseDeserializer { - public FakeinlinecompositionPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), - new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } else { - MultipartformdataMediaType thisMediaType = (MultipartformdataMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new MultipartformdataResponseBody(deserializedBody); - } - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 340a806c573..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,393 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.applicationjson; -import java.time.LocalDate; -import java.time.ZonedDateTime; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import java.util.UUID; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class ApplicationjsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public sealed interface Applicationjson0Boxed permits Applicationjson0BoxedString { - @Nullable Object getData(); - } - - public record Applicationjson0BoxedString(String data) implements Applicationjson0Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Applicationjson0 extends JsonSchema implements StringSchemaValidator { - private static @Nullable Applicationjson0 instance = null; - - protected Applicationjson0() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .minLength(1) - ); - } - - public static Applicationjson0 getInstance() { - if (instance == null) { - instance = new Applicationjson0(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Applicationjson0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Applicationjson0BoxedString(validate(arg, configuration)); - } - @Override - public Applicationjson0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedVoid, ApplicationjsonSchema1BoxedBoolean, ApplicationjsonSchema1BoxedNumber, ApplicationjsonSchema1BoxedString, ApplicationjsonSchema1BoxedList, ApplicationjsonSchema1BoxedMap { - @Nullable Object getData(); - } - - public record ApplicationjsonSchema1BoxedVoid(Void data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record ApplicationjsonSchema1BoxedBoolean(boolean data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record ApplicationjsonSchema1BoxedNumber(Number data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record ApplicationjsonSchema1BoxedString(String data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class ApplicationjsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ApplicationjsonSchema1BoxedList>, MapSchemaValidator, ApplicationjsonSchema1BoxedMap> { - private static @Nullable ApplicationjsonSchema1 instance = null; - - protected ApplicationjsonSchema1() { - super(new JsonSchemaInfo() - .allOf(List.of( - Applicationjson0.class - )) - ); - } - - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - - @Override - public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { - return (long) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - @Override - public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List<@Nullable Object> items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - items.add(itemInstance); - i += 1; - } - FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); - return newInstanceItems; - } - - public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return castProperties; - } - - public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - return validate((Void) null, configuration); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return validate(boolArg, configuration); - } else if (arg instanceof Number) { - return validate((Number) arg, configuration); - } else if (arg instanceof String) { - return validate((String) arg, configuration); - } else if (arg instanceof List) { - return validate((List) arg, configuration); - } else if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg == null) { - return getNewInstance((Void) null, pathToItem, pathToSchemas); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return getNewInstance(boolArg, pathToItem, pathToSchemas); - } else if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } else if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } else if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } else if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationjsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedVoid(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedBoolean(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedNumber(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedString(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedList(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - Void castArg = (Void) arg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof Boolean booleanArg) { - boolean castArg = booleanArg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java deleted file mode 100644 index 8798968b17e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java +++ /dev/null @@ -1,596 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.multipartformdata; -import java.time.LocalDate; -import java.time.ZonedDateTime; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import java.util.UUID; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class MultipartformdataSchema { - // nest classes so all schemas and input/output classes can be public - - - public sealed interface Multipartformdata0Boxed permits Multipartformdata0BoxedString { - @Nullable Object getData(); - } - - public record Multipartformdata0BoxedString(String data) implements Multipartformdata0Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Multipartformdata0 extends JsonSchema implements StringSchemaValidator { - private static @Nullable Multipartformdata0 instance = null; - - protected Multipartformdata0() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .minLength(1) - ); - } - - public static Multipartformdata0 getInstance() { - if (instance == null) { - instance = new Multipartformdata0(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Multipartformdata0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Multipartformdata0BoxedString(validate(arg, configuration)); - } - @Override - public Multipartformdata0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public sealed interface MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { - @Nullable Object getData(); - } - - public record MultipartformdataSomePropBoxedVoid(Void data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record MultipartformdataSomePropBoxedBoolean(boolean data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record MultipartformdataSomePropBoxedNumber(Number data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record MultipartformdataSomePropBoxedString(String data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - public record MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data) implements MultipartformdataSomePropBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class MultipartformdataSomeProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipartformdataSomePropBoxedList>, MapSchemaValidator, MultipartformdataSomePropBoxedMap> { - private static @Nullable MultipartformdataSomeProp instance = null; - - protected MultipartformdataSomeProp() { - super(new JsonSchemaInfo() - .allOf(List.of( - Multipartformdata0.class - )) - ); - } - - public static MultipartformdataSomeProp getInstance() { - if (instance == null) { - instance = new MultipartformdataSomeProp(); - } - return instance; - } - - @Override - public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { - return (long) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { - return validate(arg.toString(), configuration); - } - - @Override - public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List<@Nullable Object> items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - items.add(itemInstance); - i += 1; - } - FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); - return newInstanceItems; - } - - public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return castProperties; - } - - public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0]"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - return validate((Void) null, configuration); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return validate(boolArg, configuration); - } else if (arg instanceof Number) { - return validate((Number) arg, configuration); - } else if (arg instanceof String) { - return validate((String) arg, configuration); - } else if (arg instanceof List) { - return validate((List) arg, configuration); - } else if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg == null) { - return getNewInstance((Void) null, pathToItem, pathToSchemas); - } else if (arg instanceof Boolean) { - boolean boolArg = (Boolean) arg; - return getNewInstance(boolArg, pathToItem, pathToSchemas); - } else if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } else if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } else if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } else if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public MultipartformdataSomePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedVoid(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedBoolean(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedNumber(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedString(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedList(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSomePropBoxedMap(validate(arg, configuration)); - } - @Override - public MultipartformdataSomePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg == null) { - Void castArg = (Void) arg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof Boolean booleanArg) { - boolean castArg = booleanArg; - return validateAndBox(castArg, configuration); - } else if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } else if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { - protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "someProp" - ); - public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return MultipartformdataSchema1.getInstance().validate(arg, configuration); - } - - public @Nullable Object someProp() throws UnsetPropertyException { - return getOrThrow("someProp"); - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForMultipartformdataSomeProp { - Map getInstance(); - T getBuilderAfterMultipartformdataSomeProp(Map instance); - - default T someProp(Void value) { - var instance = getInstance(); - instance.put("someProp", null); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(boolean value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(String value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(int value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(float value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(long value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(double value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(List value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - - default T someProp(Map value) { - var instance = getInstance(); - instance.put("someProp", value); - return getBuilderAfterMultipartformdataSomeProp(instance); - } - } - - public static class MultipartformdataSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataSomeProp { - private final Map instance; - private static final Set knownKeys = Set.of( - "someProp" - ); - public Set getKnownKeys() { - return knownKeys; - } - public MultipartformdataSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataSomeProp(Map instance) { - return this; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - @Nullable Object getData(); - } - - public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable MultipartformdataSchema1 instance = null; - - protected MultipartformdataSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("someProp", MultipartformdataSomeProp.class) - )) - ); - } - - public static MultipartformdataSchema1 getInstance() { - if (instance == null) { - instance = new MultipartformdataSchema1(); - } - return instance; - } - - public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new MultipartformdataSchemaMap(castProperties); - } - - public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java deleted file mode 100644 index a583165ecb3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonformdata; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakejsonformdata; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakejsonformdataGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakejsonformdataGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakejsonformdataGetRequestBody.FakejsonformdataGetRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakejsonformdata.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakejsonformdataGetResponses.FakejsonformdataGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakejsonformdataGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface JsonFormDataOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakejsonformdataGetResponses.EndpointResponse jsonFormData(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public FakejsonformdataGetRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - GetRequest getInstance(); - T getBuilderAfterRequestBody(GetRequest instance); - default T requestBody(FakejsonformdataGetRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java deleted file mode 100644 index db4fc9f757b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonformdata.get; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakejsonformdataGetRequestBody { - public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} - - public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxwwwformurlencodedMediaType() { - this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakejsonformdataGetRequestBody1 extends RequestBodySerializer { - public FakejsonformdataGetRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationxwwwformurlencodedRequestBody requestBody0 = (ApplicationxwwwformurlencodedRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} - public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/x-www-form-urlencoded"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java deleted file mode 100644 index eb89e916396..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonformdata.get; - -import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.FakejsonformdataGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakejsonformdataGetResponses { - public sealed interface EndpointResponse permits EndpointFakejsonformdataGetCode200Response {} - - public record EndpointFakejsonformdataGetCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakejsonformdataGetCode200ResponseDeserializer {} - - public static final class StatusFakejsonformdataGetCode200ResponseDeserializer extends FakejsonformdataGetCode200Response.FakejsonformdataGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakejsonformdataGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakejsonformdataGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakejsonformdataGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakejsonformdataGetCode200ResponseDeserializer castDeserializer = (StatusFakejsonformdataGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakejsonformdataGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java deleted file mode 100644 index 676abe08d29..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ /dev/null @@ -1,274 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class ApplicationxwwwformurlencodedSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationxwwwformurlencodedParam extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationxwwwformurlencodedParam instance = null; - public static ApplicationxwwwformurlencodedParam getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedParam(); - } - return instance; - } - } - - - public static class ApplicationxwwwformurlencodedParam2 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationxwwwformurlencodedParam2 instance = null; - public static ApplicationxwwwformurlencodedParam2 getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedParam2(); - } - return instance; - } - } - - - public static class ApplicationxwwwformurlencodedSchemaMap extends FrozenMap<@Nullable Object> { - protected ApplicationxwwwformurlencodedSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "param", - "param2" - ); - public static final Set optionalKeys = Set.of(); - public static ApplicationxwwwformurlencodedSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return ApplicationxwwwformurlencodedSchema1.getInstance().validate(arg, configuration); - } - - public String param() { - @Nullable Object value = get("param"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for param"); - } - return (String) value; - } - - public String param2() { - @Nullable Object value = get("param2"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for param2"); - } - return (String) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForApplicationxwwwformurlencodedParam { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedParam(Map instance); - - default T param(String value) { - var instance = getInstance(); - instance.put("param", value); - return getBuilderAfterApplicationxwwwformurlencodedParam(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedParam2 { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedParam2(Map instance); - - default T param2(String value) { - var instance = getInstance(); - instance.put("param2", value); - return getBuilderAfterApplicationxwwwformurlencodedParam2(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap00Builder extends UnsetAddPropsSetter implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "param", - "param2" - ); - public Set getKnownKeys() { - return knownKeys; - } - public ApplicationxwwwformurlencodedSchemaMap00Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap00Builder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap01Builder implements SetterForApplicationxwwwformurlencodedParam2 { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap01Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap00Builder getBuilderAfterApplicationxwwwformurlencodedParam2(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap00Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMap10Builder implements SetterForApplicationxwwwformurlencodedParam { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMap10Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap00Builder getBuilderAfterApplicationxwwwformurlencodedParam(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap00Builder(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMapBuilder implements SetterForApplicationxwwwformurlencodedParam, SetterForApplicationxwwwformurlencodedParam2 { - private final Map instance; - public ApplicationxwwwformurlencodedSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMap01Builder getBuilderAfterApplicationxwwwformurlencodedParam(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap01Builder(instance); - } - public ApplicationxwwwformurlencodedSchemaMap10Builder getBuilderAfterApplicationxwwwformurlencodedParam2(Map instance) { - return new ApplicationxwwwformurlencodedSchemaMap10Builder(instance); - } - } - - - public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; - - protected ApplicationxwwwformurlencodedSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("param", ApplicationxwwwformurlencodedParam.class), - new PropertyEntry("param2", ApplicationxwwwformurlencodedParam2.class) - )) - .required(Set.of( - "param", - "param2" - )) - ); - } - - public static ApplicationxwwwformurlencodedSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedSchema1(); - } - return instance; - } - - public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new ApplicationxwwwformurlencodedSchemaMap(castProperties); - } - - public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.java deleted file mode 100644 index ea7665e2152..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonformdata.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakejsonformdataGetCode200Response extends SuccessDescriptionOnly { - public static class FakejsonformdataGetCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java deleted file mode 100644 index 25ffe66cd1f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonpatch; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakejsonpatch; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakejsonpatchPatch { - private static class PatchProvider { - private static final String method = "patch"; - - public static FakejsonpatchPatchResponses.EndpointResponse patch( - PatchRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakejsonpatchPatchRequestBody.FakejsonpatchPatchRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakejsonpatch.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakejsonpatchPatchResponses.FakejsonpatchPatchResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PatchOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakejsonpatchPatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface JsonPatchOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakejsonpatchPatchResponses.EndpointResponse jsonPatch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Patch extends ApiClient implements PatchOperation { - public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PatchRequest { - public FakejsonpatchPatchRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PatchRequest getInstance(); - T getBuilderAfterRequestBody(PatchRequest instance); - default T requestBody(FakejsonpatchPatchRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PatchRequest getInstance(); - T getBuilderAfterServerIndex(PatchRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PatchRequest getInstance(); - T getBuilderAfterTimeout(PatchRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PatchRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PatchRequest instance; - - public PatchRequestBuilder() { - this.instance = new PatchRequest(); - } - - public PatchRequest build() { - return instance; - } - - public PatchRequest getInstance() { - return instance; - } - - public PatchRequestBuilder getBuilderAfterRequestBody(PatchRequest instance) { - return this; - } - - public PatchRequestBuilder getBuilderAfterServerIndex(PatchRequest instance) { - return this; - } - - public PatchRequestBuilder getBuilderAfterTimeout(PatchRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java deleted file mode 100644 index 56bf4d5e8d5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonpatch.patch; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakejsonpatch.patch.requestbody.content.applicationjsonpatchjson.ApplicationjsonpatchjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakejsonpatchPatchRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonpatchjsonMediaType {} - - public record ApplicationjsonpatchjsonMediaType(ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonpatchjsonMediaType() { - this(ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakejsonpatchPatchRequestBody1 extends RequestBodySerializer { - public FakejsonpatchPatchRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json-patch+json", new ApplicationjsonpatchjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonpatchjsonRequestBody requestBody0 = (ApplicationjsonpatchjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonpatchjsonRequestBody {} - public record ApplicationjsonpatchjsonRequestBody(ApplicationjsonpatchjsonSchema.JSONPatchRequest1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json-patch+json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java deleted file mode 100644 index f1699dcc589..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonpatch.patch; - -import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.FakejsonpatchPatchCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakejsonpatchPatchResponses { - public sealed interface EndpointResponse permits EndpointFakejsonpatchPatchCode200Response {} - - public record EndpointFakejsonpatchPatchCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakejsonpatchPatchCode200ResponseDeserializer {} - - public static final class StatusFakejsonpatchPatchCode200ResponseDeserializer extends FakejsonpatchPatchCode200Response.FakejsonpatchPatchCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakejsonpatchPatchResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakejsonpatchPatchResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakejsonpatchPatchCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakejsonpatchPatchCode200ResponseDeserializer castDeserializer = (StatusFakejsonpatchPatchCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakejsonpatchPatchCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java deleted file mode 100644 index cd05f887749..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonpatch.patch.requestbody.content.applicationjsonpatchjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.JSONPatchRequest; - -public class ApplicationjsonpatchjsonSchema extends JSONPatchRequest { - // $refed class - - - public static class ApplicationjsonpatchjsonSchema1 extends JSONPatchRequest1 { - private static @Nullable ApplicationjsonpatchjsonSchema1 instance = null; - public static ApplicationjsonpatchjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonpatchjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.java deleted file mode 100644 index 9c5391108b0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakejsonpatchPatchCode200Response extends SuccessDescriptionOnly { - public static class FakejsonpatchPatchCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java deleted file mode 100644 index 81e30d3193d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonwithcharset; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakejsonwithcharset; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakejsonwithcharsetPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakejsonwithcharsetPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakejsonwithcharsetPostRequestBody.FakejsonwithcharsetPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakejsonwithcharset.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakejsonwithcharsetPostResponses.FakejsonwithcharsetPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakejsonwithcharsetPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface JsonWithCharsetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakejsonwithcharsetPostResponses.EndpointResponse jsonWithCharset(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakejsonwithcharsetPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakejsonwithcharsetPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java deleted file mode 100644 index 86e3ba4f283..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonwithcharset.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakejsonwithcharsetPostRequestBody { - public sealed interface SealedMediaType permits Applicationjsoncharsetutf8MediaType {} - - public record Applicationjsoncharsetutf8MediaType(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1 schema) implements SealedMediaType, MediaType { - public Applicationjsoncharsetutf8MediaType() { - this(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakejsonwithcharsetPostRequestBody1 extends RequestBodySerializer { - public FakejsonwithcharsetPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new Applicationjsoncharsetutf8MediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - Applicationjsoncharsetutf8RequestBody requestBody0 = (Applicationjsoncharsetutf8RequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits Applicationjsoncharsetutf8RequestBody {} - public record Applicationjsoncharsetutf8RequestBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json; charset=utf-8"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java deleted file mode 100644 index f695b513166..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonwithcharset.post; - -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.FakejsonwithcharsetPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakejsonwithcharsetPostResponses { - public sealed interface EndpointResponse permits EndpointFakejsonwithcharsetPostCode200Response {} - - public record EndpointFakejsonwithcharsetPostCode200Response( - HttpResponse response, - FakejsonwithcharsetPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakejsonwithcharsetPostCode200ResponseDeserializer {} - - public static final class StatusFakejsonwithcharsetPostCode200ResponseDeserializer extends FakejsonwithcharsetPostCode200Response.FakejsonwithcharsetPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakejsonwithcharsetPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakejsonwithcharsetPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakejsonwithcharsetPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakejsonwithcharsetPostCode200ResponseDeserializer castDeserializer = (StatusFakejsonwithcharsetPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakejsonwithcharsetPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java deleted file mode 100644 index 86ea755b112..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class Applicationjsoncharsetutf8Schema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Applicationjsoncharsetutf8Schema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable Applicationjsoncharsetutf8Schema1 instance = null; - public static Applicationjsoncharsetutf8Schema1 getInstance() { - if (instance == null) { - instance = new Applicationjsoncharsetutf8Schema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java deleted file mode 100644 index 71a35408633..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.code200response.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakejsonwithcharsetPostCode200Response { - public sealed interface SealedMediaType permits Applicationjsoncharsetutf8MediaType {} - - public record Applicationjsoncharsetutf8MediaType(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1 schema) implements SealedMediaType, MediaType { - public Applicationjsoncharsetutf8MediaType() { - this(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits Applicationjsoncharsetutf8ResponseBody {} - public record Applicationjsoncharsetutf8ResponseBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakejsonwithcharsetPostCode200Response1 extends ResponseDeserializer { - public FakejsonwithcharsetPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new Applicationjsoncharsetutf8MediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - Applicationjsoncharsetutf8MediaType thisMediaType = (Applicationjsoncharsetutf8MediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new Applicationjsoncharsetutf8ResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java deleted file mode 100644 index 8e4d5dbf902..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.code200response.content.applicationjsoncharsetutf8; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class Applicationjsoncharsetutf8Schema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Applicationjsoncharsetutf8Schema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable Applicationjsoncharsetutf8Schema1 instance = null; - public static Applicationjsoncharsetutf8Schema1 getInstance() { - if (instance == null) { - instance = new Applicationjsoncharsetutf8Schema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java deleted file mode 100644 index c76d6eaa950..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakemultiplerequestbodycontenttypes; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakemultiplerequestbodycontenttypesPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakemultiplerequestbodycontenttypesPostRequestBody.FakemultiplerequestbodycontenttypesPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakemultiplerequestbodycontenttypes.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakemultiplerequestbodycontenttypesPostResponses.FakemultiplerequestbodycontenttypesPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface MultipleRequestBodyContentTypesOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse multipleRequestBodyContentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakemultiplerequestbodycontenttypesPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakemultiplerequestbodycontenttypesPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java deleted file mode 100644 index 537497a9cc9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakemultiplerequestbodycontenttypesPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { - public MultipartformdataMediaType() { - this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakemultiplerequestbodycontenttypesPostRequestBody1 extends RequestBodySerializer { - public FakemultiplerequestbodycontenttypesPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), - new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - if (requestBody instanceof ApplicationjsonRequestBody requestBody0) { - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } else { - MultipartformdataRequestBody requestBody1 = (MultipartformdataRequestBody) requestBody; - return serialize(requestBody1.contentType(), requestBody1.body().getData()); - } - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, MultipartformdataRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } - public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "multipart/form-data"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java deleted file mode 100644 index fedc18554a6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post; - -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.FakemultiplerequestbodycontenttypesPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakemultiplerequestbodycontenttypesPostResponses { - public sealed interface EndpointResponse permits EndpointFakemultiplerequestbodycontenttypesPostCode200Response {} - - public record EndpointFakemultiplerequestbodycontenttypesPostCode200Response( - HttpResponse response, - FakemultiplerequestbodycontenttypesPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer {} - - public static final class StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer extends FakemultiplerequestbodycontenttypesPostCode200Response.FakemultiplerequestbodycontenttypesPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakemultiplerequestbodycontenttypesPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakemultiplerequestbodycontenttypesPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer castDeserializer = (StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakemultiplerequestbodycontenttypesPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index a770374fa98..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,200 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class ApplicationjsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonA extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationjsonA instance = null; - public static ApplicationjsonA getInstance() { - if (instance == null) { - instance = new ApplicationjsonA(); - } - return instance; - } - } - - - public static class ApplicationjsonSchemaMap extends FrozenMap<@Nullable Object> { - protected ApplicationjsonSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "a" - ); - public static ApplicationjsonSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return ApplicationjsonSchema1.getInstance().validate(arg, configuration); - } - - public String a() throws UnsetPropertyException { - String key = "a"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for a"); - } - return (String) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForApplicationjsonA { - Map getInstance(); - T getBuilderAfterApplicationjsonA(Map instance); - - default T a(String value) { - var instance = getInstance(); - instance.put("a", value); - return getBuilderAfterApplicationjsonA(instance); - } - } - - public static class ApplicationjsonSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForApplicationjsonA { - private final Map instance; - private static final Set knownKeys = Set.of( - "a" - ); - public Set getKnownKeys() { - return knownKeys; - } - public ApplicationjsonSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public ApplicationjsonSchemaMapBuilder getBuilderAfterApplicationjsonA(Map instance) { - return this; - } - public ApplicationjsonSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedMap { - @Nullable Object getData(); - } - - public record ApplicationjsonSchema1BoxedMap(ApplicationjsonSchemaMap data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable ApplicationjsonSchema1 instance = null; - - protected ApplicationjsonSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("a", ApplicationjsonA.class) - )) - ); - } - - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - - public ApplicationjsonSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new ApplicationjsonSchemaMap(castProperties); - } - - public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java deleted file mode 100644 index 1f7af7f9a29..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ /dev/null @@ -1,200 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.multipartformdata; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class MultipartformdataSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class MultipartformdataB extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable MultipartformdataB instance = null; - public static MultipartformdataB getInstance() { - if (instance == null) { - instance = new MultipartformdataB(); - } - return instance; - } - } - - - public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { - protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "b" - ); - public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return MultipartformdataSchema1.getInstance().validate(arg, configuration); - } - - public String b() throws UnsetPropertyException { - String key = "b"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for b"); - } - return (String) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForMultipartformdataB { - Map getInstance(); - T getBuilderAfterMultipartformdataB(Map instance); - - default T b(String value) { - var instance = getInstance(); - instance.put("b", value); - return getBuilderAfterMultipartformdataB(instance); - } - } - - public static class MultipartformdataSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataB { - private final Map instance; - private static final Set knownKeys = Set.of( - "b" - ); - public Set getKnownKeys() { - return knownKeys; - } - public MultipartformdataSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataB(Map instance) { - return this; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - @Nullable Object getData(); - } - - public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable MultipartformdataSchema1 instance = null; - - protected MultipartformdataSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("b", MultipartformdataB.class) - )) - ); - } - - public static MultipartformdataSchema1 getInstance() { - if (instance == null) { - instance = new MultipartformdataSchema1(); - } - return instance; - } - - public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new MultipartformdataSchemaMap(castProperties); - } - - public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java deleted file mode 100644 index 31866cb56d6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakemultiplerequestbodycontenttypesPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakemultiplerequestbodycontenttypesPostCode200Response1 extends ResponseDeserializer { - public FakemultiplerequestbodycontenttypesPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 68f600e23d6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.code200response.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java deleted file mode 100644 index eee00a7c9ea..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultipleresponsebodies; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakemultipleresponsebodies; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakemultipleresponsebodiesGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakemultipleresponsebodiesGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakemultipleresponsebodies.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakemultipleresponsebodiesGetResponses.FakemultipleresponsebodiesGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakemultipleresponsebodiesGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface MultipleResponseBodiesOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakemultipleresponsebodiesGetResponses.EndpointResponse multipleResponseBodies(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java deleted file mode 100644 index 328ed565f80..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java +++ /dev/null @@ -1,69 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get; - -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode200Response; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode202Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakemultipleresponsebodiesGetResponses { - public sealed interface EndpointResponse permits EndpointFakemultipleresponsebodiesGetCode200Response, EndpointFakemultipleresponsebodiesGetCode202Response {} - - public record EndpointFakemultipleresponsebodiesGetCode200Response( - HttpResponse response, - FakemultipleresponsebodiesGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public record EndpointFakemultipleresponsebodiesGetCode202Response( - HttpResponse response, - FakemultipleresponsebodiesGetCode202Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer, StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer {} - - public static final class StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer extends FakemultipleresponsebodiesGetCode200Response.FakemultipleresponsebodiesGetCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer extends FakemultipleresponsebodiesGetCode202Response.FakemultipleresponsebodiesGetCode202Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakemultipleresponsebodiesGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakemultipleresponsebodiesGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("202", new StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakemultipleresponsebodiesGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else { - StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer castDeserializer = (StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakemultipleresponsebodiesGetCode202Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java deleted file mode 100644 index aa57e66abcc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakemultipleresponsebodiesGetCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakemultipleresponsebodiesGetCode200Response1 extends ResponseDeserializer { - public FakemultipleresponsebodiesGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java deleted file mode 100644 index 059d4284e0d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code202response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakemultipleresponsebodiesGetCode202Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakemultipleresponsebodiesGetCode202Response1 extends ResponseDeserializer { - public FakemultipleresponsebodiesGetCode202Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 0a2a9520c57..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code200response.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 53ce26bfe16..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code202response.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java deleted file mode 100644 index 4073bffd42c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplesecurities; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakemultiplesecurities; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakemultiplesecuritiesGet { - private static class GetProvider extends AuthApplier { - private static final String method = "get"; - - public static FakemultiplesecuritiesGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - Fakemultiplesecurities.path, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + Fakemultiplesecurities.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakemultiplesecuritiesGetResponses.FakemultiplesecuritiesGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakemultiplesecuritiesGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface MultipleSecuritiesOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakemultiplesecuritiesGetResponses.EndpointResponse multipleSecurities(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public ServerInfo.@Nullable ServerIndex serverIndex; - public FakemultiplesecuritiesGetSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - GetRequest getInstance(); - T getBuilderAfterSecurityIndex(GetRequest instance); - default T securityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterSecurityIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java deleted file mode 100644 index c10a56a840a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplesecurities.get; - -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.FakemultiplesecuritiesGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakemultiplesecuritiesGetResponses { - public sealed interface EndpointResponse permits EndpointFakemultiplesecuritiesGetCode200Response {} - - public record EndpointFakemultiplesecuritiesGetCode200Response( - HttpResponse response, - FakemultiplesecuritiesGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakemultiplesecuritiesGetCode200ResponseDeserializer {} - - public static final class StatusFakemultiplesecuritiesGetCode200ResponseDeserializer extends FakemultiplesecuritiesGetCode200Response.FakemultiplesecuritiesGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakemultiplesecuritiesGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakemultiplesecuritiesGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakemultiplesecuritiesGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakemultiplesecuritiesGetCode200ResponseDeserializer castDeserializer = (StatusFakemultiplesecuritiesGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakemultiplesecuritiesGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java deleted file mode 100644 index ed1fd5216aa..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplesecurities.get; - -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security.FakemultiplesecuritiesGetSecurityRequirementObject0; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security.FakemultiplesecuritiesGetSecurityRequirementObject1; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security.FakemultiplesecuritiesGetSecurityRequirementObject2; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class FakemultiplesecuritiesGetSecurityInfo { - public static class FakemultiplesecuritiesGetSecurityInfo1 implements SecurityRequirementObjectProvider { - public final FakemultiplesecuritiesGetSecurityRequirementObject0 security0; - public final FakemultiplesecuritiesGetSecurityRequirementObject1 security1; - public final FakemultiplesecuritiesGetSecurityRequirementObject2 security2; - - public FakemultiplesecuritiesGetSecurityInfo1() { - security0 = new FakemultiplesecuritiesGetSecurityRequirementObject0(); - security1 = new FakemultiplesecuritiesGetSecurityRequirementObject1(); - security2 = new FakemultiplesecuritiesGetSecurityRequirementObject2(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - switch (securityIndex) { - case SECURITY_0: - return security0; - case SECURITY_1: - return security1; - default: - return security2; - } - } - } - - public enum SecurityIndex { - SECURITY_0, - SECURITY_1, - SECURITY_2 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java deleted file mode 100644 index 06c0ea10767..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakemultiplesecuritiesGetCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakemultiplesecuritiesGetCode200Response1 extends ResponseDeserializer { - public FakemultiplesecuritiesGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 19cca1a1b80..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.code200response.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java deleted file mode 100644 index bc95dd4ca2b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security; - -import org.openapijsonschematools.client.securityrequirementobjects.EmptySecurityRequirementObject; - -public class FakemultiplesecuritiesGetSecurityRequirementObject0 extends EmptySecurityRequirementObject {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java deleted file mode 100644 index 4b2a7c9737a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; -import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class FakemultiplesecuritiesGetSecurityRequirementObject1 extends SecurityRequirementObject { - - public FakemultiplesecuritiesGetSecurityRequirementObject1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - HttpBasicTest.class, - List.of() - ), - new AbstractMap.SimpleEntry, List>( - ApiKey.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java deleted file mode 100644 index b59a0f9bb32..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class FakemultiplesecuritiesGetSecurityRequirementObject2 extends SecurityRequirementObject { - - public FakemultiplesecuritiesGetSecurityRequirementObject2() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - PetstoreAuth.class, - List.of("write:pets", "read:pets") - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java deleted file mode 100644 index f704c6dd01c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java +++ /dev/null @@ -1,148 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeobjinquery; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.Parameters; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakeobjinquery; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeobjinqueryGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakeobjinqueryGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = null; - if (request.queryParameters != null) { - queryMap = querySerializer.getQueryMap(request.queryParameters); - } - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakeobjinquery.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeobjinqueryGetResponses.FakeobjinqueryGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeobjinqueryGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ObjectInQueryOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeobjinqueryGetResponses.EndpointResponse objectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public FakeobjinqueryGetQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForQueryParameters { - GetRequest getInstance(); - T getBuilderAfterQueryParameters(GetRequest instance); - default T queryParameters(FakeobjinqueryGetQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java deleted file mode 100644 index bd8b2045e9c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java +++ /dev/null @@ -1,191 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeobjinquery.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakeobjinqueryGetQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "mapBean" - ); - public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { - return FakeobjinqueryGetQueryParameters1.getInstance().validate(arg, configuration); - } - - public Schema0.SchemaMap0 mapBean() throws UnsetPropertyException { - return getOrThrow("mapBean"); - } - } - - public interface SetterForMapBean { - Map> getInstance(); - T getBuilderAfterMapBean(Map> instance); - - default T mapBean(Map value) { - var instance = getInstance(); - instance.put("mapBean", value); - return getBuilderAfterMapBean(instance); - } - } - - public static class QueryParametersMapBuilder implements GenericBuilder>>, SetterForMapBean { - private final Map> instance; - private static final Set knownKeys = Set.of( - "mapBean" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map> build() { - return instance; - } - public Map> getInstance() { - return instance; - } - public QueryParametersMapBuilder getBuilderAfterMapBean(Map> instance) { - return this; - } - } - - - public sealed interface FakeobjinqueryGetQueryParameters1Boxed permits FakeobjinqueryGetQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakeobjinqueryGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakeobjinqueryGetQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakeobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakeobjinqueryGetQueryParameters1 instance = null; - - protected FakeobjinqueryGetQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("mapBean", Schema0.Schema01.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakeobjinqueryGetQueryParameters1 getInstance() { - if (instance == null) { - instance = new FakeobjinqueryGetQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Schema0.SchemaMap0)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (Schema0.SchemaMap0) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakeobjinqueryGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakeobjinqueryGetQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakeobjinqueryGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java deleted file mode 100644 index f3b4fc6711e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeobjinquery.get; - -import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.FakeobjinqueryGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeobjinqueryGetResponses { - public sealed interface EndpointResponse permits EndpointFakeobjinqueryGetCode200Response {} - - public record EndpointFakeobjinqueryGetCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeobjinqueryGetCode200ResponseDeserializer {} - - public static final class StatusFakeobjinqueryGetCode200ResponseDeserializer extends FakeobjinqueryGetCode200Response.FakeobjinqueryGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeobjinqueryGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeobjinqueryGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeobjinqueryGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeobjinqueryGetCode200ResponseDeserializer castDeserializer = (StatusFakeobjinqueryGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeobjinqueryGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java deleted file mode 100644 index 58e787df688..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeobjinquery.get; - -import org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("mapBean", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java deleted file mode 100644 index 75d3713a0bb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "mapBean", - ParameterInType.QUERY, - false, - ParameterStyle.DEEP_OBJECT, - true, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java deleted file mode 100644 index 28dc740b7eb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,200 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters.parameter0; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema0 { - // nest classes so all schemas and input/output classes can be public - - - public static class Keyword0 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Keyword0 instance = null; - public static Keyword0 getInstance() { - if (instance == null) { - instance = new Keyword0(); - } - return instance; - } - } - - - public static class SchemaMap0 extends FrozenMap<@Nullable Object> { - protected SchemaMap0(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "keyword" - ); - public static SchemaMap0 of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Schema01.getInstance().validate(arg, configuration); - } - - public String keyword() throws UnsetPropertyException { - String key = "keyword"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for keyword"); - } - return (String) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForKeyword0 { - Map getInstance(); - T getBuilderAfterKeyword0(Map instance); - - default T keyword(String value) { - var instance = getInstance(); - instance.put("keyword", value); - return getBuilderAfterKeyword0(instance); - } - } - - public static class SchemaMapBuilder0 extends UnsetAddPropsSetter implements GenericBuilder>, SetterForKeyword0 { - private final Map instance; - private static final Set knownKeys = Set.of( - "keyword" - ); - public Set getKnownKeys() { - return knownKeys; - } - public SchemaMapBuilder0() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public SchemaMapBuilder0 getBuilderAfterKeyword0(Map instance) { - return this; - } - public SchemaMapBuilder0 getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface Schema01Boxed permits Schema01BoxedMap { - @Nullable Object getData(); - } - - public record Schema01BoxedMap(SchemaMap0 data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class Schema01 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Schema01 instance = null; - - protected Schema01() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("keyword", Keyword0.class) - )) - ); - } - - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - - public SchemaMap0 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new SchemaMap0(castProperties); - } - - public SchemaMap0 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema01BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedMap(validate(arg, configuration)); - } - @Override - public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.java deleted file mode 100644 index ea4029a4cb2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeobjinquery.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakeobjinqueryGetCode200Response extends SuccessDescriptionOnly { - public static class FakeobjinqueryGetCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java deleted file mode 100644 index 563a0808117..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java +++ /dev/null @@ -1,291 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostRequestBody; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Parameters; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakeparametercollisions1ababselfab; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class Fakeparametercollisions1ababselfabPost { - private static class PostProvider { - private static final String method = "post"; - - public static Fakeparametercollisions1ababselfabPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new Fakeparametercollisions1ababselfabPostRequestBody.Fakeparametercollisions1ababselfabPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - - if (request.headerParameters != null) { - var headersSerializer = new Parameters.HeaderParametersSerializer(); - Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); - headers.putAll(serializedHeaders); - } - - if (request.cookieParameters != null) { - var cookieSerializer = new Parameters.CookieParametersSerializer(); - String serializedCookie = cookieSerializer.serialize(request.cookieParameters); - var cookieHeaderValues = headers.getOrDefault("Cookie", new ArrayList<>()); - cookieHeaderValues.add(serializedCookie); - } - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Fakeparametercollisions1ababselfab.path); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = null; - if (request.queryParameters != null) { - queryMap = querySerializer.getQueryMap(request.queryParameters); - } - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + updatedPath; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new Fakeparametercollisions1ababselfabPostResponses.Fakeparametercollisions1ababselfabPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Fakeparametercollisions1ababselfabPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ParameterCollisionsOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Fakeparametercollisions1ababselfabPostResponses.EndpointResponse parameterCollisions(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters; - public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; - public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; - public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap queryParameters; - public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap cookieParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PostRequest( - Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters, - Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody, - Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap headerParameters, - Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap queryParameters, - Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap cookieParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.requestBody = requestBody; - this.headerParameters = headerParameters; - this.queryParameters = queryParameters; - this.cookieParameters = cookieParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public Fakeparametercollisions1ababselfabPostPathParameters.@Nullable PathParametersMap pathParameters; - public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; - public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; - public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap queryParameters; - public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap cookieParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForHeaderParameters { - PostNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(PostNullableRequest instance); - default T headerParameters(Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMap headerParameters) { - var instance = getInstance(); - instance.headerParameters = headerParameters; - return getBuilderAfterHeaderParameters(instance); - } - } - - public interface SetterForQueryParameters { - PostNullableRequest getInstance(); - T getBuilderAfterQueryParameters(PostNullableRequest instance); - default T queryParameters(Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public interface SetterForCookieParameters { - PostNullableRequest getInstance(); - T getBuilderAfterCookieParameters(PostNullableRequest instance); - default T cookieParameters(Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMap cookieParameters) { - var instance = getInstance(); - instance.cookieParameters = cookieParameters; - return getBuilderAfterCookieParameters(instance); - } - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Post0RequestBuilder implements SetterForRequestBody, SetterForHeaderParameters, SetterForQueryParameters, SetterForCookieParameters, SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - pathParameters, - instance.requestBody, - instance.headerParameters, - instance.queryParameters, - instance.cookieParameters, - instance.serverIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterHeaderParameters(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterQueryParameters(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterCookieParameters(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForPathParameters { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java deleted file mode 100644 index 1fde72f7396..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java +++ /dev/null @@ -1,286 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter14.Schema14; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter15.Schema15; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter16.Schema16; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter17.Schema17; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter18.Schema18; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Fakeparametercollisions1ababselfabPostCookieParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class CookieParametersMap extends FrozenMap<@Nullable Object> { - protected CookieParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "1", - "aB", - "Ab", - "A-B", - "self" - ); - public static CookieParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Fakeparametercollisions1ababselfabPostCookieParameters1.getInstance().validate(arg, configuration); - } - - public String aB() throws UnsetPropertyException { - String key = "aB"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for aB"); - } - return (String) value; - } - - public String Ab() throws UnsetPropertyException { - String key = "Ab"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for Ab"); - } - return (String) value; - } - - public String self() throws UnsetPropertyException { - String key = "self"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for self"); - } - return (String) value; - } - } - - public interface SetterForSchema1 { - Map getInstance(); - T getBuilderAfterSchema1(Map instance); - - default T positive1(String value) { - var instance = getInstance(); - instance.put("1", value); - return getBuilderAfterSchema1(instance); - } - } - - public interface SetterForAB { - Map getInstance(); - T getBuilderAfterAB(Map instance); - - default T aB(String value) { - var instance = getInstance(); - instance.put("aB", value); - return getBuilderAfterAB(instance); - } - } - - public interface SetterForAb { - Map getInstance(); - T getBuilderAfterAb(Map instance); - - default T Ab(String value) { - var instance = getInstance(); - instance.put("Ab", value); - return getBuilderAfterAb(instance); - } - } - - public interface SetterForAB1 { - Map getInstance(); - T getBuilderAfterAB1(Map instance); - - default T aHyphenMinusB(String value) { - var instance = getInstance(); - instance.put("A-B", value); - return getBuilderAfterAB1(instance); - } - } - - public interface SetterForSelf { - Map getInstance(); - T getBuilderAfterSelf(Map instance); - - default T self(String value) { - var instance = getInstance(); - instance.put("self", value); - return getBuilderAfterSelf(instance); - } - } - - public static class CookieParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAb, SetterForAB1, SetterForSelf { - private final Map instance; - private static final Set knownKeys = Set.of( - "1", - "aB", - "Ab", - "A-B", - "self" - ); - public Set getKnownKeys() { - return knownKeys; - } - public CookieParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public CookieParametersMapBuilder getBuilderAfterSchema1(Map instance) { - return this; - } - public CookieParametersMapBuilder getBuilderAfterAB(Map instance) { - return this; - } - public CookieParametersMapBuilder getBuilderAfterAb(Map instance) { - return this; - } - public CookieParametersMapBuilder getBuilderAfterAB1(Map instance) { - return this; - } - public CookieParametersMapBuilder getBuilderAfterSelf(Map instance) { - return this; - } - } - - - public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters1Boxed permits Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap { - @Nullable Object getData(); - } - - public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(CookieParametersMap data) implements Fakeparametercollisions1ababselfabPostCookieParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class Fakeparametercollisions1ababselfabPostCookieParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Fakeparametercollisions1ababselfabPostCookieParameters1 instance = null; - - protected Fakeparametercollisions1ababselfabPostCookieParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("1", Schema14.Schema141.class), - new PropertyEntry("aB", Schema15.Schema151.class), - new PropertyEntry("Ab", Schema16.Schema161.class), - new PropertyEntry("A-B", Schema18.Schema181.class), - new PropertyEntry("self", Schema17.Schema171.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static Fakeparametercollisions1ababselfabPostCookieParameters1 getInstance() { - if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostCookieParameters1(); - } - return instance; - } - - public CookieParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new CookieParametersMap(castProperties); - } - - public CookieParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public Fakeparametercollisions1ababselfabPostCookieParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java deleted file mode 100644 index ab6e94846b2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java +++ /dev/null @@ -1,258 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter5.Schema5; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter6.Schema6; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter7.Schema7; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter8.Schema8; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Fakeparametercollisions1ababselfabPostHeaderParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { - protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "1", - "aB", - "A-B", - "self" - ); - public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Fakeparametercollisions1ababselfabPostHeaderParameters1.getInstance().validate(arg, configuration); - } - - public String aB() throws UnsetPropertyException { - String key = "aB"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for aB"); - } - return (String) value; - } - - public String self() throws UnsetPropertyException { - String key = "self"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for self"); - } - return (String) value; - } - } - - public interface SetterForSchema1 { - Map getInstance(); - T getBuilderAfterSchema1(Map instance); - - default T positive1(String value) { - var instance = getInstance(); - instance.put("1", value); - return getBuilderAfterSchema1(instance); - } - } - - public interface SetterForAB { - Map getInstance(); - T getBuilderAfterAB(Map instance); - - default T aB(String value) { - var instance = getInstance(); - instance.put("aB", value); - return getBuilderAfterAB(instance); - } - } - - public interface SetterForAB1 { - Map getInstance(); - T getBuilderAfterAB1(Map instance); - - default T aHyphenMinusB(String value) { - var instance = getInstance(); - instance.put("A-B", value); - return getBuilderAfterAB1(instance); - } - } - - public interface SetterForSelf { - Map getInstance(); - T getBuilderAfterSelf(Map instance); - - default T self(String value) { - var instance = getInstance(); - instance.put("self", value); - return getBuilderAfterSelf(instance); - } - } - - public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAB1, SetterForSelf { - private final Map instance; - private static final Set knownKeys = Set.of( - "1", - "aB", - "A-B", - "self" - ); - public Set getKnownKeys() { - return knownKeys; - } - public HeaderParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public HeaderParametersMapBuilder getBuilderAfterSchema1(Map instance) { - return this; - } - public HeaderParametersMapBuilder getBuilderAfterAB(Map instance) { - return this; - } - public HeaderParametersMapBuilder getBuilderAfterAB1(Map instance) { - return this; - } - public HeaderParametersMapBuilder getBuilderAfterSelf(Map instance) { - return this; - } - } - - - public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed permits Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap { - @Nullable Object getData(); - } - - public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(HeaderParametersMap data) implements Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class Fakeparametercollisions1ababselfabPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Fakeparametercollisions1ababselfabPostHeaderParameters1 instance = null; - - protected Fakeparametercollisions1ababselfabPostHeaderParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("1", Schema5.Schema51.class), - new PropertyEntry("aB", Schema6.Schema61.class), - new PropertyEntry("A-B", Schema8.Schema81.class), - new PropertyEntry("self", Schema7.Schema71.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static Fakeparametercollisions1ababselfabPostHeaderParameters1 getInstance() { - if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostHeaderParameters1(); - } - return instance; - } - - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); - } - - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java deleted file mode 100644 index 15c92f81def..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java +++ /dev/null @@ -1,819 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter10.Schema10; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter11.Schema11; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter12.Schema12; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter13.Schema13; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter9.Schema9; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Fakeparametercollisions1ababselfabPostPathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap<@Nullable Object> { - protected PathParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "1", - "A-B", - "Ab", - "aB", - "self" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Fakeparametercollisions1ababselfabPostPathParameters1.getInstance().validate(arg, configuration); - } - - public String Ab() { - @Nullable Object value = get("Ab"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for Ab"); - } - return (String) value; - } - - public String aB() { - @Nullable Object value = get("aB"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for aB"); - } - return (String) value; - } - - public String self() { - @Nullable Object value = get("self"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for self"); - } - return (String) value; - } - } - - public interface SetterForSchema1 { - Map getInstance(); - T getBuilderAfterSchema1(Map instance); - - default T positive1(String value) { - var instance = getInstance(); - instance.put("1", value); - return getBuilderAfterSchema1(instance); - } - } - - public interface SetterForAB1 { - Map getInstance(); - T getBuilderAfterAB1(Map instance); - - default T aHyphenMinusB(String value) { - var instance = getInstance(); - instance.put("A-B", value); - return getBuilderAfterAB1(instance); - } - } - - public interface SetterForAb { - Map getInstance(); - T getBuilderAfterAb(Map instance); - - default T Ab(String value) { - var instance = getInstance(); - instance.put("Ab", value); - return getBuilderAfterAb(instance); - } - } - - public interface SetterForAB { - Map getInstance(); - T getBuilderAfterAB(Map instance); - - default T aB(String value) { - var instance = getInstance(); - instance.put("aB", value); - return getBuilderAfterAB(instance); - } - } - - public interface SetterForSelf { - Map getInstance(); - T getBuilderAfterSelf(Map instance); - - default T self(String value) { - var instance = getInstance(); - instance.put("self", value); - return getBuilderAfterSelf(instance); - } - } - - public static class PathParametersMap00000Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "1", - "A-B", - "Ab", - "aB", - "self" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap00000Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMap00001Builder implements SetterForSelf { - private final Map instance; - public PathParametersMap00001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00000Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap00000Builder(instance); - } - } - - public static class PathParametersMap00010Builder implements SetterForAB { - private final Map instance; - public PathParametersMap00010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00000Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap00000Builder(instance); - } - } - - public static class PathParametersMap00011Builder implements SetterForAB, SetterForSelf { - private final Map instance; - public PathParametersMap00011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00001Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap00001Builder(instance); - } - public PathParametersMap00010Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap00010Builder(instance); - } - } - - public static class PathParametersMap00100Builder implements SetterForAb { - private final Map instance; - public PathParametersMap00100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00000Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap00000Builder(instance); - } - } - - public static class PathParametersMap00101Builder implements SetterForAb, SetterForSelf { - private final Map instance; - public PathParametersMap00101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00001Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap00001Builder(instance); - } - public PathParametersMap00100Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap00100Builder(instance); - } - } - - public static class PathParametersMap00110Builder implements SetterForAb, SetterForAB { - private final Map instance; - public PathParametersMap00110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00010Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap00010Builder(instance); - } - public PathParametersMap00100Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap00100Builder(instance); - } - } - - public static class PathParametersMap00111Builder implements SetterForAb, SetterForAB, SetterForSelf { - private final Map instance; - public PathParametersMap00111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00011Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap00011Builder(instance); - } - public PathParametersMap00101Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap00101Builder(instance); - } - public PathParametersMap00110Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap00110Builder(instance); - } - } - - public static class PathParametersMap01000Builder implements SetterForAB1 { - private final Map instance; - public PathParametersMap01000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00000Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap00000Builder(instance); - } - } - - public static class PathParametersMap01001Builder implements SetterForAB1, SetterForSelf { - private final Map instance; - public PathParametersMap01001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00001Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap00001Builder(instance); - } - public PathParametersMap01000Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap01000Builder(instance); - } - } - - public static class PathParametersMap01010Builder implements SetterForAB1, SetterForAB { - private final Map instance; - public PathParametersMap01010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00010Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap00010Builder(instance); - } - public PathParametersMap01000Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap01000Builder(instance); - } - } - - public static class PathParametersMap01011Builder implements SetterForAB1, SetterForAB, SetterForSelf { - private final Map instance; - public PathParametersMap01011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00011Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap00011Builder(instance); - } - public PathParametersMap01001Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap01001Builder(instance); - } - public PathParametersMap01010Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap01010Builder(instance); - } - } - - public static class PathParametersMap01100Builder implements SetterForAB1, SetterForAb { - private final Map instance; - public PathParametersMap01100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00100Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap00100Builder(instance); - } - public PathParametersMap01000Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap01000Builder(instance); - } - } - - public static class PathParametersMap01101Builder implements SetterForAB1, SetterForAb, SetterForSelf { - private final Map instance; - public PathParametersMap01101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00101Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap00101Builder(instance); - } - public PathParametersMap01001Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap01001Builder(instance); - } - public PathParametersMap01100Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap01100Builder(instance); - } - } - - public static class PathParametersMap01110Builder implements SetterForAB1, SetterForAb, SetterForAB { - private final Map instance; - public PathParametersMap01110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00110Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap00110Builder(instance); - } - public PathParametersMap01010Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap01010Builder(instance); - } - public PathParametersMap01100Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap01100Builder(instance); - } - } - - public static class PathParametersMap01111Builder implements SetterForAB1, SetterForAb, SetterForAB, SetterForSelf { - private final Map instance; - public PathParametersMap01111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00111Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap00111Builder(instance); - } - public PathParametersMap01011Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap01011Builder(instance); - } - public PathParametersMap01101Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap01101Builder(instance); - } - public PathParametersMap01110Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap01110Builder(instance); - } - } - - public static class PathParametersMap10000Builder implements SetterForSchema1 { - private final Map instance; - public PathParametersMap10000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00000Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap00000Builder(instance); - } - } - - public static class PathParametersMap10001Builder implements SetterForSchema1, SetterForSelf { - private final Map instance; - public PathParametersMap10001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00001Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap00001Builder(instance); - } - public PathParametersMap10000Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap10000Builder(instance); - } - } - - public static class PathParametersMap10010Builder implements SetterForSchema1, SetterForAB { - private final Map instance; - public PathParametersMap10010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00010Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap00010Builder(instance); - } - public PathParametersMap10000Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap10000Builder(instance); - } - } - - public static class PathParametersMap10011Builder implements SetterForSchema1, SetterForAB, SetterForSelf { - private final Map instance; - public PathParametersMap10011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00011Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap00011Builder(instance); - } - public PathParametersMap10001Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap10001Builder(instance); - } - public PathParametersMap10010Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap10010Builder(instance); - } - } - - public static class PathParametersMap10100Builder implements SetterForSchema1, SetterForAb { - private final Map instance; - public PathParametersMap10100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00100Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap00100Builder(instance); - } - public PathParametersMap10000Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap10000Builder(instance); - } - } - - public static class PathParametersMap10101Builder implements SetterForSchema1, SetterForAb, SetterForSelf { - private final Map instance; - public PathParametersMap10101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00101Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap00101Builder(instance); - } - public PathParametersMap10001Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap10001Builder(instance); - } - public PathParametersMap10100Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap10100Builder(instance); - } - } - - public static class PathParametersMap10110Builder implements SetterForSchema1, SetterForAb, SetterForAB { - private final Map instance; - public PathParametersMap10110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00110Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap00110Builder(instance); - } - public PathParametersMap10010Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap10010Builder(instance); - } - public PathParametersMap10100Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap10100Builder(instance); - } - } - - public static class PathParametersMap10111Builder implements SetterForSchema1, SetterForAb, SetterForAB, SetterForSelf { - private final Map instance; - public PathParametersMap10111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap00111Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap00111Builder(instance); - } - public PathParametersMap10011Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap10011Builder(instance); - } - public PathParametersMap10101Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap10101Builder(instance); - } - public PathParametersMap10110Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap10110Builder(instance); - } - } - - public static class PathParametersMap11000Builder implements SetterForSchema1, SetterForAB1 { - private final Map instance; - public PathParametersMap11000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap01000Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap01000Builder(instance); - } - public PathParametersMap10000Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap10000Builder(instance); - } - } - - public static class PathParametersMap11001Builder implements SetterForSchema1, SetterForAB1, SetterForSelf { - private final Map instance; - public PathParametersMap11001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap01001Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap01001Builder(instance); - } - public PathParametersMap10001Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap10001Builder(instance); - } - public PathParametersMap11000Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap11000Builder(instance); - } - } - - public static class PathParametersMap11010Builder implements SetterForSchema1, SetterForAB1, SetterForAB { - private final Map instance; - public PathParametersMap11010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap01010Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap01010Builder(instance); - } - public PathParametersMap10010Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap10010Builder(instance); - } - public PathParametersMap11000Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap11000Builder(instance); - } - } - - public static class PathParametersMap11011Builder implements SetterForSchema1, SetterForAB1, SetterForAB, SetterForSelf { - private final Map instance; - public PathParametersMap11011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap01011Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap01011Builder(instance); - } - public PathParametersMap10011Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap10011Builder(instance); - } - public PathParametersMap11001Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap11001Builder(instance); - } - public PathParametersMap11010Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap11010Builder(instance); - } - } - - public static class PathParametersMap11100Builder implements SetterForSchema1, SetterForAB1, SetterForAb { - private final Map instance; - public PathParametersMap11100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap01100Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap01100Builder(instance); - } - public PathParametersMap10100Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap10100Builder(instance); - } - public PathParametersMap11000Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap11000Builder(instance); - } - } - - public static class PathParametersMap11101Builder implements SetterForSchema1, SetterForAB1, SetterForAb, SetterForSelf { - private final Map instance; - public PathParametersMap11101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap01101Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap01101Builder(instance); - } - public PathParametersMap10101Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap10101Builder(instance); - } - public PathParametersMap11001Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap11001Builder(instance); - } - public PathParametersMap11100Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap11100Builder(instance); - } - } - - public static class PathParametersMap11110Builder implements SetterForSchema1, SetterForAB1, SetterForAb, SetterForAB { - private final Map instance; - public PathParametersMap11110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public PathParametersMap01110Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap01110Builder(instance); - } - public PathParametersMap10110Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap10110Builder(instance); - } - public PathParametersMap11010Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap11010Builder(instance); - } - public PathParametersMap11100Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap11100Builder(instance); - } - } - - public static class PathParametersMapBuilder implements SetterForSchema1, SetterForAB1, SetterForAb, SetterForAB, SetterForSelf { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap01111Builder getBuilderAfterSchema1(Map instance) { - return new PathParametersMap01111Builder(instance); - } - public PathParametersMap10111Builder getBuilderAfterAB1(Map instance) { - return new PathParametersMap10111Builder(instance); - } - public PathParametersMap11011Builder getBuilderAfterAb(Map instance) { - return new PathParametersMap11011Builder(instance); - } - public PathParametersMap11101Builder getBuilderAfterAB(Map instance) { - return new PathParametersMap11101Builder(instance); - } - public PathParametersMap11110Builder getBuilderAfterSelf(Map instance) { - return new PathParametersMap11110Builder(instance); - } - } - - - public sealed interface Fakeparametercollisions1ababselfabPostPathParameters1Boxed permits Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(PathParametersMap data) implements Fakeparametercollisions1ababselfabPostPathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class Fakeparametercollisions1ababselfabPostPathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Fakeparametercollisions1ababselfabPostPathParameters1 instance = null; - - protected Fakeparametercollisions1ababselfabPostPathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("1", Schema9.Schema91.class), - new PropertyEntry("aB", Schema10.Schema101.class), - new PropertyEntry("Ab", Schema11.Schema111.class), - new PropertyEntry("A-B", Schema13.Schema131.class), - new PropertyEntry("self", Schema12.Schema121.class) - )) - .required(Set.of( - "1", - "A-B", - "Ab", - "aB", - "self" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static Fakeparametercollisions1ababselfabPostPathParameters1 getInstance() { - if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostPathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public Fakeparametercollisions1ababselfabPostPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java deleted file mode 100644 index 2336817442d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java +++ /dev/null @@ -1,286 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter1.Schema1; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter2.Schema2; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter3.Schema3; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter4.Schema4; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Fakeparametercollisions1ababselfabPostQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "1", - "aB", - "Ab", - "A-B", - "self" - ); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Fakeparametercollisions1ababselfabPostQueryParameters1.getInstance().validate(arg, configuration); - } - - public String aB() throws UnsetPropertyException { - String key = "aB"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for aB"); - } - return (String) value; - } - - public String Ab() throws UnsetPropertyException { - String key = "Ab"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for Ab"); - } - return (String) value; - } - - public String self() throws UnsetPropertyException { - String key = "self"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for self"); - } - return (String) value; - } - } - - public interface SetterForSchema1 { - Map getInstance(); - T getBuilderAfterSchema1(Map instance); - - default T positive1(String value) { - var instance = getInstance(); - instance.put("1", value); - return getBuilderAfterSchema1(instance); - } - } - - public interface SetterForAB { - Map getInstance(); - T getBuilderAfterAB(Map instance); - - default T aB(String value) { - var instance = getInstance(); - instance.put("aB", value); - return getBuilderAfterAB(instance); - } - } - - public interface SetterForAb { - Map getInstance(); - T getBuilderAfterAb(Map instance); - - default T Ab(String value) { - var instance = getInstance(); - instance.put("Ab", value); - return getBuilderAfterAb(instance); - } - } - - public interface SetterForAB1 { - Map getInstance(); - T getBuilderAfterAB1(Map instance); - - default T aHyphenMinusB(String value) { - var instance = getInstance(); - instance.put("A-B", value); - return getBuilderAfterAB1(instance); - } - } - - public interface SetterForSelf { - Map getInstance(); - T getBuilderAfterSelf(Map instance); - - default T self(String value) { - var instance = getInstance(); - instance.put("self", value); - return getBuilderAfterSelf(instance); - } - } - - public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAb, SetterForAB1, SetterForSelf { - private final Map instance; - private static final Set knownKeys = Set.of( - "1", - "aB", - "Ab", - "A-B", - "self" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMapBuilder getBuilderAfterSchema1(Map instance) { - return this; - } - public QueryParametersMapBuilder getBuilderAfterAB(Map instance) { - return this; - } - public QueryParametersMapBuilder getBuilderAfterAb(Map instance) { - return this; - } - public QueryParametersMapBuilder getBuilderAfterAB1(Map instance) { - return this; - } - public QueryParametersMapBuilder getBuilderAfterSelf(Map instance) { - return this; - } - } - - - public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters1Boxed permits Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(QueryParametersMap data) implements Fakeparametercollisions1ababselfabPostQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class Fakeparametercollisions1ababselfabPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Fakeparametercollisions1ababselfabPostQueryParameters1 instance = null; - - protected Fakeparametercollisions1ababselfabPostQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("1", Schema0.Schema01.class), - new PropertyEntry("aB", Schema1.Schema11.class), - new PropertyEntry("Ab", Schema2.Schema21.class), - new PropertyEntry("A-B", Schema4.Schema41.class), - new PropertyEntry("self", Schema3.Schema31.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static Fakeparametercollisions1ababselfabPostQueryParameters1 getInstance() { - if (instance == null) { - instance = new Fakeparametercollisions1ababselfabPostQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public Fakeparametercollisions1ababselfabPostQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java deleted file mode 100644 index e650135340f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class Fakeparametercollisions1ababselfabPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class Fakeparametercollisions1ababselfabPostRequestBody1 extends RequestBodySerializer { - public Fakeparametercollisions1ababselfabPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java deleted file mode 100644 index b5e3bc67446..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; - -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Fakeparametercollisions1ababselfabPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class Fakeparametercollisions1ababselfabPostResponses { - public sealed interface EndpointResponse permits EndpointFakeparametercollisions1ababselfabPostCode200Response {} - - public record EndpointFakeparametercollisions1ababselfabPostCode200Response( - HttpResponse response, - Fakeparametercollisions1ababselfabPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer {} - - public static final class StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer extends Fakeparametercollisions1ababselfabPostCode200Response.Fakeparametercollisions1ababselfabPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class Fakeparametercollisions1ababselfabPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public Fakeparametercollisions1ababselfabPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer castDeserializer = (StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeparametercollisions1ababselfabPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java deleted file mode 100644 index 6b1d6be5242..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java +++ /dev/null @@ -1,86 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; - -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter0; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter1; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter2; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter3; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter4; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter5; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter6; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter7; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter8; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter9; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter10; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter11; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter12; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter13; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter14; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter15; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter16; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter17; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter18; -import org.openapijsonschematools.client.parameter.PathSerializer; -import org.openapijsonschematools.client.parameter.HeadersSerializer; -import org.openapijsonschematools.client.parameter.QuerySerializer; -import org.openapijsonschematools.client.parameter.CookieSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("1", new Parameter9.Parameter91()), - new AbstractMap.SimpleEntry<>("aB", new Parameter10.Parameter101()), - new AbstractMap.SimpleEntry<>("Ab", new Parameter11.Parameter111()), - new AbstractMap.SimpleEntry<>("self", new Parameter12.Parameter121()), - new AbstractMap.SimpleEntry<>("A-B", new Parameter13.Parameter131()) - ) - ); - } - } - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("1", new Parameter0.Parameter01()), - new AbstractMap.SimpleEntry<>("aB", new Parameter1.Parameter11()), - new AbstractMap.SimpleEntry<>("Ab", new Parameter2.Parameter21()), - new AbstractMap.SimpleEntry<>("self", new Parameter3.Parameter31()), - new AbstractMap.SimpleEntry<>("A-B", new Parameter4.Parameter41()) - ) - ); - } - } - - public static class HeaderParametersSerializer extends HeadersSerializer { - public HeaderParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("1", new Parameter5.Parameter51()), - new AbstractMap.SimpleEntry<>("aB", new Parameter6.Parameter61()), - new AbstractMap.SimpleEntry<>("self", new Parameter7.Parameter71()), - new AbstractMap.SimpleEntry<>("A-B", new Parameter8.Parameter81()) - ) - ); - } - } - - public static class CookieParametersSerializer extends CookieSerializer { - public CookieParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("1", new Parameter14.Parameter141()), - new AbstractMap.SimpleEntry<>("aB", new Parameter15.Parameter151()), - new AbstractMap.SimpleEntry<>("Ab", new Parameter16.Parameter161()), - new AbstractMap.SimpleEntry<>("self", new Parameter17.Parameter171()), - new AbstractMap.SimpleEntry<>("A-B", new Parameter18.Parameter181()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java deleted file mode 100644 index a92fdc8a8c2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "1", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java deleted file mode 100644 index f630ae29b8f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter1.Schema1; - -public class Parameter1 { - - public static class Parameter11 extends SchemaParameter { - public Parameter11() { - super( - "aB", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema1.Schema11.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter10.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter10.java deleted file mode 100644 index 0aa44d3eda8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter10.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter10.Schema10; - -public class Parameter10 { - - public static class Parameter101 extends SchemaParameter { - public Parameter101() { - super( - "aB", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema10.Schema101.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter11.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter11.java deleted file mode 100644 index a86856ac32b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter11.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter11.Schema11; - -public class Parameter11 { - - public static class Parameter111 extends SchemaParameter { - public Parameter111() { - super( - "Ab", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema11.Schema111.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter12.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter12.java deleted file mode 100644 index ee76bac70af..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter12.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter12.Schema12; - -public class Parameter12 { - - public static class Parameter121 extends SchemaParameter { - public Parameter121() { - super( - "self", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema12.Schema121.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter13.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter13.java deleted file mode 100644 index de212f1563d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter13.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter13.Schema13; - -public class Parameter13 { - - public static class Parameter131 extends SchemaParameter { - public Parameter131() { - super( - "A-B", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema13.Schema131.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter14.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter14.java deleted file mode 100644 index a29010916ac..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter14.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter14.Schema14; - -public class Parameter14 { - - public static class Parameter141 extends SchemaParameter { - public Parameter141() { - super( - "1", - ParameterInType.COOKIE, - false, - ParameterStyle.FORM, - true, - false, - Schema14.Schema141.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter15.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter15.java deleted file mode 100644 index 54bf5140899..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter15.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter15.Schema15; - -public class Parameter15 { - - public static class Parameter151 extends SchemaParameter { - public Parameter151() { - super( - "aB", - ParameterInType.COOKIE, - false, - ParameterStyle.FORM, - true, - false, - Schema15.Schema151.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter16.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter16.java deleted file mode 100644 index f1b8e71d686..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter16.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter16.Schema16; - -public class Parameter16 { - - public static class Parameter161 extends SchemaParameter { - public Parameter161() { - super( - "Ab", - ParameterInType.COOKIE, - false, - ParameterStyle.FORM, - true, - false, - Schema16.Schema161.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter17.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter17.java deleted file mode 100644 index b856a27eb1e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter17.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter17.Schema17; - -public class Parameter17 { - - public static class Parameter171 extends SchemaParameter { - public Parameter171() { - super( - "self", - ParameterInType.COOKIE, - false, - ParameterStyle.FORM, - true, - false, - Schema17.Schema171.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter18.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter18.java deleted file mode 100644 index b43ebbe5664..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter18.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter18.Schema18; - -public class Parameter18 { - - public static class Parameter181 extends SchemaParameter { - public Parameter181() { - super( - "A-B", - ParameterInType.COOKIE, - false, - ParameterStyle.FORM, - true, - false, - Schema18.Schema181.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter2.java deleted file mode 100644 index bb193d95ba3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter2.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter2.Schema2; - -public class Parameter2 { - - public static class Parameter21 extends SchemaParameter { - public Parameter21() { - super( - "Ab", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema2.Schema21.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter3.java deleted file mode 100644 index b4233c96a02..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter3.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter3.Schema3; - -public class Parameter3 { - - public static class Parameter31 extends SchemaParameter { - public Parameter31() { - super( - "self", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema3.Schema31.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter4.java deleted file mode 100644 index 459cdc6a234..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter4.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter4.Schema4; - -public class Parameter4 { - - public static class Parameter41 extends SchemaParameter { - public Parameter41() { - super( - "A-B", - ParameterInType.QUERY, - false, - ParameterStyle.FORM, - true, - false, - Schema4.Schema41.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter5.java deleted file mode 100644 index a589c0c385b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter5.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter5.Schema5; - -public class Parameter5 { - - public static class Parameter51 extends SchemaParameter { - public Parameter51() { - super( - "1", - ParameterInType.HEADER, - false, - ParameterStyle.SIMPLE, - false, - false, - Schema5.Schema51.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter6.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter6.java deleted file mode 100644 index dafa85cb493..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter6.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter6.Schema6; - -public class Parameter6 { - - public static class Parameter61 extends SchemaParameter { - public Parameter61() { - super( - "aB", - ParameterInType.HEADER, - false, - ParameterStyle.SIMPLE, - false, - false, - Schema6.Schema61.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter7.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter7.java deleted file mode 100644 index 9d5589c95e6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter7.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter7.Schema7; - -public class Parameter7 { - - public static class Parameter71 extends SchemaParameter { - public Parameter71() { - super( - "self", - ParameterInType.HEADER, - false, - ParameterStyle.SIMPLE, - false, - false, - Schema7.Schema71.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter8.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter8.java deleted file mode 100644 index 259cab30459..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter8.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter8.Schema8; - -public class Parameter8 { - - public static class Parameter81 extends SchemaParameter { - public Parameter81() { - super( - "A-B", - ParameterInType.HEADER, - false, - ParameterStyle.SIMPLE, - false, - false, - Schema8.Schema81.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter9.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter9.java deleted file mode 100644 index 450bbdbfc8d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter9.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter9.Schema9; - -public class Parameter9 { - - public static class Parameter91 extends SchemaParameter { - public Parameter91() { - super( - "1", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema9.Schema91.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.java deleted file mode 100644 index 0de8ca499eb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.java deleted file mode 100644 index bc5b4d4e46b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter1; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema1 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema11 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema11 instance = null; - public static Schema11 getInstance() { - if (instance == null) { - instance = new Schema11(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.java deleted file mode 100644 index dbf0ed076f7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter10; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema10 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema101 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema101 instance = null; - public static Schema101 getInstance() { - if (instance == null) { - instance = new Schema101(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.java deleted file mode 100644 index 910dbc61dfd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter11; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema11 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema111 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema111 instance = null; - public static Schema111 getInstance() { - if (instance == null) { - instance = new Schema111(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.java deleted file mode 100644 index fc04e87b2f8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter12; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema12 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema121 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema121 instance = null; - public static Schema121 getInstance() { - if (instance == null) { - instance = new Schema121(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.java deleted file mode 100644 index 22022466c4c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter13; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema13 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema131 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema131 instance = null; - public static Schema131 getInstance() { - if (instance == null) { - instance = new Schema131(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.java deleted file mode 100644 index 3f5d7772daf..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter14; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema14 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema141 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema141 instance = null; - public static Schema141 getInstance() { - if (instance == null) { - instance = new Schema141(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.java deleted file mode 100644 index 3242acd48bc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter15; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema15 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema151 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema151 instance = null; - public static Schema151 getInstance() { - if (instance == null) { - instance = new Schema151(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.java deleted file mode 100644 index 185b383c86b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter16; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema16 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema161 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema161 instance = null; - public static Schema161 getInstance() { - if (instance == null) { - instance = new Schema161(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.java deleted file mode 100644 index 227874f5a09..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter17; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema17 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema171 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema171 instance = null; - public static Schema171 getInstance() { - if (instance == null) { - instance = new Schema171(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.java deleted file mode 100644 index dc0578087e4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter18; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema18 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema181 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema181 instance = null; - public static Schema181 getInstance() { - if (instance == null) { - instance = new Schema181(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.java deleted file mode 100644 index 0b74b673d7d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter2; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema2 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema21 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema21 instance = null; - public static Schema21 getInstance() { - if (instance == null) { - instance = new Schema21(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.java deleted file mode 100644 index 1fc6abc98d8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter3; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema3 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema31 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema31 instance = null; - public static Schema31 getInstance() { - if (instance == null) { - instance = new Schema31(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.java deleted file mode 100644 index d853e72abf0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter4; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema4 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema41 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema41 instance = null; - public static Schema41 getInstance() { - if (instance == null) { - instance = new Schema41(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.java deleted file mode 100644 index 46b9065a054..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter5; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema5 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema51 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema51 instance = null; - public static Schema51 getInstance() { - if (instance == null) { - instance = new Schema51(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.java deleted file mode 100644 index 8d9b2537445..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter6; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema6 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema61 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema61 instance = null; - public static Schema61 getInstance() { - if (instance == null) { - instance = new Schema61(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.java deleted file mode 100644 index dd7706f9c60..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter7; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema7 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema71 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema71 instance = null; - public static Schema71 getInstance() { - if (instance == null) { - instance = new Schema71(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java deleted file mode 100644 index 23df1c2744c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter8; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema8 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema81 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema81 instance = null; - public static Schema81 getInstance() { - if (instance == null) { - instance = new Schema81(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java deleted file mode 100644 index 1b334c178e1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter9; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema9 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema91 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema91 instance = null; - public static Schema91 getInstance() { - if (instance == null) { - instance = new Schema91(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index b67706b3437..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.requestbody.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java deleted file mode 100644 index 372e5b1d702..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class Fakeparametercollisions1ababselfabPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class Fakeparametercollisions1ababselfabPostCode200Response1 extends ResponseDeserializer { - public Fakeparametercollisions1ababselfabPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index bb2a30a2a2e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.code200response.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java deleted file mode 100644 index d4a5f14f53f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepemcontenttype; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakepemcontenttype; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakepemcontenttypeGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakepemcontenttypeGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakepemcontenttypeGetRequestBody.FakepemcontenttypeGetRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakepemcontenttype.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakepemcontenttypeGetResponses.FakepemcontenttypeGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakepemcontenttypeGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface PemContentTypeOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakepemcontenttypeGetResponses.EndpointResponse pemContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public FakepemcontenttypeGetRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - GetRequest getInstance(); - T getBuilderAfterRequestBody(GetRequest instance); - default T requestBody(FakepemcontenttypeGetRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java deleted file mode 100644 index 22cc2a205fa..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepemcontenttype.get; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile.ApplicationxpemfileSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakepemcontenttypeGetRequestBody { - public sealed interface SealedMediaType permits ApplicationxpemfileMediaType {} - - public record ApplicationxpemfileMediaType(ApplicationxpemfileSchema.ApplicationxpemfileSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxpemfileMediaType() { - this(ApplicationxpemfileSchema.ApplicationxpemfileSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakepemcontenttypeGetRequestBody1 extends RequestBodySerializer { - public FakepemcontenttypeGetRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/x-pem-file", new ApplicationxpemfileMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationxpemfileRequestBody requestBody0 = (ApplicationxpemfileRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationxpemfileRequestBody {} - public record ApplicationxpemfileRequestBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/x-pem-file"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java deleted file mode 100644 index e5e32aacfe3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepemcontenttype.get; - -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.FakepemcontenttypeGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakepemcontenttypeGetResponses { - public sealed interface EndpointResponse permits EndpointFakepemcontenttypeGetCode200Response {} - - public record EndpointFakepemcontenttypeGetCode200Response( - HttpResponse response, - FakepemcontenttypeGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakepemcontenttypeGetCode200ResponseDeserializer {} - - public static final class StatusFakepemcontenttypeGetCode200ResponseDeserializer extends FakepemcontenttypeGetCode200Response.FakepemcontenttypeGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakepemcontenttypeGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakepemcontenttypeGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakepemcontenttypeGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakepemcontenttypeGetCode200ResponseDeserializer castDeserializer = (StatusFakepemcontenttypeGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakepemcontenttypeGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java deleted file mode 100644 index 125b14dd81c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class ApplicationxpemfileSchema extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationxpemfileSchema1 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationxpemfileSchema1 instance = null; - public static ApplicationxpemfileSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxpemfileSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java deleted file mode 100644 index b8af4640702..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.code200response.content.applicationxpemfile.ApplicationxpemfileSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakepemcontenttypeGetCode200Response { - public sealed interface SealedMediaType permits ApplicationxpemfileMediaType {} - - public record ApplicationxpemfileMediaType(ApplicationxpemfileSchema.ApplicationxpemfileSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxpemfileMediaType() { - this(ApplicationxpemfileSchema.ApplicationxpemfileSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationxpemfileResponseBody {} - public record ApplicationxpemfileResponseBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakepemcontenttypeGetCode200Response1 extends ResponseDeserializer { - public FakepemcontenttypeGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/x-pem-file", new ApplicationxpemfileMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationxpemfileMediaType thisMediaType = (ApplicationxpemfileMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationxpemfileResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java deleted file mode 100644 index 0d12b96b19a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.code200response.content.applicationxpemfile; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class ApplicationxpemfileSchema extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationxpemfileSchema1 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationxpemfileSchema1 instance = null; - public static ApplicationxpemfileSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxpemfileSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java deleted file mode 100644 index fd6b7ef0c56..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java +++ /dev/null @@ -1,243 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.Parameters; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakepetiduploadimagewithrequiredfile; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakepetiduploadimagewithrequiredfilePost { - private static class PostProvider extends AuthApplier { - private static final String method = "post"; - - public static FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakepetiduploadimagewithrequiredfilePostRequestBody.FakepetiduploadimagewithrequiredfilePostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Fakepetiduploadimagewithrequiredfile.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - updatedPath, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakepetiduploadimagewithrequiredfilePostResponses.FakepetiduploadimagewithrequiredfilePostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface UploadFileWithRequiredFileOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse uploadFileWithRequiredFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters; - public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public PostRequest( - FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters, - FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable PathParametersMap pathParameters; - public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(FakepetiduploadimagewithrequiredfilePostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PostNullableRequest instance); - default T securityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - pathParameters, - instance.requestBody, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForPathParameters { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java deleted file mode 100644 index caf128e85f0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java +++ /dev/null @@ -1,223 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakepetiduploadimagewithrequiredfilePostPathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "petId" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FakepetiduploadimagewithrequiredfilePostPathParameters1.getInstance().validate(arg, configuration); - } - - public Number petId() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForPetId { - Map getInstance(); - T getBuilderAfterPetId(Map instance); - - default T petId(int value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(float value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(long value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(double value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "petId" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForPetId { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed permits FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(PathParametersMap data) implements FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakepetiduploadimagewithrequiredfilePostPathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakepetiduploadimagewithrequiredfilePostPathParameters1 instance = null; - - protected FakepetiduploadimagewithrequiredfilePostPathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("petId", Schema0.Schema01.class) - )) - .required(Set.of( - "petId" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakepetiduploadimagewithrequiredfilePostPathParameters1 getInstance() { - if (instance == null) { - instance = new FakepetiduploadimagewithrequiredfilePostPathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Number)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (Number) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java deleted file mode 100644 index 71854f676ae..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakepetiduploadimagewithrequiredfilePostRequestBody { - public sealed interface SealedMediaType permits MultipartformdataMediaType {} - - public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { - public MultipartformdataMediaType() { - this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakepetiduploadimagewithrequiredfilePostRequestBody1 extends RequestBodySerializer { - public FakepetiduploadimagewithrequiredfilePostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} - public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "multipart/form-data"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java deleted file mode 100644 index 94855836183..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; - -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.FakepetiduploadimagewithrequiredfilePostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakepetiduploadimagewithrequiredfilePostResponses { - public sealed interface EndpointResponse permits EndpointFakepetiduploadimagewithrequiredfilePostCode200Response {} - - public record EndpointFakepetiduploadimagewithrequiredfilePostCode200Response( - HttpResponse response, - FakepetiduploadimagewithrequiredfilePostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer {} - - public static final class StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer extends FakepetiduploadimagewithrequiredfilePostCode200Response.FakepetiduploadimagewithrequiredfilePostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakepetiduploadimagewithrequiredfilePostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakepetiduploadimagewithrequiredfilePostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer castDeserializer = (StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakepetiduploadimagewithrequiredfilePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java deleted file mode 100644 index 8dab76a488c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; - -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.security.FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class FakepetiduploadimagewithrequiredfilePostSecurityInfo { - public static class FakepetiduploadimagewithrequiredfilePostSecurityInfo1 implements SecurityRequirementObjectProvider { - public final FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 security0; - - public FakepetiduploadimagewithrequiredfilePostSecurityInfo1() { - security0 = new FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - return security0; - } - } - - public enum SecurityIndex { - SECURITY_0 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java deleted file mode 100644 index 69a6d736bc6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; - -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("petId", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java deleted file mode 100644 index 58b60c686b2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "petId", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java deleted file mode 100644 index 2c458c3ee9c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.Int64JsonSchema; - -public class Schema0 extends Int64JsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends Int64JsonSchema.Int64JsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java deleted file mode 100644 index e4a05ffe74d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ /dev/null @@ -1,251 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.requestbody.content.multipartformdata; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class MultipartformdataSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class MultipartformdataAdditionalMetadata extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable MultipartformdataAdditionalMetadata instance = null; - public static MultipartformdataAdditionalMetadata getInstance() { - if (instance == null) { - instance = new MultipartformdataAdditionalMetadata(); - } - return instance; - } - } - - - public static class MultipartformdataRequiredFile extends StringJsonSchema.StringJsonSchema1 { - // BinarySchema - private static @Nullable MultipartformdataRequiredFile instance = null; - public static MultipartformdataRequiredFile getInstance() { - if (instance == null) { - instance = new MultipartformdataRequiredFile(); - } - return instance; - } - } - - - public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { - protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "requiredFile" - ); - public static final Set optionalKeys = Set.of( - "additionalMetadata" - ); - public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return MultipartformdataSchema1.getInstance().validate(arg, configuration); - } - - public String requiredFile() { - @Nullable Object value = get("requiredFile"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for requiredFile"); - } - return (String) value; - } - - public String additionalMetadata() throws UnsetPropertyException { - String key = "additionalMetadata"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for additionalMetadata"); - } - return (String) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForMultipartformdataRequiredFile { - Map getInstance(); - T getBuilderAfterMultipartformdataRequiredFile(Map instance); - - default T requiredFile(String value) { - var instance = getInstance(); - instance.put("requiredFile", value); - return getBuilderAfterMultipartformdataRequiredFile(instance); - } - } - - public interface SetterForMultipartformdataAdditionalMetadata { - Map getInstance(); - T getBuilderAfterMultipartformdataAdditionalMetadata(Map instance); - - default T additionalMetadata(String value) { - var instance = getInstance(); - instance.put("additionalMetadata", value); - return getBuilderAfterMultipartformdataAdditionalMetadata(instance); - } - } - - public static class MultipartformdataSchemaMap0Builder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataAdditionalMetadata { - private final Map instance; - private static final Set knownKeys = Set.of( - "requiredFile", - "additionalMetadata" - ); - public Set getKnownKeys() { - return knownKeys; - } - public MultipartformdataSchemaMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataAdditionalMetadata(Map instance) { - return this; - } - public MultipartformdataSchemaMap0Builder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - public static class MultipartformdataSchemaMapBuilder implements SetterForMultipartformdataRequiredFile { - private final Map instance; - public MultipartformdataSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataRequiredFile(Map instance) { - return new MultipartformdataSchemaMap0Builder(instance); - } - } - - - public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - @Nullable Object getData(); - } - - public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable MultipartformdataSchema1 instance = null; - - protected MultipartformdataSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("additionalMetadata", MultipartformdataAdditionalMetadata.class), - new PropertyEntry("requiredFile", MultipartformdataRequiredFile.class) - )) - .required(Set.of( - "requiredFile" - )) - ); - } - - public static MultipartformdataSchema1 getInstance() { - if (instance == null) { - instance = new MultipartformdataSchema1(); - } - return instance; - } - - public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new MultipartformdataSchemaMap(castProperties); - } - - public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java deleted file mode 100644 index 6cd3b657919..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakepetiduploadimagewithrequiredfilePostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - - public static class FakepetiduploadimagewithrequiredfilePostCode200Response1 extends ResponseDeserializer { - public FakepetiduploadimagewithrequiredfilePostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 42e57377e16..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.ApiResponseSchema; - -public class ApplicationjsonSchema extends ApiResponseSchema { - // $refed class - - - public static class ApplicationjsonSchema1 extends ApiResponseSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java deleted file mode 100644 index d1c684c5779..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 extends SecurityRequirementObject { - - public FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - PetstoreAuth.class, - List.of("write:pets", "read:pets") - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java deleted file mode 100644 index 8bdb49fe044..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java +++ /dev/null @@ -1,180 +0,0 @@ -package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.Parameters; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakequeryparamwithjsoncontenttype; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakequeryparamwithjsoncontenttypeGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakequeryparamwithjsoncontenttype.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakequeryparamwithjsoncontenttypeGetResponses.FakequeryparamwithjsoncontenttypeGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface QueryParamWithJsonContentTypeOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse queryParamWithJsonContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public GetRequest( - FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.queryParameters = queryParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class GetNullableRequest { - public FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForQueryParameters { - GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetNullableRequest instance; - - public Get0RequestBuilder(GetNullableRequest instance) { - this.instance = instance; - } - - public GetRequest build() { - var queryParameters = instance.queryParameters; - if (queryParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new GetRequest( - queryParameters, - instance.serverIndex, - instance.timeout - ); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { - return this; - } - } - public static class GetRequestBuilder implements SetterForQueryParameters { - private final GetNullableRequest instance; - - public GetRequestBuilder() { - this.instance = new GetNullableRequest(); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { - return new Get0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java deleted file mode 100644 index e9336753ff1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java +++ /dev/null @@ -1,253 +0,0 @@ -package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.parameters.parameter0.content.applicationjson.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakequeryparamwithjsoncontenttypeGetQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "someParam" - ); - public static final Set optionalKeys = Set.of(); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FakequeryparamwithjsoncontenttypeGetQueryParameters1.getInstance().validate(arg, configuration); - } - - public @Nullable Object someParam() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForSomeParam { - Map getInstance(); - T getBuilderAfterSomeParam(Map instance); - - default T someParam(Void value) { - var instance = getInstance(); - instance.put("someParam", null); - return getBuilderAfterSomeParam(instance); - } - - default T someParam(boolean value) { - var instance = getInstance(); - instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); - } - - default T someParam(String value) { - var instance = getInstance(); - instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); - } - - default T someParam(int value) { - var instance = getInstance(); - instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); - } - - default T someParam(float value) { - var instance = getInstance(); - instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); - } - - default T someParam(long value) { - var instance = getInstance(); - instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); - } - - default T someParam(double value) { - var instance = getInstance(); - instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); - } - - default T someParam(List value) { - var instance = getInstance(); - instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); - } - - default T someParam(Map value) { - var instance = getInstance(); - instance.put("someParam", value); - return getBuilderAfterSomeParam(instance); - } - } - - public static class QueryParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "someParam" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class QueryParametersMapBuilder implements SetterForSomeParam { - private final Map instance; - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public QueryParametersMap0Builder getBuilderAfterSomeParam(Map instance) { - return new QueryParametersMap0Builder(instance); - } - } - - - public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed permits FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakequeryparamwithjsoncontenttypeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters1 instance = null; - - protected FakequeryparamwithjsoncontenttypeGetQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("someParam", Schema0.Schema01.class) - )) - .required(Set.of( - "someParam" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakequeryparamwithjsoncontenttypeGetQueryParameters1 getInstance() { - if (instance == null) { - instance = new FakequeryparamwithjsoncontenttypeGetQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Object)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (@Nullable Object) propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java deleted file mode 100644 index ad96c808b19..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get; - -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.FakequeryparamwithjsoncontenttypeGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakequeryparamwithjsoncontenttypeGetResponses { - public sealed interface EndpointResponse permits EndpointFakequeryparamwithjsoncontenttypeGetCode200Response {} - - public record EndpointFakequeryparamwithjsoncontenttypeGetCode200Response( - HttpResponse response, - FakequeryparamwithjsoncontenttypeGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer {} - - public static final class StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer extends FakequeryparamwithjsoncontenttypeGetCode200Response.FakequeryparamwithjsoncontenttypeGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakequeryparamwithjsoncontenttypeGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakequeryparamwithjsoncontenttypeGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer castDeserializer = (StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakequeryparamwithjsoncontenttypeGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java deleted file mode 100644 index 713b9540cea..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get; - -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("someParam", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java deleted file mode 100644 index ac6cbea3c13..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.ContentParameter; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.parameters.parameter0.content.applicationjson.Schema0; - -import java.util.AbstractMap; - -public class Parameter0 { - - public record ApplicationjsonMediaType(Schema0.Schema01 schema) implements MediaType { - public ApplicationjsonMediaType() { - this(Schema0.Schema01.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class Parameter01 extends ContentParameter { - public Parameter01() { - super( - "someParam", - ParameterInType.QUERY, - true, - null, - null, - false, - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java deleted file mode 100644 index 98f404bf94b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.parameters.parameter0.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class Schema0 extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java deleted file mode 100644 index c7368eb4fc1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakequeryparamwithjsoncontenttypeGetCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakequeryparamwithjsoncontenttypeGetCode200Response1 extends ResponseDeserializer { - public FakequeryparamwithjsoncontenttypeGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index b9b66780181..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.code200response.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java deleted file mode 100644 index be844b32e00..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeredirection; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakeredirection; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeredirectionGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakeredirectionGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakeredirection.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeredirectionGetResponses.FakeredirectionGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeredirectionGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface RedirectionOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeredirectionGetResponses.EndpointResponse redirection(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java deleted file mode 100644 index 6928c6ba66e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java +++ /dev/null @@ -1,79 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeredirection.get; - -import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode303Response; -import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode3XXResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeredirectionGetResponses { - public sealed interface EndpointResponse permits EndpointFakeredirectionGetCode3XXResponse, EndpointFakeredirectionGetCode303Response {} - - public record EndpointFakeredirectionGetCode3XXResponse( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public record EndpointFakeredirectionGetCode303Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeredirectionGetCode303ResponseDeserializer {} - - public static final class StatusFakeredirectionGetCode303ResponseDeserializer extends FakeredirectionGetCode303Response.FakeredirectionGetCode303Response1 implements StatusCodeResponseDeserializer { - } - public sealed interface WildcardCodeResponseDeserializer permits WildcardFakeredirectionGetCode3XXResponseDeserializer {} - - public static final class WildcardFakeredirectionGetCode3XXResponseDeserializer extends FakeredirectionGetCode3XXResponse.FakeredirectionGetCode3XXResponse1 implements WildcardCodeResponseDeserializer { - } - - public static final class FakeredirectionGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - private final Map wildcardCodeToResponseDeserializer; - public FakeredirectionGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("303", new StatusFakeredirectionGetCode303ResponseDeserializer()) - ); - this.wildcardCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("3", new WildcardFakeredirectionGetCode3XXResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer != null) { - StatusFakeredirectionGetCode303ResponseDeserializer castDeserializer = (StatusFakeredirectionGetCode303ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeredirectionGetCode303Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - @Nullable WildcardCodeResponseDeserializer wildcardCodeDeserializer = wildcardCodeToResponseDeserializer.get(statusCode); - if (wildcardCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - WildcardFakeredirectionGetCode3XXResponseDeserializer castDeserializer = (WildcardFakeredirectionGetCode3XXResponseDeserializer) wildcardCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new FakeredirectionGetCode3XXResponse.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java deleted file mode 100644 index 8feee1d93ad..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeredirection.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakeredirectionGetCode303Response { - - public static class FakeredirectionGetCode303Response1 extends ResponseDeserializer { - public FakeredirectionGetCode303Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java deleted file mode 100644 index c2e9f302411..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeredirection.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakeredirectionGetCode3XXResponse { - - public static class FakeredirectionGetCode3XXResponse1 extends ResponseDeserializer { - public FakeredirectionGetCode3XXResponse1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java deleted file mode 100644 index bfeb63f2c6e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java +++ /dev/null @@ -1,148 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefobjinquery; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Parameters; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakerefobjinquery; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakerefobjinqueryGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakerefobjinqueryGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = null; - if (request.queryParameters != null) { - queryMap = querySerializer.getQueryMap(request.queryParameters); - } - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakerefobjinquery.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakerefobjinqueryGetResponses.FakerefobjinqueryGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefobjinqueryGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface RefObjectInQueryOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefobjinqueryGetResponses.EndpointResponse refObjectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public FakerefobjinqueryGetQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForQueryParameters { - GetRequest getInstance(); - T getBuilderAfterQueryParameters(GetRequest instance); - default T queryParameters(FakerefobjinqueryGetQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java deleted file mode 100644 index 8fd0df37aa2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java +++ /dev/null @@ -1,191 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefobjinquery.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Foo; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FakerefobjinqueryGetQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "mapBean" - ); - public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { - return FakerefobjinqueryGetQueryParameters1.getInstance().validate(arg, configuration); - } - - public Foo.FooMap mapBean() throws UnsetPropertyException { - return getOrThrow("mapBean"); - } - } - - public interface SetterForMapBean { - Map> getInstance(); - T getBuilderAfterMapBean(Map> instance); - - default T mapBean(Map value) { - var instance = getInstance(); - instance.put("mapBean", value); - return getBuilderAfterMapBean(instance); - } - } - - public static class QueryParametersMapBuilder implements GenericBuilder>>, SetterForMapBean { - private final Map> instance; - private static final Set knownKeys = Set.of( - "mapBean" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map> build() { - return instance; - } - public Map> getInstance() { - return instance; - } - public QueryParametersMapBuilder getBuilderAfterMapBean(Map> instance) { - return this; - } - } - - - public sealed interface FakerefobjinqueryGetQueryParameters1Boxed permits FakerefobjinqueryGetQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FakerefobjinqueryGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakerefobjinqueryGetQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FakerefobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FakerefobjinqueryGetQueryParameters1 instance = null; - - protected FakerefobjinqueryGetQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("mapBean", Foo.Foo1.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FakerefobjinqueryGetQueryParameters1 getInstance() { - if (instance == null) { - instance = new FakerefobjinqueryGetQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Foo.FooMap)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (Foo.FooMap) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FakerefobjinqueryGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FakerefobjinqueryGetQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FakerefobjinqueryGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java deleted file mode 100644 index 18a07a581a2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefobjinquery.get; - -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.FakerefobjinqueryGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakerefobjinqueryGetResponses { - public sealed interface EndpointResponse permits EndpointFakerefobjinqueryGetCode200Response {} - - public record EndpointFakerefobjinqueryGetCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakerefobjinqueryGetCode200ResponseDeserializer {} - - public static final class StatusFakerefobjinqueryGetCode200ResponseDeserializer extends FakerefobjinqueryGetCode200Response.FakerefobjinqueryGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakerefobjinqueryGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakerefobjinqueryGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakerefobjinqueryGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakerefobjinqueryGetCode200ResponseDeserializer castDeserializer = (StatusFakerefobjinqueryGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakerefobjinqueryGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java deleted file mode 100644 index c237004cd7e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefobjinquery.get; - -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("mapBean", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java deleted file mode 100644 index f1b8a6d8720..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefobjinquery.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.fakerefobjinquery.get.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "mapBean", - ParameterInType.QUERY, - false, - ParameterStyle.DEEP_OBJECT, - true, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java deleted file mode 100644 index 55405e37a30..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefobjinquery.get.parameters.parameter0; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Foo; - -public class Schema0 extends Foo { - // $refed class - - - public static class Schema01 extends Foo1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.java deleted file mode 100644 index 7ae25fb0e12..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FakerefobjinqueryGetCode200Response extends SuccessDescriptionOnly { - public static class FakerefobjinqueryGetCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java deleted file mode 100644 index 115a7d981c6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarraymodel; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakerefsarraymodel; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakerefsarraymodelPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakerefsarraymodelPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakerefsarraymodelPostRequestBody.FakerefsarraymodelPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakerefsarraymodel.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakerefsarraymodelPostResponses.FakerefsarraymodelPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsarraymodelPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ArrayModelOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsarraymodelPostResponses.EndpointResponse arrayModel(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakerefsarraymodelPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakerefsarraymodelPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java deleted file mode 100644 index 72d5f72c966..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarraymodel.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakerefsarraymodelPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakerefsarraymodelPostRequestBody1 extends RequestBodySerializer { - public FakerefsarraymodelPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.AnimalFarm1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java deleted file mode 100644 index 563a821044a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarraymodel.post; - -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.FakerefsarraymodelPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakerefsarraymodelPostResponses { - public sealed interface EndpointResponse permits EndpointFakerefsarraymodelPostCode200Response {} - - public record EndpointFakerefsarraymodelPostCode200Response( - HttpResponse response, - FakerefsarraymodelPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsarraymodelPostCode200ResponseDeserializer {} - - public static final class StatusFakerefsarraymodelPostCode200ResponseDeserializer extends FakerefsarraymodelPostCode200Response.FakerefsarraymodelPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakerefsarraymodelPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakerefsarraymodelPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakerefsarraymodelPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakerefsarraymodelPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsarraymodelPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakerefsarraymodelPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 702bfe3e25a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarraymodel.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.AnimalFarm; - -public class ApplicationjsonSchema extends AnimalFarm { - // $refed class - - - public static class ApplicationjsonSchema1 extends AnimalFarm1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java deleted file mode 100644 index 292fe11781b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakerefsarraymodelPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnimalFarm1Boxed body) implements SealedResponseBody { } - - public static class FakerefsarraymodelPostCode200Response1 extends ResponseDeserializer { - public FakerefsarraymodelPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 3183986a750..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.AnimalFarm; - -public class ApplicationjsonSchema extends AnimalFarm { - // $refed class - - - public static class ApplicationjsonSchema1 extends AnimalFarm1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java deleted file mode 100644 index 1b9ab4bb775..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarrayofenums; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakerefsarrayofenums; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakerefsarrayofenumsPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakerefsarrayofenumsPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakerefsarrayofenumsPostRequestBody.FakerefsarrayofenumsPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakerefsarrayofenums.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakerefsarrayofenumsPostResponses.FakerefsarrayofenumsPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsarrayofenumsPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ArrayOfEnumsOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsarrayofenumsPostResponses.EndpointResponse arrayOfEnums(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakerefsarrayofenumsPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakerefsarrayofenumsPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java deleted file mode 100644 index cfffc2f44ea..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakerefsarrayofenumsPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakerefsarrayofenumsPostRequestBody1 extends RequestBodySerializer { - public FakerefsarrayofenumsPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.ArrayOfEnums1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java deleted file mode 100644 index 5fa02b7fa60..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post; - -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.FakerefsarrayofenumsPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakerefsarrayofenumsPostResponses { - public sealed interface EndpointResponse permits EndpointFakerefsarrayofenumsPostCode200Response {} - - public record EndpointFakerefsarrayofenumsPostCode200Response( - HttpResponse response, - FakerefsarrayofenumsPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsarrayofenumsPostCode200ResponseDeserializer {} - - public static final class StatusFakerefsarrayofenumsPostCode200ResponseDeserializer extends FakerefsarrayofenumsPostCode200Response.FakerefsarrayofenumsPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakerefsarrayofenumsPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakerefsarrayofenumsPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakerefsarrayofenumsPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakerefsarrayofenumsPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsarrayofenumsPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakerefsarrayofenumsPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 460518d6f87..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; - -public class ApplicationjsonSchema extends ArrayOfEnums { - // $refed class - - - public static class ApplicationjsonSchema1 extends ArrayOfEnums1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java deleted file mode 100644 index 5f83f4d05d1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakerefsarrayofenumsPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.ArrayOfEnums1Boxed body) implements SealedResponseBody { } - - public static class FakerefsarrayofenumsPostCode200Response1 extends ResponseDeserializer { - public FakerefsarrayofenumsPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index aae5071d1b6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; - -public class ApplicationjsonSchema extends ArrayOfEnums { - // $refed class - - - public static class ApplicationjsonSchema1 extends ArrayOfEnums1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java deleted file mode 100644 index 719f860f72e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsboolean; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakerefsboolean; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakerefsbooleanPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakerefsbooleanPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakerefsbooleanPostRequestBody.FakerefsbooleanPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakerefsboolean.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakerefsbooleanPostResponses.FakerefsbooleanPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsbooleanPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ModelBooleanOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsbooleanPostResponses.EndpointResponse modelBoolean(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakerefsbooleanPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakerefsbooleanPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java deleted file mode 100644 index 0c80563da89..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsboolean.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakerefsbooleanPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakerefsbooleanPostRequestBody1 extends RequestBodySerializer { - public FakerefsbooleanPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java deleted file mode 100644 index ad09fb08b97..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsboolean.post; - -import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.FakerefsbooleanPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakerefsbooleanPostResponses { - public sealed interface EndpointResponse permits EndpointFakerefsbooleanPostCode200Response {} - - public record EndpointFakerefsbooleanPostCode200Response( - HttpResponse response, - FakerefsbooleanPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsbooleanPostCode200ResponseDeserializer {} - - public static final class StatusFakerefsbooleanPostCode200ResponseDeserializer extends FakerefsbooleanPostCode200Response.FakerefsbooleanPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakerefsbooleanPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakerefsbooleanPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakerefsbooleanPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakerefsbooleanPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsbooleanPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakerefsbooleanPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 6c465dba460..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsboolean.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.BooleanSchema; - -public class ApplicationjsonSchema extends BooleanSchema { - // $refed class - - - public static class ApplicationjsonSchema1 extends BooleanSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java deleted file mode 100644 index 8018c18af9e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsboolean.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakerefsbooleanPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakerefsbooleanPostCode200Response1 extends ResponseDeserializer { - public FakerefsbooleanPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 064050b09bf..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.BooleanSchema; - -public class ApplicationjsonSchema extends BooleanSchema { - // $refed class - - - public static class ApplicationjsonSchema1 extends BooleanSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java deleted file mode 100644 index 9a482a51166..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakerefscomposedoneofnumberwithvalidations; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakerefscomposedoneofnumberwithvalidationsPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakerefscomposedoneofnumberwithvalidationsPostRequestBody.FakerefscomposedoneofnumberwithvalidationsPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakerefscomposedoneofnumberwithvalidations.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakerefscomposedoneofnumberwithvalidationsPostResponses.FakerefscomposedoneofnumberwithvalidationsPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ComposedOneOfDifferentTypesOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse composedOneOfDifferentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakerefscomposedoneofnumberwithvalidationsPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java deleted file mode 100644 index 139bc7735cd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakerefscomposedoneofnumberwithvalidationsPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakerefscomposedoneofnumberwithvalidationsPostRequestBody1 extends RequestBodySerializer { - public FakerefscomposedoneofnumberwithvalidationsPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java deleted file mode 100644 index 3e86f10d166..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post; - -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.FakerefscomposedoneofnumberwithvalidationsPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakerefscomposedoneofnumberwithvalidationsPostResponses { - public sealed interface EndpointResponse permits EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response {} - - public record EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response( - HttpResponse response, - FakerefscomposedoneofnumberwithvalidationsPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer {} - - public static final class StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer extends FakerefscomposedoneofnumberwithvalidationsPostCode200Response.FakerefscomposedoneofnumberwithvalidationsPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakerefscomposedoneofnumberwithvalidationsPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakerefscomposedoneofnumberwithvalidationsPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer castDeserializer = (StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 312ee20f0d4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; - -public class ApplicationjsonSchema extends ComposedOneOfDifferentTypes { - // $refed class - - - public static class ApplicationjsonSchema1 extends ComposedOneOfDifferentTypes1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java deleted file mode 100644 index f5b17537155..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakerefscomposedoneofnumberwithvalidationsPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body) implements SealedResponseBody { } - - public static class FakerefscomposedoneofnumberwithvalidationsPostCode200Response1 extends ResponseDeserializer { - public FakerefscomposedoneofnumberwithvalidationsPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 075b7ade4dd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; - -public class ApplicationjsonSchema extends ComposedOneOfDifferentTypes { - // $refed class - - - public static class ApplicationjsonSchema1 extends ComposedOneOfDifferentTypes1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java deleted file mode 100644 index 69c169083fa..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsenum; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakerefsenum; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakerefsenumPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakerefsenumPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakerefsenumPostRequestBody.FakerefsenumPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakerefsenum.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakerefsenumPostResponses.FakerefsenumPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsenumPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface StringEnumOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsenumPostResponses.EndpointResponse stringEnum(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakerefsenumPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakerefsenumPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java deleted file mode 100644 index 7e12689b711..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsenum.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsenum.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakerefsenumPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakerefsenumPostRequestBody1 extends RequestBodySerializer { - public FakerefsenumPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.StringEnum1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java deleted file mode 100644 index ca9be127a78..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsenum.post; - -import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.FakerefsenumPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakerefsenumPostResponses { - public sealed interface EndpointResponse permits EndpointFakerefsenumPostCode200Response {} - - public record EndpointFakerefsenumPostCode200Response( - HttpResponse response, - FakerefsenumPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsenumPostCode200ResponseDeserializer {} - - public static final class StatusFakerefsenumPostCode200ResponseDeserializer extends FakerefsenumPostCode200Response.FakerefsenumPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakerefsenumPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakerefsenumPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakerefsenumPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakerefsenumPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsenumPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakerefsenumPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 556d7c6a72f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsenum.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.StringEnum; - -public class ApplicationjsonSchema extends StringEnum { - // $refed class - - - public static class ApplicationjsonSchema1 extends StringEnum1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java deleted file mode 100644 index c250f33f370..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsenum.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakerefsenumPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringEnum1Boxed body) implements SealedResponseBody { } - - public static class FakerefsenumPostCode200Response1 extends ResponseDeserializer { - public FakerefsenumPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index f32e80d609f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsenum.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.StringEnum; - -public class ApplicationjsonSchema extends StringEnum { - // $refed class - - - public static class ApplicationjsonSchema1 extends StringEnum1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java deleted file mode 100644 index 9a9f74a49af..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsmammal; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakerefsmammal; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakerefsmammalPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakerefsmammalPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new FakerefsmammalPostRequestBody.FakerefsmammalPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakerefsmammal.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakerefsmammalPostResponses.FakerefsmammalPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsmammalPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface MammalOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsmammalPostResponses.EndpointResponse mammal(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakerefsmammalPostRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PostRequest( - FakerefsmammalPostRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public FakerefsmammalPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(FakerefsmammalPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - requestBody, - instance.serverIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java deleted file mode 100644 index 748ec657df0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsmammal.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakerefsmammalPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakerefsmammalPostRequestBody1 extends RequestBodySerializer { - public FakerefsmammalPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - true - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.Mammal1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java deleted file mode 100644 index 57581467ece..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsmammal.post; - -import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.FakerefsmammalPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakerefsmammalPostResponses { - public sealed interface EndpointResponse permits EndpointFakerefsmammalPostCode200Response {} - - public record EndpointFakerefsmammalPostCode200Response( - HttpResponse response, - FakerefsmammalPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsmammalPostCode200ResponseDeserializer {} - - public static final class StatusFakerefsmammalPostCode200ResponseDeserializer extends FakerefsmammalPostCode200Response.FakerefsmammalPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakerefsmammalPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakerefsmammalPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakerefsmammalPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakerefsmammalPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsmammalPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakerefsmammalPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index a85a80fb124..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsmammal.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Mammal; - -public class ApplicationjsonSchema extends Mammal { - // $refed class - - - public static class ApplicationjsonSchema1 extends Mammal1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java deleted file mode 100644 index 7818cef0191..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsmammal.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakerefsmammalPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.Mammal1Boxed body) implements SealedResponseBody { } - - public static class FakerefsmammalPostCode200Response1 extends ResponseDeserializer { - public FakerefsmammalPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 89dac1bf71a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Mammal; - -public class ApplicationjsonSchema extends Mammal { - // $refed class - - - public static class ApplicationjsonSchema1 extends Mammal1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java deleted file mode 100644 index cdbad98d3d5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsnumber; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakerefsnumber; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakerefsnumberPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakerefsnumberPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakerefsnumberPostRequestBody.FakerefsnumberPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakerefsnumber.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakerefsnumberPostResponses.FakerefsnumberPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsnumberPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface NumberWithValidationsOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsnumberPostResponses.EndpointResponse numberWithValidations(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakerefsnumberPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakerefsnumberPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java deleted file mode 100644 index 0c76fd2b996..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsnumber.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakerefsnumberPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakerefsnumberPostRequestBody1 extends RequestBodySerializer { - public FakerefsnumberPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.NumberWithValidations1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java deleted file mode 100644 index b8ca69723bb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsnumber.post; - -import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.FakerefsnumberPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakerefsnumberPostResponses { - public sealed interface EndpointResponse permits EndpointFakerefsnumberPostCode200Response {} - - public record EndpointFakerefsnumberPostCode200Response( - HttpResponse response, - FakerefsnumberPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsnumberPostCode200ResponseDeserializer {} - - public static final class StatusFakerefsnumberPostCode200ResponseDeserializer extends FakerefsnumberPostCode200Response.FakerefsnumberPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakerefsnumberPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakerefsnumberPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakerefsnumberPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakerefsnumberPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsnumberPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakerefsnumberPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 0444065de0f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsnumber.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.NumberWithValidations; - -public class ApplicationjsonSchema extends NumberWithValidations { - // $refed class - - - public static class ApplicationjsonSchema1 extends NumberWithValidations1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java deleted file mode 100644 index 0a439671493..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsnumber.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakerefsnumberPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.NumberWithValidations1Boxed body) implements SealedResponseBody { } - - public static class FakerefsnumberPostCode200Response1 extends ResponseDeserializer { - public FakerefsnumberPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 735f78f40f2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.NumberWithValidations; - -public class ApplicationjsonSchema extends NumberWithValidations { - // $refed class - - - public static class ApplicationjsonSchema1 extends NumberWithValidations1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java deleted file mode 100644 index e617d8ca04a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakerefsobjectmodelwithrefprops; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakerefsobjectmodelwithrefpropsPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakerefsobjectmodelwithrefpropsPostRequestBody.FakerefsobjectmodelwithrefpropsPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakerefsobjectmodelwithrefprops.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakerefsobjectmodelwithrefpropsPostResponses.FakerefsobjectmodelwithrefpropsPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ObjectModelWithRefPropsOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse objectModelWithRefProps(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakerefsobjectmodelwithrefpropsPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakerefsobjectmodelwithrefpropsPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java deleted file mode 100644 index 912abd1b019..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakerefsobjectmodelwithrefpropsPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakerefsobjectmodelwithrefpropsPostRequestBody1 extends RequestBodySerializer { - public FakerefsobjectmodelwithrefpropsPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java deleted file mode 100644 index 002b379bf62..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post; - -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.FakerefsobjectmodelwithrefpropsPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakerefsobjectmodelwithrefpropsPostResponses { - public sealed interface EndpointResponse permits EndpointFakerefsobjectmodelwithrefpropsPostCode200Response {} - - public record EndpointFakerefsobjectmodelwithrefpropsPostCode200Response( - HttpResponse response, - FakerefsobjectmodelwithrefpropsPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer {} - - public static final class StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer extends FakerefsobjectmodelwithrefpropsPostCode200Response.FakerefsobjectmodelwithrefpropsPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakerefsobjectmodelwithrefpropsPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakerefsobjectmodelwithrefpropsPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakerefsobjectmodelwithrefpropsPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 1e9e2b7db85..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; - -public class ApplicationjsonSchema extends ObjectModelWithRefProps { - // $refed class - - - public static class ApplicationjsonSchema1 extends ObjectModelWithRefProps1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java deleted file mode 100644 index 5a7bacf97cc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakerefsobjectmodelwithrefpropsPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body) implements SealedResponseBody { } - - public static class FakerefsobjectmodelwithrefpropsPostCode200Response1 extends ResponseDeserializer { - public FakerefsobjectmodelwithrefpropsPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index ae20e625adc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; - -public class ApplicationjsonSchema extends ObjectModelWithRefProps { - // $refed class - - - public static class ApplicationjsonSchema1 extends ObjectModelWithRefProps1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java deleted file mode 100644 index b24fb96e4c3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsstring; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakerefsstring; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakerefsstringPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakerefsstringPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakerefsstringPostRequestBody.FakerefsstringPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakerefsstring.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakerefsstringPostResponses.FakerefsstringPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsstringPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ModelStringOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakerefsstringPostResponses.EndpointResponse modelString(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakerefsstringPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakerefsstringPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java deleted file mode 100644 index a762a5c66ac..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsstring.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsstring.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakerefsstringPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakerefsstringPostRequestBody1 extends RequestBodySerializer { - public FakerefsstringPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java deleted file mode 100644 index 3617898cf51..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsstring.post; - -import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.FakerefsstringPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakerefsstringPostResponses { - public sealed interface EndpointResponse permits EndpointFakerefsstringPostCode200Response {} - - public record EndpointFakerefsstringPostCode200Response( - HttpResponse response, - FakerefsstringPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsstringPostCode200ResponseDeserializer {} - - public static final class StatusFakerefsstringPostCode200ResponseDeserializer extends FakerefsstringPostCode200Response.FakerefsstringPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakerefsstringPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakerefsstringPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakerefsstringPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakerefsstringPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsstringPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakerefsstringPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 7ebeea7dcd3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsstring.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.StringSchema; - -public class ApplicationjsonSchema extends StringSchema { - // $refed class - - - public static class ApplicationjsonSchema1 extends StringSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java deleted file mode 100644 index 52adfde1ffc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsstring.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakerefsstringPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakerefsstringPostCode200Response1 extends ResponseDeserializer { - public FakerefsstringPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 9f140dc31c3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakerefsstring.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.StringSchema; - -public class ApplicationjsonSchema extends StringSchema { - // $refed class - - - public static class ApplicationjsonSchema1 extends StringSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java deleted file mode 100644 index 5669cc0b4f0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeresponsewithoutschema; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakeresponsewithoutschema; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeresponsewithoutschemaGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakeresponsewithoutschemaGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakeresponsewithoutschema.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeresponsewithoutschemaGetResponses.FakeresponsewithoutschemaGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeresponsewithoutschemaGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface ResponseWithoutSchemaOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeresponsewithoutschemaGetResponses.EndpointResponse responseWithoutSchema(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java deleted file mode 100644 index 061491da53c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get; - -import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.FakeresponsewithoutschemaGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeresponsewithoutschemaGetResponses { - public sealed interface EndpointResponse permits EndpointFakeresponsewithoutschemaGetCode200Response {} - - public record EndpointFakeresponsewithoutschemaGetCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer {} - - public static final class StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer extends FakeresponsewithoutschemaGetCode200Response.FakeresponsewithoutschemaGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeresponsewithoutschemaGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeresponsewithoutschemaGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer castDeserializer = (StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeresponsewithoutschemaGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java deleted file mode 100644 index a190bfa972c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakeresponsewithoutschemaGetCode200Response { - - public static class FakeresponsewithoutschemaGetCode200Response1 extends ResponseDeserializer { - public FakeresponsewithoutschemaGetCode200Response1() { - super( - MapUtils.makeMap( - new AbstractMap.SimpleEntry("application/json", null), - new AbstractMap.SimpleEntry("application/xml", null) - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java deleted file mode 100644 index 96c3e8d5b4d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java +++ /dev/null @@ -1,180 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Parameters; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Faketestqueryparamters; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FaketestqueryparamtersPut { - private static class PutProvider { - private static final String method = "put"; - - public static FaketestqueryparamtersPutResponses.EndpointResponse put( - PutRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Faketestqueryparamters.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FaketestqueryparamtersPutResponses.FaketestqueryparamtersPutResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PutOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FaketestqueryparamtersPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface QueryParameterCollectionFormatOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FaketestqueryparamtersPutResponses.EndpointResponse queryParameterCollectionFormat(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Put extends ApiClient implements PutOperation { - public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PutRequest { - public FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PutRequest( - FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.queryParameters = queryParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PutNullableRequest { - public FaketestqueryparamtersPutQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForQueryParameters { - PutNullableRequest getInstance(); - T getBuilderAfterQueryParameters(PutNullableRequest instance); - default T queryParameters(FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PutNullableRequest instance; - - public Put0RequestBuilder(PutNullableRequest instance) { - this.instance = instance; - } - - public PutRequest build() { - var queryParameters = instance.queryParameters; - if (queryParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PutRequest( - queryParameters, - instance.serverIndex, - instance.timeout - ); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { - return this; - } - - public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { - return this; - } - } - public static class PutRequestBuilder implements SetterForQueryParameters { - private final PutNullableRequest instance; - - public PutRequestBuilder() { - this.instance = new PutNullableRequest(); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put0RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { - return new Put0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java deleted file mode 100644 index 91dbcc45d71..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java +++ /dev/null @@ -1,1515 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.StringWithValidation; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter1.Schema1; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter2.Schema2; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter3.Schema3; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter4.Schema4; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FaketestqueryparamtersPutQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "context", - "http", - "ioutil", - "pipe", - "refParam", - "url" - ); - public static final Set optionalKeys = Set.of(); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FaketestqueryparamtersPutQueryParameters1.getInstance().validate(arg, configuration); - } - - public Schema4.SchemaList4 context() { - @Nullable Object value = get("context"); - if (!(value instanceof Schema4.SchemaList4)) { - throw new RuntimeException("Invalid value stored for context"); - } - return (Schema4.SchemaList4) value; - } - - public Schema2.SchemaList2 http() { - @Nullable Object value = get("http"); - if (!(value instanceof Schema2.SchemaList2)) { - throw new RuntimeException("Invalid value stored for http"); - } - return (Schema2.SchemaList2) value; - } - - public Schema1.SchemaList1 ioutil() { - @Nullable Object value = get("ioutil"); - if (!(value instanceof Schema1.SchemaList1)) { - throw new RuntimeException("Invalid value stored for ioutil"); - } - return (Schema1.SchemaList1) value; - } - - public Schema0.SchemaList0 pipe() { - @Nullable Object value = get("pipe"); - if (!(value instanceof Schema0.SchemaList0)) { - throw new RuntimeException("Invalid value stored for pipe"); - } - return (Schema0.SchemaList0) value; - } - - public String refParam() { - @Nullable Object value = get("refParam"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for refParam"); - } - return (String) value; - } - - public Schema3.SchemaList3 url() { - @Nullable Object value = get("url"); - if (!(value instanceof Schema3.SchemaList3)) { - throw new RuntimeException("Invalid value stored for url"); - } - return (Schema3.SchemaList3) value; - } - } - - public interface SetterForContext { - Map getInstance(); - T getBuilderAfterContext(Map instance); - - default T context(List value) { - var instance = getInstance(); - instance.put("context", value); - return getBuilderAfterContext(instance); - } - } - - public interface SetterForHttp { - Map getInstance(); - T getBuilderAfterHttp(Map instance); - - default T http(List value) { - var instance = getInstance(); - instance.put("http", value); - return getBuilderAfterHttp(instance); - } - } - - public interface SetterForIoutil { - Map getInstance(); - T getBuilderAfterIoutil(Map instance); - - default T ioutil(List value) { - var instance = getInstance(); - instance.put("ioutil", value); - return getBuilderAfterIoutil(instance); - } - } - - public interface SetterForPipe { - Map getInstance(); - T getBuilderAfterPipe(Map instance); - - default T pipe(List value) { - var instance = getInstance(); - instance.put("pipe", value); - return getBuilderAfterPipe(instance); - } - } - - public interface SetterForRefParam { - Map getInstance(); - T getBuilderAfterRefParam(Map instance); - - default T refParam(String value) { - var instance = getInstance(); - instance.put("refParam", value); - return getBuilderAfterRefParam(instance); - } - } - - public interface SetterForUrl { - Map getInstance(); - T getBuilderAfterUrl(Map instance); - - default T url(List value) { - var instance = getInstance(); - instance.put("url", value); - return getBuilderAfterUrl(instance); - } - } - - public static class QueryParametersMap000000Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "context", - "http", - "ioutil", - "pipe", - "refParam", - "url" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMap000000Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class QueryParametersMap000001Builder implements SetterForUrl { - private final Map instance; - public QueryParametersMap000001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000000Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap000000Builder(instance); - } - } - - public static class QueryParametersMap000010Builder implements SetterForRefParam { - private final Map instance; - public QueryParametersMap000010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000000Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap000000Builder(instance); - } - } - - public static class QueryParametersMap000011Builder implements SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap000011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000001Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap000001Builder(instance); - } - public QueryParametersMap000010Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap000010Builder(instance); - } - } - - public static class QueryParametersMap000100Builder implements SetterForPipe { - private final Map instance; - public QueryParametersMap000100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000000Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap000000Builder(instance); - } - } - - public static class QueryParametersMap000101Builder implements SetterForPipe, SetterForUrl { - private final Map instance; - public QueryParametersMap000101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000001Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap000001Builder(instance); - } - public QueryParametersMap000100Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap000100Builder(instance); - } - } - - public static class QueryParametersMap000110Builder implements SetterForPipe, SetterForRefParam { - private final Map instance; - public QueryParametersMap000110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000010Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap000010Builder(instance); - } - public QueryParametersMap000100Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap000100Builder(instance); - } - } - - public static class QueryParametersMap000111Builder implements SetterForPipe, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap000111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000011Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap000011Builder(instance); - } - public QueryParametersMap000101Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap000101Builder(instance); - } - public QueryParametersMap000110Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap000110Builder(instance); - } - } - - public static class QueryParametersMap001000Builder implements SetterForIoutil { - private final Map instance; - public QueryParametersMap001000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000000Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap000000Builder(instance); - } - } - - public static class QueryParametersMap001001Builder implements SetterForIoutil, SetterForUrl { - private final Map instance; - public QueryParametersMap001001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000001Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap000001Builder(instance); - } - public QueryParametersMap001000Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap001000Builder(instance); - } - } - - public static class QueryParametersMap001010Builder implements SetterForIoutil, SetterForRefParam { - private final Map instance; - public QueryParametersMap001010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000010Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap000010Builder(instance); - } - public QueryParametersMap001000Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap001000Builder(instance); - } - } - - public static class QueryParametersMap001011Builder implements SetterForIoutil, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap001011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000011Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap000011Builder(instance); - } - public QueryParametersMap001001Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap001001Builder(instance); - } - public QueryParametersMap001010Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap001010Builder(instance); - } - } - - public static class QueryParametersMap001100Builder implements SetterForIoutil, SetterForPipe { - private final Map instance; - public QueryParametersMap001100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000100Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap000100Builder(instance); - } - public QueryParametersMap001000Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap001000Builder(instance); - } - } - - public static class QueryParametersMap001101Builder implements SetterForIoutil, SetterForPipe, SetterForUrl { - private final Map instance; - public QueryParametersMap001101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000101Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap000101Builder(instance); - } - public QueryParametersMap001001Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap001001Builder(instance); - } - public QueryParametersMap001100Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap001100Builder(instance); - } - } - - public static class QueryParametersMap001110Builder implements SetterForIoutil, SetterForPipe, SetterForRefParam { - private final Map instance; - public QueryParametersMap001110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000110Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap000110Builder(instance); - } - public QueryParametersMap001010Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap001010Builder(instance); - } - public QueryParametersMap001100Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap001100Builder(instance); - } - } - - public static class QueryParametersMap001111Builder implements SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap001111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000111Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap000111Builder(instance); - } - public QueryParametersMap001011Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap001011Builder(instance); - } - public QueryParametersMap001101Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap001101Builder(instance); - } - public QueryParametersMap001110Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap001110Builder(instance); - } - } - - public static class QueryParametersMap010000Builder implements SetterForHttp { - private final Map instance; - public QueryParametersMap010000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000000Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap000000Builder(instance); - } - } - - public static class QueryParametersMap010001Builder implements SetterForHttp, SetterForUrl { - private final Map instance; - public QueryParametersMap010001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000001Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap000001Builder(instance); - } - public QueryParametersMap010000Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap010000Builder(instance); - } - } - - public static class QueryParametersMap010010Builder implements SetterForHttp, SetterForRefParam { - private final Map instance; - public QueryParametersMap010010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000010Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap000010Builder(instance); - } - public QueryParametersMap010000Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap010000Builder(instance); - } - } - - public static class QueryParametersMap010011Builder implements SetterForHttp, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap010011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000011Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap000011Builder(instance); - } - public QueryParametersMap010001Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap010001Builder(instance); - } - public QueryParametersMap010010Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap010010Builder(instance); - } - } - - public static class QueryParametersMap010100Builder implements SetterForHttp, SetterForPipe { - private final Map instance; - public QueryParametersMap010100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000100Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap000100Builder(instance); - } - public QueryParametersMap010000Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap010000Builder(instance); - } - } - - public static class QueryParametersMap010101Builder implements SetterForHttp, SetterForPipe, SetterForUrl { - private final Map instance; - public QueryParametersMap010101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000101Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap000101Builder(instance); - } - public QueryParametersMap010001Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap010001Builder(instance); - } - public QueryParametersMap010100Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap010100Builder(instance); - } - } - - public static class QueryParametersMap010110Builder implements SetterForHttp, SetterForPipe, SetterForRefParam { - private final Map instance; - public QueryParametersMap010110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000110Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap000110Builder(instance); - } - public QueryParametersMap010010Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap010010Builder(instance); - } - public QueryParametersMap010100Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap010100Builder(instance); - } - } - - public static class QueryParametersMap010111Builder implements SetterForHttp, SetterForPipe, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap010111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000111Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap000111Builder(instance); - } - public QueryParametersMap010011Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap010011Builder(instance); - } - public QueryParametersMap010101Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap010101Builder(instance); - } - public QueryParametersMap010110Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap010110Builder(instance); - } - } - - public static class QueryParametersMap011000Builder implements SetterForHttp, SetterForIoutil { - private final Map instance; - public QueryParametersMap011000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001000Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap001000Builder(instance); - } - public QueryParametersMap010000Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap010000Builder(instance); - } - } - - public static class QueryParametersMap011001Builder implements SetterForHttp, SetterForIoutil, SetterForUrl { - private final Map instance; - public QueryParametersMap011001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001001Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap001001Builder(instance); - } - public QueryParametersMap010001Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap010001Builder(instance); - } - public QueryParametersMap011000Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap011000Builder(instance); - } - } - - public static class QueryParametersMap011010Builder implements SetterForHttp, SetterForIoutil, SetterForRefParam { - private final Map instance; - public QueryParametersMap011010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001010Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap001010Builder(instance); - } - public QueryParametersMap010010Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap010010Builder(instance); - } - public QueryParametersMap011000Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap011000Builder(instance); - } - } - - public static class QueryParametersMap011011Builder implements SetterForHttp, SetterForIoutil, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap011011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001011Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap001011Builder(instance); - } - public QueryParametersMap010011Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap010011Builder(instance); - } - public QueryParametersMap011001Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap011001Builder(instance); - } - public QueryParametersMap011010Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap011010Builder(instance); - } - } - - public static class QueryParametersMap011100Builder implements SetterForHttp, SetterForIoutil, SetterForPipe { - private final Map instance; - public QueryParametersMap011100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001100Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap001100Builder(instance); - } - public QueryParametersMap010100Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap010100Builder(instance); - } - public QueryParametersMap011000Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap011000Builder(instance); - } - } - - public static class QueryParametersMap011101Builder implements SetterForHttp, SetterForIoutil, SetterForPipe, SetterForUrl { - private final Map instance; - public QueryParametersMap011101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001101Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap001101Builder(instance); - } - public QueryParametersMap010101Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap010101Builder(instance); - } - public QueryParametersMap011001Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap011001Builder(instance); - } - public QueryParametersMap011100Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap011100Builder(instance); - } - } - - public static class QueryParametersMap011110Builder implements SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam { - private final Map instance; - public QueryParametersMap011110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001110Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap001110Builder(instance); - } - public QueryParametersMap010110Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap010110Builder(instance); - } - public QueryParametersMap011010Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap011010Builder(instance); - } - public QueryParametersMap011100Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap011100Builder(instance); - } - } - - public static class QueryParametersMap011111Builder implements SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap011111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001111Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap001111Builder(instance); - } - public QueryParametersMap010111Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap010111Builder(instance); - } - public QueryParametersMap011011Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap011011Builder(instance); - } - public QueryParametersMap011101Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap011101Builder(instance); - } - public QueryParametersMap011110Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap011110Builder(instance); - } - } - - public static class QueryParametersMap100000Builder implements SetterForContext { - private final Map instance; - public QueryParametersMap100000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000000Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap000000Builder(instance); - } - } - - public static class QueryParametersMap100001Builder implements SetterForContext, SetterForUrl { - private final Map instance; - public QueryParametersMap100001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000001Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap000001Builder(instance); - } - public QueryParametersMap100000Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap100000Builder(instance); - } - } - - public static class QueryParametersMap100010Builder implements SetterForContext, SetterForRefParam { - private final Map instance; - public QueryParametersMap100010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000010Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap000010Builder(instance); - } - public QueryParametersMap100000Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap100000Builder(instance); - } - } - - public static class QueryParametersMap100011Builder implements SetterForContext, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap100011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000011Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap000011Builder(instance); - } - public QueryParametersMap100001Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap100001Builder(instance); - } - public QueryParametersMap100010Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap100010Builder(instance); - } - } - - public static class QueryParametersMap100100Builder implements SetterForContext, SetterForPipe { - private final Map instance; - public QueryParametersMap100100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000100Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap000100Builder(instance); - } - public QueryParametersMap100000Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap100000Builder(instance); - } - } - - public static class QueryParametersMap100101Builder implements SetterForContext, SetterForPipe, SetterForUrl { - private final Map instance; - public QueryParametersMap100101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000101Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap000101Builder(instance); - } - public QueryParametersMap100001Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap100001Builder(instance); - } - public QueryParametersMap100100Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap100100Builder(instance); - } - } - - public static class QueryParametersMap100110Builder implements SetterForContext, SetterForPipe, SetterForRefParam { - private final Map instance; - public QueryParametersMap100110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000110Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap000110Builder(instance); - } - public QueryParametersMap100010Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap100010Builder(instance); - } - public QueryParametersMap100100Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap100100Builder(instance); - } - } - - public static class QueryParametersMap100111Builder implements SetterForContext, SetterForPipe, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap100111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap000111Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap000111Builder(instance); - } - public QueryParametersMap100011Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap100011Builder(instance); - } - public QueryParametersMap100101Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap100101Builder(instance); - } - public QueryParametersMap100110Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap100110Builder(instance); - } - } - - public static class QueryParametersMap101000Builder implements SetterForContext, SetterForIoutil { - private final Map instance; - public QueryParametersMap101000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001000Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap001000Builder(instance); - } - public QueryParametersMap100000Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap100000Builder(instance); - } - } - - public static class QueryParametersMap101001Builder implements SetterForContext, SetterForIoutil, SetterForUrl { - private final Map instance; - public QueryParametersMap101001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001001Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap001001Builder(instance); - } - public QueryParametersMap100001Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap100001Builder(instance); - } - public QueryParametersMap101000Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap101000Builder(instance); - } - } - - public static class QueryParametersMap101010Builder implements SetterForContext, SetterForIoutil, SetterForRefParam { - private final Map instance; - public QueryParametersMap101010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001010Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap001010Builder(instance); - } - public QueryParametersMap100010Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap100010Builder(instance); - } - public QueryParametersMap101000Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap101000Builder(instance); - } - } - - public static class QueryParametersMap101011Builder implements SetterForContext, SetterForIoutil, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap101011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001011Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap001011Builder(instance); - } - public QueryParametersMap100011Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap100011Builder(instance); - } - public QueryParametersMap101001Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap101001Builder(instance); - } - public QueryParametersMap101010Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap101010Builder(instance); - } - } - - public static class QueryParametersMap101100Builder implements SetterForContext, SetterForIoutil, SetterForPipe { - private final Map instance; - public QueryParametersMap101100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001100Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap001100Builder(instance); - } - public QueryParametersMap100100Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap100100Builder(instance); - } - public QueryParametersMap101000Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap101000Builder(instance); - } - } - - public static class QueryParametersMap101101Builder implements SetterForContext, SetterForIoutil, SetterForPipe, SetterForUrl { - private final Map instance; - public QueryParametersMap101101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001101Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap001101Builder(instance); - } - public QueryParametersMap100101Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap100101Builder(instance); - } - public QueryParametersMap101001Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap101001Builder(instance); - } - public QueryParametersMap101100Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap101100Builder(instance); - } - } - - public static class QueryParametersMap101110Builder implements SetterForContext, SetterForIoutil, SetterForPipe, SetterForRefParam { - private final Map instance; - public QueryParametersMap101110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001110Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap001110Builder(instance); - } - public QueryParametersMap100110Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap100110Builder(instance); - } - public QueryParametersMap101010Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap101010Builder(instance); - } - public QueryParametersMap101100Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap101100Builder(instance); - } - } - - public static class QueryParametersMap101111Builder implements SetterForContext, SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap101111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap001111Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap001111Builder(instance); - } - public QueryParametersMap100111Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap100111Builder(instance); - } - public QueryParametersMap101011Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap101011Builder(instance); - } - public QueryParametersMap101101Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap101101Builder(instance); - } - public QueryParametersMap101110Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap101110Builder(instance); - } - } - - public static class QueryParametersMap110000Builder implements SetterForContext, SetterForHttp { - private final Map instance; - public QueryParametersMap110000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap010000Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap010000Builder(instance); - } - public QueryParametersMap100000Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap100000Builder(instance); - } - } - - public static class QueryParametersMap110001Builder implements SetterForContext, SetterForHttp, SetterForUrl { - private final Map instance; - public QueryParametersMap110001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap010001Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap010001Builder(instance); - } - public QueryParametersMap100001Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap100001Builder(instance); - } - public QueryParametersMap110000Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap110000Builder(instance); - } - } - - public static class QueryParametersMap110010Builder implements SetterForContext, SetterForHttp, SetterForRefParam { - private final Map instance; - public QueryParametersMap110010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap010010Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap010010Builder(instance); - } - public QueryParametersMap100010Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap100010Builder(instance); - } - public QueryParametersMap110000Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap110000Builder(instance); - } - } - - public static class QueryParametersMap110011Builder implements SetterForContext, SetterForHttp, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap110011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap010011Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap010011Builder(instance); - } - public QueryParametersMap100011Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap100011Builder(instance); - } - public QueryParametersMap110001Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap110001Builder(instance); - } - public QueryParametersMap110010Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap110010Builder(instance); - } - } - - public static class QueryParametersMap110100Builder implements SetterForContext, SetterForHttp, SetterForPipe { - private final Map instance; - public QueryParametersMap110100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap010100Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap010100Builder(instance); - } - public QueryParametersMap100100Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap100100Builder(instance); - } - public QueryParametersMap110000Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap110000Builder(instance); - } - } - - public static class QueryParametersMap110101Builder implements SetterForContext, SetterForHttp, SetterForPipe, SetterForUrl { - private final Map instance; - public QueryParametersMap110101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap010101Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap010101Builder(instance); - } - public QueryParametersMap100101Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap100101Builder(instance); - } - public QueryParametersMap110001Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap110001Builder(instance); - } - public QueryParametersMap110100Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap110100Builder(instance); - } - } - - public static class QueryParametersMap110110Builder implements SetterForContext, SetterForHttp, SetterForPipe, SetterForRefParam { - private final Map instance; - public QueryParametersMap110110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap010110Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap010110Builder(instance); - } - public QueryParametersMap100110Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap100110Builder(instance); - } - public QueryParametersMap110010Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap110010Builder(instance); - } - public QueryParametersMap110100Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap110100Builder(instance); - } - } - - public static class QueryParametersMap110111Builder implements SetterForContext, SetterForHttp, SetterForPipe, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap110111Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap010111Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap010111Builder(instance); - } - public QueryParametersMap100111Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap100111Builder(instance); - } - public QueryParametersMap110011Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap110011Builder(instance); - } - public QueryParametersMap110101Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap110101Builder(instance); - } - public QueryParametersMap110110Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap110110Builder(instance); - } - } - - public static class QueryParametersMap111000Builder implements SetterForContext, SetterForHttp, SetterForIoutil { - private final Map instance; - public QueryParametersMap111000Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap011000Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap011000Builder(instance); - } - public QueryParametersMap101000Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap101000Builder(instance); - } - public QueryParametersMap110000Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap110000Builder(instance); - } - } - - public static class QueryParametersMap111001Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForUrl { - private final Map instance; - public QueryParametersMap111001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap011001Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap011001Builder(instance); - } - public QueryParametersMap101001Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap101001Builder(instance); - } - public QueryParametersMap110001Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap110001Builder(instance); - } - public QueryParametersMap111000Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap111000Builder(instance); - } - } - - public static class QueryParametersMap111010Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForRefParam { - private final Map instance; - public QueryParametersMap111010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap011010Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap011010Builder(instance); - } - public QueryParametersMap101010Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap101010Builder(instance); - } - public QueryParametersMap110010Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap110010Builder(instance); - } - public QueryParametersMap111000Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap111000Builder(instance); - } - } - - public static class QueryParametersMap111011Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMap111011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap011011Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap011011Builder(instance); - } - public QueryParametersMap101011Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap101011Builder(instance); - } - public QueryParametersMap110011Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap110011Builder(instance); - } - public QueryParametersMap111001Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap111001Builder(instance); - } - public QueryParametersMap111010Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap111010Builder(instance); - } - } - - public static class QueryParametersMap111100Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe { - private final Map instance; - public QueryParametersMap111100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap011100Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap011100Builder(instance); - } - public QueryParametersMap101100Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap101100Builder(instance); - } - public QueryParametersMap110100Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap110100Builder(instance); - } - public QueryParametersMap111000Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap111000Builder(instance); - } - } - - public static class QueryParametersMap111101Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe, SetterForUrl { - private final Map instance; - public QueryParametersMap111101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap011101Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap011101Builder(instance); - } - public QueryParametersMap101101Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap101101Builder(instance); - } - public QueryParametersMap110101Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap110101Builder(instance); - } - public QueryParametersMap111001Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap111001Builder(instance); - } - public QueryParametersMap111100Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap111100Builder(instance); - } - } - - public static class QueryParametersMap111110Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam { - private final Map instance; - public QueryParametersMap111110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap011110Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap011110Builder(instance); - } - public QueryParametersMap101110Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap101110Builder(instance); - } - public QueryParametersMap110110Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap110110Builder(instance); - } - public QueryParametersMap111010Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap111010Builder(instance); - } - public QueryParametersMap111100Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap111100Builder(instance); - } - } - - public static class QueryParametersMapBuilder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { - private final Map instance; - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public QueryParametersMap011111Builder getBuilderAfterContext(Map instance) { - return new QueryParametersMap011111Builder(instance); - } - public QueryParametersMap101111Builder getBuilderAfterHttp(Map instance) { - return new QueryParametersMap101111Builder(instance); - } - public QueryParametersMap110111Builder getBuilderAfterIoutil(Map instance) { - return new QueryParametersMap110111Builder(instance); - } - public QueryParametersMap111011Builder getBuilderAfterPipe(Map instance) { - return new QueryParametersMap111011Builder(instance); - } - public QueryParametersMap111101Builder getBuilderAfterRefParam(Map instance) { - return new QueryParametersMap111101Builder(instance); - } - public QueryParametersMap111110Builder getBuilderAfterUrl(Map instance) { - return new QueryParametersMap111110Builder(instance); - } - } - - - public sealed interface FaketestqueryparamtersPutQueryParameters1Boxed permits FaketestqueryparamtersPutQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record FaketestqueryparamtersPutQueryParameters1BoxedMap(QueryParametersMap data) implements FaketestqueryparamtersPutQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FaketestqueryparamtersPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FaketestqueryparamtersPutQueryParameters1 instance = null; - - protected FaketestqueryparamtersPutQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("refParam", StringWithValidation.StringWithValidation1.class), - new PropertyEntry("ioutil", Schema1.Schema11.class), - new PropertyEntry("context", Schema4.Schema41.class), - new PropertyEntry("http", Schema2.Schema21.class), - new PropertyEntry("pipe", Schema0.Schema01.class), - new PropertyEntry("url", Schema3.Schema31.class) - )) - .required(Set.of( - "context", - "http", - "ioutil", - "pipe", - "refParam", - "url" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FaketestqueryparamtersPutQueryParameters1 getInstance() { - if (instance == null) { - instance = new FaketestqueryparamtersPutQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FaketestqueryparamtersPutQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FaketestqueryparamtersPutQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public FaketestqueryparamtersPutQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java deleted file mode 100644 index ed5c4a6f030..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put; - -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.FaketestqueryparamtersPutCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FaketestqueryparamtersPutResponses { - public sealed interface EndpointResponse permits EndpointFaketestqueryparamtersPutCode200Response {} - - public record EndpointFaketestqueryparamtersPutCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFaketestqueryparamtersPutCode200ResponseDeserializer {} - - public static final class StatusFaketestqueryparamtersPutCode200ResponseDeserializer extends FaketestqueryparamtersPutCode200Response.FaketestqueryparamtersPutCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FaketestqueryparamtersPutResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FaketestqueryparamtersPutResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFaketestqueryparamtersPutCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFaketestqueryparamtersPutCode200ResponseDeserializer castDeserializer = (StatusFaketestqueryparamtersPutCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFaketestqueryparamtersPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java deleted file mode 100644 index 447f578a330..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put; - -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter0; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter1; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter2; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter3; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter4; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter5; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("pipe", new Parameter0.Parameter01()), - new AbstractMap.SimpleEntry<>("ioutil", new Parameter1.Parameter11()), - new AbstractMap.SimpleEntry<>("http", new Parameter2.Parameter21()), - new AbstractMap.SimpleEntry<>("url", new Parameter3.Parameter31()), - new AbstractMap.SimpleEntry<>("context", new Parameter4.Parameter41()), - new AbstractMap.SimpleEntry<>("refParam", new Parameter5.Parameter51()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter0.java deleted file mode 100644 index fb818182444..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "pipe", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter1.java deleted file mode 100644 index c835f8982f0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter1.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter1.Schema1; - -public class Parameter1 { - - public static class Parameter11 extends SchemaParameter { - public Parameter11() { - super( - "ioutil", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - false, - false, - Schema1.Schema11.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter2.java deleted file mode 100644 index a4718b73134..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter2.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter2.Schema2; - -public class Parameter2 { - - public static class Parameter21 extends SchemaParameter { - public Parameter21() { - super( - "http", - ParameterInType.QUERY, - true, - ParameterStyle.SPACE_DELIMITED, - false, - false, - Schema2.Schema21.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter3.java deleted file mode 100644 index 243be0b3e0f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter3.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter3.Schema3; - -public class Parameter3 { - - public static class Parameter31 extends SchemaParameter { - public Parameter31() { - super( - "url", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - false, - false, - Schema3.Schema31.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter4.java deleted file mode 100644 index 449ae175083..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter4.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter4.Schema4; - -public class Parameter4 { - - public static class Parameter41 extends SchemaParameter { - public Parameter41() { - super( - "context", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema4.Schema41.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter5.java deleted file mode 100644 index 1575ac4c084..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter5.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter5.Schema5; - -public class Parameter5 { - - public static class Parameter51 extends SchemaParameter { - public Parameter51() { - super( - "refParam", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema5.Schema51.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java deleted file mode 100644 index a1a141e38d1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,157 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter0; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema0 { - // nest classes so all schemas and input/output classes can be public - - - public static class Items0 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Items0 instance = null; - public static Items0 getInstance() { - if (instance == null) { - instance = new Items0(); - } - return instance; - } - } - - - public static class SchemaList0 extends FrozenList { - protected SchemaList0(FrozenList m) { - super(m); - } - public static SchemaList0 of(List arg, SchemaConfiguration configuration) throws ValidationException { - return Schema01.getInstance().validate(arg, configuration); - } - } - - public static class SchemaListBuilder0 { - // class to build List - private final List list; - - public SchemaListBuilder0() { - list = new ArrayList<>(); - } - - public SchemaListBuilder0(List list) { - this.list = list; - } - - public SchemaListBuilder0 add(String item) { - list.add(item); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface Schema01Boxed permits Schema01BoxedList { - @Nullable Object getData(); - } - - public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema01 extends JsonSchema implements ListSchemaValidator { - private static @Nullable Schema01 instance = null; - - protected Schema01() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(Items0.class) - ); - } - - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - - @Override - public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new SchemaList0(newInstanceItems); - } - - public SchemaList0 validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedList(validate(arg, configuration)); - } - @Override - public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java deleted file mode 100644 index f73a4a14c25..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java +++ /dev/null @@ -1,157 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter1; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema1 { - // nest classes so all schemas and input/output classes can be public - - - public static class Items1 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Items1 instance = null; - public static Items1 getInstance() { - if (instance == null) { - instance = new Items1(); - } - return instance; - } - } - - - public static class SchemaList1 extends FrozenList { - protected SchemaList1(FrozenList m) { - super(m); - } - public static SchemaList1 of(List arg, SchemaConfiguration configuration) throws ValidationException { - return Schema11.getInstance().validate(arg, configuration); - } - } - - public static class SchemaListBuilder1 { - // class to build List - private final List list; - - public SchemaListBuilder1() { - list = new ArrayList<>(); - } - - public SchemaListBuilder1(List list) { - this.list = list; - } - - public SchemaListBuilder1 add(String item) { - list.add(item); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface Schema11Boxed permits Schema11BoxedList { - @Nullable Object getData(); - } - - public record Schema11BoxedList(SchemaList1 data) implements Schema11Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema11 extends JsonSchema implements ListSchemaValidator { - private static @Nullable Schema11 instance = null; - - protected Schema11() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(Items1.class) - ); - } - - public static Schema11 getInstance() { - if (instance == null) { - instance = new Schema11(); - } - return instance; - } - - @Override - public SchemaList1 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new SchemaList1(newInstanceItems); - } - - public SchemaList1 validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema11BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema11BoxedList(validate(arg, configuration)); - } - @Override - public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java deleted file mode 100644 index fa6b93e54f0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java +++ /dev/null @@ -1,157 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter2; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema2 { - // nest classes so all schemas and input/output classes can be public - - - public static class Items2 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Items2 instance = null; - public static Items2 getInstance() { - if (instance == null) { - instance = new Items2(); - } - return instance; - } - } - - - public static class SchemaList2 extends FrozenList { - protected SchemaList2(FrozenList m) { - super(m); - } - public static SchemaList2 of(List arg, SchemaConfiguration configuration) throws ValidationException { - return Schema21.getInstance().validate(arg, configuration); - } - } - - public static class SchemaListBuilder2 { - // class to build List - private final List list; - - public SchemaListBuilder2() { - list = new ArrayList<>(); - } - - public SchemaListBuilder2(List list) { - this.list = list; - } - - public SchemaListBuilder2 add(String item) { - list.add(item); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface Schema21Boxed permits Schema21BoxedList { - @Nullable Object getData(); - } - - public record Schema21BoxedList(SchemaList2 data) implements Schema21Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema21 extends JsonSchema implements ListSchemaValidator { - private static @Nullable Schema21 instance = null; - - protected Schema21() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(Items2.class) - ); - } - - public static Schema21 getInstance() { - if (instance == null) { - instance = new Schema21(); - } - return instance; - } - - @Override - public SchemaList2 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new SchemaList2(newInstanceItems); - } - - public SchemaList2 validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema21BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema21BoxedList(validate(arg, configuration)); - } - @Override - public Schema21Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java deleted file mode 100644 index 6301f5135d6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java +++ /dev/null @@ -1,157 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter3; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema3 { - // nest classes so all schemas and input/output classes can be public - - - public static class Items3 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Items3 instance = null; - public static Items3 getInstance() { - if (instance == null) { - instance = new Items3(); - } - return instance; - } - } - - - public static class SchemaList3 extends FrozenList { - protected SchemaList3(FrozenList m) { - super(m); - } - public static SchemaList3 of(List arg, SchemaConfiguration configuration) throws ValidationException { - return Schema31.getInstance().validate(arg, configuration); - } - } - - public static class SchemaListBuilder3 { - // class to build List - private final List list; - - public SchemaListBuilder3() { - list = new ArrayList<>(); - } - - public SchemaListBuilder3(List list) { - this.list = list; - } - - public SchemaListBuilder3 add(String item) { - list.add(item); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface Schema31Boxed permits Schema31BoxedList { - @Nullable Object getData(); - } - - public record Schema31BoxedList(SchemaList3 data) implements Schema31Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema31 extends JsonSchema implements ListSchemaValidator { - private static @Nullable Schema31 instance = null; - - protected Schema31() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(Items3.class) - ); - } - - public static Schema31 getInstance() { - if (instance == null) { - instance = new Schema31(); - } - return instance; - } - - @Override - public SchemaList3 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new SchemaList3(newInstanceItems); - } - - public SchemaList3 validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema31BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema31BoxedList(validate(arg, configuration)); - } - @Override - public Schema31Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java deleted file mode 100644 index fb955854aee..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java +++ /dev/null @@ -1,157 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter4; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema4 { - // nest classes so all schemas and input/output classes can be public - - - public static class Items4 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Items4 instance = null; - public static Items4 getInstance() { - if (instance == null) { - instance = new Items4(); - } - return instance; - } - } - - - public static class SchemaList4 extends FrozenList { - protected SchemaList4(FrozenList m) { - super(m); - } - public static SchemaList4 of(List arg, SchemaConfiguration configuration) throws ValidationException { - return Schema41.getInstance().validate(arg, configuration); - } - } - - public static class SchemaListBuilder4 { - // class to build List - private final List list; - - public SchemaListBuilder4() { - list = new ArrayList<>(); - } - - public SchemaListBuilder4(List list) { - this.list = list; - } - - public SchemaListBuilder4 add(String item) { - list.add(item); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface Schema41Boxed permits Schema41BoxedList { - @Nullable Object getData(); - } - - public record Schema41BoxedList(SchemaList4 data) implements Schema41Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema41 extends JsonSchema implements ListSchemaValidator { - private static @Nullable Schema41 instance = null; - - protected Schema41() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(Items4.class) - ); - } - - public static Schema41 getInstance() { - if (instance == null) { - instance = new Schema41(); - } - return instance; - } - - @Override - public SchemaList4 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new SchemaList4(newInstanceItems); - } - - public SchemaList4 validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema41BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema41BoxedList(validate(arg, configuration)); - } - @Override - public Schema41Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java deleted file mode 100644 index a2af162b5a6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter5; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.StringWithValidation; - -public class Schema5 extends StringWithValidation { - // $refed class - - - public static class Schema51 extends StringWithValidation1 { - private static @Nullable Schema51 instance = null; - public static Schema51 getInstance() { - if (instance == null) { - instance = new Schema51(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.java deleted file mode 100644 index 180a1f4d934..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class FaketestqueryparamtersPutCode200Response extends SuccessDescriptionOnly { - public static class FaketestqueryparamtersPutCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java deleted file mode 100644 index 391f48f566e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploaddownloadfile; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakeuploaddownloadfile; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeuploaddownloadfilePost { - private static class PostProvider { - private static final String method = "post"; - - public static FakeuploaddownloadfilePostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new FakeuploaddownloadfilePostRequestBody.FakeuploaddownloadfilePostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakeuploaddownloadfile.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeuploaddownloadfilePostResponses.FakeuploaddownloadfilePostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeuploaddownloadfilePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface UploadDownloadFileOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeuploaddownloadfilePostResponses.EndpointResponse uploadDownloadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PostRequest( - FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public FakeuploaddownloadfilePostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - requestBody, - instance.serverIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java deleted file mode 100644 index c178703cbdb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream.ApplicationoctetstreamSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakeuploaddownloadfilePostRequestBody { - public sealed interface SealedMediaType permits ApplicationoctetstreamMediaType {} - - public record ApplicationoctetstreamMediaType(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationoctetstreamMediaType() { - this(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakeuploaddownloadfilePostRequestBody1 extends RequestBodySerializer { - public FakeuploaddownloadfilePostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/octet-stream", new ApplicationoctetstreamMediaType()) - ), - true - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationoctetstreamRequestBody requestBody0 = (ApplicationoctetstreamRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationoctetstreamRequestBody {} - public record ApplicationoctetstreamRequestBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/octet-stream"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java deleted file mode 100644 index 04f4e9c3706..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post; - -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.FakeuploaddownloadfilePostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeuploaddownloadfilePostResponses { - public sealed interface EndpointResponse permits EndpointFakeuploaddownloadfilePostCode200Response {} - - public record EndpointFakeuploaddownloadfilePostCode200Response( - HttpResponse response, - FakeuploaddownloadfilePostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeuploaddownloadfilePostCode200ResponseDeserializer {} - - public static final class StatusFakeuploaddownloadfilePostCode200ResponseDeserializer extends FakeuploaddownloadfilePostCode200Response.FakeuploaddownloadfilePostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeuploaddownloadfilePostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeuploaddownloadfilePostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeuploaddownloadfilePostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeuploaddownloadfilePostCode200ResponseDeserializer castDeserializer = (StatusFakeuploaddownloadfilePostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeuploaddownloadfilePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java deleted file mode 100644 index 1dded2752b5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class ApplicationoctetstreamSchema extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationoctetstreamSchema1 extends StringJsonSchema.StringJsonSchema1 { - // BinarySchema - private static @Nullable ApplicationoctetstreamSchema1 instance = null; - public static ApplicationoctetstreamSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationoctetstreamSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java deleted file mode 100644 index dd4052cb616..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.code200response.content.applicationoctetstream.ApplicationoctetstreamSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakeuploaddownloadfilePostCode200Response { - public sealed interface SealedMediaType permits ApplicationoctetstreamMediaType {} - - public record ApplicationoctetstreamMediaType(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationoctetstreamMediaType() { - this(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationoctetstreamResponseBody {} - public record ApplicationoctetstreamResponseBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakeuploaddownloadfilePostCode200Response1 extends ResponseDeserializer { - public FakeuploaddownloadfilePostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/octet-stream", new ApplicationoctetstreamMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationoctetstreamMediaType thisMediaType = (ApplicationoctetstreamMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationoctetstreamResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java deleted file mode 100644 index 4560be3af67..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.code200response.content.applicationoctetstream; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class ApplicationoctetstreamSchema extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationoctetstreamSchema1 extends StringJsonSchema.StringJsonSchema1 { - // BinarySchema - private static @Nullable ApplicationoctetstreamSchema1 instance = null; - public static ApplicationoctetstreamSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationoctetstreamSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java deleted file mode 100644 index 3e6701b4e5b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfile; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakeuploadfile; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeuploadfilePost { - private static class PostProvider { - private static final String method = "post"; - - public static FakeuploadfilePostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakeuploadfilePostRequestBody.FakeuploadfilePostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakeuploadfile.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeuploadfilePostResponses.FakeuploadfilePostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeuploadfilePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface UploadFileOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeuploadfilePostResponses.EndpointResponse uploadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakeuploadfilePostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakeuploadfilePostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java deleted file mode 100644 index e4b168121f6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfile.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakeuploadfilePostRequestBody { - public sealed interface SealedMediaType permits MultipartformdataMediaType {} - - public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { - public MultipartformdataMediaType() { - this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakeuploadfilePostRequestBody1 extends RequestBodySerializer { - public FakeuploadfilePostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} - public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "multipart/form-data"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java deleted file mode 100644 index 976aaee314e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfile.post; - -import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.FakeuploadfilePostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeuploadfilePostResponses { - public sealed interface EndpointResponse permits EndpointFakeuploadfilePostCode200Response {} - - public record EndpointFakeuploadfilePostCode200Response( - HttpResponse response, - FakeuploadfilePostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeuploadfilePostCode200ResponseDeserializer {} - - public static final class StatusFakeuploadfilePostCode200ResponseDeserializer extends FakeuploadfilePostCode200Response.FakeuploadfilePostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeuploadfilePostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeuploadfilePostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeuploadfilePostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeuploadfilePostCode200ResponseDeserializer castDeserializer = (StatusFakeuploadfilePostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeuploadfilePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java deleted file mode 100644 index 4632d7c9bae..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ /dev/null @@ -1,251 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class MultipartformdataSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class MultipartformdataAdditionalMetadata extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable MultipartformdataAdditionalMetadata instance = null; - public static MultipartformdataAdditionalMetadata getInstance() { - if (instance == null) { - instance = new MultipartformdataAdditionalMetadata(); - } - return instance; - } - } - - - public static class MultipartformdataFile extends StringJsonSchema.StringJsonSchema1 { - // BinarySchema - private static @Nullable MultipartformdataFile instance = null; - public static MultipartformdataFile getInstance() { - if (instance == null) { - instance = new MultipartformdataFile(); - } - return instance; - } - } - - - public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { - protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "file" - ); - public static final Set optionalKeys = Set.of( - "additionalMetadata" - ); - public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return MultipartformdataSchema1.getInstance().validate(arg, configuration); - } - - public String file() { - @Nullable Object value = get("file"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for file"); - } - return (String) value; - } - - public String additionalMetadata() throws UnsetPropertyException { - String key = "additionalMetadata"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for additionalMetadata"); - } - return (String) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForMultipartformdataFile { - Map getInstance(); - T getBuilderAfterMultipartformdataFile(Map instance); - - default T file(String value) { - var instance = getInstance(); - instance.put("file", value); - return getBuilderAfterMultipartformdataFile(instance); - } - } - - public interface SetterForMultipartformdataAdditionalMetadata { - Map getInstance(); - T getBuilderAfterMultipartformdataAdditionalMetadata(Map instance); - - default T additionalMetadata(String value) { - var instance = getInstance(); - instance.put("additionalMetadata", value); - return getBuilderAfterMultipartformdataAdditionalMetadata(instance); - } - } - - public static class MultipartformdataSchemaMap0Builder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataAdditionalMetadata { - private final Map instance; - private static final Set knownKeys = Set.of( - "file", - "additionalMetadata" - ); - public Set getKnownKeys() { - return knownKeys; - } - public MultipartformdataSchemaMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataAdditionalMetadata(Map instance) { - return this; - } - public MultipartformdataSchemaMap0Builder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - public static class MultipartformdataSchemaMapBuilder implements SetterForMultipartformdataFile { - private final Map instance; - public MultipartformdataSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataFile(Map instance) { - return new MultipartformdataSchemaMap0Builder(instance); - } - } - - - public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - @Nullable Object getData(); - } - - public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable MultipartformdataSchema1 instance = null; - - protected MultipartformdataSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("additionalMetadata", MultipartformdataAdditionalMetadata.class), - new PropertyEntry("file", MultipartformdataFile.class) - )) - .required(Set.of( - "file" - )) - ); - } - - public static MultipartformdataSchema1 getInstance() { - if (instance == null) { - instance = new MultipartformdataSchema1(); - } - return instance; - } - - public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new MultipartformdataSchemaMap(castProperties); - } - - public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java deleted file mode 100644 index 19ee4cb8e6b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfile.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakeuploadfilePostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - - public static class FakeuploadfilePostCode200Response1 extends ResponseDeserializer { - public FakeuploadfilePostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index efbbe4fc405..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.ApiResponseSchema; - -public class ApplicationjsonSchema extends ApiResponseSchema { - // $refed class - - - public static class ApplicationjsonSchema1 extends ApiResponseSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java deleted file mode 100644 index 9b664f746cf..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfiles; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Fakeuploadfiles; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakeuploadfilesPost { - private static class PostProvider { - private static final String method = "post"; - - public static FakeuploadfilesPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new FakeuploadfilesPostRequestBody.FakeuploadfilesPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakeuploadfiles.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakeuploadfilesPostResponses.FakeuploadfilesPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeuploadfilesPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface UploadFilesOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakeuploadfilesPostResponses.EndpointResponse uploadFiles(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public FakeuploadfilesPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostRequest getInstance(); - T getBuilderAfterRequestBody(PostRequest instance); - default T requestBody(FakeuploadfilesPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostRequest getInstance(); - T getBuilderAfterServerIndex(PostRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostRequest getInstance(); - T getBuilderAfterTimeout(PostRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { - private final PostRequest instance; - - public PostRequestBuilder() { - this.instance = new PostRequest(); - } - - public PostRequest build() { - return instance; - } - - public PostRequest getInstance() { - return instance; - } - - public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { - return this; - } - - public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java deleted file mode 100644 index c95dc09ce28..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfiles.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class FakeuploadfilesPostRequestBody { - public sealed interface SealedMediaType permits MultipartformdataMediaType {} - - public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { - public MultipartformdataMediaType() { - this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class FakeuploadfilesPostRequestBody1 extends RequestBodySerializer { - public FakeuploadfilesPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} - public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "multipart/form-data"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java deleted file mode 100644 index 77ed06b1d42..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfiles.post; - -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.FakeuploadfilesPostCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakeuploadfilesPostResponses { - public sealed interface EndpointResponse permits EndpointFakeuploadfilesPostCode200Response {} - - public record EndpointFakeuploadfilesPostCode200Response( - HttpResponse response, - FakeuploadfilesPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakeuploadfilesPostCode200ResponseDeserializer {} - - public static final class StatusFakeuploadfilesPostCode200ResponseDeserializer extends FakeuploadfilesPostCode200Response.FakeuploadfilesPostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class FakeuploadfilesPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public FakeuploadfilesPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakeuploadfilesPostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusFakeuploadfilesPostCode200ResponseDeserializer castDeserializer = (StatusFakeuploadfilesPostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakeuploadfilesPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java deleted file mode 100644 index 355c33d6d56..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ /dev/null @@ -1,325 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class MultipartformdataSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class MultipartformdataItems extends StringJsonSchema.StringJsonSchema1 { - // BinarySchema - private static @Nullable MultipartformdataItems instance = null; - public static MultipartformdataItems getInstance() { - if (instance == null) { - instance = new MultipartformdataItems(); - } - return instance; - } - } - - - public static class MultipartformdataFilesList extends FrozenList { - protected MultipartformdataFilesList(FrozenList m) { - super(m); - } - public static MultipartformdataFilesList of(List arg, SchemaConfiguration configuration) throws ValidationException { - return MultipartformdataFiles.getInstance().validate(arg, configuration); - } - } - - public static class MultipartformdataFilesListBuilder { - // class to build List - private final List list; - - public MultipartformdataFilesListBuilder() { - list = new ArrayList<>(); - } - - public MultipartformdataFilesListBuilder(List list) { - this.list = list; - } - - public MultipartformdataFilesListBuilder add(String item) { - list.add(item); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface MultipartformdataFilesBoxed permits MultipartformdataFilesBoxedList { - @Nullable Object getData(); - } - - public record MultipartformdataFilesBoxedList(MultipartformdataFilesList data) implements MultipartformdataFilesBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class MultipartformdataFiles extends JsonSchema implements ListSchemaValidator { - private static @Nullable MultipartformdataFiles instance = null; - - protected MultipartformdataFiles() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(MultipartformdataItems.class) - ); - } - - public static MultipartformdataFiles getInstance() { - if (instance == null) { - instance = new MultipartformdataFiles(); - } - return instance; - } - - @Override - public MultipartformdataFilesList getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new MultipartformdataFilesList(newInstanceItems); - } - - public MultipartformdataFilesList validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public MultipartformdataFilesBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataFilesBoxedList(validate(arg, configuration)); - } - @Override - public MultipartformdataFilesBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { - protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "files" - ); - public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return MultipartformdataSchema1.getInstance().validate(arg, configuration); - } - - public MultipartformdataFilesList files() throws UnsetPropertyException { - String key = "files"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof MultipartformdataFilesList)) { - throw new RuntimeException("Invalid value stored for files"); - } - return (MultipartformdataFilesList) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForMultipartformdataFiles { - Map getInstance(); - T getBuilderAfterMultipartformdataFiles(Map instance); - - default T files(List value) { - var instance = getInstance(); - instance.put("files", value); - return getBuilderAfterMultipartformdataFiles(instance); - } - } - - public static class MultipartformdataSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataFiles { - private final Map instance; - private static final Set knownKeys = Set.of( - "files" - ); - public Set getKnownKeys() { - return knownKeys; - } - public MultipartformdataSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataFiles(Map instance) { - return this; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - @Nullable Object getData(); - } - - public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable MultipartformdataSchema1 instance = null; - - protected MultipartformdataSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("files", MultipartformdataFiles.class) - )) - ); - } - - public static MultipartformdataSchema1 getInstance() { - if (instance == null) { - instance = new MultipartformdataSchema1(); - } - return instance; - } - - public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new MultipartformdataSchemaMap(castProperties); - } - - public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java deleted file mode 100644 index b2d4ff90442..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakeuploadfilesPostCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } - - public static class FakeuploadfilesPostCode200Response1 extends ResponseDeserializer { - public FakeuploadfilesPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index df28450acdb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.ApiResponseSchema; - -public class ApplicationjsonSchema extends ApiResponseSchema { - // $refed class - - - public static class ApplicationjsonSchema1 extends ApiResponseSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java deleted file mode 100644 index 88bfbb61533..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Fakewildcardresponses; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FakewildcardresponsesGet { - private static class GetProvider { - private static final String method = "get"; - - public static FakewildcardresponsesGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Fakewildcardresponses.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FakewildcardresponsesGetResponses.FakewildcardresponsesGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakewildcardresponsesGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface WildCardResponsesOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FakewildcardresponsesGetResponses.EndpointResponse wildCardResponses(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java deleted file mode 100644 index 893cf1358e5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java +++ /dev/null @@ -1,139 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get; - -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode1XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode200Response; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode2XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode3XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode4XXResponse; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode5XXResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FakewildcardresponsesGetResponses { - public sealed interface EndpointResponse permits EndpointFakewildcardresponsesGetCode1XXResponse, EndpointFakewildcardresponsesGetCode2XXResponse, EndpointFakewildcardresponsesGetCode200Response, EndpointFakewildcardresponsesGetCode3XXResponse {} - - public record EndpointFakewildcardresponsesGetCode1XXResponse( - HttpResponse response, - FakewildcardresponsesGetCode1XXResponse.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public record EndpointFakewildcardresponsesGetCode2XXResponse( - HttpResponse response, - FakewildcardresponsesGetCode2XXResponse.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public record EndpointFakewildcardresponsesGetCode200Response( - HttpResponse response, - FakewildcardresponsesGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public record EndpointFakewildcardresponsesGetCode3XXResponse( - HttpResponse response, - FakewildcardresponsesGetCode3XXResponse.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusFakewildcardresponsesGetCode200ResponseDeserializer {} - - public static final class StatusFakewildcardresponsesGetCode200ResponseDeserializer extends FakewildcardresponsesGetCode200Response.FakewildcardresponsesGetCode200Response1 implements StatusCodeResponseDeserializer { - } - public sealed interface WildcardCodeResponseDeserializer permits WildcardFakewildcardresponsesGetCode1XXResponseDeserializer, WildcardFakewildcardresponsesGetCode2XXResponseDeserializer, WildcardFakewildcardresponsesGetCode3XXResponseDeserializer, WildcardFakewildcardresponsesGetCode4XXResponseDeserializer, WildcardFakewildcardresponsesGetCode5XXResponseDeserializer {} - - public static final class WildcardFakewildcardresponsesGetCode1XXResponseDeserializer extends FakewildcardresponsesGetCode1XXResponse.FakewildcardresponsesGetCode1XXResponse1 implements WildcardCodeResponseDeserializer { - } - public static final class WildcardFakewildcardresponsesGetCode2XXResponseDeserializer extends FakewildcardresponsesGetCode2XXResponse.FakewildcardresponsesGetCode2XXResponse1 implements WildcardCodeResponseDeserializer { - } - public static final class WildcardFakewildcardresponsesGetCode3XXResponseDeserializer extends FakewildcardresponsesGetCode3XXResponse.FakewildcardresponsesGetCode3XXResponse1 implements WildcardCodeResponseDeserializer { - } - public static final class WildcardFakewildcardresponsesGetCode4XXResponseDeserializer extends FakewildcardresponsesGetCode4XXResponse.FakewildcardresponsesGetCode4XXResponse1 implements WildcardCodeResponseDeserializer { - } - public static final class WildcardFakewildcardresponsesGetCode5XXResponseDeserializer extends FakewildcardresponsesGetCode5XXResponse.FakewildcardresponsesGetCode5XXResponse1 implements WildcardCodeResponseDeserializer { - } - - public static final class FakewildcardresponsesGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - private final Map wildcardCodeToResponseDeserializer; - public FakewildcardresponsesGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusFakewildcardresponsesGetCode200ResponseDeserializer()) - ); - this.wildcardCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("1", new WildcardFakewildcardresponsesGetCode1XXResponseDeserializer()), - new AbstractMap.SimpleEntry<>("2", new WildcardFakewildcardresponsesGetCode2XXResponseDeserializer()), - new AbstractMap.SimpleEntry<>("3", new WildcardFakewildcardresponsesGetCode3XXResponseDeserializer()), - new AbstractMap.SimpleEntry<>("4", new WildcardFakewildcardresponsesGetCode4XXResponseDeserializer()), - new AbstractMap.SimpleEntry<>("5", new WildcardFakewildcardresponsesGetCode5XXResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer != null) { - StatusFakewildcardresponsesGetCode200ResponseDeserializer castDeserializer = (StatusFakewildcardresponsesGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointFakewildcardresponsesGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - @Nullable WildcardCodeResponseDeserializer wildcardCodeDeserializer = wildcardCodeToResponseDeserializer.get(statusCode); - if (wildcardCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode1XXResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new FakewildcardresponsesGetCode1XXResponse.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode2XXResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new FakewildcardresponsesGetCode2XXResponse.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode3XXResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new FakewildcardresponsesGetCode3XXResponse.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode4XXResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new FakewildcardresponsesGetCode4XXResponse.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else { - WildcardFakewildcardresponsesGetCode5XXResponseDeserializer castDeserializer = (WildcardFakewildcardresponsesGetCode5XXResponseDeserializer) wildcardCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new FakewildcardresponsesGetCode5XXResponse.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java deleted file mode 100644 index 9be539481c2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code1xxresponse.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakewildcardresponsesGetCode1XXResponse { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakewildcardresponsesGetCode1XXResponse1 extends ResponseDeserializer { - public FakewildcardresponsesGetCode1XXResponse1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java deleted file mode 100644 index 6176befb30c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakewildcardresponsesGetCode200Response { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakewildcardresponsesGetCode200Response1 extends ResponseDeserializer { - public FakewildcardresponsesGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java deleted file mode 100644 index 5a471b38e05..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code2xxresponse.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakewildcardresponsesGetCode2XXResponse { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakewildcardresponsesGetCode2XXResponse1 extends ResponseDeserializer { - public FakewildcardresponsesGetCode2XXResponse1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java deleted file mode 100644 index df2e4ea8d9d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code3xxresponse.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakewildcardresponsesGetCode3XXResponse { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakewildcardresponsesGetCode3XXResponse1 extends ResponseDeserializer { - public FakewildcardresponsesGetCode3XXResponse1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java deleted file mode 100644 index 0c46483284c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code4xxresponse.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakewildcardresponsesGetCode4XXResponse { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakewildcardresponsesGetCode4XXResponse1 extends ResponseDeserializer { - public FakewildcardresponsesGetCode4XXResponse1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java deleted file mode 100644 index f4c919e3ded..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code5xxresponse.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FakewildcardresponsesGetCode5XXResponse { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FakewildcardresponsesGetCode5XXResponse1 extends ResponseDeserializer { - public FakewildcardresponsesGetCode5XXResponse1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index bc6d5118003..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code1xxresponse.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 7e12b7b922a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code200response.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index a5d19b2fa85..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code2xxresponse.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 3b4a18033e7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code3xxresponse.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 346bbf338f9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code4xxresponse.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 6b9394e4858..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code5xxresponse.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; - -public class ApplicationjsonSchema extends AnyTypeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java deleted file mode 100644 index e5828e4cfe5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openapijsonschematools.client.paths.foo; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; -import org.openapijsonschematools.client.paths.foo.get.FooGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Foo; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class FooGet { - private static class GetProvider { - private static final String method = "get"; - - public static FooGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Foo.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new FooGetResponses.FooGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FooGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface FooGetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default FooGetResponses.EndpointResponse fooGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public FooGetServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(FooGetServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java deleted file mode 100644 index c447c27c206..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.openapijsonschematools.client.paths.foo.get; - -import org.openapijsonschematools.client.paths.foo.get.responses.FooGetCodedefaultResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class FooGetResponses { - public sealed interface EndpointResponse permits EndpointFooGetCodedefaultResponse {} - - public record EndpointFooGetCodedefaultResponse( - HttpResponse response, - FooGetCodedefaultResponse.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public static final class FooGetResponses1 implements ResponsesDeserializer { - private final FooGetCodedefaultResponse.FooGetCodedefaultResponse1 defaultResponseDeserializer; - public FooGetResponses1() { - this.defaultResponseDeserializer = new FooGetCodedefaultResponse.FooGetCodedefaultResponse1(); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointFooGetCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java deleted file mode 100644 index ca1bc261831..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.foo.get; - -import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer0; -import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer1; -import org.openapijsonschematools.client.servers.Server; -import org.openapijsonschematools.client.servers.ServerProvider; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.Objects; - -public class FooGetServerInfo { - public static class FooGetServerInfo1 implements ServerProvider { - private final FooGetServer0 server0; - private final FooGetServer1 server1; - - FooGetServerInfo1( - @Nullable FooGetServer0 server0, - @Nullable FooGetServer1 server1 - ) { - this.server0 = Objects.requireNonNullElseGet(server0, FooGetServer0::new); - this.server1 = Objects.requireNonNullElseGet(server1, FooGetServer1::new); - } - - @Override - public Server getServer(ServerIndex serverIndex) { - switch (serverIndex) { - case SERVER_0: - return server0; - default: - return server1; - } - } - } - - public static class FooGetServerInfoBuilder { - private @Nullable FooGetServer0 server0; - private @Nullable FooGetServer1 server1; - - public FooGetServerInfoBuilder() {} - - public FooGetServerInfoBuilder fooGetServer0(FooGetServer0 server0) { - this.server0 = server0; - return this; - } - - public FooGetServerInfoBuilder fooGetServer1(FooGetServer1 server1) { - this.server1 = server1; - return this; - } - - public FooGetServerInfo1 build() { - return new FooGetServerInfo1( - server0, - server1 - ); - } - } - - public enum ServerIndex { - SERVER_0, - SERVER_1 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java deleted file mode 100644 index 8d43ab82cfb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.foo.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.foo.get.responses.codedefaultresponse.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class FooGetCodedefaultResponse { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} - public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } - - public static class FooGetCodedefaultResponse1 extends ResponseDeserializer { - public FooGetCodedefaultResponse1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 8c8442fee2b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,179 +0,0 @@ -package org.openapijsonschematools.client.paths.foo.get.responses.codedefaultresponse.content.applicationjson; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Foo; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class ApplicationjsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchemaMap extends FrozenMap<@Nullable Object> { - protected ApplicationjsonSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "string" - ); - public static ApplicationjsonSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return ApplicationjsonSchema1.getInstance().validate(arg, configuration); - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForApplicationjsonString { - Map getInstance(); - T getBuilderAfterApplicationjsonString(Map instance); - - default T setString(Map value) { - var instance = getInstance(); - instance.put("string", value); - return getBuilderAfterApplicationjsonString(instance); - } - } - - public static class ApplicationjsonSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForApplicationjsonString { - private final Map instance; - private static final Set knownKeys = Set.of( - "string" - ); - public Set getKnownKeys() { - return knownKeys; - } - public ApplicationjsonSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public ApplicationjsonSchemaMapBuilder getBuilderAfterApplicationjsonString(Map instance) { - return this; - } - public ApplicationjsonSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedMap { - @Nullable Object getData(); - } - - public record ApplicationjsonSchema1BoxedMap(ApplicationjsonSchemaMap data) implements ApplicationjsonSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable ApplicationjsonSchema1 instance = null; - - protected ApplicationjsonSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("string", Foo.Foo1.class) - )) - ); - } - - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - - public ApplicationjsonSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new ApplicationjsonSchemaMap(castProperties); - } - - public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java deleted file mode 100644 index 1ea6b69b607..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.openapijsonschematools.client.paths.foo.get.servers; - -import org.openapijsonschematools.client.servers.ServerWithoutVariables; - -public class FooGetServer0 extends ServerWithoutVariables { - public FooGetServer0() { - super("https://path-server-test.petstore.local/v2"); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java deleted file mode 100644 index 06657dc917f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.openapijsonschematools.client.paths.foo.get.servers; - -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.servers.ServerWithVariables; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.paths.foo.get.servers.server1.FooGetServer1Variables; - -import java.util.AbstractMap; - -public class FooGetServer1 extends ServerWithVariables { - private static FooGetServer1Variables.VariablesMap getVariables() { - try { - return FooGetServer1Variables.FooGetServer1Variables1.getInstance().validate( - MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("version", FooGetServer1Variables.Version.getInstance().defaultValue()) - ), - new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) - ); - } catch (ValidationException e) { - throw new RuntimeException(e); - } - } - - public FooGetServer1() { - super( - "https://petstore.swagger.io/{version}", - getVariables() - ); - } - public FooGetServer1(FooGetServer1Variables.VariablesMap variables) { - super("https://petstore.swagger.io/{version}", variables); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java deleted file mode 100644 index 35368a77bd1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java +++ /dev/null @@ -1,313 +0,0 @@ -package org.openapijsonschematools.client.paths.foo.get.servers.server1; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class FooGetServer1Variables { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - public enum StringVersionEnums implements StringValueMethod { - V1("v1"), - V2("v2"); - private final String value; - - StringVersionEnums(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface VersionBoxed permits VersionBoxedString { - @Nullable Object getData(); - } - - public record VersionBoxedString(String data) implements VersionBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Version instance = null; - - protected Version() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "v1", - "v2" - )) - .defaultValue("v1") - ); - } - - public static Version getInstance() { - if (instance == null) { - instance = new Version(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new VersionBoxedString(validate(arg, configuration)); - } - @Override - public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class VariablesMap extends FrozenMap { - protected VariablesMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "version" - ); - public static final Set optionalKeys = Set.of(); - public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return FooGetServer1Variables1.getInstance().validate(arg, configuration); - } - - public String version() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForVersion { - Map getInstance(); - T getBuilderAfterVersion(Map instance); - - default T version(String value) { - var instance = getInstance(); - instance.put("version", value); - return getBuilderAfterVersion(instance); - } - - default T version(StringVersionEnums value) { - var instance = getInstance(); - instance.put("version", value.value()); - return getBuilderAfterVersion(instance); - } - } - - public static class VariablesMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "version" - ); - public Set getKnownKeys() { - return knownKeys; - } - public VariablesMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class VariablesMapBuilder implements SetterForVersion { - private final Map instance; - public VariablesMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public VariablesMap0Builder getBuilderAfterVersion(Map instance) { - return new VariablesMap0Builder(instance); - } - } - - - public sealed interface FooGetServer1Variables1Boxed permits FooGetServer1Variables1BoxedMap { - @Nullable Object getData(); - } - - public record FooGetServer1Variables1BoxedMap(VariablesMap data) implements FooGetServer1Variables1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class FooGetServer1Variables1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable FooGetServer1Variables1 instance = null; - - protected FooGetServer1Variables1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("version", Version.class) - )) - .required(Set.of( - "version" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static FooGetServer1Variables1 getInstance() { - if (instance == null) { - instance = new FooGetServer1Variables1(); - } - return instance; - } - - public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new VariablesMap(castProperties); - } - - public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public FooGetServer1Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new FooGetServer1Variables1BoxedMap(validate(arg, configuration)); - } - @Override - public FooGetServer1Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java deleted file mode 100644 index 48fe27b7c77..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java +++ /dev/null @@ -1,215 +0,0 @@ -package org.openapijsonschematools.client.paths.pet; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; -import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; -import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Pet; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class PetPost { - private static class PostProvider extends AuthApplier { - private static final String method = "post"; - - public static PetPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new PetPostRequestBody.PetPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - Pet.path, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + Pet.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new PetPostResponses.PetPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default PetPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface AddPetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default PetPostResponses.EndpointResponse addPet(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public PetPostRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public PostRequest( - PetPostRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - PetPostSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public PetPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PostNullableRequest instance); - default T securityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(PetPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Post0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - requestBody, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java deleted file mode 100644 index a6dff90224b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java +++ /dev/null @@ -1,214 +0,0 @@ -package org.openapijsonschematools.client.paths.pet; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; -import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; -import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Pet; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class PetPut { - private static class PutProvider extends AuthApplier { - private static final String method = "put"; - - public static Void put( - PutRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new PetPutRequestBody.PetPutRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - Pet.path, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + Pet.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - return (Void) null; - } - } - - public interface PutOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Void put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface UpdatePetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Void updatePet(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Put extends ApiClient implements PutOperation { - public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PutRequest { - public PetPutRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public PutRequest( - PetPutRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - PetPutSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class PutNullableRequest { - public PetPutRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - PutNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PutNullableRequest instance); - default T securityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(PutNullableRequest instance); - default T requestBody(PetPutRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Put0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PutNullableRequest instance; - - public Put0RequestBuilder(PutNullableRequest instance) { - this.instance = instance; - } - - public PutRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PutRequest( - requestBody, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { - return this; - } - - public Put0RequestBuilder getBuilderAfterSecurityIndex(PutNullableRequest instance) { - return this; - } - - public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { - return this; - } - } - public static class PutRequestBuilder implements SetterForRequestBody { - private final PutNullableRequest instance; - - public PutRequestBuilder() { - this.instance = new PutNullableRequest(); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put0RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { - return new Put0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java deleted file mode 100644 index f2304ccf791..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.post; - -import org.openapijsonschematools.client.components.requestbodies.Pet; - -public class PetPostRequestBody extends Pet { - public static class PetPostRequestBody1 extends Pet1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java deleted file mode 100644 index b5a6f364f9c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.post; - -import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode200Response; -import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode405Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class PetPostResponses { - public sealed interface EndpointResponse permits EndpointPetPostCode200Response {} - - public record EndpointPetPostCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusPetPostCode200ResponseDeserializer, StatusPetPostCode405ResponseDeserializer {} - - public static final class StatusPetPostCode200ResponseDeserializer extends PetPostCode200Response.PetPostCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusPetPostCode405ResponseDeserializer extends PetPostCode405Response.PetPostCode405Response1 implements StatusCodeResponseDeserializer { - } - - public static final class PetPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public PetPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusPetPostCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("405", new StatusPetPostCode405ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusPetPostCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointPetPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else { - StatusPetPostCode405ResponseDeserializer castDeserializer = (StatusPetPostCode405ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new PetPostCode405Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java deleted file mode 100644 index 91df6b3f3e8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.post; - -import org.openapijsonschematools.client.paths.pet.post.security.PetPostSecurityRequirementObject0; -import org.openapijsonschematools.client.paths.pet.post.security.PetPostSecurityRequirementObject1; -import org.openapijsonschematools.client.paths.pet.post.security.PetPostSecurityRequirementObject2; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class PetPostSecurityInfo { - public static class PetPostSecurityInfo1 implements SecurityRequirementObjectProvider { - public final PetPostSecurityRequirementObject0 security0; - public final PetPostSecurityRequirementObject1 security1; - public final PetPostSecurityRequirementObject2 security2; - - public PetPostSecurityInfo1() { - security0 = new PetPostSecurityRequirementObject0(); - security1 = new PetPostSecurityRequirementObject1(); - security2 = new PetPostSecurityRequirementObject2(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - switch (securityIndex) { - case SECURITY_0: - return security0; - case SECURITY_1: - return security1; - default: - return security2; - } - } - } - - public enum SecurityIndex { - SECURITY_0, - SECURITY_1, - SECURITY_2 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java deleted file mode 100644 index d32f61af7bc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.post.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class PetPostCode200Response extends SuccessDescriptionOnly { - public static class PetPostCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java deleted file mode 100644 index 30ed877e1b3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetPostCode405Response { - - public static class PetPostCode405Response1 extends ResponseDeserializer { - public PetPostCode405Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java deleted file mode 100644 index b1e63c8cdde..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.post.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetPostSecurityRequirementObject0 extends SecurityRequirementObject { - - public PetPostSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - ApiKey.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java deleted file mode 100644 index 3d9d95fe223..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.post.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetPostSecurityRequirementObject1 extends SecurityRequirementObject { - - public PetPostSecurityRequirementObject1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - HttpSignatureTest.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java deleted file mode 100644 index 81ac4bb60b1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.post.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetPostSecurityRequirementObject2 extends SecurityRequirementObject { - - public PetPostSecurityRequirementObject2() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - PetstoreAuth.class, - List.of("write:pets", "read:pets") - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java deleted file mode 100644 index 4faecd10dc9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.put; - -import org.openapijsonschematools.client.components.requestbodies.Pet; - -public class PetPutRequestBody extends Pet { - public static class PetPutRequestBody1 extends Pet1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java deleted file mode 100644 index a8e998184ef..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java +++ /dev/null @@ -1,72 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.put; - -import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode400Response; -import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode404Response; -import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode405Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class PetPutResponses { - - public sealed interface StatusCodeResponseDeserializer permits StatusPetPutCode400ResponseDeserializer, StatusPetPutCode404ResponseDeserializer, StatusPetPutCode405ResponseDeserializer {} - - public static final class StatusPetPutCode400ResponseDeserializer extends PetPutCode400Response.PetPutCode400Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusPetPutCode404ResponseDeserializer extends PetPutCode404Response.PetPutCode404Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusPetPutCode405ResponseDeserializer extends PetPutCode405Response.PetPutCode405Response1 implements StatusCodeResponseDeserializer { - } - - public static final class PetPutResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public PetPutResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("400", new StatusPetPutCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusPetPutCode404ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("405", new StatusPetPutCode405ResponseDeserializer()) - ); - } - - public Void deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusPetPutCode400ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new PetPutCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else if (statusCodeDeserializer instanceof StatusPetPutCode404ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new PetPutCode404Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else { - StatusPetPutCode405ResponseDeserializer castDeserializer = (StatusPetPutCode405ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new PetPutCode405Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java deleted file mode 100644 index 35d27e66846..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.put; - -import org.openapijsonschematools.client.paths.pet.put.security.PetPutSecurityRequirementObject0; -import org.openapijsonschematools.client.paths.pet.put.security.PetPutSecurityRequirementObject1; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class PetPutSecurityInfo { - public static class PetPutSecurityInfo1 implements SecurityRequirementObjectProvider { - public final PetPutSecurityRequirementObject0 security0; - public final PetPutSecurityRequirementObject1 security1; - - public PetPutSecurityInfo1() { - security0 = new PetPutSecurityRequirementObject0(); - security1 = new PetPutSecurityRequirementObject1(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - switch (securityIndex) { - case SECURITY_0: - return security0; - default: - return security1; - } - } - } - - public enum SecurityIndex { - SECURITY_0, - SECURITY_1 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java deleted file mode 100644 index f67abd8a562..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.put.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetPutCode400Response { - - public static class PetPutCode400Response1 extends ResponseDeserializer { - public PetPutCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java deleted file mode 100644 index caa7f0ab930..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.put.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetPutCode404Response { - - public static class PetPutCode404Response1 extends ResponseDeserializer { - public PetPutCode404Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java deleted file mode 100644 index 117fd9b4d99..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.put.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetPutCode405Response { - - public static class PetPutCode405Response1 extends ResponseDeserializer { - public PetPutCode405Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java deleted file mode 100644 index e1e15505dca..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.put.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetPutSecurityRequirementObject0 extends SecurityRequirementObject { - - public PetPutSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - HttpSignatureTest.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java deleted file mode 100644 index e2264fa535c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.pet.put.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetPutSecurityRequirementObject1 extends SecurityRequirementObject { - - public PetPutSecurityRequirementObject1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - PetstoreAuth.class, - List.of("write:pets", "read:pets") - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java deleted file mode 100644 index d4b8b02fa41..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java +++ /dev/null @@ -1,212 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; -import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetSecurityInfo; -import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetQueryParameters; -import org.openapijsonschematools.client.paths.petfindbystatus.get.Parameters; -import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Petfindbystatus; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class PetfindbystatusGet { - private static class GetProvider extends AuthApplier { - private static final String method = "get"; - - public static PetfindbystatusGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - Petfindbystatus.path, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + Petfindbystatus.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new PetfindbystatusGetResponses.PetfindbystatusGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default PetfindbystatusGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface FindPetsByStatusOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default PetfindbystatusGetResponses.EndpointResponse findPetsByStatus(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters; - public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; - public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public GetRequest( - PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters, - PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex, - PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.queryParameters = queryParameters; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class GetNullableRequest { - public PetfindbystatusGetQueryParameters.@Nullable QueryParametersMap queryParameters; - public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; - public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(PetfindbystatusServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - GetNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(GetNullableRequest instance); - default T securityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForQueryParameters { - GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final GetNullableRequest instance; - - public Get0RequestBuilder(GetNullableRequest instance) { - this.instance = instance; - } - - public GetRequest build() { - var queryParameters = instance.queryParameters; - if (queryParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new GetRequest( - queryParameters, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { - return this; - } - } - public static class GetRequestBuilder implements SetterForQueryParameters { - private final GetNullableRequest instance; - - public GetRequestBuilder() { - this.instance = new GetNullableRequest(); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { - return new Get0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java deleted file mode 100644 index e0ed6efd6f2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus; - -import org.openapijsonschematools.client.paths.petfindbystatus.servers.PetfindbystatusServer0; -import org.openapijsonschematools.client.paths.petfindbystatus.servers.PetfindbystatusServer1; -import org.openapijsonschematools.client.servers.Server; -import org.openapijsonschematools.client.servers.ServerProvider; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.Objects; - -public class PetfindbystatusServerInfo { - public static class PetfindbystatusServerInfo1 implements ServerProvider { - private final PetfindbystatusServer0 server0; - private final PetfindbystatusServer1 server1; - - PetfindbystatusServerInfo1( - @Nullable PetfindbystatusServer0 server0, - @Nullable PetfindbystatusServer1 server1 - ) { - this.server0 = Objects.requireNonNullElseGet(server0, PetfindbystatusServer0::new); - this.server1 = Objects.requireNonNullElseGet(server1, PetfindbystatusServer1::new); - } - - @Override - public Server getServer(ServerIndex serverIndex) { - switch (serverIndex) { - case SERVER_0: - return server0; - default: - return server1; - } - } - } - - public static class PetfindbystatusServerInfoBuilder { - private @Nullable PetfindbystatusServer0 server0; - private @Nullable PetfindbystatusServer1 server1; - - public PetfindbystatusServerInfoBuilder() {} - - public PetfindbystatusServerInfoBuilder petfindbystatusServer0(PetfindbystatusServer0 server0) { - this.server0 = server0; - return this; - } - - public PetfindbystatusServerInfoBuilder petfindbystatusServer1(PetfindbystatusServer1 server1) { - this.server1 = server1; - return this; - } - - public PetfindbystatusServerInfo1 build() { - return new PetfindbystatusServerInfo1( - server0, - server1 - ); - } - } - - public enum ServerIndex { - SERVER_0, - SERVER_1 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java deleted file mode 100644 index e1ac9de45c5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get; - -import org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("status", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java deleted file mode 100644 index 903dcda7c49..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java +++ /dev/null @@ -1,206 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class PetfindbystatusGetQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "status" - ); - public static final Set optionalKeys = Set.of(); - public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { - return PetfindbystatusGetQueryParameters1.getInstance().validate(arg, configuration); - } - - public Schema0.SchemaList0 status() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForStatus { - Map> getInstance(); - T getBuilderAfterStatus(Map> instance); - - default T status(List value) { - var instance = getInstance(); - instance.put("status", value); - return getBuilderAfterStatus(instance); - } - } - - public static class QueryParametersMap0Builder implements GenericBuilder>> { - private final Map> instance; - private static final Set knownKeys = Set.of( - "status" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMap0Builder(Map> instance) { - this.instance = instance; - } - public Map> build() { - return instance; - } - } - - public static class QueryParametersMapBuilder implements SetterForStatus { - private final Map> instance; - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map> getInstance() { - return instance; - } - public QueryParametersMap0Builder getBuilderAfterStatus(Map> instance) { - return new QueryParametersMap0Builder(instance); - } - } - - - public sealed interface PetfindbystatusGetQueryParameters1Boxed permits PetfindbystatusGetQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record PetfindbystatusGetQueryParameters1BoxedMap(QueryParametersMap data) implements PetfindbystatusGetQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class PetfindbystatusGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PetfindbystatusGetQueryParameters1 instance = null; - - protected PetfindbystatusGetQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("status", Schema0.Schema01.class) - )) - .required(Set.of( - "status" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static PetfindbystatusGetQueryParameters1 getInstance() { - if (instance == null) { - instance = new PetfindbystatusGetQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Schema0.SchemaList0)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (Schema0.SchemaList0) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public PetfindbystatusGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PetfindbystatusGetQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public PetfindbystatusGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java deleted file mode 100644 index c4507e80287..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get; - -import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.PetfindbystatusGetCode200Response; -import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.PetfindbystatusGetCode400Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class PetfindbystatusGetResponses { - public sealed interface EndpointResponse permits EndpointPetfindbystatusGetCode200Response {} - - public record EndpointPetfindbystatusGetCode200Response( - HttpResponse response, - PetfindbystatusGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusPetfindbystatusGetCode200ResponseDeserializer, StatusPetfindbystatusGetCode400ResponseDeserializer {} - - public static final class StatusPetfindbystatusGetCode200ResponseDeserializer extends PetfindbystatusGetCode200Response.PetfindbystatusGetCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusPetfindbystatusGetCode400ResponseDeserializer extends PetfindbystatusGetCode400Response.PetfindbystatusGetCode400Response1 implements StatusCodeResponseDeserializer { - } - - public static final class PetfindbystatusGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public PetfindbystatusGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusPetfindbystatusGetCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusPetfindbystatusGetCode400ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusPetfindbystatusGetCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointPetfindbystatusGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else { - StatusPetfindbystatusGetCode400ResponseDeserializer castDeserializer = (StatusPetfindbystatusGetCode400ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new PetfindbystatusGetCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java deleted file mode 100644 index 7e2dd18d844..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get; - -import org.openapijsonschematools.client.paths.petfindbystatus.get.security.PetfindbystatusGetSecurityRequirementObject0; -import org.openapijsonschematools.client.paths.petfindbystatus.get.security.PetfindbystatusGetSecurityRequirementObject1; -import org.openapijsonschematools.client.paths.petfindbystatus.get.security.PetfindbystatusGetSecurityRequirementObject2; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class PetfindbystatusGetSecurityInfo { - public static class PetfindbystatusGetSecurityInfo1 implements SecurityRequirementObjectProvider { - public final PetfindbystatusGetSecurityRequirementObject0 security0; - public final PetfindbystatusGetSecurityRequirementObject1 security1; - public final PetfindbystatusGetSecurityRequirementObject2 security2; - - public PetfindbystatusGetSecurityInfo1() { - security0 = new PetfindbystatusGetSecurityRequirementObject0(); - security1 = new PetfindbystatusGetSecurityRequirementObject1(); - security2 = new PetfindbystatusGetSecurityRequirementObject2(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - switch (securityIndex) { - case SECURITY_0: - return security0; - case SECURITY_1: - return security1; - default: - return security2; - } - } - } - - public enum SecurityIndex { - SECURITY_0, - SECURITY_1, - SECURITY_2 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java deleted file mode 100644 index b77d3c07561..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "status", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java deleted file mode 100644 index 43ff824d739..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,255 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.parameter0; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema0 { - // nest classes so all schemas and input/output classes can be public - - public enum StringItemsEnums0 implements StringValueMethod { - AVAILABLE("available"), - PENDING("pending"), - SOLD("sold"); - private final String value; - - StringItemsEnums0(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface Items0Boxed permits Items0BoxedString { - @Nullable Object getData(); - } - - public record Items0BoxedString(String data) implements Items0Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Items0 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Items0 instance = null; - - protected Items0() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "available", - "pending", - "sold" - )) - .defaultValue("available") - ); - } - - public static Items0 getInstance() { - if (instance == null) { - instance = new Items0(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringItemsEnums0 arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public Items0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new Items0BoxedString(validate(arg, configuration)); - } - @Override - public Items0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class SchemaList0 extends FrozenList { - protected SchemaList0(FrozenList m) { - super(m); - } - public static SchemaList0 of(List arg, SchemaConfiguration configuration) throws ValidationException { - return Schema01.getInstance().validate(arg, configuration); - } - } - - public static class SchemaListBuilder0 { - // class to build List - private final List list; - - public SchemaListBuilder0() { - list = new ArrayList<>(); - } - - public SchemaListBuilder0(List list) { - this.list = list; - } - - public SchemaListBuilder0 add(String item) { - list.add(item); - return this; - } - - public SchemaListBuilder0 add(StringItemsEnums0 item) { - list.add(item.value()); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface Schema01Boxed permits Schema01BoxedList { - @Nullable Object getData(); - } - - public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema01 extends JsonSchema implements ListSchemaValidator { - private static @Nullable Schema01 instance = null; - - protected Schema01() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(Items0.class) - ); - } - - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - - @Override - public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new SchemaList0(newInstanceItems); - } - - public SchemaList0 validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedList(validate(arg, configuration)); - } - @Override - public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.java deleted file mode 100644 index 824d60a6907..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessfulXmlAndJsonArrayOfPet; - -public class PetfindbystatusGetCode200Response extends SuccessfulXmlAndJsonArrayOfPet { - public static class PetfindbystatusGetCode200Response1 extends SuccessfulXmlAndJsonArrayOfPet1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java deleted file mode 100644 index d05bfe4df56..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetfindbystatusGetCode400Response { - - public static class PetfindbystatusGetCode400Response1 extends ResponseDeserializer { - public PetfindbystatusGetCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java deleted file mode 100644 index 0f8bcbc46b0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetfindbystatusGetSecurityRequirementObject0 extends SecurityRequirementObject { - - public PetfindbystatusGetSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - ApiKey.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java deleted file mode 100644 index d96864b78a1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetfindbystatusGetSecurityRequirementObject1 extends SecurityRequirementObject { - - public PetfindbystatusGetSecurityRequirementObject1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - HttpSignatureTest.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java deleted file mode 100644 index d5da83b6640..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.get.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetfindbystatusGetSecurityRequirementObject2 extends SecurityRequirementObject { - - public PetfindbystatusGetSecurityRequirementObject2() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - PetstoreAuth.class, - List.of("write:pets", "read:pets") - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer0.java deleted file mode 100644 index d548b1da5db..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer0.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.servers; - -import org.openapijsonschematools.client.servers.ServerWithoutVariables; - -public class PetfindbystatusServer0 extends ServerWithoutVariables { - public PetfindbystatusServer0() { - super("https://path-server-test.petstore.local/v2"); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java deleted file mode 100644 index 5d73d07d98b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.servers; - -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.servers.ServerWithVariables; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.PetfindbystatusServer1Variables; - -import java.util.AbstractMap; - -public class PetfindbystatusServer1 extends ServerWithVariables { - private static PetfindbystatusServer1Variables.VariablesMap getVariables() { - try { - return PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1.getInstance().validate( - MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("version", PetfindbystatusServer1Variables.Version.getInstance().defaultValue()) - ), - new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) - ); - } catch (ValidationException e) { - throw new RuntimeException(e); - } - } - - public PetfindbystatusServer1() { - super( - "https://petstore.swagger.io/{version}", - getVariables() - ); - } - public PetfindbystatusServer1(PetfindbystatusServer1Variables.VariablesMap variables) { - super("https://petstore.swagger.io/{version}", variables); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java deleted file mode 100644 index 73133822702..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java +++ /dev/null @@ -1,313 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbystatus.servers.server1; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class PetfindbystatusServer1Variables { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - public enum StringVersionEnums implements StringValueMethod { - V1("v1"), - V2("v2"); - private final String value; - - StringVersionEnums(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface VersionBoxed permits VersionBoxedString { - @Nullable Object getData(); - } - - public record VersionBoxedString(String data) implements VersionBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Version instance = null; - - protected Version() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "v1", - "v2" - )) - .defaultValue("v1") - ); - } - - public static Version getInstance() { - if (instance == null) { - instance = new Version(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new VersionBoxedString(validate(arg, configuration)); - } - @Override - public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class VariablesMap extends FrozenMap { - protected VariablesMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "version" - ); - public static final Set optionalKeys = Set.of(); - public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return PetfindbystatusServer1Variables1.getInstance().validate(arg, configuration); - } - - public String version() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForVersion { - Map getInstance(); - T getBuilderAfterVersion(Map instance); - - default T version(String value) { - var instance = getInstance(); - instance.put("version", value); - return getBuilderAfterVersion(instance); - } - - default T version(StringVersionEnums value) { - var instance = getInstance(); - instance.put("version", value.value()); - return getBuilderAfterVersion(instance); - } - } - - public static class VariablesMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "version" - ); - public Set getKnownKeys() { - return knownKeys; - } - public VariablesMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class VariablesMapBuilder implements SetterForVersion { - private final Map instance; - public VariablesMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public VariablesMap0Builder getBuilderAfterVersion(Map instance) { - return new VariablesMap0Builder(instance); - } - } - - - public sealed interface PetfindbystatusServer1Variables1Boxed permits PetfindbystatusServer1Variables1BoxedMap { - @Nullable Object getData(); - } - - public record PetfindbystatusServer1Variables1BoxedMap(VariablesMap data) implements PetfindbystatusServer1Variables1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class PetfindbystatusServer1Variables1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PetfindbystatusServer1Variables1 instance = null; - - protected PetfindbystatusServer1Variables1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("version", Version.class) - )) - .required(Set.of( - "version" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static PetfindbystatusServer1Variables1 getInstance() { - if (instance == null) { - instance = new PetfindbystatusServer1Variables1(); - } - return instance; - } - - public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new VariablesMap(castProperties); - } - - public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public PetfindbystatusServer1Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PetfindbystatusServer1Variables1BoxedMap(validate(arg, configuration)); - } - @Override - public PetfindbystatusServer1Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java deleted file mode 100644 index 1587efa7b5d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java +++ /dev/null @@ -1,212 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; -import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; -import org.openapijsonschematools.client.paths.petfindbytags.get.Parameters; -import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Petfindbytags; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class PetfindbytagsGet { - private static class GetProvider extends AuthApplier { - private static final String method = "get"; - - public static PetfindbytagsGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - Petfindbytags.path, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + Petfindbytags.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new PetfindbytagsGetResponses.PetfindbytagsGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default PetfindbytagsGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface FindPetsByTagsOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default PetfindbytagsGetResponses.EndpointResponse findPetsByTags(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public GetRequest( - PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.queryParameters = queryParameters; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class GetNullableRequest { - public PetfindbytagsGetQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - GetNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(GetNullableRequest instance); - default T securityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForQueryParameters { - GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final GetNullableRequest instance; - - public Get0RequestBuilder(GetNullableRequest instance) { - this.instance = instance; - } - - public GetRequest build() { - var queryParameters = instance.queryParameters; - if (queryParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new GetRequest( - queryParameters, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { - return this; - } - } - public static class GetRequestBuilder implements SetterForQueryParameters { - private final GetNullableRequest instance; - - public GetRequestBuilder() { - this.instance = new GetNullableRequest(); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { - return new Get0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Parameters.java deleted file mode 100644 index 5974cc73733..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get; - -import org.openapijsonschematools.client.paths.petfindbytags.get.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("tags", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java deleted file mode 100644 index 39aba0ed1c6..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java +++ /dev/null @@ -1,206 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.petfindbytags.get.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class PetfindbytagsGetQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap { - protected QueryParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "tags" - ); - public static final Set optionalKeys = Set.of(); - public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { - return PetfindbytagsGetQueryParameters1.getInstance().validate(arg, configuration); - } - - public Schema0.SchemaList0 tags() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForTags { - Map> getInstance(); - T getBuilderAfterTags(Map> instance); - - default T tags(List value) { - var instance = getInstance(); - instance.put("tags", value); - return getBuilderAfterTags(instance); - } - } - - public static class QueryParametersMap0Builder implements GenericBuilder>> { - private final Map> instance; - private static final Set knownKeys = Set.of( - "tags" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMap0Builder(Map> instance) { - this.instance = instance; - } - public Map> build() { - return instance; - } - } - - public static class QueryParametersMapBuilder implements SetterForTags { - private final Map> instance; - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map> getInstance() { - return instance; - } - public QueryParametersMap0Builder getBuilderAfterTags(Map> instance) { - return new QueryParametersMap0Builder(instance); - } - } - - - public sealed interface PetfindbytagsGetQueryParameters1Boxed permits PetfindbytagsGetQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record PetfindbytagsGetQueryParameters1BoxedMap(QueryParametersMap data) implements PetfindbytagsGetQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class PetfindbytagsGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PetfindbytagsGetQueryParameters1 instance = null; - - protected PetfindbytagsGetQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("tags", Schema0.Schema01.class) - )) - .required(Set.of( - "tags" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static PetfindbytagsGetQueryParameters1 getInstance() { - if (instance == null) { - instance = new PetfindbytagsGetQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Schema0.SchemaList0)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (Schema0.SchemaList0) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public PetfindbytagsGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PetfindbytagsGetQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public PetfindbytagsGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java deleted file mode 100644 index 9129f784d43..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get; - -import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode200Response; -import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode400Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class PetfindbytagsGetResponses { - public sealed interface EndpointResponse permits EndpointPetfindbytagsGetCode200Response {} - - public record EndpointPetfindbytagsGetCode200Response( - HttpResponse response, - PetfindbytagsGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusPetfindbytagsGetCode200ResponseDeserializer, StatusPetfindbytagsGetCode400ResponseDeserializer {} - - public static final class StatusPetfindbytagsGetCode200ResponseDeserializer extends PetfindbytagsGetCode200Response.PetfindbytagsGetCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusPetfindbytagsGetCode400ResponseDeserializer extends PetfindbytagsGetCode400Response.PetfindbytagsGetCode400Response1 implements StatusCodeResponseDeserializer { - } - - public static final class PetfindbytagsGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public PetfindbytagsGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusPetfindbytagsGetCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusPetfindbytagsGetCode400ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusPetfindbytagsGetCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointPetfindbytagsGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else { - StatusPetfindbytagsGetCode400ResponseDeserializer castDeserializer = (StatusPetfindbytagsGetCode400ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new PetfindbytagsGetCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java deleted file mode 100644 index 4c4856f98eb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get; - -import org.openapijsonschematools.client.paths.petfindbytags.get.security.PetfindbytagsGetSecurityRequirementObject0; -import org.openapijsonschematools.client.paths.petfindbytags.get.security.PetfindbytagsGetSecurityRequirementObject1; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class PetfindbytagsGetSecurityInfo { - public static class PetfindbytagsGetSecurityInfo1 implements SecurityRequirementObjectProvider { - public final PetfindbytagsGetSecurityRequirementObject0 security0; - public final PetfindbytagsGetSecurityRequirementObject1 security1; - - public PetfindbytagsGetSecurityInfo1() { - security0 = new PetfindbytagsGetSecurityRequirementObject0(); - security1 = new PetfindbytagsGetSecurityRequirementObject1(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - switch (securityIndex) { - case SECURITY_0: - return security0; - default: - return security1; - } - } - } - - public enum SecurityIndex { - SECURITY_0, - SECURITY_1 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java deleted file mode 100644 index 43633e1742d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.petfindbytags.get.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "tags", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java deleted file mode 100644 index 977742f58ab..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,157 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get.parameters.parameter0; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenList; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema0 { - // nest classes so all schemas and input/output classes can be public - - - public static class Items0 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Items0 instance = null; - public static Items0 getInstance() { - if (instance == null) { - instance = new Items0(); - } - return instance; - } - } - - - public static class SchemaList0 extends FrozenList { - protected SchemaList0(FrozenList m) { - super(m); - } - public static SchemaList0 of(List arg, SchemaConfiguration configuration) throws ValidationException { - return Schema01.getInstance().validate(arg, configuration); - } - } - - public static class SchemaListBuilder0 { - // class to build List - private final List list; - - public SchemaListBuilder0() { - list = new ArrayList<>(); - } - - public SchemaListBuilder0(List list) { - this.list = list; - } - - public SchemaListBuilder0 add(String item) { - list.add(item); - return this; - } - - public List build() { - return list; - } - } - - - public sealed interface Schema01Boxed permits Schema01BoxedList { - @Nullable Object getData(); - } - - public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema01 extends JsonSchema implements ListSchemaValidator { - private static @Nullable Schema01 instance = null; - - protected Schema01() { - super(new JsonSchemaInfo() - .type(Set.of(List.class)) - .items(Items0.class) - ); - } - - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - - @Override - public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); - int i = 0; - for (Object item: arg) { - List itemPathToItem = new ArrayList<>(pathToItem); - itemPathToItem.add(i); - LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - items.add((String) itemInstance); - i += 1; - } - FrozenList newInstanceItems = new FrozenList<>(items); - return new SchemaList0(newInstanceItems); - } - - public SchemaList0 validate(List arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List) { - return validate((List) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof List) { - return getNewInstance((List) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedList(validate(arg, configuration)); - } - @Override - public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof List castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.java deleted file mode 100644 index bd576d29b7e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get.responses; - -import org.openapijsonschematools.client.components.responses.RefSuccessfulXmlAndJsonArrayOfPet; - -public class PetfindbytagsGetCode200Response extends RefSuccessfulXmlAndJsonArrayOfPet { - public static class PetfindbytagsGetCode200Response1 extends RefSuccessfulXmlAndJsonArrayOfPet1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java deleted file mode 100644 index 96f6f4fc9fa..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetfindbytagsGetCode400Response { - - public static class PetfindbytagsGetCode400Response1 extends ResponseDeserializer { - public PetfindbytagsGetCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java deleted file mode 100644 index 5ce1d1f7054..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetfindbytagsGetSecurityRequirementObject0 extends SecurityRequirementObject { - - public PetfindbytagsGetSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - HttpSignatureTest.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java deleted file mode 100644 index 2f7ef1e7674..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petfindbytags.get.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetfindbytagsGetSecurityRequirementObject1 extends SecurityRequirementObject { - - public PetfindbytagsGetSecurityRequirementObject1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - PetstoreAuth.class, - List.of("write:pets", "read:pets") - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java deleted file mode 100644 index 9753ec2b2e7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java +++ /dev/null @@ -1,236 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; -import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; -import org.openapijsonschematools.client.paths.petpetid.delete.Parameters; -import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Petpetid; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class PetpetidDelete { - private static class DeleteProvider extends AuthApplier { - private static final String method = "delete"; - - public static Void delete( - DeleteRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - if (request.headerParameters != null) { - var headersSerializer = new Parameters.HeaderParametersSerializer(); - Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); - headers.putAll(serializedHeaders); - } - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Petpetid.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - updatedPath, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - return (Void) null; - } - } - - public interface DeleteOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Void delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface DeletePetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Void deletePet(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Delete extends ApiClient implements DeleteOperation { - public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class DeleteRequest { - public PetpetidDeletePathParameters.PathParametersMap pathParameters; - public PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public DeleteRequest( - PetpetidDeletePathParameters.PathParametersMap pathParameters, - PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.headerParameters = headerParameters; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class DeleteNullableRequest { - public PetpetidDeletePathParameters.@Nullable PathParametersMap pathParameters; - public PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForHeaderParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); - default T headerParameters(PetpetidDeleteHeaderParameters.HeaderParametersMap headerParameters) { - var instance = getInstance(); - instance.headerParameters = headerParameters; - return getBuilderAfterHeaderParameters(instance); - } - } - - public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(DeleteNullableRequest instance); - default T securityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(PetpetidDeletePathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Delete0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final DeleteNullableRequest instance; - - public Delete0RequestBuilder(DeleteNullableRequest instance) { - this.instance = instance; - } - - public DeleteRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new DeleteRequest( - pathParameters, - instance.headerParameters, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete0RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { - return this; - } - - public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { - return this; - } - - public Delete0RequestBuilder getBuilderAfterSecurityIndex(DeleteNullableRequest instance) { - return this; - } - - public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { - return this; - } - } - public static class DeleteRequestBuilder implements SetterForPathParameters { - private final DeleteNullableRequest instance; - - public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { - return new Delete0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java deleted file mode 100644 index 95c1f9a73ca..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java +++ /dev/null @@ -1,211 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; -import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; -import org.openapijsonschematools.client.paths.petpetid.get.Parameters; -import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Petpetid; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class PetpetidGet { - private static class GetProvider extends AuthApplier { - private static final String method = "get"; - - public static PetpetidGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Petpetid.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - updatedPath, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new PetpetidGetResponses.PetpetidGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default PetpetidGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface GetPetByIdOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default PetpetidGetResponses.EndpointResponse getPetById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public PetpetidGetPathParameters.PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public GetRequest( - PetpetidGetPathParameters.PathParametersMap pathParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class GetNullableRequest { - public PetpetidGetPathParameters.@Nullable PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - GetNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(GetNullableRequest instance); - default T securityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(PetpetidGetPathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final GetNullableRequest instance; - - public Get0RequestBuilder(GetNullableRequest instance) { - this.instance = instance; - } - - public GetRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new GetRequest( - pathParameters, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { - return this; - } - } - public static class GetRequestBuilder implements SetterForPathParameters { - private final GetNullableRequest instance; - - public GetRequestBuilder() { - this.instance = new GetNullableRequest(); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { - return new Get0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java deleted file mode 100644 index 8905ff308e0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java +++ /dev/null @@ -1,242 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; -import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; -import org.openapijsonschematools.client.paths.petpetid.post.Parameters; -import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Petpetid; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class PetpetidPost { - private static class PostProvider extends AuthApplier { - private static final String method = "post"; - - public static Void post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new PetpetidPostRequestBody.PetpetidPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Petpetid.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - updatedPath, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - return (Void) null; - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Void post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface UpdatePetWithFormOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Void updatePetWithForm(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public PetpetidPostPathParameters.PathParametersMap pathParameters; - public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public PostRequest( - PetpetidPostPathParameters.PathParametersMap pathParameters, - PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public PetpetidPostPathParameters.@Nullable PathParametersMap pathParameters; - public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(PetpetidPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PostNullableRequest instance); - default T securityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(PetpetidPostPathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - pathParameters, - instance.requestBody, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForPathParameters { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java deleted file mode 100644 index d8775b677aa..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete; - -import org.openapijsonschematools.client.paths.petpetid.delete.parameters.Parameter0; -import org.openapijsonschematools.client.paths.petpetid.delete.parameters.Parameter1; -import org.openapijsonschematools.client.parameter.PathSerializer; -import org.openapijsonschematools.client.parameter.HeadersSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("petId", new Parameter1.Parameter11()) - ) - ); - } - } - - public static class HeaderParametersSerializer extends HeadersSerializer { - public HeaderParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("api_key", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java deleted file mode 100644 index 3bdf3b1f609..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java +++ /dev/null @@ -1,191 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class PetpetidDeleteHeaderParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class HeaderParametersMap extends FrozenMap { - protected HeaderParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "api_key" - ); - public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return PetpetidDeleteHeaderParameters1.getInstance().validate(arg, configuration); - } - - public String api_key() throws UnsetPropertyException { - return getOrThrow("api_key"); - } - } - - public interface SetterForApiKey { - Map getInstance(); - T getBuilderAfterApiKey(Map instance); - - default T api_key(String value) { - var instance = getInstance(); - instance.put("api_key", value); - return getBuilderAfterApiKey(instance); - } - } - - public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForApiKey { - private final Map instance; - private static final Set knownKeys = Set.of( - "api_key" - ); - public Set getKnownKeys() { - return knownKeys; - } - public HeaderParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public HeaderParametersMapBuilder getBuilderAfterApiKey(Map instance) { - return this; - } - } - - - public sealed interface PetpetidDeleteHeaderParameters1Boxed permits PetpetidDeleteHeaderParameters1BoxedMap { - @Nullable Object getData(); - } - - public record PetpetidDeleteHeaderParameters1BoxedMap(HeaderParametersMap data) implements PetpetidDeleteHeaderParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class PetpetidDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PetpetidDeleteHeaderParameters1 instance = null; - - protected PetpetidDeleteHeaderParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("api_key", Schema0.Schema01.class) - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static PetpetidDeleteHeaderParameters1 getInstance() { - if (instance == null) { - instance = new PetpetidDeleteHeaderParameters1(); - } - return instance; - } - - public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new HeaderParametersMap(castProperties); - } - - public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public PetpetidDeleteHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PetpetidDeleteHeaderParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public PetpetidDeleteHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java deleted file mode 100644 index 217bc3b8e83..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java +++ /dev/null @@ -1,223 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter1.Schema1; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class PetpetidDeletePathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "petId" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return PetpetidDeletePathParameters1.getInstance().validate(arg, configuration); - } - - public Number petId() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForPetId { - Map getInstance(); - T getBuilderAfterPetId(Map instance); - - default T petId(int value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(float value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(long value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(double value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "petId" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForPetId { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface PetpetidDeletePathParameters1Boxed permits PetpetidDeletePathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record PetpetidDeletePathParameters1BoxedMap(PathParametersMap data) implements PetpetidDeletePathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class PetpetidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PetpetidDeletePathParameters1 instance = null; - - protected PetpetidDeletePathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("petId", Schema1.Schema11.class) - )) - .required(Set.of( - "petId" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static PetpetidDeletePathParameters1 getInstance() { - if (instance == null) { - instance = new PetpetidDeletePathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Number)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (Number) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public PetpetidDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PetpetidDeletePathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public PetpetidDeletePathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java deleted file mode 100644 index e5dbf441ebb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete; - -import org.openapijsonschematools.client.paths.petpetid.delete.responses.PetpetidDeleteCode400Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class PetpetidDeleteResponses { - - public sealed interface StatusCodeResponseDeserializer permits StatusPetpetidDeleteCode400ResponseDeserializer {} - - public static final class StatusPetpetidDeleteCode400ResponseDeserializer extends PetpetidDeleteCode400Response.PetpetidDeleteCode400Response1 implements StatusCodeResponseDeserializer { - } - - public static final class PetpetidDeleteResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public PetpetidDeleteResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("400", new StatusPetpetidDeleteCode400ResponseDeserializer()) - ); - } - - public Void deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusPetpetidDeleteCode400ResponseDeserializer castDeserializer = (StatusPetpetidDeleteCode400ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new PetpetidDeleteCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java deleted file mode 100644 index 941f3f23abf..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete; - -import org.openapijsonschematools.client.paths.petpetid.delete.security.PetpetidDeleteSecurityRequirementObject0; -import org.openapijsonschematools.client.paths.petpetid.delete.security.PetpetidDeleteSecurityRequirementObject1; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class PetpetidDeleteSecurityInfo { - public static class PetpetidDeleteSecurityInfo1 implements SecurityRequirementObjectProvider { - public final PetpetidDeleteSecurityRequirementObject0 security0; - public final PetpetidDeleteSecurityRequirementObject1 security1; - - public PetpetidDeleteSecurityInfo1() { - security0 = new PetpetidDeleteSecurityRequirementObject0(); - security1 = new PetpetidDeleteSecurityRequirementObject1(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - switch (securityIndex) { - case SECURITY_0: - return security0; - default: - return security1; - } - } - } - - public enum SecurityIndex { - SECURITY_0, - SECURITY_1 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter0.java deleted file mode 100644 index 48e40ea5596..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "api_key", - ParameterInType.HEADER, - false, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter1.java deleted file mode 100644 index c40da80fec8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter1.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter1.Schema1; - -public class Parameter1 { - - public static class Parameter11 extends SchemaParameter { - public Parameter11() { - super( - "petId", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema1.Schema11.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java deleted file mode 100644 index c4b34bf4f68..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java deleted file mode 100644 index 3ec2f12b279..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter1; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.Int64JsonSchema; - -public class Schema1 extends Int64JsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema11 extends Int64JsonSchema.Int64JsonSchema1 { - private static @Nullable Schema11 instance = null; - public static Schema11 getInstance() { - if (instance == null) { - instance = new Schema11(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java deleted file mode 100644 index 99deaad489e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetpetidDeleteCode400Response { - - public static class PetpetidDeleteCode400Response1 extends ResponseDeserializer { - public PetpetidDeleteCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java deleted file mode 100644 index 320b2cffa63..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetpetidDeleteSecurityRequirementObject0 extends SecurityRequirementObject { - - public PetpetidDeleteSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - ApiKey.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java deleted file mode 100644 index f7e6f70df99..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.delete.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetpetidDeleteSecurityRequirementObject1 extends SecurityRequirementObject { - - public PetpetidDeleteSecurityRequirementObject1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - PetstoreAuth.class, - List.of("write:pets", "read:pets") - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java deleted file mode 100644 index f5e28725665..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get; - -import org.openapijsonschematools.client.paths.petpetid.get.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("petId", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java deleted file mode 100644 index 498b007f37a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java +++ /dev/null @@ -1,223 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.petpetid.get.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class PetpetidGetPathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "petId" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return PetpetidGetPathParameters1.getInstance().validate(arg, configuration); - } - - public Number petId() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForPetId { - Map getInstance(); - T getBuilderAfterPetId(Map instance); - - default T petId(int value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(float value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(long value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(double value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "petId" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForPetId { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface PetpetidGetPathParameters1Boxed permits PetpetidGetPathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record PetpetidGetPathParameters1BoxedMap(PathParametersMap data) implements PetpetidGetPathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class PetpetidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PetpetidGetPathParameters1 instance = null; - - protected PetpetidGetPathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("petId", Schema0.Schema01.class) - )) - .required(Set.of( - "petId" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static PetpetidGetPathParameters1 getInstance() { - if (instance == null) { - instance = new PetpetidGetPathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Number)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (Number) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public PetpetidGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PetpetidGetPathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public PetpetidGetPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java deleted file mode 100644 index 45efdb26f89..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get; - -import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode200Response; -import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode400Response; -import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode404Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class PetpetidGetResponses { - public sealed interface EndpointResponse permits EndpointPetpetidGetCode200Response {} - - public record EndpointPetpetidGetCode200Response( - HttpResponse response, - PetpetidGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusPetpetidGetCode200ResponseDeserializer, StatusPetpetidGetCode400ResponseDeserializer, StatusPetpetidGetCode404ResponseDeserializer {} - - public static final class StatusPetpetidGetCode200ResponseDeserializer extends PetpetidGetCode200Response.PetpetidGetCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusPetpetidGetCode400ResponseDeserializer extends PetpetidGetCode400Response.PetpetidGetCode400Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusPetpetidGetCode404ResponseDeserializer extends PetpetidGetCode404Response.PetpetidGetCode404Response1 implements StatusCodeResponseDeserializer { - } - - public static final class PetpetidGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public PetpetidGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusPetpetidGetCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusPetpetidGetCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusPetpetidGetCode404ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusPetpetidGetCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointPetpetidGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else if (statusCodeDeserializer instanceof StatusPetpetidGetCode400ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new PetpetidGetCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else { - StatusPetpetidGetCode404ResponseDeserializer castDeserializer = (StatusPetpetidGetCode404ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new PetpetidGetCode404Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java deleted file mode 100644 index 4d21d88f82e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get; - -import org.openapijsonschematools.client.paths.petpetid.get.security.PetpetidGetSecurityRequirementObject0; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class PetpetidGetSecurityInfo { - public static class PetpetidGetSecurityInfo1 implements SecurityRequirementObjectProvider { - public final PetpetidGetSecurityRequirementObject0 security0; - - public PetpetidGetSecurityInfo1() { - security0 = new PetpetidGetSecurityRequirementObject0(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - return security0; - } - } - - public enum SecurityIndex { - SECURITY_0 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java deleted file mode 100644 index 7b03160b9a4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.petpetid.get.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "petId", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java deleted file mode 100644 index 2131549a0b8..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.Int64JsonSchema; - -public class Schema0 extends Int64JsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends Int64JsonSchema.Int64JsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java deleted file mode 100644 index ef57c8d7c8c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetpetidGetCode200Response { - public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - - public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxmlMediaType() { - this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} - public record ApplicationxmlResponseBody(ApplicationxmlSchema.Pet1Boxed body) implements SealedResponseBody { } - public record ApplicationjsonResponseBody(ApplicationjsonSchema.Pet1Boxed body) implements SealedResponseBody { } - - public static class PetpetidGetCode200Response1 extends ResponseDeserializer { - public PetpetidGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationxmlResponseBody(deserializedBody); - } else { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java deleted file mode 100644 index 798be7c4d4b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetpetidGetCode400Response { - - public static class PetpetidGetCode400Response1 extends ResponseDeserializer { - public PetpetidGetCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java deleted file mode 100644 index 8c7b60d64d7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetpetidGetCode404Response { - - public static class PetpetidGetCode404Response1 extends ResponseDeserializer { - public PetpetidGetCode404Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 1409b9ae6dd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Pet; -import org.openapijsonschematools.client.components.schemas.RefPet; - -public class ApplicationjsonSchema extends RefPet { - // $refed class - - - public static class ApplicationjsonSchema1 extends Pet1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java deleted file mode 100644 index 2c49b59c0e5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationxml; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Pet; - -public class ApplicationxmlSchema extends Pet { - // $refed class - - - public static class ApplicationxmlSchema1 extends Pet1 { - private static @Nullable ApplicationxmlSchema1 instance = null; - public static ApplicationxmlSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxmlSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java deleted file mode 100644 index 00903fe643c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.get.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetpetidGetSecurityRequirementObject0 extends SecurityRequirementObject { - - public PetpetidGetSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - ApiKey.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java deleted file mode 100644 index 04772587103..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post; - -import org.openapijsonschematools.client.paths.petpetid.post.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("petId", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java deleted file mode 100644 index 28daa3aee1a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java +++ /dev/null @@ -1,223 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.petpetid.post.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class PetpetidPostPathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "petId" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return PetpetidPostPathParameters1.getInstance().validate(arg, configuration); - } - - public Number petId() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForPetId { - Map getInstance(); - T getBuilderAfterPetId(Map instance); - - default T petId(int value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(float value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(long value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(double value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "petId" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForPetId { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface PetpetidPostPathParameters1Boxed permits PetpetidPostPathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record PetpetidPostPathParameters1BoxedMap(PathParametersMap data) implements PetpetidPostPathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class PetpetidPostPathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PetpetidPostPathParameters1 instance = null; - - protected PetpetidPostPathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("petId", Schema0.Schema01.class) - )) - .required(Set.of( - "petId" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static PetpetidPostPathParameters1 getInstance() { - if (instance == null) { - instance = new PetpetidPostPathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Number)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (Number) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public PetpetidPostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PetpetidPostPathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public PetpetidPostPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java deleted file mode 100644 index 67d40f7ca47..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.petpetid.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class PetpetidPostRequestBody { - public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} - - public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxwwwformurlencodedMediaType() { - this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class PetpetidPostRequestBody1 extends RequestBodySerializer { - public PetpetidPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationxwwwformurlencodedRequestBody requestBody0 = (ApplicationxwwwformurlencodedRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} - public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/x-www-form-urlencoded"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java deleted file mode 100644 index f7d62e199a3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post; - -import org.openapijsonschematools.client.paths.petpetid.post.responses.PetpetidPostCode405Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class PetpetidPostResponses { - - public sealed interface StatusCodeResponseDeserializer permits StatusPetpetidPostCode405ResponseDeserializer {} - - public static final class StatusPetpetidPostCode405ResponseDeserializer extends PetpetidPostCode405Response.PetpetidPostCode405Response1 implements StatusCodeResponseDeserializer { - } - - public static final class PetpetidPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public PetpetidPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("405", new StatusPetpetidPostCode405ResponseDeserializer()) - ); - } - - public Void deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusPetpetidPostCode405ResponseDeserializer castDeserializer = (StatusPetpetidPostCode405ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new PetpetidPostCode405Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java deleted file mode 100644 index 3763c38088a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post; - -import org.openapijsonschematools.client.paths.petpetid.post.security.PetpetidPostSecurityRequirementObject0; -import org.openapijsonschematools.client.paths.petpetid.post.security.PetpetidPostSecurityRequirementObject1; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class PetpetidPostSecurityInfo { - public static class PetpetidPostSecurityInfo1 implements SecurityRequirementObjectProvider { - public final PetpetidPostSecurityRequirementObject0 security0; - public final PetpetidPostSecurityRequirementObject1 security1; - - public PetpetidPostSecurityInfo1() { - security0 = new PetpetidPostSecurityRequirementObject0(); - security1 = new PetpetidPostSecurityRequirementObject1(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - switch (securityIndex) { - case SECURITY_0: - return security0; - default: - return security1; - } - } - } - - public enum SecurityIndex { - SECURITY_0, - SECURITY_1 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java deleted file mode 100644 index 13a19320b60..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.petpetid.post.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "petId", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java deleted file mode 100644 index 2bcfb59b424..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.Int64JsonSchema; - -public class Schema0 extends Int64JsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends Int64JsonSchema.Int64JsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java deleted file mode 100644 index c7af01879e4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ /dev/null @@ -1,238 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post.requestbody.content.applicationxwwwformurlencoded; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class ApplicationxwwwformurlencodedSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationxwwwformurlencodedName extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationxwwwformurlencodedName instance = null; - public static ApplicationxwwwformurlencodedName getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedName(); - } - return instance; - } - } - - - public static class ApplicationxwwwformurlencodedStatus extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationxwwwformurlencodedStatus instance = null; - public static ApplicationxwwwformurlencodedStatus getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedStatus(); - } - return instance; - } - } - - - public static class ApplicationxwwwformurlencodedSchemaMap extends FrozenMap<@Nullable Object> { - protected ApplicationxwwwformurlencodedSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "name", - "status" - ); - public static ApplicationxwwwformurlencodedSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return ApplicationxwwwformurlencodedSchema1.getInstance().validate(arg, configuration); - } - - public String name() throws UnsetPropertyException { - String key = "name"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for name"); - } - return (String) value; - } - - public String status() throws UnsetPropertyException { - String key = "status"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for status"); - } - return (String) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForApplicationxwwwformurlencodedName { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedName(Map instance); - - default T name(String value) { - var instance = getInstance(); - instance.put("name", value); - return getBuilderAfterApplicationxwwwformurlencodedName(instance); - } - } - - public interface SetterForApplicationxwwwformurlencodedStatus { - Map getInstance(); - T getBuilderAfterApplicationxwwwformurlencodedStatus(Map instance); - - default T status(String value) { - var instance = getInstance(); - instance.put("status", value); - return getBuilderAfterApplicationxwwwformurlencodedStatus(instance); - } - } - - public static class ApplicationxwwwformurlencodedSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForApplicationxwwwformurlencodedName, SetterForApplicationxwwwformurlencodedStatus { - private final Map instance; - private static final Set knownKeys = Set.of( - "name", - "status" - ); - public Set getKnownKeys() { - return knownKeys; - } - public ApplicationxwwwformurlencodedSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterApplicationxwwwformurlencodedName(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterApplicationxwwwformurlencodedStatus(Map instance) { - return this; - } - public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { - @Nullable Object getData(); - } - - public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; - - protected ApplicationxwwwformurlencodedSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("name", ApplicationxwwwformurlencodedName.class), - new PropertyEntry("status", ApplicationxwwwformurlencodedStatus.class) - )) - ); - } - - public static ApplicationxwwwformurlencodedSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxwwwformurlencodedSchema1(); - } - return instance; - } - - public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new ApplicationxwwwformurlencodedSchemaMap(castProperties); - } - - public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java deleted file mode 100644 index 63a84f81656..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class PetpetidPostCode405Response { - - public static class PetpetidPostCode405Response1 extends ResponseDeserializer { - public PetpetidPostCode405Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java deleted file mode 100644 index 5362c41579c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetpetidPostSecurityRequirementObject0 extends SecurityRequirementObject { - - public PetpetidPostSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - ApiKey.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java deleted file mode 100644 index 377bdaffd38..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetid.post.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetpetidPostSecurityRequirementObject1 extends SecurityRequirementObject { - - public PetpetidPostSecurityRequirementObject1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - PetstoreAuth.class, - List.of("write:pets", "read:pets") - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java deleted file mode 100644 index 1b5bad121f4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java +++ /dev/null @@ -1,243 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostRequestBody; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.Parameters; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Petpetiduploadimage; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class PetpetiduploadimagePost { - private static class PostProvider extends AuthApplier { - private static final String method = "post"; - - public static PetpetiduploadimagePostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - @Nullable SerializedRequestBody serializedRequestBody; - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - if (request.requestBody != null) { - serializedRequestBody = new PetpetiduploadimagePostRequestBody.PetpetiduploadimagePostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - bodyPublisher = serializedRequestBody.bodyPublisher; - } - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Petpetiduploadimage.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - updatedPath, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new PetpetiduploadimagePostResponses.PetpetiduploadimagePostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default PetpetiduploadimagePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface UploadImageOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default PetpetiduploadimagePostResponses.EndpointResponse uploadImage(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters; - public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - - public PostRequest( - PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters, - PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.securityIndex = securityIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public PetpetiduploadimagePostPathParameters.@Nullable PathParametersMap pathParameters; - public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(PetpetiduploadimagePostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - PostNullableRequest getInstance(); - T getBuilderAfterSecurityIndex(PostNullableRequest instance); - default T securityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - PostNullableRequest getInstance(); - T getBuilderAfterPathParameters(PostNullableRequest instance); - default T pathParameters(PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - pathParameters, - instance.requestBody, - instance.serverIndex, - instance.securityIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForPathParameters { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java deleted file mode 100644 index 739ed320360..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post; - -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("petId", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java deleted file mode 100644 index 29b957c98cd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java +++ /dev/null @@ -1,223 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class PetpetiduploadimagePostPathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "petId" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return PetpetiduploadimagePostPathParameters1.getInstance().validate(arg, configuration); - } - - public Number petId() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForPetId { - Map getInstance(); - T getBuilderAfterPetId(Map instance); - - default T petId(int value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(float value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(long value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - - default T petId(double value) { - var instance = getInstance(); - instance.put("petId", value); - return getBuilderAfterPetId(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "petId" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForPetId { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface PetpetiduploadimagePostPathParameters1Boxed permits PetpetiduploadimagePostPathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record PetpetiduploadimagePostPathParameters1BoxedMap(PathParametersMap data) implements PetpetiduploadimagePostPathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class PetpetiduploadimagePostPathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable PetpetiduploadimagePostPathParameters1 instance = null; - - protected PetpetiduploadimagePostPathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("petId", Schema0.Schema01.class) - )) - .required(Set.of( - "petId" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static PetpetiduploadimagePostPathParameters1 getInstance() { - if (instance == null) { - instance = new PetpetiduploadimagePostPathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Number)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (Number) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public PetpetiduploadimagePostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new PetpetiduploadimagePostPathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public PetpetiduploadimagePostPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java deleted file mode 100644 index 2fa51fd7974..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.requestbody.content.multipartformdata.MultipartformdataSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class PetpetiduploadimagePostRequestBody { - public sealed interface SealedMediaType permits MultipartformdataMediaType {} - - public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { - public MultipartformdataMediaType() { - this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class PetpetiduploadimagePostRequestBody1 extends RequestBodySerializer { - public PetpetiduploadimagePostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) - ), - false - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} - public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "multipart/form-data"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java deleted file mode 100644 index ef9ecbb0b8a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post; - -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.PetpetiduploadimagePostCode200Response; -import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class PetpetiduploadimagePostResponses { - public sealed interface EndpointResponse permits EndpointPetpetiduploadimagePostCode200Response {} - - public record EndpointPetpetiduploadimagePostCode200Response( - HttpResponse response, - PetpetiduploadimagePostCode200Response.SealedResponseBody body, - SuccessWithJsonApiResponseHeadersSchema.SuccessWithJsonApiResponseHeadersSchemaMap headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusPetpetiduploadimagePostCode200ResponseDeserializer {} - - public static final class StatusPetpetiduploadimagePostCode200ResponseDeserializer extends PetpetiduploadimagePostCode200Response.PetpetiduploadimagePostCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class PetpetiduploadimagePostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public PetpetiduploadimagePostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusPetpetiduploadimagePostCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusPetpetiduploadimagePostCode200ResponseDeserializer castDeserializer = (StatusPetpetiduploadimagePostCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointPetpetiduploadimagePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java deleted file mode 100644 index 0418c7b90c0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post; - -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.security.PetpetiduploadimagePostSecurityRequirementObject0; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class PetpetiduploadimagePostSecurityInfo { - public static class PetpetiduploadimagePostSecurityInfo1 implements SecurityRequirementObjectProvider { - public final PetpetiduploadimagePostSecurityRequirementObject0 security0; - - public PetpetiduploadimagePostSecurityInfo1() { - security0 = new PetpetiduploadimagePostSecurityRequirementObject0(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - return security0; - } - } - - public enum SecurityIndex { - SECURITY_0 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java deleted file mode 100644 index e6002b4ec9d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.petpetiduploadimage.post.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "petId", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java deleted file mode 100644 index e314fe44ae4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.Int64JsonSchema; - -public class Schema0 extends Int64JsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends Int64JsonSchema.Int64JsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java deleted file mode 100644 index d1d3106be24..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ /dev/null @@ -1,239 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post.requestbody.content.multipartformdata; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.StringJsonSchema; -import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class MultipartformdataSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class MultipartformdataAdditionalMetadata extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable MultipartformdataAdditionalMetadata instance = null; - public static MultipartformdataAdditionalMetadata getInstance() { - if (instance == null) { - instance = new MultipartformdataAdditionalMetadata(); - } - return instance; - } - } - - - public static class MultipartformdataFile extends StringJsonSchema.StringJsonSchema1 { - // BinarySchema - private static @Nullable MultipartformdataFile instance = null; - public static MultipartformdataFile getInstance() { - if (instance == null) { - instance = new MultipartformdataFile(); - } - return instance; - } - } - - - public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { - protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of(); - public static final Set optionalKeys = Set.of( - "additionalMetadata", - "file" - ); - public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return MultipartformdataSchema1.getInstance().validate(arg, configuration); - } - - public String additionalMetadata() throws UnsetPropertyException { - String key = "additionalMetadata"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for additionalMetadata"); - } - return (String) value; - } - - public String file() throws UnsetPropertyException { - String key = "file"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for file"); - } - return (String) value; - } - - public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { - throwIfKeyKnown(name, requiredKeys, optionalKeys); - throwIfKeyNotPresent(name); - return get(name); - } - } - - public interface SetterForMultipartformdataAdditionalMetadata { - Map getInstance(); - T getBuilderAfterMultipartformdataAdditionalMetadata(Map instance); - - default T additionalMetadata(String value) { - var instance = getInstance(); - instance.put("additionalMetadata", value); - return getBuilderAfterMultipartformdataAdditionalMetadata(instance); - } - } - - public interface SetterForMultipartformdataFile { - Map getInstance(); - T getBuilderAfterMultipartformdataFile(Map instance); - - default T file(String value) { - var instance = getInstance(); - instance.put("file", value); - return getBuilderAfterMultipartformdataFile(instance); - } - } - - public static class MultipartformdataSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataAdditionalMetadata, SetterForMultipartformdataFile { - private final Map instance; - private static final Set knownKeys = Set.of( - "additionalMetadata", - "file" - ); - public Set getKnownKeys() { - return knownKeys; - } - public MultipartformdataSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataAdditionalMetadata(Map instance) { - return this; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataFile(Map instance) { - return this; - } - public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { - return this; - } - } - - - public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { - @Nullable Object getData(); - } - - public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable MultipartformdataSchema1 instance = null; - - protected MultipartformdataSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("additionalMetadata", MultipartformdataAdditionalMetadata.class), - new PropertyEntry("file", MultipartformdataFile.class) - )) - ); - } - - public static MultipartformdataSchema1 getInstance() { - if (instance == null) { - instance = new MultipartformdataSchema1(); - } - return instance; - } - - public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new MultipartformdataSchemaMap(castProperties); - } - - public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.java deleted file mode 100644 index c597f9f42d7..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses; - -import org.openapijsonschematools.client.components.responses.SuccessWithJsonApiResponse; - -public class PetpetiduploadimagePostCode200Response extends SuccessWithJsonApiResponse { - public static class PetpetiduploadimagePostCode200Response1 extends SuccessWithJsonApiResponse1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java deleted file mode 100644 index 2a6e237ed37..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.petpetiduploadimage.post.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class PetpetiduploadimagePostSecurityRequirementObject0 extends SecurityRequirementObject { - - public PetpetiduploadimagePostSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - PetstoreAuth.class, - List.of("write:pets", "read:pets") - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java deleted file mode 100644 index e8ce1b7cce4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openapijsonschematools.client.paths.solidus; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Solidus; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class SolidusGet { - private static class GetProvider { - private static final String method = "get"; - - public static SolidusGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Solidus.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new SolidusGetResponses.SolidusGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default SolidusGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface SlashRouteOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default SolidusGetResponses.EndpointResponse slashRoute(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java deleted file mode 100644 index b6d5295cdce..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openapijsonschematools.client.paths.solidus.get; - -import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class SolidusGetResponses { - public sealed interface EndpointResponse permits EndpointSolidusGetCode200Response {} - - public record EndpointSolidusGetCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusSolidusGetCode200ResponseDeserializer {} - - public static final class StatusSolidusGetCode200ResponseDeserializer extends SolidusGetCode200Response.SolidusGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class SolidusGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public SolidusGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusSolidusGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusSolidusGetCode200ResponseDeserializer castDeserializer = (StatusSolidusGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointSolidusGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java deleted file mode 100644 index 9560cc160dd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.solidus.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class SolidusGetCode200Response extends SuccessDescriptionOnly { - public static class SolidusGetCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java deleted file mode 100644 index f4ca5e06da1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.openapijsonschematools.client.paths.storeinventory; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; -import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Storeinventory; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class StoreinventoryGet { - private static class GetProvider extends AuthApplier { - private static final String method = "get"; - - public static StoreinventoryGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); - updateParamsForAuth( - securityRequirementObject, - headers, - Storeinventory.path, - method, - bodyPublisher, - queryMap, - apiConfiguration - ); - - String url = host + Storeinventory.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new StoreinventoryGetResponses.StoreinventoryGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default StoreinventoryGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface GetInventoryOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default StoreinventoryGetResponses.EndpointResponse getInventory(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public ServerInfo.@Nullable ServerIndex serverIndex; - public StoreinventoryGetSecurityInfo.@Nullable SecurityIndex securityIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForSecurityIndex { - GetRequest getInstance(); - T getBuilderAfterSecurityIndex(GetRequest instance); - default T securityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityIndex) { - var instance = getInstance(); - instance.securityIndex = securityIndex; - return getBuilderAfterSecurityIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterSecurityIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java deleted file mode 100644 index 389cb0617a3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.openapijsonschematools.client.paths.storeinventory.get; - -import org.openapijsonschematools.client.paths.storeinventory.get.responses.StoreinventoryGetCode200Response; -import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class StoreinventoryGetResponses { - public sealed interface EndpointResponse permits EndpointStoreinventoryGetCode200Response {} - - public record EndpointStoreinventoryGetCode200Response( - HttpResponse response, - StoreinventoryGetCode200Response.SealedResponseBody body, - SuccessInlineContentAndHeaderHeadersSchema.SuccessInlineContentAndHeaderHeadersSchemaMap headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusStoreinventoryGetCode200ResponseDeserializer {} - - public static final class StatusStoreinventoryGetCode200ResponseDeserializer extends StoreinventoryGetCode200Response.StoreinventoryGetCode200Response1 implements StatusCodeResponseDeserializer { - } - - public static final class StoreinventoryGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public StoreinventoryGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusStoreinventoryGetCode200ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - StatusStoreinventoryGetCode200ResponseDeserializer castDeserializer = (StatusStoreinventoryGetCode200ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointStoreinventoryGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java deleted file mode 100644 index 5c661cfd67c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.storeinventory.get; - -import org.openapijsonschematools.client.paths.storeinventory.get.security.StoreinventoryGetSecurityRequirementObject0; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; - -public class StoreinventoryGetSecurityInfo { - public static class StoreinventoryGetSecurityInfo1 implements SecurityRequirementObjectProvider { - public final StoreinventoryGetSecurityRequirementObject0 security0; - - public StoreinventoryGetSecurityInfo1() { - security0 = new StoreinventoryGetSecurityRequirementObject0(); - } - - @Override - public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { - return security0; - } - } - - public enum SecurityIndex { - SECURITY_0 - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.java deleted file mode 100644 index 16275bedfdf..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.storeinventory.get.responses; - -import org.openapijsonschematools.client.components.responses.SuccessInlineContentAndHeader; - -public class StoreinventoryGetCode200Response extends SuccessInlineContentAndHeader { - public static class StoreinventoryGetCode200Response1 extends SuccessInlineContentAndHeader1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java deleted file mode 100644 index 12e9ef453a2..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.openapijsonschematools.client.paths.storeinventory.get.security; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; -import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.components.securityschemes.ApiKey; - -import java.util.List; -import java.util.Map; -import java.util.AbstractMap; - -public class StoreinventoryGetSecurityRequirementObject0 extends SecurityRequirementObject { - - public StoreinventoryGetSecurityRequirementObject0() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry, List>( - ApiKey.class, - List.of() - ) - ) - ); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java deleted file mode 100644 index 222774dc225..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorder; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; -import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Storeorder; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class StoreorderPost { - private static class PostProvider { - private static final String method = "post"; - - public static StoreorderPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new StoreorderPostRequestBody.StoreorderPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Storeorder.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new StoreorderPostResponses.StoreorderPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default StoreorderPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface PlaceOrderOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default StoreorderPostResponses.EndpointResponse placeOrder(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public StoreorderPostRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PostRequest( - StoreorderPostRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public StoreorderPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(StoreorderPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - requestBody, - instance.serverIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java deleted file mode 100644 index 6b587ce09ab..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorder.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.storeorder.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class StoreorderPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class StoreorderPostRequestBody1 extends RequestBodySerializer { - public StoreorderPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - true - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.Order1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java deleted file mode 100644 index 5afb42352d9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorder.post; - -import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode200Response; -import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode400Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class StoreorderPostResponses { - public sealed interface EndpointResponse permits EndpointStoreorderPostCode200Response {} - - public record EndpointStoreorderPostCode200Response( - HttpResponse response, - StoreorderPostCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusStoreorderPostCode200ResponseDeserializer, StatusStoreorderPostCode400ResponseDeserializer {} - - public static final class StatusStoreorderPostCode200ResponseDeserializer extends StoreorderPostCode200Response.StoreorderPostCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusStoreorderPostCode400ResponseDeserializer extends StoreorderPostCode400Response.StoreorderPostCode400Response1 implements StatusCodeResponseDeserializer { - } - - public static final class StoreorderPostResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public StoreorderPostResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusStoreorderPostCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusStoreorderPostCode400ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusStoreorderPostCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointStoreorderPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else { - StatusStoreorderPostCode400ResponseDeserializer castDeserializer = (StatusStoreorderPostCode400ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new StoreorderPostCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index acc568b81b4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorder.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Order; - -public class ApplicationjsonSchema extends Order { - // $refed class - - - public static class ApplicationjsonSchema1 extends Order1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java deleted file mode 100644 index 233b54e530b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorder.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class StoreorderPostCode200Response { - public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - - public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxmlMediaType() { - this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} - public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } - public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } - - public static class StoreorderPostCode200Response1 extends ResponseDeserializer { - public StoreorderPostCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationxmlResponseBody(deserializedBody); - } else { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java deleted file mode 100644 index 255fd7c4195..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorder.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class StoreorderPostCode400Response { - - public static class StoreorderPostCode400Response1 extends ResponseDeserializer { - public StoreorderPostCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index c7b1d3035af..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Order; - -public class ApplicationjsonSchema extends Order { - // $refed class - - - public static class ApplicationjsonSchema1 extends Order1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java deleted file mode 100644 index d0a1692555b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationxml; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Order; - -public class ApplicationxmlSchema extends Order { - // $refed class - - - public static class ApplicationxmlSchema1 extends Order1 { - private static @Nullable ApplicationxmlSchema1 instance = null; - public static ApplicationxmlSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxmlSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java deleted file mode 100644 index 46286cc4097..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java +++ /dev/null @@ -1,178 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.Parameters; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Storeorderorderid; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class StoreorderorderidDelete { - private static class DeleteProvider { - private static final String method = "delete"; - - public static Void delete( - DeleteRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Storeorderorderid.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - return (Void) null; - } - } - - public interface DeleteOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Void delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface DeleteOrderOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Void deleteOrder(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Delete extends ApiClient implements DeleteOperation { - public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class DeleteRequest { - public StoreorderorderidDeletePathParameters.PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public DeleteRequest( - StoreorderorderidDeletePathParameters.PathParametersMap pathParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class DeleteNullableRequest { - public StoreorderorderidDeletePathParameters.@Nullable PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(StoreorderorderidDeletePathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final DeleteNullableRequest instance; - - public Delete0RequestBuilder(DeleteNullableRequest instance) { - this.instance = instance; - } - - public DeleteRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new DeleteRequest( - pathParameters, - instance.serverIndex, - instance.timeout - ); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { - return this; - } - - public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { - return this; - } - } - public static class DeleteRequestBuilder implements SetterForPathParameters { - private final DeleteNullableRequest instance; - - public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { - return new Delete0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java deleted file mode 100644 index a303530db4c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java +++ /dev/null @@ -1,179 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; -import org.openapijsonschematools.client.paths.storeorderorderid.get.Parameters; -import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Storeorderorderid; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class StoreorderorderidGet { - private static class GetProvider { - private static final String method = "get"; - - public static StoreorderorderidGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Storeorderorderid.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new StoreorderorderidGetResponses.StoreorderorderidGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default StoreorderorderidGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface GetOrderByIdOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default StoreorderorderidGetResponses.EndpointResponse getOrderById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public StoreorderorderidGetPathParameters.PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public GetRequest( - StoreorderorderidGetPathParameters.PathParametersMap pathParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class GetNullableRequest { - public StoreorderorderidGetPathParameters.@Nullable PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(StoreorderorderidGetPathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetNullableRequest instance; - - public Get0RequestBuilder(GetNullableRequest instance) { - this.instance = instance; - } - - public GetRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new GetRequest( - pathParameters, - instance.serverIndex, - instance.timeout - ); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { - return this; - } - } - public static class GetRequestBuilder implements SetterForPathParameters { - private final GetNullableRequest instance; - - public GetRequestBuilder() { - this.instance = new GetNullableRequest(); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { - return new Get0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java deleted file mode 100644 index be0db492e8e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.delete; - -import org.openapijsonschematools.client.paths.storeorderorderid.delete.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("order_id", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java deleted file mode 100644 index 333df7667ee..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java +++ /dev/null @@ -1,205 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.delete; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class StoreorderorderidDeletePathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "order_id" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return StoreorderorderidDeletePathParameters1.getInstance().validate(arg, configuration); - } - - public String order_id() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForOrderId { - Map getInstance(); - T getBuilderAfterOrderId(Map instance); - - default T order_id(String value) { - var instance = getInstance(); - instance.put("order_id", value); - return getBuilderAfterOrderId(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "order_id" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForOrderId { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterOrderId(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface StoreorderorderidDeletePathParameters1Boxed permits StoreorderorderidDeletePathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record StoreorderorderidDeletePathParameters1BoxedMap(PathParametersMap data) implements StoreorderorderidDeletePathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class StoreorderorderidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable StoreorderorderidDeletePathParameters1 instance = null; - - protected StoreorderorderidDeletePathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("order_id", Schema0.Schema01.class) - )) - .required(Set.of( - "order_id" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static StoreorderorderidDeletePathParameters1 getInstance() { - if (instance == null) { - instance = new StoreorderorderidDeletePathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public StoreorderorderidDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new StoreorderorderidDeletePathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public StoreorderorderidDeletePathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java deleted file mode 100644 index 4e2878c3135..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.delete; - -import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode400Response; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode404Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class StoreorderorderidDeleteResponses { - - public sealed interface StatusCodeResponseDeserializer permits StatusStoreorderorderidDeleteCode400ResponseDeserializer, StatusStoreorderorderidDeleteCode404ResponseDeserializer {} - - public static final class StatusStoreorderorderidDeleteCode400ResponseDeserializer extends StoreorderorderidDeleteCode400Response.StoreorderorderidDeleteCode400Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusStoreorderorderidDeleteCode404ResponseDeserializer extends StoreorderorderidDeleteCode404Response.StoreorderorderidDeleteCode404Response1 implements StatusCodeResponseDeserializer { - } - - public static final class StoreorderorderidDeleteResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public StoreorderorderidDeleteResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("400", new StatusStoreorderorderidDeleteCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusStoreorderorderidDeleteCode404ResponseDeserializer()) - ); - } - - public Void deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusStoreorderorderidDeleteCode400ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new StoreorderorderidDeleteCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else { - StatusStoreorderorderidDeleteCode404ResponseDeserializer castDeserializer = (StatusStoreorderorderidDeleteCode404ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new StoreorderorderidDeleteCode404Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java deleted file mode 100644 index 3f27fb09e43..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.delete.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.storeorderorderid.delete.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "order_id", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java deleted file mode 100644 index f1ef8de93ef..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.delete.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java deleted file mode 100644 index 9cb784d6247..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.delete.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class StoreorderorderidDeleteCode400Response { - - public static class StoreorderorderidDeleteCode400Response1 extends ResponseDeserializer { - public StoreorderorderidDeleteCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java deleted file mode 100644 index db72a798656..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.delete.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class StoreorderorderidDeleteCode404Response { - - public static class StoreorderorderidDeleteCode404Response1 extends ResponseDeserializer { - public StoreorderorderidDeleteCode404Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java deleted file mode 100644 index 5e6d9bb0b5d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get; - -import org.openapijsonschematools.client.paths.storeorderorderid.get.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("order_id", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java deleted file mode 100644 index b103bb5c279..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java +++ /dev/null @@ -1,223 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.storeorderorderid.get.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class StoreorderorderidGetPathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "order_id" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return StoreorderorderidGetPathParameters1.getInstance().validate(arg, configuration); - } - - public Number order_id() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForOrderId { - Map getInstance(); - T getBuilderAfterOrderId(Map instance); - - default T order_id(int value) { - var instance = getInstance(); - instance.put("order_id", value); - return getBuilderAfterOrderId(instance); - } - - default T order_id(float value) { - var instance = getInstance(); - instance.put("order_id", value); - return getBuilderAfterOrderId(instance); - } - - default T order_id(long value) { - var instance = getInstance(); - instance.put("order_id", value); - return getBuilderAfterOrderId(instance); - } - - default T order_id(double value) { - var instance = getInstance(); - instance.put("order_id", value); - return getBuilderAfterOrderId(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "order_id" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForOrderId { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterOrderId(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface StoreorderorderidGetPathParameters1Boxed permits StoreorderorderidGetPathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record StoreorderorderidGetPathParameters1BoxedMap(PathParametersMap data) implements StoreorderorderidGetPathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class StoreorderorderidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable StoreorderorderidGetPathParameters1 instance = null; - - protected StoreorderorderidGetPathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("order_id", Schema0.Schema01.class) - )) - .required(Set.of( - "order_id" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static StoreorderorderidGetPathParameters1 getInstance() { - if (instance == null) { - instance = new StoreorderorderidGetPathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Number)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (Number) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public StoreorderorderidGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new StoreorderorderidGetPathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public StoreorderorderidGetPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java deleted file mode 100644 index fe5a0ecb10f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get; - -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode200Response; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode400Response; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode404Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class StoreorderorderidGetResponses { - public sealed interface EndpointResponse permits EndpointStoreorderorderidGetCode200Response {} - - public record EndpointStoreorderorderidGetCode200Response( - HttpResponse response, - StoreorderorderidGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusStoreorderorderidGetCode200ResponseDeserializer, StatusStoreorderorderidGetCode400ResponseDeserializer, StatusStoreorderorderidGetCode404ResponseDeserializer {} - - public static final class StatusStoreorderorderidGetCode200ResponseDeserializer extends StoreorderorderidGetCode200Response.StoreorderorderidGetCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusStoreorderorderidGetCode400ResponseDeserializer extends StoreorderorderidGetCode400Response.StoreorderorderidGetCode400Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusStoreorderorderidGetCode404ResponseDeserializer extends StoreorderorderidGetCode404Response.StoreorderorderidGetCode404Response1 implements StatusCodeResponseDeserializer { - } - - public static final class StoreorderorderidGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public StoreorderorderidGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusStoreorderorderidGetCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusStoreorderorderidGetCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusStoreorderorderidGetCode404ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusStoreorderorderidGetCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointStoreorderorderidGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else if (statusCodeDeserializer instanceof StatusStoreorderorderidGetCode400ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new StoreorderorderidGetCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else { - StatusStoreorderorderidGetCode404ResponseDeserializer castDeserializer = (StatusStoreorderorderidGetCode404ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new StoreorderorderidGetCode404Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java deleted file mode 100644 index e1ad2e999a1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.storeorderorderid.get.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "order_id", - ParameterInType.PATH, - true, - ParameterStyle.SIMPLE, - false, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java deleted file mode 100644 index b81d0724b97..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,111 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get.parameters.parameter0; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Schema0 { - // nest classes so all schemas and input/output classes can be public - - - public sealed interface Schema01Boxed permits Schema01BoxedNumber { - @Nullable Object getData(); - } - - public record Schema01BoxedNumber(Number data) implements Schema01Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Schema01 extends JsonSchema implements NumberSchemaValidator { - private static @Nullable Schema01 instance = null; - - protected Schema01() { - super(new JsonSchemaInfo() - .type(Set.of( - Integer.class, - Long.class, - Float.class, - Double.class - )) - .format("int64") - .maximum(5) - .minimum(1) - ); - } - - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - - @Override - public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { - return (int) validate((Number) arg, configuration); - } - - public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { - return (float) validate((Number) arg, configuration); - } - - public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { - return (long) validate((Number) arg, configuration); - } - - public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { - return (double) validate((Number) arg, configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number) { - return validate((Number) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Number) { - return getNewInstance((Number) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Schema01BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { - return new Schema01BoxedNumber(validate(arg, configuration)); - } - @Override - public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Number castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java deleted file mode 100644 index f15a3a49f9f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class StoreorderorderidGetCode200Response { - public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - - public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxmlMediaType() { - this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} - public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } - public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } - - public static class StoreorderorderidGetCode200Response1 extends ResponseDeserializer { - public StoreorderorderidGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationxmlResponseBody(deserializedBody); - } else { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java deleted file mode 100644 index c444b171ea4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class StoreorderorderidGetCode400Response { - - public static class StoreorderorderidGetCode400Response1 extends ResponseDeserializer { - public StoreorderorderidGetCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java deleted file mode 100644 index 39125cd7b5e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class StoreorderorderidGetCode404Response { - - public static class StoreorderorderidGetCode404Response1 extends ResponseDeserializer { - public StoreorderorderidGetCode404Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index b1b2c0183b4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Order; - -public class ApplicationjsonSchema extends Order { - // $refed class - - - public static class ApplicationjsonSchema1 extends Order1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java deleted file mode 100644 index 91ca54812cd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationxml; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.Order; - -public class ApplicationxmlSchema extends Order { - // $refed class - - - public static class ApplicationxmlSchema1 extends Order1 { - private static @Nullable ApplicationxmlSchema1 instance = null; - public static ApplicationxmlSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxmlSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java deleted file mode 100644 index b21a675ef4d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.user; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; -import org.openapijsonschematools.client.paths.user.post.UserPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.User; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class UserPost { - private static class PostProvider { - private static final String method = "post"; - - public static UserPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new UserPostRequestBody.UserPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + User.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new UserPostResponses.UserPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UserPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface CreateUserOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UserPostResponses.EndpointResponse createUser(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public UserPostRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PostRequest( - UserPostRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public UserPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(UserPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - requestBody, - instance.serverIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java deleted file mode 100644 index 9f4b9c37e2e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.user.post; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.user.post.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class UserPostRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class UserPostRequestBody1 extends RequestBodySerializer { - public UserPostRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - true - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java deleted file mode 100644 index f87b60de8c9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.openapijsonschematools.client.paths.user.post; - -import org.openapijsonschematools.client.paths.user.post.responses.UserPostCodedefaultResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class UserPostResponses { - public sealed interface EndpointResponse permits EndpointUserPostCodedefaultResponse {} - - public record EndpointUserPostCodedefaultResponse( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public static final class UserPostResponses1 implements ResponsesDeserializer { - private final UserPostCodedefaultResponse.UserPostCodedefaultResponse1 defaultResponseDeserializer; - public UserPostResponses1() { - this.defaultResponseDeserializer = new UserPostCodedefaultResponse.UserPostCodedefaultResponse1(); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointUserPostCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index b23c171aa6e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.user.post.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.User; - -public class ApplicationjsonSchema extends User { - // $refed class - - - public static class ApplicationjsonSchema1 extends User1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java deleted file mode 100644 index c5be0393da1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.user.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UserPostCodedefaultResponse { - - public static class UserPostCodedefaultResponse1 extends ResponseDeserializer { - public UserPostCodedefaultResponse1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java deleted file mode 100644 index 2203dd12e4f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.usercreatewitharray; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; -import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Usercreatewitharray; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class UsercreatewitharrayPost { - private static class PostProvider { - private static final String method = "post"; - - public static UsercreatewitharrayPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new UsercreatewitharrayPostRequestBody.UsercreatewitharrayPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Usercreatewitharray.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new UsercreatewitharrayPostResponses.UsercreatewitharrayPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UsercreatewitharrayPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface CreateUsersWithArrayInputOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UsercreatewitharrayPostResponses.EndpointResponse createUsersWithArrayInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PostRequest( - UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public UsercreatewitharrayPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - requestBody, - instance.serverIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java deleted file mode 100644 index 50224dc5a1c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.usercreatewitharray.post; - -import org.openapijsonschematools.client.components.requestbodies.UserArray; - -public class UsercreatewitharrayPostRequestBody extends UserArray { - public static class UsercreatewitharrayPostRequestBody1 extends UserArray1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java deleted file mode 100644 index 6e7f68122fb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.openapijsonschematools.client.paths.usercreatewitharray.post; - -import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.UsercreatewitharrayPostCodedefaultResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class UsercreatewitharrayPostResponses { - public sealed interface EndpointResponse permits EndpointUsercreatewitharrayPostCodedefaultResponse {} - - public record EndpointUsercreatewitharrayPostCodedefaultResponse( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public static final class UsercreatewitharrayPostResponses1 implements ResponsesDeserializer { - private final UsercreatewitharrayPostCodedefaultResponse.UsercreatewitharrayPostCodedefaultResponse1 defaultResponseDeserializer; - public UsercreatewitharrayPostResponses1() { - this.defaultResponseDeserializer = new UsercreatewitharrayPostCodedefaultResponse.UsercreatewitharrayPostCodedefaultResponse1(); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointUsercreatewitharrayPostCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java deleted file mode 100644 index 9f3410d1091..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.usercreatewitharray.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UsercreatewitharrayPostCodedefaultResponse { - - public static class UsercreatewitharrayPostCodedefaultResponse1 extends ResponseDeserializer { - public UsercreatewitharrayPostCodedefaultResponse1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java deleted file mode 100644 index 61ba96802a3..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.openapijsonschematools.client.paths.usercreatewithlist; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; -import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Usercreatewithlist; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class UsercreatewithlistPost { - private static class PostProvider { - private static final String method = "post"; - - public static UsercreatewithlistPostResponses.EndpointResponse post( - PostRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new UsercreatewithlistPostRequestBody.UsercreatewithlistPostRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Usercreatewithlist.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new UsercreatewithlistPostResponses.UsercreatewithlistPostResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface PostOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UsercreatewithlistPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface CreateUsersWithListInputOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UsercreatewithlistPostResponses.EndpointResponse createUsersWithListInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Post extends ApiClient implements PostOperation { - public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PostRequest { - public UsercreatewithlistPostRequestBody.SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PostRequest( - UsercreatewithlistPostRequestBody.SealedRequestBody requestBody, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PostNullableRequest { - public UsercreatewithlistPostRequestBody.@Nullable SealedRequestBody requestBody; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PostNullableRequest getInstance(); - T getBuilderAfterServerIndex(PostNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PostNullableRequest getInstance(); - T getBuilderAfterTimeout(PostNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PostNullableRequest getInstance(); - T getBuilderAfterRequestBody(PostNullableRequest instance); - default T requestBody(UsercreatewithlistPostRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PostNullableRequest instance; - - public Post0RequestBuilder(PostNullableRequest instance) { - this.instance = instance; - } - - public PostRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PostRequest( - requestBody, - instance.serverIndex, - instance.timeout - ); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { - return this; - } - - public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { - return this; - } - } - public static class PostRequestBuilder implements SetterForRequestBody { - private final PostNullableRequest instance; - - public PostRequestBuilder() { - this.instance = new PostNullableRequest(); - } - - public PostNullableRequest getInstance() { - return instance; - } - - public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { - return new Post0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java deleted file mode 100644 index 1d84fbcdb44..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.usercreatewithlist.post; - -import org.openapijsonschematools.client.components.requestbodies.RefUserArray; - -public class UsercreatewithlistPostRequestBody extends RefUserArray { - public static class UsercreatewithlistPostRequestBody1 extends RefUserArray1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java deleted file mode 100644 index 082e179676e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.openapijsonschematools.client.paths.usercreatewithlist.post; - -import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.UsercreatewithlistPostCodedefaultResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class UsercreatewithlistPostResponses { - public sealed interface EndpointResponse permits EndpointUsercreatewithlistPostCodedefaultResponse {} - - public record EndpointUsercreatewithlistPostCodedefaultResponse( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public static final class UsercreatewithlistPostResponses1 implements ResponsesDeserializer { - private final UsercreatewithlistPostCodedefaultResponse.UsercreatewithlistPostCodedefaultResponse1 defaultResponseDeserializer; - public UsercreatewithlistPostResponses1() { - this.defaultResponseDeserializer = new UsercreatewithlistPostCodedefaultResponse.UsercreatewithlistPostCodedefaultResponse1(); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointUsercreatewithlistPostCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java deleted file mode 100644 index 6966b53669d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.usercreatewithlist.post.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UsercreatewithlistPostCodedefaultResponse { - - public static class UsercreatewithlistPostCodedefaultResponse1 extends ResponseDeserializer { - public UsercreatewithlistPostCodedefaultResponse1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java deleted file mode 100644 index 4ee4d95fae9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java +++ /dev/null @@ -1,180 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; -import org.openapijsonschematools.client.paths.userlogin.get.Parameters; -import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Userlogin; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class UserloginGet { - private static class GetProvider { - private static final String method = "get"; - - public static UserloginGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var querySerializer = new Parameters.QueryParametersSerializer(); - @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Userlogin.path; - if (queryMap != null) { - url = url + querySerializer.serialize(queryMap); - } - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new UserloginGetResponses.UserloginGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UserloginGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface LoginUserOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UserloginGetResponses.EndpointResponse loginUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public UserloginGetQueryParameters.QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public GetRequest( - UserloginGetQueryParameters.QueryParametersMap queryParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.queryParameters = queryParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class GetNullableRequest { - public UserloginGetQueryParameters.@Nullable QueryParametersMap queryParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForQueryParameters { - GetNullableRequest getInstance(); - T getBuilderAfterQueryParameters(GetNullableRequest instance); - default T queryParameters(UserloginGetQueryParameters.QueryParametersMap queryParameters) { - var instance = getInstance(); - instance.queryParameters = queryParameters; - return getBuilderAfterQueryParameters(instance); - } - } - - public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetNullableRequest instance; - - public Get0RequestBuilder(GetNullableRequest instance) { - this.instance = instance; - } - - public GetRequest build() { - var queryParameters = instance.queryParameters; - if (queryParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new GetRequest( - queryParameters, - instance.serverIndex, - instance.timeout - ); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { - return this; - } - } - public static class GetRequestBuilder implements SetterForQueryParameters { - private final GetNullableRequest instance; - - public GetRequestBuilder() { - this.instance = new GetNullableRequest(); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { - return new Get0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java deleted file mode 100644 index 0e29f41858d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get; - -import org.openapijsonschematools.client.paths.userlogin.get.parameters.Parameter0; -import org.openapijsonschematools.client.paths.userlogin.get.parameters.Parameter1; -import org.openapijsonschematools.client.parameter.QuerySerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class QueryParametersSerializer extends QuerySerializer { - public QueryParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("username", new Parameter0.Parameter01()), - new AbstractMap.SimpleEntry<>("password", new Parameter1.Parameter11()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java deleted file mode 100644 index c42b97df5ca..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java +++ /dev/null @@ -1,255 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter0.Schema0; -import org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter1.Schema1; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class UserloginGetQueryParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class QueryParametersMap extends FrozenMap<@Nullable Object> { - protected QueryParametersMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "password", - "username" - ); - public static final Set optionalKeys = Set.of(); - public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return UserloginGetQueryParameters1.getInstance().validate(arg, configuration); - } - - public String password() { - @Nullable Object value = get("password"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for password"); - } - return (String) value; - } - - public String username() { - @Nullable Object value = get("username"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for username"); - } - return (String) value; - } - } - - public interface SetterForPassword { - Map getInstance(); - T getBuilderAfterPassword(Map instance); - - default T password(String value) { - var instance = getInstance(); - instance.put("password", value); - return getBuilderAfterPassword(instance); - } - } - - public interface SetterForUsername { - Map getInstance(); - T getBuilderAfterUsername(Map instance); - - default T username(String value) { - var instance = getInstance(); - instance.put("username", value); - return getBuilderAfterUsername(instance); - } - } - - public static class QueryParametersMap00Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "password", - "username" - ); - public Set getKnownKeys() { - return knownKeys; - } - public QueryParametersMap00Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class QueryParametersMap01Builder implements SetterForUsername { - private final Map instance; - public QueryParametersMap01Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap00Builder getBuilderAfterUsername(Map instance) { - return new QueryParametersMap00Builder(instance); - } - } - - public static class QueryParametersMap10Builder implements SetterForPassword { - private final Map instance; - public QueryParametersMap10Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public QueryParametersMap00Builder getBuilderAfterPassword(Map instance) { - return new QueryParametersMap00Builder(instance); - } - } - - public static class QueryParametersMapBuilder implements SetterForPassword, SetterForUsername { - private final Map instance; - public QueryParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public QueryParametersMap01Builder getBuilderAfterPassword(Map instance) { - return new QueryParametersMap01Builder(instance); - } - public QueryParametersMap10Builder getBuilderAfterUsername(Map instance) { - return new QueryParametersMap10Builder(instance); - } - } - - - public sealed interface UserloginGetQueryParameters1Boxed permits UserloginGetQueryParameters1BoxedMap { - @Nullable Object getData(); - } - - public record UserloginGetQueryParameters1BoxedMap(QueryParametersMap data) implements UserloginGetQueryParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class UserloginGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable UserloginGetQueryParameters1 instance = null; - - protected UserloginGetQueryParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("password", Schema1.Schema11.class), - new PropertyEntry("username", Schema0.Schema01.class) - )) - .required(Set.of( - "password", - "username" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static UserloginGetQueryParameters1 getInstance() { - if (instance == null) { - instance = new UserloginGetQueryParameters1(); - } - return instance; - } - - public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new QueryParametersMap(castProperties); - } - - public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public UserloginGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new UserloginGetQueryParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public UserloginGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java deleted file mode 100644 index 8e5613c7641..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java +++ /dev/null @@ -1,67 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get; - -import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode200Response; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; -import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode400Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class UserloginGetResponses { - public sealed interface EndpointResponse permits EndpointUserloginGetCode200Response {} - - public record EndpointUserloginGetCode200Response( - HttpResponse response, - UserloginGetCode200Response.SealedResponseBody body, - UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusUserloginGetCode200ResponseDeserializer, StatusUserloginGetCode400ResponseDeserializer {} - - public static final class StatusUserloginGetCode200ResponseDeserializer extends UserloginGetCode200Response.UserloginGetCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusUserloginGetCode400ResponseDeserializer extends UserloginGetCode400Response.UserloginGetCode400Response1 implements StatusCodeResponseDeserializer { - } - - public static final class UserloginGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public UserloginGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusUserloginGetCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusUserloginGetCode400ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusUserloginGetCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointUserloginGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else { - StatusUserloginGetCode400ResponseDeserializer castDeserializer = (StatusUserloginGetCode400ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new UserloginGetCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter0.java deleted file mode 100644 index db4b2c26b2e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter0.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter0.Schema0; - -public class Parameter0 { - - public static class Parameter01 extends SchemaParameter { - public Parameter01() { - super( - "username", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema0.Schema01.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java deleted file mode 100644 index 958cf010fab..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.parameters; - -import org.openapijsonschematools.client.parameter.ParameterStyle; -import org.openapijsonschematools.client.parameter.ParameterInType; -import org.openapijsonschematools.client.parameter.SchemaParameter; -import org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter1.Schema1; - -public class Parameter1 { - - public static class Parameter11 extends SchemaParameter { - public Parameter11() { - super( - "password", - ParameterInType.QUERY, - true, - ParameterStyle.FORM, - true, - false, - Schema1.Schema11.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java deleted file mode 100644 index 8450f67fc2b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter0; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema0 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema01 instance = null; - public static Schema01 getInstance() { - if (instance == null) { - instance = new Schema01(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java deleted file mode 100644 index 9eed3552b1f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter1; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class Schema1 extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class Schema11 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable Schema11 instance = null; - public static Schema11 getInstance() { - if (instance == null) { - instance = new Schema11(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java deleted file mode 100644 index 07992812d1e..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.Headers; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UserloginGetCode200Response { - public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - - public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxmlMediaType() { - this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} - public record ApplicationxmlResponseBody(ApplicationxmlSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } - - public static class UserloginGetCode200Response1 extends ResponseDeserializer { - public UserloginGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationxmlResponseBody(deserializedBody); - } else { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - } - - @Override - protected UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap getHeaders(HttpHeaders headers, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - return new Headers().deserialize(headers, configuration); - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java deleted file mode 100644 index a9e9d3cb6b0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UserloginGetCode400Response { - - public static class UserloginGetCode400Response1 extends ResponseDeserializer { - public UserloginGetCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java deleted file mode 100644 index 5c6b5922c54..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response; - -import org.openapijsonschematools.client.response.HeadersDeserializer; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.XRateLimit; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.Int32; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.XExpiresAfter; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.Refcontentschemaheader; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.NumberHeader; - -import java.util.Map; -import java.util.AbstractMap; - -public class Headers extends HeadersDeserializer { - public Headers() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("X-Rate-Limit", new XRateLimit.XRateLimit1()), - new AbstractMap.SimpleEntry<>("int32", new Int32.Int321()), - new AbstractMap.SimpleEntry<>("X-Expires-After", new XExpiresAfter.XExpiresAfter1()), - new AbstractMap.SimpleEntry<>("ref-content-schema-header", new Refcontentschemaheader.Refcontentschemaheader1()), - new AbstractMap.SimpleEntry<>("numberHeader", new NumberHeader.NumberHeader1()) - ), - UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchema1.getInstance() - ); - } -} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java deleted file mode 100644 index 49828653caa..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java +++ /dev/null @@ -1,389 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.headers.int32jsoncontenttypeheader.content.applicationjson.Int32JsonContentTypeHeaderSchema; -import org.openapijsonschematools.client.components.headers.numberheader.NumberHeaderSchema; -import org.openapijsonschematools.client.components.schemas.StringWithValidation; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xexpiresafter.XExpiresAfterSchema; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xratelimit.content.applicationjson.XRateLimitSchema; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class UserloginGetCode200ResponseHeadersSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class UserloginGetCode200ResponseAdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable UserloginGetCode200ResponseAdditionalProperties instance = null; - public static UserloginGetCode200ResponseAdditionalProperties getInstance() { - if (instance == null) { - instance = new UserloginGetCode200ResponseAdditionalProperties(); - } - return instance; - } - } - - - public static class UserloginGetCode200ResponseHeadersSchemaMap extends FrozenMap<@Nullable Object> { - protected UserloginGetCode200ResponseHeadersSchemaMap(FrozenMap<@Nullable Object> m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "X-Rate-Limit", - "int32", - "ref-content-schema-header" - ); - public static final Set optionalKeys = Set.of( - "X-Expires-After", - "numberHeader" - ); - public static UserloginGetCode200ResponseHeadersSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return UserloginGetCode200ResponseHeadersSchema1.getInstance().validate(arg, configuration); - } - - public Number int32() { - @Nullable Object value = get("int32"); - if (!(value instanceof Number)) { - throw new RuntimeException("Invalid value stored for int32"); - } - return (Number) value; - } - - public String numberHeader() throws UnsetPropertyException { - String key = "numberHeader"; - throwIfKeyNotPresent(key); - @Nullable Object value = get(key); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for numberHeader"); - } - return (String) value; - } - } - - public interface SetterForUserloginGetCode200ResponseXRateLimit { - Map getInstance(); - T getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance); - - default T xHyphenMinusRateHyphenMinusLimit(int value) { - var instance = getInstance(); - instance.put("X-Rate-Limit", value); - return getBuilderAfterUserloginGetCode200ResponseXRateLimit(instance); - } - - default T xHyphenMinusRateHyphenMinusLimit(float value) { - var instance = getInstance(); - instance.put("X-Rate-Limit", value); - return getBuilderAfterUserloginGetCode200ResponseXRateLimit(instance); - } - } - - public interface SetterForUserloginGetCode200ResponseInt32 { - Map getInstance(); - T getBuilderAfterUserloginGetCode200ResponseInt32(Map instance); - - default T int32(int value) { - var instance = getInstance(); - instance.put("int32", value); - return getBuilderAfterUserloginGetCode200ResponseInt32(instance); - } - - default T int32(float value) { - var instance = getInstance(); - instance.put("int32", value); - return getBuilderAfterUserloginGetCode200ResponseInt32(instance); - } - } - - public interface SetterForUserloginGetCode200ResponseRefcontentschemaheader { - Map getInstance(); - T getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance); - - default T refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) { - var instance = getInstance(); - instance.put("ref-content-schema-header", value); - return getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(instance); - } - } - - public interface SetterForUserloginGetCode200ResponseXExpiresAfter { - Map getInstance(); - T getBuilderAfterUserloginGetCode200ResponseXExpiresAfter(Map instance); - - default T xHyphenMinusExpiresHyphenMinusAfter(String value) { - var instance = getInstance(); - instance.put("X-Expires-After", value); - return getBuilderAfterUserloginGetCode200ResponseXExpiresAfter(instance); - } - } - - public interface SetterForUserloginGetCode200ResponseNumberHeader { - Map getInstance(); - T getBuilderAfterUserloginGetCode200ResponseNumberHeader(Map instance); - - default T numberHeader(String value) { - var instance = getInstance(); - instance.put("numberHeader", value); - return getBuilderAfterUserloginGetCode200ResponseNumberHeader(instance); - } - } - - public static class UserloginGetCode200ResponseHeadersSchemaMap000Builder implements GenericBuilder>, SetterForUserloginGetCode200ResponseXExpiresAfter, SetterForUserloginGetCode200ResponseNumberHeader { - private final Map instance; - private static final Set knownKeys = Set.of( - "X-Rate-Limit", - "int32", - "ref-content-schema-header", - "X-Expires-After", - "numberHeader" - ); - public Set getKnownKeys() { - return knownKeys; - } - public UserloginGetCode200ResponseHeadersSchemaMap000Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - public Map getInstance() { - return instance; - } - public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseXExpiresAfter(Map instance) { - return this; - } - public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseNumberHeader(Map instance) { - return this; - } - } - - public static class UserloginGetCode200ResponseHeadersSchemaMap001Builder implements SetterForUserloginGetCode200ResponseRefcontentschemaheader { - private final Map instance; - public UserloginGetCode200ResponseHeadersSchemaMap001Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap000Builder(instance); - } - } - - public static class UserloginGetCode200ResponseHeadersSchemaMap010Builder implements SetterForUserloginGetCode200ResponseInt32 { - private final Map instance; - public UserloginGetCode200ResponseHeadersSchemaMap010Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap000Builder(instance); - } - } - - public static class UserloginGetCode200ResponseHeadersSchemaMap011Builder implements SetterForUserloginGetCode200ResponseInt32, SetterForUserloginGetCode200ResponseRefcontentschemaheader { - private final Map instance; - public UserloginGetCode200ResponseHeadersSchemaMap011Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public UserloginGetCode200ResponseHeadersSchemaMap001Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap001Builder(instance); - } - public UserloginGetCode200ResponseHeadersSchemaMap010Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap010Builder(instance); - } - } - - public static class UserloginGetCode200ResponseHeadersSchemaMap100Builder implements SetterForUserloginGetCode200ResponseXRateLimit { - private final Map instance; - public UserloginGetCode200ResponseHeadersSchemaMap100Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap000Builder(instance); - } - } - - public static class UserloginGetCode200ResponseHeadersSchemaMap101Builder implements SetterForUserloginGetCode200ResponseXRateLimit, SetterForUserloginGetCode200ResponseRefcontentschemaheader { - private final Map instance; - public UserloginGetCode200ResponseHeadersSchemaMap101Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public UserloginGetCode200ResponseHeadersSchemaMap001Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap001Builder(instance); - } - public UserloginGetCode200ResponseHeadersSchemaMap100Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap100Builder(instance); - } - } - - public static class UserloginGetCode200ResponseHeadersSchemaMap110Builder implements SetterForUserloginGetCode200ResponseXRateLimit, SetterForUserloginGetCode200ResponseInt32 { - private final Map instance; - public UserloginGetCode200ResponseHeadersSchemaMap110Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public UserloginGetCode200ResponseHeadersSchemaMap010Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap010Builder(instance); - } - public UserloginGetCode200ResponseHeadersSchemaMap100Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap100Builder(instance); - } - } - - public static class UserloginGetCode200ResponseHeadersSchemaMapBuilder implements SetterForUserloginGetCode200ResponseXRateLimit, SetterForUserloginGetCode200ResponseInt32, SetterForUserloginGetCode200ResponseRefcontentschemaheader { - private final Map instance; - public UserloginGetCode200ResponseHeadersSchemaMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public UserloginGetCode200ResponseHeadersSchemaMap011Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap011Builder(instance); - } - public UserloginGetCode200ResponseHeadersSchemaMap101Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap101Builder(instance); - } - public UserloginGetCode200ResponseHeadersSchemaMap110Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { - return new UserloginGetCode200ResponseHeadersSchemaMap110Builder(instance); - } - } - - - public sealed interface UserloginGetCode200ResponseHeadersSchema1Boxed permits UserloginGetCode200ResponseHeadersSchema1BoxedMap { - @Nullable Object getData(); - } - - public record UserloginGetCode200ResponseHeadersSchema1BoxedMap(UserloginGetCode200ResponseHeadersSchemaMap data) implements UserloginGetCode200ResponseHeadersSchema1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class UserloginGetCode200ResponseHeadersSchema1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable UserloginGetCode200ResponseHeadersSchema1 instance = null; - - protected UserloginGetCode200ResponseHeadersSchema1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("X-Rate-Limit", XRateLimitSchema.XRateLimitSchema1.class), - new PropertyEntry("int32", Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1.class), - new PropertyEntry("X-Expires-After", XExpiresAfterSchema.XExpiresAfterSchema1.class), - new PropertyEntry("ref-content-schema-header", StringWithValidation.StringWithValidation1.class), - new PropertyEntry("numberHeader", NumberHeaderSchema.NumberHeaderSchema1.class) - )) - .required(Set.of( - "X-Rate-Limit", - "int32", - "ref-content-schema-header" - )) - .additionalProperties(UserloginGetCode200ResponseAdditionalProperties.class) - ); - } - - public static UserloginGetCode200ResponseHeadersSchema1 getInstance() { - if (instance == null) { - instance = new UserloginGetCode200ResponseHeadersSchema1(); - } - return instance; - } - - public UserloginGetCode200ResponseHeadersSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - properties.put(propertyName, propertyInstance); - } - FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); - return new UserloginGetCode200ResponseHeadersSchemaMap(castProperties); - } - - public UserloginGetCode200ResponseHeadersSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public UserloginGetCode200ResponseHeadersSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new UserloginGetCode200ResponseHeadersSchema1BoxedMap(validate(arg, configuration)); - } - @Override - public UserloginGetCode200ResponseHeadersSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 93f4ea3148c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class ApplicationjsonSchema extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationjsonSchema1 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java deleted file mode 100644 index 557f1fbe8d1..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationxml; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.StringJsonSchema; - -public class ApplicationxmlSchema extends StringJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class ApplicationxmlSchema1 extends StringJsonSchema.StringJsonSchema1 { - private static @Nullable ApplicationxmlSchema1 instance = null; - public static ApplicationxmlSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxmlSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Int32.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Int32.java deleted file mode 100644 index e58a6bc7a89..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Int32.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers; - -import org.openapijsonschematools.client.components.headers.Int32JsonContentTypeHeader; - -public class Int32 extends Int32JsonContentTypeHeader { - public static class Int321 extends Int32JsonContentTypeHeader1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/NumberHeader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/NumberHeader.java deleted file mode 100644 index 32207ae7232..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/NumberHeader.java +++ /dev/null @@ -1,3 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers; - -public class NumberHeader extends org.openapijsonschematools.client.components.headers.NumberHeader {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Refcontentschemaheader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Refcontentschemaheader.java deleted file mode 100644 index 2e61fb18770..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Refcontentschemaheader.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers; - -import org.openapijsonschematools.client.components.headers.RefContentSchemaHeader; - -public class Refcontentschemaheader extends RefContentSchemaHeader { - public static class Refcontentschemaheader1 extends RefContentSchemaHeader1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XExpiresAfter.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XExpiresAfter.java deleted file mode 100644 index 16c17845941..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XExpiresAfter.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers; - -import org.openapijsonschematools.client.header.SchemaHeader; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xexpiresafter.XExpiresAfterSchema; - -public class XExpiresAfter { - - public static class XExpiresAfter1 extends SchemaHeader { - public XExpiresAfter1() { - super( - false, - null, - false, - XExpiresAfterSchema.XExpiresAfterSchema1.getInstance() - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XRateLimit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XRateLimit.java deleted file mode 100644 index f7e9a714406..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XRateLimit.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers; - -import org.openapijsonschematools.client.header.ContentHeader; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xratelimit.content.applicationjson.XRateLimitSchema; - -import java.util.AbstractMap; - -public class XRateLimit { - - public record ApplicationjsonMediaType(XRateLimitSchema.XRateLimitSchema1 schema) implements MediaType { - public ApplicationjsonMediaType() { - this(XRateLimitSchema.XRateLimitSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class XRateLimit1 extends ContentHeader { - public XRateLimit1() { - super( - true, - null, - false, - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java deleted file mode 100644 index 13ec38f4440..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xexpiresafter; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.DateTimeJsonSchema; - -public class XExpiresAfterSchema extends DateTimeJsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class XExpiresAfterSchema1 extends DateTimeJsonSchema.DateTimeJsonSchema1 { - private static @Nullable XExpiresAfterSchema1 instance = null; - public static XExpiresAfterSchema1 getInstance() { - if (instance == null) { - instance = new XExpiresAfterSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java deleted file mode 100644 index 9ce160e834c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xratelimit.content.applicationjson; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.schemas.Int32JsonSchema; - -public class XRateLimitSchema extends Int32JsonSchema { - // nest classes so all schemas and input/output classes can be public - - - public static class XRateLimitSchema1 extends Int32JsonSchema.Int32JsonSchema1 { - private static @Nullable XRateLimitSchema1 instance = null; - public static XRateLimitSchema1 getInstance() { - if (instance == null) { - instance = new XRateLimitSchema1(); - } - return instance; - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java deleted file mode 100644 index 7cf2e0bb376..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogout; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Userlogout; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class UserlogoutGet { - private static class GetProvider { - private static final String method = "get"; - - public static UserlogoutGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + Userlogout.path; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new UserlogoutGetResponses.UserlogoutGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UserlogoutGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface LogoutUserOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UserlogoutGetResponses.EndpointResponse logoutUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetRequest getInstance(); - T getBuilderAfterServerIndex(GetRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetRequest getInstance(); - T getBuilderAfterTimeout(GetRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetRequest instance; - - public GetRequestBuilder() { - this.instance = new GetRequest(); - } - - public GetRequest build() { - return instance; - } - - public GetRequest getInstance() { - return instance; - } - - public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { - return this; - } - - public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { - return this; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java deleted file mode 100644 index e122fdd65e0..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogout.get; - -import org.openapijsonschematools.client.paths.userlogout.get.responses.UserlogoutGetCodedefaultResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class UserlogoutGetResponses { - public sealed interface EndpointResponse permits EndpointUserlogoutGetCodedefaultResponse {} - - public record EndpointUserlogoutGetCodedefaultResponse( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public static final class UserlogoutGetResponses1 implements ResponsesDeserializer { - private final UserlogoutGetCodedefaultResponse.UserlogoutGetCodedefaultResponse1 defaultResponseDeserializer; - public UserlogoutGetResponses1() { - this.defaultResponseDeserializer = new UserlogoutGetCodedefaultResponse.UserlogoutGetCodedefaultResponse1(); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); - return new EndpointUserlogoutGetCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.java deleted file mode 100644 index 18fa2331b9a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userlogout.get.responses; - -import org.openapijsonschematools.client.components.responses.RefSuccessDescriptionOnly; - -public class UserlogoutGetCodedefaultResponse extends RefSuccessDescriptionOnly { - public static class UserlogoutGetCodedefaultResponse1 extends RefSuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java deleted file mode 100644 index cbbae52933a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java +++ /dev/null @@ -1,179 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; -import org.openapijsonschematools.client.paths.userusername.delete.Parameters; -import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Userusername; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class UserusernameDelete { - private static class DeleteProvider { - private static final String method = "delete"; - - public static UserusernameDeleteResponses.EndpointResponse delete( - DeleteRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Userusername.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new UserusernameDeleteResponses.UserusernameDeleteResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface DeleteOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UserusernameDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface DeleteUserOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UserusernameDeleteResponses.EndpointResponse deleteUser(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Delete extends ApiClient implements DeleteOperation { - public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class DeleteRequest { - public UserusernameDeletePathParameters.PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public DeleteRequest( - UserusernameDeletePathParameters.PathParametersMap pathParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class DeleteNullableRequest { - public UserusernameDeletePathParameters.@Nullable PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - DeleteNullableRequest getInstance(); - T getBuilderAfterServerIndex(DeleteNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - DeleteNullableRequest getInstance(); - T getBuilderAfterTimeout(DeleteNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - DeleteNullableRequest getInstance(); - T getBuilderAfterPathParameters(DeleteNullableRequest instance); - default T pathParameters(UserusernameDeletePathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final DeleteNullableRequest instance; - - public Delete0RequestBuilder(DeleteNullableRequest instance) { - this.instance = instance; - } - - public DeleteRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new DeleteRequest( - pathParameters, - instance.serverIndex, - instance.timeout - ); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { - return this; - } - - public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { - return this; - } - } - public static class DeleteRequestBuilder implements SetterForPathParameters { - private final DeleteNullableRequest instance; - - public DeleteRequestBuilder() { - this.instance = new DeleteNullableRequest(); - } - - public DeleteNullableRequest getInstance() { - return instance; - } - - public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { - return new Delete0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java deleted file mode 100644 index 83c77df26d5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java +++ /dev/null @@ -1,179 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; -import org.openapijsonschematools.client.paths.userusername.get.Parameters; -import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.paths.Userusername; - -import java.io.IOException; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class UserusernameGet { - private static class GetProvider { - private static final String method = "get"; - - public static UserusernameGetResponses.EndpointResponse get( - GetRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Userusername.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - var responsesDeserializer = new UserusernameGetResponses.UserusernameGetResponses1(); - return responsesDeserializer.deserialize(response, schemaConfiguration); - } - } - - public interface GetOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UserusernameGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface GetUserByNameOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default UserusernameGetResponses.EndpointResponse getUserByName(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Get extends ApiClient implements GetOperation { - public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class GetRequest { - public UserusernameGetPathParameters.PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public GetRequest( - UserusernameGetPathParameters.PathParametersMap pathParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.pathParameters = pathParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class GetNullableRequest { - public UserusernameGetPathParameters.@Nullable PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - GetNullableRequest getInstance(); - T getBuilderAfterServerIndex(GetNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - GetNullableRequest getInstance(); - T getBuilderAfterTimeout(GetNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForPathParameters { - GetNullableRequest getInstance(); - T getBuilderAfterPathParameters(GetNullableRequest instance); - default T pathParameters(UserusernameGetPathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final GetNullableRequest instance; - - public Get0RequestBuilder(GetNullableRequest instance) { - this.instance = instance; - } - - public GetRequest build() { - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new GetRequest( - pathParameters, - instance.serverIndex, - instance.timeout - ); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { - return this; - } - - public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { - return this; - } - } - public static class GetRequestBuilder implements SetterForPathParameters { - private final GetNullableRequest instance; - - public GetRequestBuilder() { - this.instance = new GetNullableRequest(); - } - - public GetNullableRequest getInstance() { - return instance; - } - - public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { - return new Get0RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java deleted file mode 100644 index 95c2c9f8b1c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java +++ /dev/null @@ -1,240 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; -import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; -import org.openapijsonschematools.client.paths.userusername.put.Parameters; -import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; -import org.openapijsonschematools.client.apiclient.ApiClient; -import org.openapijsonschematools.client.configurations.ApiConfiguration; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.restclient.RestClient; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.paths.Userusername; - -import java.io.IOException; -import java.util.ArrayList; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.time.Duration; -import java.util.List; -import java.util.Map; - -public class UserusernamePut { - private static class PutProvider { - private static final String method = "put"; - - public static Void put( - PutRequest request, - ApiConfiguration apiConfiguration, - SchemaConfiguration schemaConfiguration, - HttpClient client - ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - Map> headers = apiConfiguration.getDefaultHeaders(); - - SerializedRequestBody serializedRequestBody = new UserusernamePutRequestBody.UserusernamePutRequestBody1().serialize( - request.requestBody - ); - var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); - contentTypeHeaderValues.add(serializedRequestBody.contentType); - HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; - - var pathSerializer = new Parameters.PathParametersSerializer(); - String updatedPath = pathSerializer.serialize(request.pathParameters, Userusername.path); - // TODO set this to a map if there is a query security scheme - @Nullable Map queryMap = null; - String host = apiConfiguration.getServer(request.serverIndex).url(); - - String url = host + updatedPath; - var httpRequest = RestClient.getRequest( - url, - method, - bodyPublisher, - headers, - request.timeout - ); - var response = RestClient.getResponse(httpRequest, client); - return (Void) null; - } - } - - public interface PutOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Void put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public interface UpdateUserOperation { - ApiConfiguration getApiConfiguration(); - SchemaConfiguration getSchemaConfiguration(); - HttpClient getClient(); - default Void updateUser(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { - return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); - } - } - - public static class Put extends ApiClient implements PutOperation { - public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { - super(apiConfiguration, schemaConfiguration); - } - } - - public static class PutRequest { - public UserusernamePutRequestBody.SealedRequestBody requestBody; - public UserusernamePutPathParameters.PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - - public PutRequest( - UserusernamePutRequestBody.SealedRequestBody requestBody, - UserusernamePutPathParameters.PathParametersMap pathParameters, - ServerInfo.@Nullable ServerIndex serverIndex, - @Nullable Duration timeout - ) { - this.requestBody = requestBody; - this.pathParameters = pathParameters; - this.serverIndex = serverIndex; - this.timeout = timeout; - } - } - - public static class PutNullableRequest { - public UserusernamePutRequestBody.@Nullable SealedRequestBody requestBody; - public UserusernamePutPathParameters.@Nullable PathParametersMap pathParameters; - public ServerInfo.@Nullable ServerIndex serverIndex; - public @Nullable Duration timeout; - } - - public interface SetterForServerIndex { - PutNullableRequest getInstance(); - T getBuilderAfterServerIndex(PutNullableRequest instance); - default T serverIndex(ServerInfo.ServerIndex serverIndex) { - var instance = getInstance(); - instance.serverIndex = serverIndex; - return getBuilderAfterServerIndex(instance); - } - } - - public interface SetterForTimeout { - PutNullableRequest getInstance(); - T getBuilderAfterTimeout(PutNullableRequest instance); - default T timeout(Duration timeout) { - var instance = getInstance(); - instance.timeout = timeout; - return getBuilderAfterTimeout(instance); - } - } - - public interface SetterForRequestBody { - PutNullableRequest getInstance(); - T getBuilderAfterRequestBody(PutNullableRequest instance); - default T requestBody(UserusernamePutRequestBody.SealedRequestBody requestBody) { - var instance = getInstance(); - instance.requestBody = requestBody; - return getBuilderAfterRequestBody(instance); - } - } - - public interface SetterForPathParameters { - PutNullableRequest getInstance(); - T getBuilderAfterPathParameters(PutNullableRequest instance); - default T pathParameters(UserusernamePutPathParameters.PathParametersMap pathParameters) { - var instance = getInstance(); - instance.pathParameters = pathParameters; - return getBuilderAfterPathParameters(instance); - } - } - - public static class Put00RequestBuilder implements SetterForServerIndex, SetterForTimeout { - private final PutNullableRequest instance; - - public Put00RequestBuilder(PutNullableRequest instance) { - this.instance = instance; - } - - public PutRequest build() { - var requestBody = instance.requestBody; - if (requestBody == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - var pathParameters = instance.pathParameters; - if (pathParameters == null) { - throw new RuntimeException("invalid null value for required parameter"); - } - return new PutRequest( - requestBody, - pathParameters, - instance.serverIndex, - instance.timeout - ); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put00RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { - return this; - } - - public Put00RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { - return this; - } - } - public static class Put01RequestBuilder implements SetterForPathParameters { - private final PutNullableRequest instance; - - public Put01RequestBuilder(PutNullableRequest instance) { - this.instance = instance; - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put00RequestBuilder getBuilderAfterPathParameters(PutNullableRequest instance) { - return new Put00RequestBuilder(instance); - } - } - public static class Put10RequestBuilder implements SetterForRequestBody { - private final PutNullableRequest instance; - - public Put10RequestBuilder(PutNullableRequest instance) { - this.instance = instance; - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put00RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { - return new Put00RequestBuilder(instance); - } - } - public static class PutRequestBuilder implements SetterForRequestBody, SetterForPathParameters { - private final PutNullableRequest instance; - - public PutRequestBuilder() { - this.instance = new PutNullableRequest(); - } - - public PutNullableRequest getInstance() { - return instance; - } - - public Put01RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { - return new Put01RequestBuilder(instance); - } - - public Put10RequestBuilder getBuilderAfterPathParameters(PutNullableRequest instance) { - return new Put10RequestBuilder(instance); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java deleted file mode 100644 index ea0e063d89c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.delete; - -import org.openapijsonschematools.client.paths.userusername.delete.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("username", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java deleted file mode 100644 index 4d8cbc3a337..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java +++ /dev/null @@ -1,205 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.delete; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.parameters.pathusername.Schema; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class UserusernameDeletePathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "username" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return UserusernameDeletePathParameters1.getInstance().validate(arg, configuration); - } - - public String username() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForUsername { - Map getInstance(); - T getBuilderAfterUsername(Map instance); - - default T username(String value) { - var instance = getInstance(); - instance.put("username", value); - return getBuilderAfterUsername(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "username" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForUsername { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface UserusernameDeletePathParameters1Boxed permits UserusernameDeletePathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record UserusernameDeletePathParameters1BoxedMap(PathParametersMap data) implements UserusernameDeletePathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class UserusernameDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable UserusernameDeletePathParameters1 instance = null; - - protected UserusernameDeletePathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("username", Schema.Schema1.class) - )) - .required(Set.of( - "username" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static UserusernameDeletePathParameters1 getInstance() { - if (instance == null) { - instance = new UserusernameDeletePathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public UserusernameDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new UserusernameDeletePathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public UserusernameDeletePathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java deleted file mode 100644 index 8ab4e2b7b08..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.delete; - -import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode200Response; -import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode404Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class UserusernameDeleteResponses { - public sealed interface EndpointResponse permits EndpointUserusernameDeleteCode200Response {} - - public record EndpointUserusernameDeleteCode200Response( - HttpResponse response, - Void body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusUserusernameDeleteCode200ResponseDeserializer, StatusUserusernameDeleteCode404ResponseDeserializer {} - - public static final class StatusUserusernameDeleteCode200ResponseDeserializer extends UserusernameDeleteCode200Response.UserusernameDeleteCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusUserusernameDeleteCode404ResponseDeserializer extends UserusernameDeleteCode404Response.UserusernameDeleteCode404Response1 implements StatusCodeResponseDeserializer { - } - - public static final class UserusernameDeleteResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public UserusernameDeleteResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusUserusernameDeleteCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusUserusernameDeleteCode404ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusUserusernameDeleteCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointUserusernameDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else { - StatusUserusernameDeleteCode404ResponseDeserializer castDeserializer = (StatusUserusernameDeleteCode404ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new UserusernameDeleteCode404Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java deleted file mode 100644 index e95aee523c4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.delete.parameters; - -import org.openapijsonschematools.client.components.parameters.RefPathUserName; - -public class Parameter0 extends RefPathUserName { - public static class Parameter01 extends RefPathUserName1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode200Response.java deleted file mode 100644 index 680a51cb08b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode200Response.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.delete.responses; - -import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; - -public class UserusernameDeleteCode200Response extends SuccessDescriptionOnly { - public static class UserusernameDeleteCode200Response1 extends SuccessDescriptionOnly1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java deleted file mode 100644 index 8bd53126538..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.delete.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UserusernameDeleteCode404Response { - - public static class UserusernameDeleteCode404Response1 extends ResponseDeserializer { - public UserusernameDeleteCode404Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java deleted file mode 100644 index 65c65d5d3b9..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.get; - -import org.openapijsonschematools.client.paths.userusername.get.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("username", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java deleted file mode 100644 index c1a9b62fb37..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java +++ /dev/null @@ -1,205 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.get; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.parameters.pathusername.Schema; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class UserusernameGetPathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "username" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return UserusernameGetPathParameters1.getInstance().validate(arg, configuration); - } - - public String username() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForUsername { - Map getInstance(); - T getBuilderAfterUsername(Map instance); - - default T username(String value) { - var instance = getInstance(); - instance.put("username", value); - return getBuilderAfterUsername(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "username" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForUsername { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface UserusernameGetPathParameters1Boxed permits UserusernameGetPathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record UserusernameGetPathParameters1BoxedMap(PathParametersMap data) implements UserusernameGetPathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class UserusernameGetPathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable UserusernameGetPathParameters1 instance = null; - - protected UserusernameGetPathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("username", Schema.Schema1.class) - )) - .required(Set.of( - "username" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static UserusernameGetPathParameters1 getInstance() { - if (instance == null) { - instance = new UserusernameGetPathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public UserusernameGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new UserusernameGetPathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public UserusernameGetPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java deleted file mode 100644 index 042305694da..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.get; - -import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode200Response; -import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode400Response; -import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode404Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ApiResponse; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class UserusernameGetResponses { - public sealed interface EndpointResponse permits EndpointUserusernameGetCode200Response {} - - public record EndpointUserusernameGetCode200Response( - HttpResponse response, - UserusernameGetCode200Response.SealedResponseBody body, - Void headers - ) implements EndpointResponse, ApiResponse{ - } - - public sealed interface StatusCodeResponseDeserializer permits StatusUserusernameGetCode200ResponseDeserializer, StatusUserusernameGetCode400ResponseDeserializer, StatusUserusernameGetCode404ResponseDeserializer {} - - public static final class StatusUserusernameGetCode200ResponseDeserializer extends UserusernameGetCode200Response.UserusernameGetCode200Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusUserusernameGetCode400ResponseDeserializer extends UserusernameGetCode400Response.UserusernameGetCode400Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusUserusernameGetCode404ResponseDeserializer extends UserusernameGetCode404Response.UserusernameGetCode404Response1 implements StatusCodeResponseDeserializer { - } - - public static final class UserusernameGetResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public UserusernameGetResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("200", new StatusUserusernameGetCode200ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("400", new StatusUserusernameGetCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusUserusernameGetCode404ResponseDeserializer()) - ); - } - - public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusUserusernameGetCode200ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - return new EndpointUserusernameGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); - } else if (statusCodeDeserializer instanceof StatusUserusernameGetCode400ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new UserusernameGetCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else { - StatusUserusernameGetCode404ResponseDeserializer castDeserializer = (StatusUserusernameGetCode404ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new UserusernameGetCode404Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java deleted file mode 100644 index d100ccf2d2b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.get.parameters; - -import org.openapijsonschematools.client.components.parameters.PathUserName; - -public class Parameter0 extends PathUserName { - public static class Parameter01 extends PathUserName1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java deleted file mode 100644 index a71bf43bca4..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; -import org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UserusernameGetCode200Response { - public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} - - public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationxmlMediaType() { - this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} - public record ApplicationxmlResponseBody(ApplicationxmlSchema.User1Boxed body) implements SealedResponseBody { } - public record ApplicationjsonResponseBody(ApplicationjsonSchema.User1Boxed body) implements SealedResponseBody { } - - public static class UserusernameGetCode200Response1 extends ResponseDeserializer { - public UserusernameGetCode200Response1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ) - ); - } - - @Override - protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { - if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationxmlResponseBody(deserializedBody); - } else { - ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; - var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); - return new ApplicationjsonResponseBody(deserializedBody); - } - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java deleted file mode 100644 index 71459da89cd..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UserusernameGetCode400Response { - - public static class UserusernameGetCode400Response1 extends ResponseDeserializer { - public UserusernameGetCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java deleted file mode 100644 index 6c106f8d43b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.get.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UserusernameGetCode404Response { - - public static class UserusernameGetCode404Response1 extends ResponseDeserializer { - public UserusernameGetCode404Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 910120ee863..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.User; - -public class ApplicationjsonSchema extends User { - // $refed class - - - public static class ApplicationjsonSchema1 extends User1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java deleted file mode 100644 index 0d8e9cf0d9a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationxml; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.User; - -public class ApplicationxmlSchema extends User { - // $refed class - - - public static class ApplicationxmlSchema1 extends User1 { - private static @Nullable ApplicationxmlSchema1 instance = null; - public static ApplicationxmlSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationxmlSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java deleted file mode 100644 index bd698da0d9d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.put; - -import org.openapijsonschematools.client.paths.userusername.put.parameters.Parameter0; -import org.openapijsonschematools.client.parameter.PathSerializer; - -import java.util.Map; -import java.util.AbstractMap; - -public class Parameters { - - public static class PathParametersSerializer extends PathSerializer { - public PathParametersSerializer() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("username", new Parameter0.Parameter01()) - ) - ); - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java deleted file mode 100644 index f5c674bac20..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java +++ /dev/null @@ -1,205 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.put; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.parameters.pathusername.Schema; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class UserusernamePutPathParameters { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "username" - ); - public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return UserusernamePutPathParameters1.getInstance().validate(arg, configuration); - } - - public String username() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForUsername { - Map getInstance(); - T getBuilderAfterUsername(Map instance); - - default T username(String value) { - var instance = getInstance(); - instance.put("username", value); - return getBuilderAfterUsername(instance); - } - } - - public static class PathParametersMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "username" - ); - public Set getKnownKeys() { - return knownKeys; - } - public PathParametersMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class PathParametersMapBuilder implements SetterForUsername { - private final Map instance; - public PathParametersMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { - return new PathParametersMap0Builder(instance); - } - } - - - public sealed interface UserusernamePutPathParameters1Boxed permits UserusernamePutPathParameters1BoxedMap { - @Nullable Object getData(); - } - - public record UserusernamePutPathParameters1BoxedMap(PathParametersMap data) implements UserusernamePutPathParameters1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class UserusernamePutPathParameters1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable UserusernamePutPathParameters1 instance = null; - - protected UserusernamePutPathParameters1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("username", Schema.Schema1.class) - )) - .required(Set.of( - "username" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static UserusernamePutPathParameters1 getInstance() { - if (instance == null) { - instance = new UserusernamePutPathParameters1(); - } - return instance; - } - - public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new PathParametersMap(castProperties); - } - - public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public UserusernamePutPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new UserusernamePutPathParameters1BoxedMap(validate(arg, configuration)); - } - @Override - public UserusernamePutPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java deleted file mode 100644 index f078896522a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.put; - -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.requestbody.RequestBodySerializer; -import org.openapijsonschematools.client.requestbody.GenericRequestBody; -import org.openapijsonschematools.client.requestbody.SerializedRequestBody; -import org.openapijsonschematools.client.mediatype.MediaType; -import org.openapijsonschematools.client.paths.userusername.put.requestbody.content.applicationjson.ApplicationjsonSchema; - -import java.util.AbstractMap; -import java.util.Map; - -public class UserusernamePutRequestBody { - public sealed interface SealedMediaType permits ApplicationjsonMediaType {} - - public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { - public ApplicationjsonMediaType() { - this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); - } - @Override - public Void encoding() { - return null; - } - } - - public static class UserusernamePutRequestBody1 extends RequestBodySerializer { - public UserusernamePutRequestBody1() { - super( - Map.ofEntries( - new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) - ), - true - ); - } - - public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { - ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; - return serialize(requestBody0.contentType(), requestBody0.body().getData()); - } - } - - public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} - public record ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) implements SealedRequestBody, GenericRequestBody { - @Override - public String contentType() { - return "application/json"; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java deleted file mode 100644 index 533a25eabe5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.put; - -import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode400Response; -import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode404Response; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.response.ResponsesDeserializer; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.net.http.HttpResponse; -import java.util.Map; -import java.util.AbstractMap; - -public class UserusernamePutResponses { - - public sealed interface StatusCodeResponseDeserializer permits StatusUserusernamePutCode400ResponseDeserializer, StatusUserusernamePutCode404ResponseDeserializer {} - - public static final class StatusUserusernamePutCode400ResponseDeserializer extends UserusernamePutCode400Response.UserusernamePutCode400Response1 implements StatusCodeResponseDeserializer { - } - public static final class StatusUserusernamePutCode404ResponseDeserializer extends UserusernamePutCode404Response.UserusernamePutCode404Response1 implements StatusCodeResponseDeserializer { - } - - public static final class UserusernamePutResponses1 implements ResponsesDeserializer { - private final Map statusCodeToResponseDeserializer; - public UserusernamePutResponses1() { - this.statusCodeToResponseDeserializer = Map.ofEntries( - new AbstractMap.SimpleEntry<>("400", new StatusUserusernamePutCode400ResponseDeserializer()), - new AbstractMap.SimpleEntry<>("404", new StatusUserusernamePutCode404ResponseDeserializer()) - ); - } - - public Void deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { - String statusCode = String.valueOf(response.statusCode()); - @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); - if (statusCodeDeserializer == null) { - throw new ApiException( - "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", - response - ); - } - if (statusCodeDeserializer instanceof StatusUserusernamePutCode400ResponseDeserializer castDeserializer) { - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new UserusernamePutCode400Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } else { - StatusUserusernamePutCode404ResponseDeserializer castDeserializer = (StatusUserusernamePutCode404ResponseDeserializer) statusCodeDeserializer; - var deserializedResponse = castDeserializer.deserialize(response, configuration); - throw new UserusernamePutCode404Response.ResponseApiException( - "Received error statusCode response from server", - response, - deserializedResponse - ); - } - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java deleted file mode 100644 index cf1add59f0d..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.put.parameters; - -import org.openapijsonschematools.client.components.parameters.PathUserName; - -public class Parameter0 extends PathUserName { - public static class Parameter01 extends PathUserName1 {} -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java deleted file mode 100644 index 80f49dd652b..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.put.requestbody.content.applicationjson; - -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.components.schemas.User; - -public class ApplicationjsonSchema extends User { - // $refed class - - - public static class ApplicationjsonSchema1 extends User1 { - private static @Nullable ApplicationjsonSchema1 instance = null; - public static ApplicationjsonSchema1 getInstance() { - if (instance == null) { - instance = new ApplicationjsonSchema1(); - } - return instance; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java deleted file mode 100644 index b29bac8a12a..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.put.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UserusernamePutCode400Response { - - public static class UserusernamePutCode400Response1 extends ResponseDeserializer { - public UserusernamePutCode400Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java deleted file mode 100644 index c050f90e377..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openapijsonschematools.client.paths.userusername.put.responses; - -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.response.ResponseDeserializer; -import org.openapijsonschematools.client.response.DeserializedHttpResponse; -import org.openapijsonschematools.client.exceptions.ApiException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.exceptions.NotImplementedException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; - -import java.util.Map; -import java.net.http.HttpResponse; -import java.net.http.HttpHeaders; - -public class UserusernamePutCode404Response { - - public static class UserusernamePutCode404Response1 extends ResponseDeserializer { - public UserusernamePutCode404Response1() { - super( - MapUtils.makeMap( - ) - ); - } - - @Override - protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { - return null; - } - - @Override - protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { - return null; - } - } - - @SuppressWarnings("serial") - public static class ResponseApiException extends ApiException { - public DeserializedHttpResponse deserializedResponse; - - public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { - super(s, response); - this.deserializedResponse = deserializedResponse; - } - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server.java deleted file mode 100644 index f5159644ccc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.openapijsonschematools.client.servers; - -public interface Server { - String url(); -} - diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java deleted file mode 100644 index 9382f9593cc..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.openapijsonschematools.client.servers; - -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.servers.server0.Server0Variables; - -import java.util.AbstractMap; - -public class Server0 extends ServerWithVariables { - /* - petstore server - */ - private static Server0Variables.VariablesMap getVariables() { - try { - return Server0Variables.Server0Variables1.getInstance().validate( - MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("port", Server0Variables.Port.getInstance().defaultValue()), - new AbstractMap.SimpleEntry<>("server", Server0Variables.Server.getInstance().defaultValue()) - ), - new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) - ); - } catch (ValidationException e) { - throw new RuntimeException(e); - } - } - - public Server0() { - super( - "http://{server}.swagger.io:{port}/v2", - getVariables() - ); - } - public Server0(Server0Variables.VariablesMap variables) { - super("http://{server}.swagger.io:{port}/v2", variables); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java deleted file mode 100644 index b70dfa52542..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.openapijsonschematools.client.servers; - -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.servers.server1.Server1Variables; - -import java.util.AbstractMap; - -public class Server1 extends ServerWithVariables { - /* - The local server - */ - private static Server1Variables.VariablesMap getVariables() { - try { - return Server1Variables.Server1Variables1.getInstance().validate( - MapUtils.makeMap( - new AbstractMap.SimpleEntry<>("version", Server1Variables.Version.getInstance().defaultValue()) - ), - new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) - ); - } catch (ValidationException e) { - throw new RuntimeException(e); - } - } - - public Server1() { - super( - "https://localhost:8080/{version}", - getVariables() - ); - } - public Server1(Server1Variables.VariablesMap variables) { - super("https://localhost:8080/{version}", variables); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server2.java deleted file mode 100644 index 9d7cb0e0bfb..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server2.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.openapijsonschematools.client.servers; - -import org.openapijsonschematools.client.servers.ServerWithoutVariables; - -public class Server2 extends ServerWithoutVariables { - public Server2() { - super("https://localhost:8080"); - } -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java deleted file mode 100644 index f736485870c..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.openapijsonschematools.client.servers; - -public interface ServerProvider { - Server getServer(T serverIndex); -} - diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java deleted file mode 100644 index 68748bcfcae..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.openapijsonschematools.client.servers; - -import java.util.Map; - -public abstract class ServerWithVariables> implements Server { - public final String url; - public final T variables; - - protected ServerWithVariables(String url, T variables) { - this.variables = variables; - for (Map.Entry entry: variables.entrySet()) { - url = url.replace("{" + entry.getKey() + "}", entry.getValue()); - } - this.url = url; - } - - public String url(){ - return url; - } -} - diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java deleted file mode 100644 index c41ac2e77e5..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.openapijsonschematools.client.servers; - -public abstract class ServerWithoutVariables implements Server { - public final String url; - - protected ServerWithoutVariables(String url) { - this.url = url; - } - - public String url(){ - return url; - } -} - diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java deleted file mode 100644 index 17047a99e8f..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java +++ /dev/null @@ -1,471 +0,0 @@ -package org.openapijsonschematools.client.servers.server0; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Server0Variables { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - public enum StringServerEnums implements StringValueMethod { - PETSTORE("petstore"), - QA_HYPHEN_MINUS_PETSTORE("qa-petstore"), - DEV_HYPHEN_MINUS_PETSTORE("dev-petstore"); - private final String value; - - StringServerEnums(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface ServerBoxed permits ServerBoxedString { - @Nullable Object getData(); - } - - public record ServerBoxedString(String data) implements ServerBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Server extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Server instance = null; - - protected Server() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "petstore", - "qa-petstore", - "dev-petstore" - )) - .defaultValue("petstore") - ); - } - - public static Server getInstance() { - if (instance == null) { - instance = new Server(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringServerEnums arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public ServerBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new ServerBoxedString(validate(arg, configuration)); - } - @Override - public ServerBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - public enum StringPortEnums implements StringValueMethod { - POSITIVE_80("80"), - POSITIVE_8080("8080"); - private final String value; - - StringPortEnums(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface PortBoxed permits PortBoxedString { - @Nullable Object getData(); - } - - public record PortBoxedString(String data) implements PortBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Port extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Port instance = null; - - protected Port() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "80", - "8080" - )) - .defaultValue("80") - ); - } - - public static Port getInstance() { - if (instance == null) { - instance = new Port(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringPortEnums arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public PortBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new PortBoxedString(validate(arg, configuration)); - } - @Override - public PortBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class VariablesMap extends FrozenMap { - protected VariablesMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "port", - "server" - ); - public static final Set optionalKeys = Set.of(); - public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Server0Variables1.getInstance().validate(arg, configuration); - } - - public String port() { - String value = get("port"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for port"); - } - return (String) value; - } - - public String server() { - String value = get("server"); - if (!(value instanceof String)) { - throw new RuntimeException("Invalid value stored for server"); - } - return (String) value; - } - } - - public interface SetterForPort { - Map getInstance(); - T getBuilderAfterPort(Map instance); - - default T port(String value) { - var instance = getInstance(); - instance.put("port", value); - return getBuilderAfterPort(instance); - } - - default T port(StringPortEnums value) { - var instance = getInstance(); - instance.put("port", value.value()); - return getBuilderAfterPort(instance); - } - } - - public interface SetterForServer { - Map getInstance(); - T getBuilderAfterServer(Map instance); - - default T server(String value) { - var instance = getInstance(); - instance.put("server", value); - return getBuilderAfterServer(instance); - } - - default T server(StringServerEnums value) { - var instance = getInstance(); - instance.put("server", value.value()); - return getBuilderAfterServer(instance); - } - } - - public static class VariablesMap00Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "port", - "server" - ); - public Set getKnownKeys() { - return knownKeys; - } - public VariablesMap00Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class VariablesMap01Builder implements SetterForServer { - private final Map instance; - public VariablesMap01Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public VariablesMap00Builder getBuilderAfterServer(Map instance) { - return new VariablesMap00Builder(instance); - } - } - - public static class VariablesMap10Builder implements SetterForPort { - private final Map instance; - public VariablesMap10Builder(Map instance) { - this.instance = instance; - } - public Map getInstance() { - return instance; - } - public VariablesMap00Builder getBuilderAfterPort(Map instance) { - return new VariablesMap00Builder(instance); - } - } - - public static class VariablesMapBuilder implements SetterForPort, SetterForServer { - private final Map instance; - public VariablesMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public VariablesMap01Builder getBuilderAfterPort(Map instance) { - return new VariablesMap01Builder(instance); - } - public VariablesMap10Builder getBuilderAfterServer(Map instance) { - return new VariablesMap10Builder(instance); - } - } - - - public sealed interface Server0Variables1Boxed permits Server0Variables1BoxedMap { - @Nullable Object getData(); - } - - public record Server0Variables1BoxedMap(VariablesMap data) implements Server0Variables1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class Server0Variables1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Server0Variables1 instance = null; - - protected Server0Variables1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("server", Server.class), - new PropertyEntry("port", Port.class) - )) - .required(Set.of( - "port", - "server" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static Server0Variables1 getInstance() { - if (instance == null) { - instance = new Server0Variables1(); - } - return instance; - } - - public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new VariablesMap(castProperties); - } - - public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Server0Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Server0Variables1BoxedMap(validate(arg, configuration)); - } - @Override - public Server0Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java deleted file mode 100644 index 7d8425b6315..00000000000 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java +++ /dev/null @@ -1,313 +0,0 @@ -package org.openapijsonschematools.client.servers.server1; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.checkerframework.checker.nullness.qual.Nullable; -import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; -import org.openapijsonschematools.client.configurations.SchemaConfiguration; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; -import org.openapijsonschematools.client.exceptions.ValidationException; -import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.GenericBuilder; -import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; -import org.openapijsonschematools.client.schemas.SetMaker; -import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; -import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.schemas.validation.JsonSchema; -import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; -import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.MapUtils; -import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; -import org.openapijsonschematools.client.schemas.validation.PropertyEntry; -import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; -import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; -import org.openapijsonschematools.client.schemas.validation.StringValueMethod; -import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; - -public class Server1Variables { - // nest classes so all schemas and input/output classes can be public - - - public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { - // NotAnyTypeSchema - private static @Nullable AdditionalProperties instance = null; - public static AdditionalProperties getInstance() { - if (instance == null) { - instance = new AdditionalProperties(); - } - return instance; - } - } - - public enum StringVersionEnums implements StringValueMethod { - V1("v1"), - V2("v2"); - private final String value; - - StringVersionEnums(String value) { - this.value = value; - } - public String value() { - return this.value; - } - } - - - public sealed interface VersionBoxed permits VersionBoxedString { - @Nullable Object getData(); - } - - public record VersionBoxedString(String data) implements VersionBoxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - - public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { - private static @Nullable Version instance = null; - - protected Version() { - super(new JsonSchemaInfo() - .type(Set.of( - String.class - )) - .enumValues(SetMaker.makeSet( - "v1", - "v2" - )) - .defaultValue("v2") - ); - } - - public static Version getInstance() { - if (instance == null) { - instance = new Version(); - } - return instance; - } - - @Override - public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - getPathToSchemas(this, castArg, validationMetadata, pathSet); - return castArg; - } - - @Override - public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { - return validate(arg.value(), configuration); - } - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String) { - return validate((String) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof String) { - return getNewInstance((String) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - public String defaultValue() throws ValidationException { - if (defaultValue instanceof String) { - return (String) defaultValue; - } - throw new ValidationException("Invalid type stored in defaultValue"); - } - @Override - public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { - return new VersionBoxedString(validate(arg, configuration)); - } - @Override - public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof String castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - - public static class VariablesMap extends FrozenMap { - protected VariablesMap(FrozenMap m) { - super(m); - } - public static final Set requiredKeys = Set.of( - "version" - ); - public static final Set optionalKeys = Set.of(); - public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { - return Server1Variables1.getInstance().validate(arg, configuration); - } - - public String version() { - try { - return getOrThrow("version"); - } catch (UnsetPropertyException e) { - throw new RuntimeException(e); - } - } - } - - public interface SetterForVersion { - Map getInstance(); - T getBuilderAfterVersion(Map instance); - - default T version(String value) { - var instance = getInstance(); - instance.put("version", value); - return getBuilderAfterVersion(instance); - } - - default T version(StringVersionEnums value) { - var instance = getInstance(); - instance.put("version", value.value()); - return getBuilderAfterVersion(instance); - } - } - - public static class VariablesMap0Builder implements GenericBuilder> { - private final Map instance; - private static final Set knownKeys = Set.of( - "version" - ); - public Set getKnownKeys() { - return knownKeys; - } - public VariablesMap0Builder(Map instance) { - this.instance = instance; - } - public Map build() { - return instance; - } - } - - public static class VariablesMapBuilder implements SetterForVersion { - private final Map instance; - public VariablesMapBuilder() { - this.instance = new LinkedHashMap<>(); - } - public Map getInstance() { - return instance; - } - public VariablesMap0Builder getBuilderAfterVersion(Map instance) { - return new VariablesMap0Builder(instance); - } - } - - - public sealed interface Server1Variables1Boxed permits Server1Variables1BoxedMap { - @Nullable Object getData(); - } - - public record Server1Variables1BoxedMap(VariablesMap data) implements Server1Variables1Boxed { - @Override - public @Nullable Object getData() { - return data; - } - } - - - public static class Server1Variables1 extends JsonSchema implements MapSchemaValidator { - private static @Nullable Server1Variables1 instance = null; - - protected Server1Variables1() { - super(new JsonSchemaInfo() - .type(Set.of(Map.class)) - .properties(Map.ofEntries( - new PropertyEntry("version", Version.class) - )) - .required(Set.of( - "version" - )) - .additionalProperties(AdditionalProperties.class) - ); - } - - public static Server1Variables1 getInstance() { - if (instance == null) { - instance = new Server1Variables1(); - } - return instance; - } - - public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); - for(Map.Entry entry: arg.entrySet()) { - @Nullable Object entryKey = entry.getKey(); - if (!(entryKey instanceof String)) { - throw new RuntimeException("Invalid non-string key value"); - } - String propertyName = (String) entryKey; - List propertyPathToItem = new ArrayList<>(pathToItem); - propertyPathToItem.add(propertyName); - Object value = entry.getValue(); - LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); - if (schemas == null) { - throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); - } - JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); - @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof String)) { - throw new RuntimeException("Invalid instantiated value"); - } - properties.put(propertyName, (String) propertyInstance); - } - FrozenMap castProperties = new FrozenMap<>(properties); - return new VariablesMap(castProperties); - } - - public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { - Set> pathSet = new HashSet<>(); - List pathToItem = List.of("args[0"); - Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); - ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); - PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); - return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); - } - - - @Override - public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map) { - return validate((Map) arg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - @Override - public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { - if (arg instanceof Map) { - return getNewInstance((Map) arg, pathToItem, pathToSchemas); - } - throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); - } - @Override - public Server1Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { - return new Server1Variables1BoxedMap(validate(arg, configuration)); - } - @Override - public Server1Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { - if (arg instanceof Map castArg) { - return validateAndBox(castArg, configuration); - } - throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); - } - } - -} From 062d789306f2372683c2b85ceba9bfe9e2ea3fe7 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 12 Apr 2024 11:30:55 -0700 Subject: [PATCH 10/12] Fixes server schema names in java + default user agent in java --- .../petstore/java/.openapi-generator/FILES | 32 +- samples/client/petstore/java/README.md | 24 +- .../petstore/java/docs/RootServerInfo.md | 65 + .../java/docs/apis/paths/Anotherfakedummy.md | 20 +- .../java/docs/apis/paths/Commonparamsubdir.md | 60 +- .../petstore/java/docs/apis/paths/Fake.md | 80 +- ...akeadditionalpropertieswitharrayofenums.md | 20 +- .../docs/apis/paths/Fakebodywithfileschema.md | 20 +- .../apis/paths/Fakebodywithqueryparams.md | 20 +- .../apis/paths/Fakecasesensitiveparams.md | 20 +- .../java/docs/apis/paths/Fakeclassnametest.md | 20 +- .../docs/apis/paths/Fakedeletecoffeeid.md | 20 +- .../java/docs/apis/paths/Fakehealth.md | 20 +- .../paths/Fakeinlineadditionalproperties.md | 20 +- .../docs/apis/paths/Fakeinlinecomposition.md | 20 +- .../java/docs/apis/paths/Fakejsonformdata.md | 20 +- .../java/docs/apis/paths/Fakejsonpatch.md | 20 +- .../docs/apis/paths/Fakejsonwithcharset.md | 20 +- .../Fakemultiplerequestbodycontenttypes.md | 20 +- .../apis/paths/Fakemultipleresponsebodies.md | 20 +- .../docs/apis/paths/Fakemultiplesecurities.md | 20 +- .../java/docs/apis/paths/Fakeobjinquery.md | 20 +- .../Fakeparametercollisions1ababselfab.md | 20 +- .../docs/apis/paths/Fakepemcontenttype.md | 20 +- .../Fakepetiduploadimagewithrequiredfile.md | 20 +- .../Fakequeryparamwithjsoncontenttype.md | 20 +- .../java/docs/apis/paths/Fakeredirection.md | 20 +- .../java/docs/apis/paths/Fakerefobjinquery.md | 20 +- .../docs/apis/paths/Fakerefsarraymodel.md | 20 +- .../docs/apis/paths/Fakerefsarrayofenums.md | 20 +- .../java/docs/apis/paths/Fakerefsboolean.md | 20 +- ...erefscomposedoneofnumberwithvalidations.md | 20 +- .../java/docs/apis/paths/Fakerefsenum.md | 20 +- .../java/docs/apis/paths/Fakerefsmammal.md | 20 +- .../java/docs/apis/paths/Fakerefsnumber.md | 20 +- .../paths/Fakerefsobjectmodelwithrefprops.md | 20 +- .../java/docs/apis/paths/Fakerefsstring.md | 20 +- .../apis/paths/Fakeresponsewithoutschema.md | 20 +- .../docs/apis/paths/Faketestqueryparamters.md | 20 +- .../docs/apis/paths/Fakeuploaddownloadfile.md | 20 +- .../java/docs/apis/paths/Fakeuploadfile.md | 20 +- .../java/docs/apis/paths/Fakeuploadfiles.md | 20 +- .../docs/apis/paths/Fakewildcardresponses.md | 20 +- .../petstore/java/docs/apis/paths/Foo.md | 2 +- .../petstore/java/docs/apis/paths/Pet.md | 40 +- .../java/docs/apis/paths/Petfindbystatus.md | 2 +- .../java/docs/apis/paths/Petfindbytags.md | 20 +- .../petstore/java/docs/apis/paths/Petpetid.md | 60 +- .../docs/apis/paths/Petpetiduploadimage.md | 20 +- .../petstore/java/docs/apis/paths/Solidus.md | 20 +- .../java/docs/apis/paths/Storeinventory.md | 20 +- .../java/docs/apis/paths/Storeorder.md | 20 +- .../java/docs/apis/paths/Storeorderorderid.md | 40 +- .../petstore/java/docs/apis/paths/User.md | 20 +- .../docs/apis/paths/Usercreatewitharray.md | 20 +- .../docs/apis/paths/Usercreatewithlist.md | 20 +- .../java/docs/apis/paths/Userlogin.md | 20 +- .../java/docs/apis/paths/Userlogout.md | 20 +- .../java/docs/apis/paths/Userusername.md | 60 +- .../java/docs/apis/tags/Anotherfake.md | 20 +- .../petstore/java/docs/apis/tags/Default.md | 2 +- .../petstore/java/docs/apis/tags/Fake.md | 860 ++++----- .../docs/apis/tags/Fakeclassnametags123.md | 20 +- .../petstore/java/docs/apis/tags/Pet.md | 162 +- .../petstore/java/docs/apis/tags/Store.md | 80 +- .../petstore/java/docs/apis/tags/User.md | 160 +- .../anotherfakedummy/AnotherfakedummyPatch.md | 188 ++ .../patch/AnotherfakedummyPatchRequestBody.md | 17 + .../patch/AnotherfakedummyPatchResponses.md | 29 + .../AnotherfakedummyPatchCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../CommonparamsubdirDelete.md | 189 ++ .../commonparamsubdir/CommonparamsubdirGet.md | 189 ++ .../CommonparamsubdirPost.md | 189 ++ ...CommonparamsubdirDeleteHeaderParameters.md | 252 +++ .../CommonparamsubdirDeletePathParameters.md | 269 +++ .../CommonparamsubdirDeleteResponses.md | 29 + .../delete/parameters/parameter0/Schema0.md | 49 + .../delete/parameters/parameter1/Schema1.md | 96 + .../CommonparamsubdirDeleteCode200Response.md | 17 + .../get/CommonparamsubdirGetPathParameters.md | 269 +++ .../CommonparamsubdirGetQueryParameters.md | 252 +++ .../get/CommonparamsubdirGetResponses.md | 29 + .../get/parameters/parameter0/Schema0.md | 49 + .../CommonparamsubdirGetCode200Response.md | 17 + .../routeparameter0/RouteParamSchema0.md | 96 + .../CommonparamsubdirPostHeaderParameters.md | 252 +++ .../CommonparamsubdirPostPathParameters.md | 269 +++ .../post/CommonparamsubdirPostResponses.md | 29 + .../post/parameters/parameter0/Schema0.md | 49 + .../CommonparamsubdirPostCode200Response.md | 17 + .../java/docs/paths/fake/FakeDelete.md | 255 +++ .../petstore/java/docs/paths/fake/FakeGet.md | 156 ++ .../java/docs/paths/fake/FakePatch.md | 188 ++ .../petstore/java/docs/paths/fake/FakePost.md | 164 ++ .../fake/delete/FakeDeleteHeaderParameters.md | 274 +++ .../fake/delete/FakeDeleteQueryParameters.md | 321 ++++ .../paths/fake/delete/FakeDeleteResponses.md | 29 + .../fake/delete/FakeDeleteSecurityInfo.md | 40 + .../delete/parameters/parameter0/Schema0.md | 49 + .../delete/parameters/parameter1/Schema1.md | 96 + .../delete/parameters/parameter2/Schema2.md | 49 + .../delete/parameters/parameter3/Schema3.md | 49 + .../delete/parameters/parameter4/Schema4.md | 96 + .../delete/parameters/parameter5/Schema5.md | 49 + .../responses/FakeDeleteCode200Response.md | 17 + .../FakeDeleteSecurityRequirementObject0.md | 15 + .../paths/fake/get/FakeGetHeaderParameters.md | 260 +++ .../paths/fake/get/FakeGetQueryParameters.md | 278 +++ .../docs/paths/fake/get/FakeGetRequestBody.md | 90 + .../docs/paths/fake/get/FakeGetResponses.md | 29 + .../fake/get/parameters/parameter0/Schema0.md | 205 +++ .../fake/get/parameters/parameter1/Schema1.md | 98 + .../fake/get/parameters/parameter2/Schema2.md | 205 +++ .../fake/get/parameters/parameter3/Schema3.md | 98 + .../fake/get/parameters/parameter4/Schema4.md | 135 ++ .../fake/get/parameters/parameter5/Schema5.md | 109 ++ .../ApplicationxwwwformurlencodedSchema.md | 422 +++++ .../get/responses/FakeGetCode200Response.md | 17 + .../get/responses/FakeGetCode404Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 49 + .../paths/fake/patch/FakePatchRequestBody.md | 17 + .../paths/fake/patch/FakePatchResponses.md | 29 + .../responses/FakePatchCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../paths/fake/post/FakePostRequestBody.md | 90 + .../docs/paths/fake/post/FakePostResponses.md | 29 + .../paths/fake/post/FakePostSecurityInfo.md | 40 + .../ApplicationxwwwformurlencodedSchema.md | 1331 ++++++++++++++ .../post/responses/FakePostCode200Response.md | 17 + .../post/responses/FakePostCode404Response.md | 32 + .../FakePostSecurityRequirementObject0.md | 15 + ...additionalpropertieswitharrayofenumsGet.md | 148 ++ ...ropertieswitharrayofenumsGetRequestBody.md | 90 + ...lpropertieswitharrayofenumsGetResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + ...rtieswitharrayofenumsGetCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakebodywithfileschemaPut.md | 188 ++ .../FakebodywithfileschemaPutRequestBody.md | 90 + .../put/FakebodywithfileschemaPutResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + ...akebodywithfileschemaPutCode200Response.md | 17 + .../FakebodywithqueryparamsPut.md | 249 +++ ...kebodywithqueryparamsPutQueryParameters.md | 268 +++ .../FakebodywithqueryparamsPutRequestBody.md | 90 + .../FakebodywithqueryparamsPutResponses.md | 29 + .../put/parameters/parameter0/Schema0.md | 49 + .../applicationjson/ApplicationjsonSchema.md | 19 + ...kebodywithqueryparamsPutCode200Response.md | 17 + .../FakecasesensitiveparamsPut.md | 189 ++ ...kecasesensitiveparamsPutQueryParameters.md | 375 ++++ .../FakecasesensitiveparamsPutResponses.md | 29 + .../put/parameters/parameter0/Schema0.md | 49 + .../put/parameters/parameter1/Schema1.md | 49 + .../put/parameters/parameter2/Schema2.md | 49 + ...kecasesensitiveparamsPutCode200Response.md | 17 + .../FakeclassnametestPatch.md | 203 +++ .../FakeclassnametestPatchRequestBody.md | 17 + .../patch/FakeclassnametestPatchResponses.md | 29 + .../FakeclassnametestPatchSecurityInfo.md | 40 + .../FakeclassnametestPatchCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + ...nametestPatchSecurityRequirementObject0.md | 15 + .../FakedeletecoffeeidDelete.md | 189 ++ .../FakedeletecoffeeidDeletePathParameters.md | 268 +++ .../FakedeletecoffeeidDeleteResponses.md | 40 + .../delete/parameters/parameter0/Schema0.md | 49 + ...FakedeletecoffeeidDeleteCode200Response.md | 17 + ...deletecoffeeidDeleteCodedefaultResponse.md | 32 + .../docs/paths/fakehealth/FakehealthGet.md | 144 ++ .../fakehealth/get/FakehealthGetResponses.md | 29 + .../responses/FakehealthGetCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakeinlineadditionalpropertiesPost.md | 186 ++ ...lineadditionalpropertiesPostRequestBody.md | 90 + ...inlineadditionalpropertiesPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 156 ++ ...additionalpropertiesPostCode200Response.md | 17 + .../FakeinlinecompositionPost.md | 155 ++ ...akeinlinecompositionPostQueryParameters.md | 264 +++ .../FakeinlinecompositionPostRequestBody.md | 128 ++ .../FakeinlinecompositionPostResponses.md | 29 + .../post/parameters/parameter0/Schema0.md | 236 +++ .../post/parameters/parameter1/Schema1.md | 359 ++++ .../applicationjson/ApplicationjsonSchema.md | 236 +++ .../MultipartformdataSchema.md | 359 ++++ ...akeinlinecompositionPostCode200Response.md | 123 ++ .../applicationjson/ApplicationjsonSchema.md | 236 +++ .../MultipartformdataSchema.md | 359 ++++ .../fakejsonformdata/FakejsonformdataGet.md | 146 ++ .../get/FakejsonformdataGetRequestBody.md | 90 + .../get/FakejsonformdataGetResponses.md | 29 + .../ApplicationxwwwformurlencodedSchema.md | 262 +++ .../FakejsonformdataGetCode200Response.md | 17 + .../paths/fakejsonpatch/FakejsonpatchPatch.md | 146 ++ .../patch/FakejsonpatchPatchRequestBody.md | 90 + .../patch/FakejsonpatchPatchResponses.md | 29 + .../ApplicationjsonpatchjsonSchema.md | 19 + .../FakejsonpatchPatchCode200Response.md | 17 + .../FakejsonwithcharsetPost.md | 148 ++ .../FakejsonwithcharsetPostRequestBody.md | 90 + .../post/FakejsonwithcharsetPostResponses.md | 29 + .../Applicationjsoncharsetutf8Schema.md | 144 ++ .../FakejsonwithcharsetPostCode200Response.md | 87 + .../Applicationjsoncharsetutf8Schema.md | 144 ++ ...FakemultiplerequestbodycontenttypesPost.md | 148 ++ ...erequestbodycontenttypesPostRequestBody.md | 128 ++ ...plerequestbodycontenttypesPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 166 ++ .../MultipartformdataSchema.md | 166 ++ ...uestbodycontenttypesPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../FakemultipleresponsebodiesGet.md | 150 ++ .../FakemultipleresponsebodiesGetResponses.md | 40 + ...ultipleresponsebodiesGetCode200Response.md | 87 + ...ultipleresponsebodiesGetCode202Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../FakemultiplesecuritiesGet.md | 163 ++ .../get/FakemultiplesecuritiesGetResponses.md | 29 + .../FakemultiplesecuritiesGetSecurityInfo.md | 44 + ...akemultiplesecuritiesGetCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 144 ++ ...securitiesGetSecurityRequirementObject0.md | 15 + ...securitiesGetSecurityRequirementObject1.md | 15 + ...securitiesGetSecurityRequirementObject2.md | 15 + .../paths/fakeobjinquery/FakeobjinqueryGet.md | 145 ++ .../get/FakeobjinqueryGetQueryParameters.md | 258 +++ .../get/FakeobjinqueryGetResponses.md | 29 + .../get/parameters/parameter0/Schema0.md | 166 ++ .../FakeobjinqueryGetCode200Response.md | 17 + .../Fakeparametercollisions1ababselfabPost.md | 211 +++ ...llisions1ababselfabPostCookieParameters.md | 267 +++ ...llisions1ababselfabPostHeaderParameters.md | 263 +++ ...collisions1ababselfabPostPathParameters.md | 808 +++++++++ ...ollisions1ababselfabPostQueryParameters.md | 267 +++ ...tercollisions1ababselfabPostRequestBody.md | 90 + ...metercollisions1ababselfabPostResponses.md | 29 + .../post/parameters/parameter0/Schema0.md | 49 + .../post/parameters/parameter1/Schema1.md | 49 + .../post/parameters/parameter10/Schema10.md | 49 + .../post/parameters/parameter11/Schema11.md | 49 + .../post/parameters/parameter12/Schema12.md | 49 + .../post/parameters/parameter13/Schema13.md | 49 + .../post/parameters/parameter14/Schema14.md | 49 + .../post/parameters/parameter15/Schema15.md | 49 + .../post/parameters/parameter16/Schema16.md | 49 + .../post/parameters/parameter17/Schema17.md | 49 + .../post/parameters/parameter18/Schema18.md | 49 + .../post/parameters/parameter2/Schema2.md | 49 + .../post/parameters/parameter3/Schema3.md | 49 + .../post/parameters/parameter4/Schema4.md | 49 + .../post/parameters/parameter5/Schema5.md | 49 + .../post/parameters/parameter6/Schema6.md | 49 + .../post/parameters/parameter7/Schema7.md | 49 + .../post/parameters/parameter8/Schema8.md | 49 + .../post/parameters/parameter9/Schema9.md | 49 + .../applicationjson/ApplicationjsonSchema.md | 144 ++ ...ollisions1ababselfabPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../FakepemcontenttypeGet.md | 148 ++ .../get/FakepemcontenttypeGetRequestBody.md | 90 + .../get/FakepemcontenttypeGetResponses.md | 29 + .../ApplicationxpemfileSchema.md | 49 + .../FakepemcontenttypeGetCode200Response.md | 87 + .../ApplicationxpemfileSchema.md | 49 + ...akepetiduploadimagewithrequiredfilePost.md | 203 +++ ...imagewithrequiredfilePostPathParameters.md | 271 +++ ...oadimagewithrequiredfilePostRequestBody.md | 90 + ...ploadimagewithrequiredfilePostResponses.md | 29 + ...adimagewithrequiredfilePostSecurityInfo.md | 40 + .../post/parameters/parameter0/Schema0.md | 49 + .../MultipartformdataSchema.md | 206 +++ ...magewithrequiredfilePostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + ...uiredfilePostSecurityRequirementObject0.md | 15 + .../FakequeryparamwithjsoncontenttypeGet.md | 185 ++ ...amwithjsoncontenttypeGetQueryParameters.md | 274 +++ ...eryparamwithjsoncontenttypeGetResponses.md | 29 + .../content/applicationjson/Schema0.md | 144 ++ ...amwithjsoncontenttypeGetCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../fakeredirection/FakeredirectionGet.md | 146 ++ .../get/FakeredirectionGetResponses.md | 40 + .../FakeredirectionGetCode303Response.md | 32 + .../FakeredirectionGetCode3XXResponse.md | 32 + .../fakerefobjinquery/FakerefobjinqueryGet.md | 145 ++ .../FakerefobjinqueryGetQueryParameters.md | 258 +++ .../get/FakerefobjinqueryGetResponses.md | 29 + .../get/parameters/parameter0/Schema0.md | 19 + .../FakerefobjinqueryGetCode200Response.md | 17 + .../FakerefsarraymodelPost.md | 148 ++ .../post/FakerefsarraymodelPostRequestBody.md | 90 + .../post/FakerefsarraymodelPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakerefsarraymodelPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakerefsarrayofenumsPost.md | 148 ++ .../FakerefsarrayofenumsPostRequestBody.md | 90 + .../post/FakerefsarrayofenumsPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + ...FakerefsarrayofenumsPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../fakerefsboolean/FakerefsbooleanPost.md | 148 ++ .../post/FakerefsbooleanPostRequestBody.md | 90 + .../post/FakerefsbooleanPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakerefsbooleanPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + ...scomposedoneofnumberwithvalidationsPost.md | 148 ++ ...eofnumberwithvalidationsPostRequestBody.md | 90 + ...oneofnumberwithvalidationsPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + ...umberwithvalidationsPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../paths/fakerefsenum/FakerefsenumPost.md | 148 ++ .../post/FakerefsenumPostRequestBody.md | 90 + .../post/FakerefsenumPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakerefsenumPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../fakerefsmammal/FakerefsmammalPost.md | 179 ++ .../post/FakerefsmammalPostRequestBody.md | 90 + .../post/FakerefsmammalPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakerefsmammalPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../fakerefsnumber/FakerefsnumberPost.md | 148 ++ .../post/FakerefsnumberPostRequestBody.md | 90 + .../post/FakerefsnumberPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakerefsnumberPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakerefsobjectmodelwithrefpropsPost.md | 148 ++ ...sobjectmodelwithrefpropsPostRequestBody.md | 90 + ...efsobjectmodelwithrefpropsPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + ...ectmodelwithrefpropsPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../fakerefsstring/FakerefsstringPost.md | 148 ++ .../post/FakerefsstringPostRequestBody.md | 90 + .../post/FakerefsstringPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakerefsstringPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakeresponsewithoutschemaGet.md | 142 ++ .../FakeresponsewithoutschemaGetResponses.md | 29 + ...responsewithoutschemaGetCode200Response.md | 32 + .../FaketestqueryparamtersPut.md | 210 +++ ...aketestqueryparamtersPutQueryParameters.md | 1419 +++++++++++++++ .../put/FaketestqueryparamtersPutResponses.md | 29 + .../put/parameters/parameter0/Schema0.md | 156 ++ .../put/parameters/parameter1/Schema1.md | 156 ++ .../put/parameters/parameter2/Schema2.md | 156 ++ .../put/parameters/parameter3/Schema3.md | 156 ++ .../put/parameters/parameter4/Schema4.md | 156 ++ .../put/parameters/parameter5/Schema5.md | 19 + ...aketestqueryparamtersPutCode200Response.md | 17 + .../FakeuploaddownloadfilePost.md | 184 ++ .../FakeuploaddownloadfilePostRequestBody.md | 90 + .../FakeuploaddownloadfilePostResponses.md | 29 + .../ApplicationoctetstreamSchema.md | 28 + ...keuploaddownloadfilePostCode200Response.md | 87 + .../ApplicationoctetstreamSchema.md | 28 + .../fakeuploadfile/FakeuploadfilePost.md | 148 ++ .../post/FakeuploadfilePostRequestBody.md | 90 + .../post/FakeuploadfilePostResponses.md | 29 + .../MultipartformdataSchema.md | 206 +++ .../FakeuploadfilePostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../fakeuploadfiles/FakeuploadfilesPost.md | 148 ++ .../post/FakeuploadfilesPostRequestBody.md | 90 + .../post/FakeuploadfilesPostResponses.md | 29 + .../MultipartformdataSchema.md | 252 +++ .../FakeuploadfilesPostCode200Response.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../FakewildcardresponsesGet.md | 163 ++ .../get/FakewildcardresponsesGetResponses.md | 62 + ...FakewildcardresponsesGetCode1XXResponse.md | 87 + ...FakewildcardresponsesGetCode200Response.md | 87 + ...FakewildcardresponsesGetCode2XXResponse.md | 87 + ...FakewildcardresponsesGetCode3XXResponse.md | 87 + ...FakewildcardresponsesGetCode4XXResponse.md | 87 + ...FakewildcardresponsesGetCode5XXResponse.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../applicationjson/ApplicationjsonSchema.md | 144 ++ .../petstore/java/docs/paths/foo/FooGet.md | 143 ++ .../docs/paths/foo/get/FooGetResponses.md | 29 + .../docs/paths/foo/get/FooGetServerInfo.md | 62 + .../responses/FooGetCodedefaultResponse.md | 87 + .../applicationjson/ApplicationjsonSchema.md | 134 ++ .../paths/foo/get/servers/FooGetServer0.md | 14 + .../paths/foo/get/servers/FooGetServer1.md | 16 + .../servers/server1/FooGetServer1Variables.md | 355 ++++ .../petstore/java/docs/paths/pet/PetPost.md | 238 +++ .../petstore/java/docs/paths/pet/PetPut.md | 234 +++ .../docs/paths/pet/post/PetPostRequestBody.md | 17 + .../docs/paths/pet/post/PetPostResponses.md | 29 + .../paths/pet/post/PetPostSecurityInfo.md | 44 + .../post/responses/PetPostCode200Response.md | 17 + .../post/responses/PetPostCode405Response.md | 32 + .../PetPostSecurityRequirementObject0.md | 15 + .../PetPostSecurityRequirementObject1.md | 15 + .../PetPostSecurityRequirementObject2.md | 15 + .../docs/paths/pet/put/PetPutRequestBody.md | 17 + .../docs/paths/pet/put/PetPutResponses.md | 10 + .../docs/paths/pet/put/PetPutSecurityInfo.md | 42 + .../put/responses/PetPutCode400Response.md | 32 + .../put/responses/PetPutCode404Response.md | 32 + .../put/responses/PetPutCode405Response.md | 32 + .../PetPutSecurityRequirementObject0.md | 15 + .../PetPutSecurityRequirementObject1.md | 15 + .../petfindbystatus/PetfindbystatusGet.md | 209 +++ .../PetfindbystatusServerInfo.md | 62 + .../get/PetfindbystatusGetQueryParameters.md | 271 +++ .../get/PetfindbystatusGetResponses.md | 29 + .../get/PetfindbystatusGetSecurityInfo.md | 44 + .../get/parameters/parameter0/Schema0.md | 206 +++ .../PetfindbystatusGetCode200Response.md | 17 + .../PetfindbystatusGetCode400Response.md | 32 + ...ndbystatusGetSecurityRequirementObject0.md | 15 + ...ndbystatusGetSecurityRequirementObject1.md | 15 + ...ndbystatusGetSecurityRequirementObject2.md | 15 + .../servers/PetfindbystatusServer0.md | 14 + .../servers/PetfindbystatusServer1.md | 16 + .../PetfindbystatusServer1Variables.md | 355 ++++ .../paths/petfindbytags/PetfindbytagsGet.md | 206 +++ .../get/PetfindbytagsGetQueryParameters.md | 271 +++ .../get/PetfindbytagsGetResponses.md | 29 + .../get/PetfindbytagsGetSecurityInfo.md | 42 + .../get/parameters/parameter0/Schema0.md | 156 ++ .../PetfindbytagsGetCode200Response.md | 17 + .../PetfindbytagsGetCode400Response.md | 32 + ...findbytagsGetSecurityRequirementObject0.md | 15 + ...findbytagsGetSecurityRequirementObject1.md | 15 + .../docs/paths/petpetid/PetpetidDelete.md | 207 +++ .../java/docs/paths/petpetid/PetpetidGet.md | 211 +++ .../java/docs/paths/petpetid/PetpetidPost.md | 207 +++ .../delete/PetpetidDeleteHeaderParameters.md | 252 +++ .../delete/PetpetidDeletePathParameters.md | 271 +++ .../delete/PetpetidDeleteResponses.md | 10 + .../delete/PetpetidDeleteSecurityInfo.md | 42 + .../delete/parameters/parameter0/Schema0.md | 49 + .../delete/parameters/parameter1/Schema1.md | 49 + .../PetpetidDeleteCode400Response.md | 32 + ...etpetidDeleteSecurityRequirementObject0.md | 15 + ...etpetidDeleteSecurityRequirementObject1.md | 15 + .../petpetid/get/PetpetidGetPathParameters.md | 271 +++ .../petpetid/get/PetpetidGetResponses.md | 29 + .../petpetid/get/PetpetidGetSecurityInfo.md | 40 + .../get/parameters/parameter0/Schema0.md | 49 + .../responses/PetpetidGetCode200Response.md | 123 ++ .../responses/PetpetidGetCode400Response.md | 32 + .../responses/PetpetidGetCode404Response.md | 32 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../PetpetidGetSecurityRequirementObject0.md | 15 + .../post/PetpetidPostPathParameters.md | 271 +++ .../petpetid/post/PetpetidPostRequestBody.md | 90 + .../petpetid/post/PetpetidPostResponses.md | 10 + .../petpetid/post/PetpetidPostSecurityInfo.md | 42 + .../post/parameters/parameter0/Schema0.md | 49 + .../ApplicationxwwwformurlencodedSchema.md | 214 +++ .../responses/PetpetidPostCode405Response.md | 32 + .../PetpetidPostSecurityRequirementObject0.md | 15 + .../PetpetidPostSecurityRequirementObject1.md | 15 + .../PetpetiduploadimagePost.md | 203 +++ .../PetpetiduploadimagePostPathParameters.md | 271 +++ .../PetpetiduploadimagePostRequestBody.md | 90 + .../post/PetpetiduploadimagePostResponses.md | 29 + .../PetpetiduploadimagePostSecurityInfo.md | 40 + .../post/parameters/parameter0/Schema0.md | 49 + .../MultipartformdataSchema.md | 190 ++ .../PetpetiduploadimagePostCode200Response.md | 17 + ...loadimagePostSecurityRequirementObject0.md | 15 + .../java/docs/paths/solidus/SolidusGet.md | 142 ++ .../paths/solidus/get/SolidusGetResponses.md | 29 + .../responses/SolidusGetCode200Response.md | 17 + .../paths/storeinventory/StoreinventoryGet.md | 158 ++ .../get/StoreinventoryGetResponses.md | 29 + .../get/StoreinventoryGetSecurityInfo.md | 40 + .../StoreinventoryGetCode200Response.md | 17 + ...einventoryGetSecurityRequirementObject0.md | 15 + .../docs/paths/storeorder/StoreorderPost.md | 206 +++ .../post/StoreorderPostRequestBody.md | 90 + .../post/StoreorderPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../StoreorderPostCode200Response.md | 123 ++ .../StoreorderPostCode400Response.md | 32 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../StoreorderorderidDelete.md | 188 ++ .../storeorderorderid/StoreorderorderidGet.md | 196 ++ .../StoreorderorderidDeletePathParameters.md | 268 +++ .../StoreorderorderidDeleteResponses.md | 10 + .../delete/parameters/parameter0/Schema0.md | 49 + .../StoreorderorderidDeleteCode400Response.md | 32 + .../StoreorderorderidDeleteCode404Response.md | 32 + .../get/StoreorderorderidGetPathParameters.md | 271 +++ .../get/StoreorderorderidGetResponses.md | 29 + .../get/parameters/parameter0/Schema0.md | 83 + .../StoreorderorderidGetCode200Response.md | 123 ++ .../StoreorderorderidGetCode400Response.md | 32 + .../StoreorderorderidGetCode404Response.md | 32 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../petstore/java/docs/paths/user/UserPost.md | 202 +++ .../paths/user/post/UserPostRequestBody.md | 90 + .../docs/paths/user/post/UserPostResponses.md | 29 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../responses/UserPostCodedefaultResponse.md | 32 + .../UsercreatewitharrayPost.md | 224 +++ .../UsercreatewitharrayPostRequestBody.md | 17 + .../post/UsercreatewitharrayPostResponses.md | 29 + ...rcreatewitharrayPostCodedefaultResponse.md | 32 + .../UsercreatewithlistPost.md | 224 +++ .../post/UsercreatewithlistPostRequestBody.md | 17 + .../post/UsercreatewithlistPostResponses.md | 29 + ...ercreatewithlistPostCodedefaultResponse.md | 32 + .../java/docs/paths/userlogin/UserloginGet.md | 198 ++ .../get/UserloginGetQueryParameters.md | 304 ++++ .../userlogin/get/UserloginGetResponses.md | 29 + .../get/parameters/parameter0/Schema0.md | 49 + .../get/parameters/parameter1/Schema1.md | 49 + .../responses/UserloginGetCode200Response.md | 123 ++ .../responses/UserloginGetCode400Response.md | 32 + ...serloginGetCode200ResponseHeadersSchema.md | 389 ++++ .../applicationjson/ApplicationjsonSchema.md | 49 + .../applicationxml/ApplicationxmlSchema.md | 49 + .../xexpiresafter/XExpiresAfterSchema.md | 49 + .../applicationjson/XRateLimitSchema.md | 49 + .../docs/paths/userlogout/UserlogoutGet.md | 142 ++ .../userlogout/get/UserlogoutGetResponses.md | 29 + .../UserlogoutGetCodedefaultResponse.md | 17 + .../paths/userusername/UserusernameDelete.md | 189 ++ .../paths/userusername/UserusernameGet.md | 196 ++ .../paths/userusername/UserusernamePut.md | 252 +++ .../UserusernameDeletePathParameters.md | 268 +++ .../delete/UserusernameDeleteResponses.md | 29 + .../UserusernameDeleteCode200Response.md | 17 + .../UserusernameDeleteCode404Response.md | 32 + .../get/UserusernameGetPathParameters.md | 268 +++ .../get/UserusernameGetResponses.md | 29 + .../UserusernameGetCode200Response.md | 123 ++ .../UserusernameGetCode400Response.md | 32 + .../UserusernameGetCode404Response.md | 32 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../applicationxml/ApplicationxmlSchema.md | 19 + .../put/UserusernamePutPathParameters.md | 268 +++ .../put/UserusernamePutRequestBody.md | 90 + .../put/UserusernamePutResponses.md | 10 + .../applicationjson/ApplicationjsonSchema.md | 19 + .../UserusernamePutCode400Response.md | 32 + .../UserusernamePutCode404Response.md | 32 + .../petstore/java/docs/servers/RootServer0.md | 22 + .../petstore/java/docs/servers/RootServer1.md | 22 + .../petstore/java/docs/servers/RootServer2.md | 20 + .../rootserver0/RootServer0Variables.md | 486 +++++ .../rootserver1/RootServer1Variables.md | 355 ++++ .../client/RootServerInfo.java | 77 + .../configurations/ApiConfiguration.java | 38 +- .../client/paths/Anotherfakedummy.java | 5 + .../client/paths/Commonparamsubdir.java | 5 + .../client/paths/Fake.java | 5 + ...eadditionalpropertieswitharrayofenums.java | 5 + .../client/paths/Fakebodywithfileschema.java | 5 + .../client/paths/Fakebodywithqueryparams.java | 5 + .../client/paths/Fakecasesensitiveparams.java | 5 + .../client/paths/Fakeclassnametest.java | 5 + .../client/paths/Fakedeletecoffeeid.java | 5 + .../client/paths/Fakehealth.java | 5 + .../paths/Fakeinlineadditionalproperties.java | 5 + .../client/paths/Fakeinlinecomposition.java | 5 + .../client/paths/Fakejsonformdata.java | 5 + .../client/paths/Fakejsonpatch.java | 5 + .../client/paths/Fakejsonwithcharset.java | 5 + .../Fakemultiplerequestbodycontenttypes.java | 5 + .../paths/Fakemultipleresponsebodies.java | 5 + .../client/paths/Fakemultiplesecurities.java | 5 + .../client/paths/Fakeobjinquery.java | 5 + .../Fakeparametercollisions1ababselfab.java | 5 + .../client/paths/Fakepemcontenttype.java | 5 + .../Fakepetiduploadimagewithrequiredfile.java | 5 + .../Fakequeryparamwithjsoncontenttype.java | 5 + .../client/paths/Fakeredirection.java | 5 + .../client/paths/Fakerefobjinquery.java | 5 + .../client/paths/Fakerefsarraymodel.java | 5 + .../client/paths/Fakerefsarrayofenums.java | 5 + .../client/paths/Fakerefsboolean.java | 5 + ...efscomposedoneofnumberwithvalidations.java | 5 + .../client/paths/Fakerefsenum.java | 5 + .../client/paths/Fakerefsmammal.java | 5 + .../client/paths/Fakerefsnumber.java | 5 + .../Fakerefsobjectmodelwithrefprops.java | 5 + .../client/paths/Fakerefsstring.java | 5 + .../paths/Fakeresponsewithoutschema.java | 5 + .../client/paths/Faketestqueryparamters.java | 5 + .../client/paths/Fakeuploaddownloadfile.java | 5 + .../client/paths/Fakeuploadfile.java | 5 + .../client/paths/Fakeuploadfiles.java | 5 + .../client/paths/Fakewildcardresponses.java | 5 + .../client/paths/Foo.java | 5 + .../client/paths/Pet.java | 5 + .../client/paths/Petfindbystatus.java | 5 + .../client/paths/Petfindbytags.java | 5 + .../client/paths/Petpetid.java | 5 + .../client/paths/Petpetiduploadimage.java | 5 + .../client/paths/Solidus.java | 5 + .../client/paths/Storeinventory.java | 5 + .../client/paths/Storeorder.java | 5 + .../client/paths/Storeorderorderid.java | 5 + .../client/paths/User.java | 5 + .../client/paths/Usercreatewitharray.java | 5 + .../client/paths/Usercreatewithlist.java | 5 + .../client/paths/Userlogin.java | 5 + .../client/paths/Userlogout.java | 5 + .../client/paths/Userusername.java | 5 + .../AnotherfakedummyPatch.java | 183 ++ .../AnotherfakedummyPatchRequestBody.java | 7 + .../patch/AnotherfakedummyPatchResponses.java | 53 + .../AnotherfakedummyPatchCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../CommonparamsubdirDelete.java | 205 +++ .../CommonparamsubdirGet.java | 206 +++ .../CommonparamsubdirPost.java | 205 +++ ...mmonparamsubdirDeleteHeaderParameters.java | 191 ++ ...CommonparamsubdirDeletePathParameters.java | 211 +++ .../CommonparamsubdirDeleteResponses.java | 53 + .../commonparamsubdir/delete/Parameters.java | 32 + .../delete/parameters/Parameter0.java | 23 + .../delete/parameters/Parameter1.java | 23 + .../delete/parameters/parameter0/Schema0.java | 19 + .../delete/parameters/parameter1/Schema1.java | 114 ++ ...ommonparamsubdirDeleteCode200Response.java | 7 + .../CommonparamsubdirGetPathParameters.java | 211 +++ .../CommonparamsubdirGetQueryParameters.java | 191 ++ .../get/CommonparamsubdirGetResponses.java | 53 + .../commonparamsubdir/get/Parameters.java | 32 + .../get/parameters/Parameter0.java | 23 + .../get/parameters/parameter0/Schema0.java | 19 + .../CommonparamsubdirGetCode200Response.java | 7 + .../parameters/RouteParameter0.java | 23 + .../routeparameter0/RouteParamSchema0.java | 114 ++ ...CommonparamsubdirPostHeaderParameters.java | 191 ++ .../CommonparamsubdirPostPathParameters.java | 211 +++ .../post/CommonparamsubdirPostResponses.java | 53 + .../commonparamsubdir/post/Parameters.java | 32 + .../post/parameters/Parameter0.java | 23 + .../post/parameters/parameter0/Schema0.java | 19 + .../CommonparamsubdirPostCode200Response.java | 7 + .../client/paths/fake/FakeDelete.java | 270 +++ .../client/paths/fake/FakeGet.java | 198 ++ .../client/paths/fake/FakePatch.java | 183 ++ .../client/paths/fake/FakePost.java | 180 ++ .../delete/FakeDeleteHeaderParameters.java | 246 +++ .../delete/FakeDeleteQueryParameters.java | 351 ++++ .../fake/delete/FakeDeleteResponses.java | 53 + .../fake/delete/FakeDeleteSecurityInfo.java | 24 + .../client/paths/fake/delete/Parameters.java | 40 + .../fake/delete/parameters/Parameter0.java | 23 + .../fake/delete/parameters/Parameter1.java | 23 + .../fake/delete/parameters/Parameter2.java | 23 + .../fake/delete/parameters/Parameter3.java | 23 + .../fake/delete/parameters/Parameter4.java | 23 + .../fake/delete/parameters/Parameter5.java | 23 + .../delete/parameters/parameter0/Schema0.java | 19 + .../delete/parameters/parameter1/Schema1.java | 114 ++ .../delete/parameters/parameter2/Schema2.java | 19 + .../delete/parameters/parameter3/Schema3.java | 19 + .../delete/parameters/parameter4/Schema4.java | 114 ++ .../delete/parameters/parameter5/Schema5.java | 19 + .../responses/FakeDeleteCode200Response.java | 7 + .../FakeDeleteSecurityRequirementObject0.java | 24 + .../fake/get/FakeGetHeaderParameters.java | 228 +++ .../fake/get/FakeGetQueryParameters.java | 344 ++++ .../paths/fake/get/FakeGetRequestBody.java | 49 + .../paths/fake/get/FakeGetResponses.java | 66 + .../client/paths/fake/get/Parameters.java | 40 + .../paths/fake/get/parameters/Parameter0.java | 23 + .../paths/fake/get/parameters/Parameter1.java | 23 + .../paths/fake/get/parameters/Parameter2.java | 23 + .../paths/fake/get/parameters/Parameter3.java | 23 + .../paths/fake/get/parameters/Parameter4.java | 23 + .../paths/fake/get/parameters/Parameter5.java | 23 + .../get/parameters/parameter0/Schema0.java | 253 +++ .../get/parameters/parameter1/Schema1.java | 124 ++ .../get/parameters/parameter2/Schema2.java | 253 +++ .../get/parameters/parameter3/Schema3.java | 124 ++ .../get/parameters/parameter4/Schema4.java | 187 ++ .../get/parameters/parameter5/Schema5.java | 142 ++ .../ApplicationxwwwformurlencodedSchema.java | 553 ++++++ .../get/responses/FakeGetCode200Response.java | 7 + .../get/responses/FakeGetCode404Response.java | 63 + .../ApplicationjsonSchema.java | 20 + .../fake/patch/FakePatchRequestBody.java | 7 + .../paths/fake/patch/FakePatchResponses.java | 53 + .../responses/FakePatchCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../paths/fake/post/FakePostRequestBody.java | 49 + .../paths/fake/post/FakePostResponses.java | 66 + .../paths/fake/post/FakePostSecurityInfo.java | 24 + .../ApplicationxwwwformurlencodedSchema.java | 1591 +++++++++++++++++ .../responses/FakePostCode200Response.java | 7 + .../responses/FakePostCode404Response.java | 45 + .../FakePostSecurityRequirementObject0.java | 24 + ...ditionalpropertieswitharrayofenumsGet.java | 152 ++ ...pertieswitharrayofenumsGetRequestBody.java | 49 + ...ropertieswitharrayofenumsGetResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + ...ieswitharrayofenumsGetCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../FakebodywithfileschemaPut.java | 183 ++ .../FakebodywithfileschemaPutRequestBody.java | 49 + .../FakebodywithfileschemaPutResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + ...ebodywithfileschemaPutCode200Response.java | 7 + .../FakebodywithqueryparamsPut.java | 242 +++ ...bodywithqueryparamsPutQueryParameters.java | 205 +++ ...FakebodywithqueryparamsPutRequestBody.java | 49 + .../FakebodywithqueryparamsPutResponses.java | 53 + .../put/Parameters.java | 20 + .../put/parameters/Parameter0.java | 23 + .../put/parameters/parameter0/Schema0.java | 19 + .../ApplicationjsonSchema.java | 19 + ...bodywithqueryparamsPutCode200Response.java | 7 + .../FakecasesensitiveparamsPut.java | 180 ++ ...casesensitiveparamsPutQueryParameters.java | 343 ++++ .../FakecasesensitiveparamsPutResponses.java | 53 + .../put/Parameters.java | 24 + .../put/parameters/Parameter0.java | 23 + .../put/parameters/Parameter1.java | 23 + .../put/parameters/Parameter2.java | 23 + .../put/parameters/parameter0/Schema0.java | 19 + .../put/parameters/parameter1/Schema1.java | 19 + .../put/parameters/parameter2/Schema2.java | 19 + ...casesensitiveparamsPutCode200Response.java | 7 + .../FakeclassnametestPatch.java | 215 +++ .../FakeclassnametestPatchRequestBody.java | 7 + .../FakeclassnametestPatchResponses.java | 53 + .../FakeclassnametestPatchSecurityInfo.java | 24 + ...FakeclassnametestPatchCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + ...metestPatchSecurityRequirementObject0.java | 24 + .../FakedeletecoffeeidDelete.java | 179 ++ ...akedeletecoffeeidDeletePathParameters.java | 205 +++ .../FakedeletecoffeeidDeleteResponses.java | 61 + .../fakedeletecoffeeid/delete/Parameters.java | 20 + .../delete/parameters/Parameter0.java | 23 + .../delete/parameters/parameter0/Schema0.java | 19 + ...kedeletecoffeeidDeleteCode200Response.java | 7 + ...letecoffeeidDeleteCodedefaultResponse.java | 45 + .../paths/fakehealth/FakehealthGet.java | 124 ++ .../get/FakehealthGetResponses.java | 53 + .../FakehealthGetCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../FakeinlineadditionalpropertiesPost.java | 183 ++ ...neadditionalpropertiesPostRequestBody.java | 49 + ...lineadditionalpropertiesPostResponses.java | 53 + .../ApplicationjsonSchema.java | 183 ++ ...ditionalpropertiesPostCode200Response.java | 7 + .../FakeinlinecompositionPost.java | 176 ++ ...einlinecompositionPostQueryParameters.java | 270 +++ .../FakeinlinecompositionPostRequestBody.java | 71 + .../FakeinlinecompositionPostResponses.java | 53 + .../post/Parameters.java | 22 + .../post/parameters/Parameter0.java | 23 + .../post/parameters/Parameter1.java | 23 + .../post/parameters/parameter0/Schema0.java | 393 ++++ .../post/parameters/parameter1/Schema1.java | 596 ++++++ .../ApplicationjsonSchema.java | 393 ++++ .../MultipartformdataSchema.java | 596 ++++++ ...einlinecompositionPostCode200Response.java | 81 + .../ApplicationjsonSchema.java | 393 ++++ .../MultipartformdataSchema.java | 596 ++++++ .../fakejsonformdata/FakejsonformdataGet.java | 152 ++ .../get/FakejsonformdataGetRequestBody.java | 49 + .../get/FakejsonformdataGetResponses.java | 53 + .../ApplicationxwwwformurlencodedSchema.java | 274 +++ .../FakejsonformdataGetCode200Response.java | 7 + .../fakejsonpatch/FakejsonpatchPatch.java | 152 ++ .../patch/FakejsonpatchPatchRequestBody.java | 49 + .../patch/FakejsonpatchPatchResponses.java | 53 + .../ApplicationjsonpatchjsonSchema.java | 19 + .../FakejsonpatchPatchCode200Response.java | 7 + .../FakejsonwithcharsetPost.java | 152 ++ .../FakejsonwithcharsetPostRequestBody.java | 49 + .../FakejsonwithcharsetPostResponses.java | 53 + .../Applicationjsoncharsetutf8Schema.java | 19 + ...akejsonwithcharsetPostCode200Response.java | 63 + .../Applicationjsoncharsetutf8Schema.java | 19 + ...kemultiplerequestbodycontenttypesPost.java | 152 ++ ...equestbodycontenttypesPostRequestBody.java | 71 + ...erequestbodycontenttypesPostResponses.java | 53 + .../ApplicationjsonSchema.java | 200 +++ .../MultipartformdataSchema.java | 200 +++ ...stbodycontenttypesPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../FakemultipleresponsebodiesGet.java | 124 ++ ...akemultipleresponsebodiesGetResponses.java | 69 + ...tipleresponsebodiesGetCode200Response.java | 63 + ...tipleresponsebodiesGetCode202Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../ApplicationjsonSchema.java | 19 + .../FakemultiplesecuritiesGet.java | 152 ++ .../FakemultiplesecuritiesGetResponses.java | 53 + ...FakemultiplesecuritiesGetSecurityInfo.java | 39 + ...emultiplesecuritiesGetCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + ...curitiesGetSecurityRequirementObject0.java | 5 + ...curitiesGetSecurityRequirementObject1.java | 29 + ...curitiesGetSecurityRequirementObject2.java | 24 + .../fakeobjinquery/FakeobjinqueryGet.java | 148 ++ .../get/FakeobjinqueryGetQueryParameters.java | 191 ++ .../get/FakeobjinqueryGetResponses.java | 53 + .../paths/fakeobjinquery/get/Parameters.java | 20 + .../get/parameters/Parameter0.java | 23 + .../get/parameters/parameter0/Schema0.java | 200 +++ .../FakeobjinqueryGetCode200Response.java | 7 + ...akeparametercollisions1ababselfabPost.java | 291 +++ ...isions1ababselfabPostCookieParameters.java | 286 +++ ...isions1ababselfabPostHeaderParameters.java | 258 +++ ...llisions1ababselfabPostPathParameters.java | 819 +++++++++ ...lisions1ababselfabPostQueryParameters.java | 286 +++ ...rcollisions1ababselfabPostRequestBody.java | 49 + ...tercollisions1ababselfabPostResponses.java | 53 + .../post/Parameters.java | 86 + .../post/parameters/Parameter0.java | 23 + .../post/parameters/Parameter1.java | 23 + .../post/parameters/Parameter10.java | 23 + .../post/parameters/Parameter11.java | 23 + .../post/parameters/Parameter12.java | 23 + .../post/parameters/Parameter13.java | 23 + .../post/parameters/Parameter14.java | 23 + .../post/parameters/Parameter15.java | 23 + .../post/parameters/Parameter16.java | 23 + .../post/parameters/Parameter17.java | 23 + .../post/parameters/Parameter18.java | 23 + .../post/parameters/Parameter2.java | 23 + .../post/parameters/Parameter3.java | 23 + .../post/parameters/Parameter4.java | 23 + .../post/parameters/Parameter5.java | 23 + .../post/parameters/Parameter6.java | 23 + .../post/parameters/Parameter7.java | 23 + .../post/parameters/Parameter8.java | 23 + .../post/parameters/Parameter9.java | 23 + .../post/parameters/parameter0/Schema0.java | 19 + .../post/parameters/parameter1/Schema1.java | 19 + .../post/parameters/parameter10/Schema10.java | 19 + .../post/parameters/parameter11/Schema11.java | 19 + .../post/parameters/parameter12/Schema12.java | 19 + .../post/parameters/parameter13/Schema13.java | 19 + .../post/parameters/parameter14/Schema14.java | 19 + .../post/parameters/parameter15/Schema15.java | 19 + .../post/parameters/parameter16/Schema16.java | 19 + .../post/parameters/parameter17/Schema17.java | 19 + .../post/parameters/parameter18/Schema18.java | 19 + .../post/parameters/parameter2/Schema2.java | 19 + .../post/parameters/parameter3/Schema3.java | 19 + .../post/parameters/parameter4/Schema4.java | 19 + .../post/parameters/parameter5/Schema5.java | 19 + .../post/parameters/parameter6/Schema6.java | 19 + .../post/parameters/parameter7/Schema7.java | 19 + .../post/parameters/parameter8/Schema8.java | 19 + .../post/parameters/parameter9/Schema9.java | 19 + .../ApplicationjsonSchema.java | 19 + ...lisions1ababselfabPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../FakepemcontenttypeGet.java | 152 ++ .../get/FakepemcontenttypeGetRequestBody.java | 49 + .../get/FakepemcontenttypeGetResponses.java | 53 + .../ApplicationxpemfileSchema.java | 19 + .../FakepemcontenttypeGetCode200Response.java | 63 + .../ApplicationxpemfileSchema.java | 19 + ...epetiduploadimagewithrequiredfilePost.java | 243 +++ ...agewithrequiredfilePostPathParameters.java | 223 +++ ...dimagewithrequiredfilePostRequestBody.java | 49 + ...oadimagewithrequiredfilePostResponses.java | 53 + ...imagewithrequiredfilePostSecurityInfo.java | 24 + .../post/Parameters.java | 20 + .../post/parameters/Parameter0.java | 23 + .../post/parameters/parameter0/Schema0.java | 19 + .../MultipartformdataSchema.java | 251 +++ ...gewithrequiredfilePostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + ...redfilePostSecurityRequirementObject0.java | 24 + .../FakequeryparamwithjsoncontenttypeGet.java | 180 ++ ...withjsoncontenttypeGetQueryParameters.java | 253 +++ ...yparamwithjsoncontenttypeGetResponses.java | 53 + .../get/Parameters.java | 20 + .../get/parameters/Parameter0.java | 35 + .../content/applicationjson/Schema0.java | 19 + ...withjsoncontenttypeGetCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../fakeredirection/FakeredirectionGet.java | 124 ++ .../get/FakeredirectionGetResponses.java | 79 + .../FakeredirectionGetCode303Response.java | 45 + .../FakeredirectionGetCode3XXResponse.java | 45 + .../FakerefobjinqueryGet.java | 148 ++ .../FakerefobjinqueryGetQueryParameters.java | 191 ++ .../get/FakerefobjinqueryGetResponses.java | 53 + .../fakerefobjinquery/get/Parameters.java | 20 + .../get/parameters/Parameter0.java | 23 + .../get/parameters/parameter0/Schema0.java | 19 + .../FakerefobjinqueryGetCode200Response.java | 7 + .../FakerefsarraymodelPost.java | 152 ++ .../FakerefsarraymodelPostRequestBody.java | 49 + .../post/FakerefsarraymodelPostResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + ...FakerefsarraymodelPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../FakerefsarrayofenumsPost.java | 152 ++ .../FakerefsarrayofenumsPostRequestBody.java | 49 + .../FakerefsarrayofenumsPostResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + ...kerefsarrayofenumsPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../fakerefsboolean/FakerefsbooleanPost.java | 152 ++ .../post/FakerefsbooleanPostRequestBody.java | 49 + .../post/FakerefsbooleanPostResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + .../FakerefsbooleanPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + ...omposedoneofnumberwithvalidationsPost.java | 152 ++ ...fnumberwithvalidationsPostRequestBody.java | 49 + ...eofnumberwithvalidationsPostResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + ...berwithvalidationsPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../paths/fakerefsenum/FakerefsenumPost.java | 152 ++ .../post/FakerefsenumPostRequestBody.java | 49 + .../post/FakerefsenumPostResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + .../FakerefsenumPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../fakerefsmammal/FakerefsmammalPost.java | 183 ++ .../post/FakerefsmammalPostRequestBody.java | 49 + .../post/FakerefsmammalPostResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + .../FakerefsmammalPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../fakerefsnumber/FakerefsnumberPost.java | 152 ++ .../post/FakerefsnumberPostRequestBody.java | 49 + .../post/FakerefsnumberPostResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + .../FakerefsnumberPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../FakerefsobjectmodelwithrefpropsPost.java | 152 ++ ...bjectmodelwithrefpropsPostRequestBody.java | 49 + ...sobjectmodelwithrefpropsPostResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + ...tmodelwithrefpropsPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../fakerefsstring/FakerefsstringPost.java | 152 ++ .../post/FakerefsstringPostRequestBody.java | 49 + .../post/FakerefsstringPostResponses.java | 53 + .../ApplicationjsonSchema.java | 19 + .../FakerefsstringPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../FakeresponsewithoutschemaGet.java | 124 ++ ...FakeresponsewithoutschemaGetResponses.java | 53 + ...sponsewithoutschemaGetCode200Response.java | 48 + .../FaketestqueryparamtersPut.java | 180 ++ ...etestqueryparamtersPutQueryParameters.java | 1515 ++++++++++++++++ .../FaketestqueryparamtersPutResponses.java | 53 + .../put/Parameters.java | 30 + .../put/parameters/Parameter0.java | 23 + .../put/parameters/Parameter1.java | 23 + .../put/parameters/Parameter2.java | 23 + .../put/parameters/Parameter3.java | 23 + .../put/parameters/Parameter4.java | 23 + .../put/parameters/Parameter5.java | 23 + .../put/parameters/parameter0/Schema0.java | 157 ++ .../put/parameters/parameter1/Schema1.java | 157 ++ .../put/parameters/parameter2/Schema2.java | 157 ++ .../put/parameters/parameter3/Schema3.java | 157 ++ .../put/parameters/parameter4/Schema4.java | 157 ++ .../put/parameters/parameter5/Schema5.java | 19 + ...etestqueryparamtersPutCode200Response.java | 7 + .../FakeuploaddownloadfilePost.java | 183 ++ ...FakeuploaddownloadfilePostRequestBody.java | 49 + .../FakeuploaddownloadfilePostResponses.java | 53 + .../ApplicationoctetstreamSchema.java | 20 + ...uploaddownloadfilePostCode200Response.java | 63 + .../ApplicationoctetstreamSchema.java | 20 + .../fakeuploadfile/FakeuploadfilePost.java | 152 ++ .../post/FakeuploadfilePostRequestBody.java | 49 + .../post/FakeuploadfilePostResponses.java | 53 + .../MultipartformdataSchema.java | 251 +++ .../FakeuploadfilePostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../fakeuploadfiles/FakeuploadfilesPost.java | 152 ++ .../post/FakeuploadfilesPostRequestBody.java | 49 + .../post/FakeuploadfilesPostResponses.java | 53 + .../MultipartformdataSchema.java | 325 ++++ .../FakeuploadfilesPostCode200Response.java | 63 + .../ApplicationjsonSchema.java | 19 + .../FakewildcardresponsesGet.java | 124 ++ .../FakewildcardresponsesGetResponses.java | 139 ++ ...kewildcardresponsesGetCode1XXResponse.java | 63 + ...kewildcardresponsesGetCode200Response.java | 63 + ...kewildcardresponsesGetCode2XXResponse.java | 63 + ...kewildcardresponsesGetCode3XXResponse.java | 63 + ...kewildcardresponsesGetCode4XXResponse.java | 63 + ...kewildcardresponsesGetCode5XXResponse.java | 63 + .../ApplicationjsonSchema.java | 19 + .../ApplicationjsonSchema.java | 19 + .../ApplicationjsonSchema.java | 19 + .../ApplicationjsonSchema.java | 19 + .../ApplicationjsonSchema.java | 19 + .../ApplicationjsonSchema.java | 19 + .../client/paths/foo/FooGet.java | 124 ++ .../client/paths/foo/get/FooGetResponses.java | 37 + .../paths/foo/get/FooGetServerInfo.java | 63 + .../responses/FooGetCodedefaultResponse.java | 63 + .../ApplicationjsonSchema.java | 179 ++ .../paths/foo/get/servers/FooGetServer0.java | 9 + .../paths/foo/get/servers/FooGetServer1.java | 35 + .../server1/FooGetServer1Variables.java | 313 ++++ .../client/paths/pet/PetPost.java | 215 +++ .../client/paths/pet/PetPut.java | 214 +++ .../paths/pet/post/PetPostRequestBody.java | 7 + .../paths/pet/post/PetPostResponses.java | 66 + .../paths/pet/post/PetPostSecurityInfo.java | 39 + .../responses/PetPostCode200Response.java | 7 + .../responses/PetPostCode405Response.java | 45 + .../PetPostSecurityRequirementObject0.java | 24 + .../PetPostSecurityRequirementObject1.java | 24 + .../PetPostSecurityRequirementObject2.java | 24 + .../paths/pet/put/PetPutRequestBody.java | 7 + .../client/paths/pet/put/PetPutResponses.java | 72 + .../paths/pet/put/PetPutSecurityInfo.java | 33 + .../put/responses/PetPutCode400Response.java | 45 + .../put/responses/PetPutCode404Response.java | 45 + .../put/responses/PetPutCode405Response.java | 45 + .../PetPutSecurityRequirementObject0.java | 24 + .../PetPutSecurityRequirementObject1.java | 24 + .../petfindbystatus/PetfindbystatusGet.java | 212 +++ .../PetfindbystatusServerInfo.java | 63 + .../paths/petfindbystatus/get/Parameters.java | 20 + .../PetfindbystatusGetQueryParameters.java | 206 +++ .../get/PetfindbystatusGetResponses.java | 66 + .../get/PetfindbystatusGetSecurityInfo.java | 39 + .../get/parameters/Parameter0.java | 23 + .../get/parameters/parameter0/Schema0.java | 255 +++ .../PetfindbystatusGetCode200Response.java | 7 + .../PetfindbystatusGetCode400Response.java | 45 + ...bystatusGetSecurityRequirementObject0.java | 24 + ...bystatusGetSecurityRequirementObject1.java | 24 + ...bystatusGetSecurityRequirementObject2.java | 24 + .../servers/PetfindbystatusServer0.java | 9 + .../servers/PetfindbystatusServer1.java | 35 + .../PetfindbystatusServer1Variables.java | 313 ++++ .../paths/petfindbytags/PetfindbytagsGet.java | 212 +++ .../paths/petfindbytags/get/Parameters.java | 20 + .../get/PetfindbytagsGetQueryParameters.java | 206 +++ .../get/PetfindbytagsGetResponses.java | 66 + .../get/PetfindbytagsGetSecurityInfo.java | 33 + .../get/parameters/Parameter0.java | 23 + .../get/parameters/parameter0/Schema0.java | 157 ++ .../PetfindbytagsGetCode200Response.java | 7 + .../PetfindbytagsGetCode400Response.java | 45 + ...ndbytagsGetSecurityRequirementObject0.java | 24 + ...ndbytagsGetSecurityRequirementObject1.java | 24 + .../client/paths/petpetid/PetpetidDelete.java | 236 +++ .../client/paths/petpetid/PetpetidGet.java | 211 +++ .../client/paths/petpetid/PetpetidPost.java | 242 +++ .../paths/petpetid/delete/Parameters.java | 32 + .../PetpetidDeleteHeaderParameters.java | 191 ++ .../delete/PetpetidDeletePathParameters.java | 223 +++ .../delete/PetpetidDeleteResponses.java | 48 + .../delete/PetpetidDeleteSecurityInfo.java | 33 + .../delete/parameters/Parameter0.java | 23 + .../delete/parameters/Parameter1.java | 23 + .../delete/parameters/parameter0/Schema0.java | 19 + .../delete/parameters/parameter1/Schema1.java | 19 + .../PetpetidDeleteCode400Response.java | 45 + ...petidDeleteSecurityRequirementObject0.java | 24 + ...petidDeleteSecurityRequirementObject1.java | 24 + .../client/paths/petpetid/get/Parameters.java | 20 + .../get/PetpetidGetPathParameters.java | 223 +++ .../petpetid/get/PetpetidGetResponses.java | 77 + .../petpetid/get/PetpetidGetSecurityInfo.java | 24 + .../petpetid/get/parameters/Parameter0.java | 23 + .../get/parameters/parameter0/Schema0.java | 19 + .../responses/PetpetidGetCode200Response.java | 81 + .../responses/PetpetidGetCode400Response.java | 45 + .../responses/PetpetidGetCode404Response.java | 45 + .../ApplicationjsonSchema.java | 20 + .../applicationxml/ApplicationxmlSchema.java | 19 + ...PetpetidGetSecurityRequirementObject0.java | 24 + .../paths/petpetid/post/Parameters.java | 20 + .../post/PetpetidPostPathParameters.java | 223 +++ .../post/PetpetidPostRequestBody.java | 49 + .../petpetid/post/PetpetidPostResponses.java | 48 + .../post/PetpetidPostSecurityInfo.java | 33 + .../petpetid/post/parameters/Parameter0.java | 23 + .../post/parameters/parameter0/Schema0.java | 19 + .../ApplicationxwwwformurlencodedSchema.java | 238 +++ .../PetpetidPostCode405Response.java | 45 + ...etpetidPostSecurityRequirementObject0.java | 24 + ...etpetidPostSecurityRequirementObject1.java | 24 + .../PetpetiduploadimagePost.java | 243 +++ .../petpetiduploadimage/post/Parameters.java | 20 + ...PetpetiduploadimagePostPathParameters.java | 223 +++ .../PetpetiduploadimagePostRequestBody.java | 49 + .../PetpetiduploadimagePostResponses.java | 54 + .../PetpetiduploadimagePostSecurityInfo.java | 24 + .../post/parameters/Parameter0.java | 23 + .../post/parameters/parameter0/Schema0.java | 19 + .../MultipartformdataSchema.java | 239 +++ ...etpetiduploadimagePostCode200Response.java | 7 + ...adimagePostSecurityRequirementObject0.java | 24 + .../client/paths/solidus/SolidusGet.java | 124 ++ .../solidus/get/SolidusGetResponses.java | 53 + .../responses/SolidusGetCode200Response.java | 7 + .../storeinventory/StoreinventoryGet.java | 152 ++ .../get/StoreinventoryGetResponses.java | 54 + .../get/StoreinventoryGetSecurityInfo.java | 24 + .../StoreinventoryGetCode200Response.java | 7 + ...nventoryGetSecurityRequirementObject0.java | 24 + .../paths/storeorder/StoreorderPost.java | 183 ++ .../post/StoreorderPostRequestBody.java | 49 + .../post/StoreorderPostResponses.java | 66 + .../ApplicationjsonSchema.java | 19 + .../StoreorderPostCode200Response.java | 81 + .../StoreorderPostCode400Response.java | 45 + .../ApplicationjsonSchema.java | 19 + .../applicationxml/ApplicationxmlSchema.java | 19 + .../StoreorderorderidDelete.java | 178 ++ .../StoreorderorderidGet.java | 179 ++ .../storeorderorderid/delete/Parameters.java | 20 + ...StoreorderorderidDeletePathParameters.java | 205 +++ .../StoreorderorderidDeleteResponses.java | 61 + .../delete/parameters/Parameter0.java | 23 + .../delete/parameters/parameter0/Schema0.java | 19 + ...toreorderorderidDeleteCode400Response.java | 45 + ...toreorderorderidDeleteCode404Response.java | 45 + .../storeorderorderid/get/Parameters.java | 20 + .../StoreorderorderidGetPathParameters.java | 223 +++ .../get/StoreorderorderidGetResponses.java | 77 + .../get/parameters/Parameter0.java | 23 + .../get/parameters/parameter0/Schema0.java | 111 ++ .../StoreorderorderidGetCode200Response.java | 81 + .../StoreorderorderidGetCode400Response.java | 45 + .../StoreorderorderidGetCode404Response.java | 45 + .../ApplicationjsonSchema.java | 19 + .../applicationxml/ApplicationxmlSchema.java | 19 + .../client/paths/user/UserPost.java | 183 ++ .../paths/user/post/UserPostRequestBody.java | 49 + .../paths/user/post/UserPostResponses.java | 37 + .../ApplicationjsonSchema.java | 19 + .../UserPostCodedefaultResponse.java | 45 + .../UsercreatewitharrayPost.java | 183 ++ .../UsercreatewitharrayPostRequestBody.java | 7 + .../UsercreatewitharrayPostResponses.java | 37 + ...reatewitharrayPostCodedefaultResponse.java | 45 + .../UsercreatewithlistPost.java | 183 ++ .../UsercreatewithlistPostRequestBody.java | 7 + .../post/UsercreatewithlistPostResponses.java | 37 + ...createwithlistPostCodedefaultResponse.java | 45 + .../client/paths/userlogin/UserloginGet.java | 180 ++ .../paths/userlogin/get/Parameters.java | 22 + .../get/UserloginGetQueryParameters.java | 255 +++ .../userlogin/get/UserloginGetResponses.java | 67 + .../userlogin/get/parameters/Parameter0.java | 23 + .../userlogin/get/parameters/Parameter1.java | 23 + .../get/parameters/parameter0/Schema0.java | 19 + .../get/parameters/parameter1/Schema1.java | 19 + .../UserloginGetCode200Response.java | 83 + .../UserloginGetCode400Response.java | 45 + .../responses/code200response/Headers.java | 26 + ...rloginGetCode200ResponseHeadersSchema.java | 389 ++++ .../ApplicationjsonSchema.java | 19 + .../applicationxml/ApplicationxmlSchema.java | 19 + .../code200response/headers/Int32.java | 7 + .../code200response/headers/NumberHeader.java | 3 + .../headers/Refcontentschemaheader.java | 7 + .../headers/XExpiresAfter.java | 18 + .../code200response/headers/XRateLimit.java | 31 + .../xexpiresafter/XExpiresAfterSchema.java | 19 + .../applicationjson/XRateLimitSchema.java | 19 + .../paths/userlogout/UserlogoutGet.java | 124 ++ .../get/UserlogoutGetResponses.java | 37 + .../UserlogoutGetCodedefaultResponse.java | 7 + .../userusername/UserusernameDelete.java | 179 ++ .../paths/userusername/UserusernameGet.java | 179 ++ .../paths/userusername/UserusernamePut.java | 240 +++ .../paths/userusername/delete/Parameters.java | 20 + .../UserusernameDeletePathParameters.java | 205 +++ .../delete/UserusernameDeleteResponses.java | 66 + .../delete/parameters/Parameter0.java | 7 + .../UserusernameDeleteCode200Response.java | 7 + .../UserusernameDeleteCode404Response.java | 45 + .../paths/userusername/get/Parameters.java | 20 + .../get/UserusernameGetPathParameters.java | 205 +++ .../get/UserusernameGetResponses.java | 77 + .../get/parameters/Parameter0.java | 7 + .../UserusernameGetCode200Response.java | 81 + .../UserusernameGetCode400Response.java | 45 + .../UserusernameGetCode404Response.java | 45 + .../ApplicationjsonSchema.java | 19 + .../applicationxml/ApplicationxmlSchema.java | 19 + .../paths/userusername/put/Parameters.java | 20 + .../put/UserusernamePutPathParameters.java | 205 +++ .../put/UserusernamePutRequestBody.java | 49 + .../put/UserusernamePutResponses.java | 61 + .../put/parameters/Parameter0.java | 7 + .../ApplicationjsonSchema.java | 19 + .../UserusernamePutCode400Response.java | 45 + .../UserusernamePutCode404Response.java | 45 + .../client/servers/RootServer0.java | 38 + .../client/servers/RootServer1.java | 37 + .../client/servers/RootServer2.java | 9 + .../client/servers/Server.java | 6 + .../client/servers/ServerProvider.java | 6 + .../client/servers/ServerWithVariables.java | 21 + .../servers/ServerWithoutVariables.java | 14 + .../rootserver0/RootServer0Variables.java | 471 +++++ .../rootserver1/RootServer1Variables.java | 313 ++++ .../DefaultGeneratorRunner.java | 1 + .../codegen/generators/DefaultGenerator.java | 6 +- .../generators/JavaClientGenerator.java | 8 +- .../templating/HandlebarsEngineAdapter.java | 2 +- .../configurations/ApiConfiguration.hbs | 2 +- 1229 files changed, 101556 insertions(+), 1360 deletions(-) create mode 100644 samples/client/petstore/java/docs/RootServerInfo.md create mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md create mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md create mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fake/FakeDelete.md create mode 100644 samples/client/petstore/java/docs/paths/fake/FakeGet.md create mode 100644 samples/client/petstore/java/docs/paths/fake/FakePatch.md create mode 100644 samples/client/petstore/java/docs/paths/fake/FakePost.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/responses/FakeDeleteCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/FakeGetRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md create mode 100644 samples/client/petstore/java/docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fake/patch/FakePatchRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fake/post/FakePostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode404Response.md create mode 100644 samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md create mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md create mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md create mode 100644 samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md create mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.md create mode 100644 samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md create mode 100644 samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md create mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md create mode 100644 samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/foo/FooGet.md create mode 100644 samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md create mode 100644 samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md create mode 100644 samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer0.md create mode 100644 samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md create mode 100644 samples/client/petstore/java/docs/paths/foo/get/servers/server1/FooGetServer1Variables.md create mode 100644 samples/client/petstore/java/docs/paths/pet/PetPost.md create mode 100644 samples/client/petstore/java/docs/paths/pet/PetPut.md create mode 100644 samples/client/petstore/java/docs/paths/pet/post/PetPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md create mode 100644 samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md create mode 100644 samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md create mode 100644 samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md create mode 100644 samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md create mode 100644 samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md create mode 100644 samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode404Response.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/responses/PetpetidPostCode405Response.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/solidus/SolidusGet.md create mode 100644 samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/solidus/get/responses/SolidusGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md create mode 100644 samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md create mode 100644 samples/client/petstore/java/docs/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/user/UserPost.md create mode 100644 samples/client/petstore/java/docs/paths/user/post/UserPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/user/post/responses/UserPostCodedefaultResponse.md create mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md create mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.md create mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md create mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md create mode 100644 samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md create mode 100644 samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode404Response.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode404Response.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutRequestBody.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode400Response.md create mode 100644 samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode404Response.md create mode 100644 samples/client/petstore/java/docs/servers/RootServer0.md create mode 100644 samples/client/petstore/java/docs/servers/RootServer1.md create mode 100644 samples/client/petstore/java/docs/servers/RootServer2.md create mode 100644 samples/client/petstore/java/docs/servers/rootserver0/RootServer0Variables.md create mode 100644 samples/client/petstore/java/docs/servers/rootserver1/RootServer1Variables.md create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Anotherfakedummy.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Commonparamsubdir.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fake.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeadditionalpropertieswitharrayofenums.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithfileschema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithqueryparams.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakecasesensitiveparams.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeclassnametest.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakedeletecoffeeid.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakehealth.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlineadditionalproperties.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlinecomposition.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonformdata.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonpatch.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonwithcharset.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplerequestbodycontenttypes.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultipleresponsebodies.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplesecurities.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeobjinquery.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeparametercollisions1ababselfab.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepemcontenttype.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepetiduploadimagewithrequiredfile.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakequeryparamwithjsoncontenttype.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeredirection.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefobjinquery.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarraymodel.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarrayofenums.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsboolean.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefscomposedoneofnumberwithvalidations.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsenum.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsmammal.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsnumber.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsobjectmodelwithrefprops.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsstring.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeresponsewithoutschema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Faketestqueryparamters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploaddownloadfile.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfile.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfiles.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakewildcardresponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Foo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Pet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbystatus.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbytags.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetid.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetiduploadimage.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Solidus.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeinventory.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorder.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorderorderid.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/User.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewitharray.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewithlist.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogin.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogout.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userusername.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter3.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter4.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter5.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter2/Schema2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter3.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter4.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter5.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter10.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter11.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter12.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter13.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter14.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter15.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter16.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter17.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter18.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter3.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter4.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter5.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter6.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter7.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter8.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter9.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter3.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter4.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter5.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/FooGetServer1Variables.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Int32.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/NumberHeader.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Refcontentschemaheader.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XExpiresAfter.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XRateLimit.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer1.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer2.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/rootserver0/RootServer0Variables.java create mode 100644 samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/rootserver1/RootServer1Variables.java diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 2263447de42..8ee910d207d 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -1,5 +1,5 @@ README.md -docs/ServerInfo.md +docs/RootServerInfo.md docs/apis/paths/Anotherfakedummy.md docs/apis/paths/Commonparamsubdir.md docs/apis/paths/Fake.md @@ -585,7 +585,7 @@ docs/paths/foo/get/responses/FooGetCodedefaultResponse.md docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md docs/paths/foo/get/servers/FooGetServer0.md docs/paths/foo/get/servers/FooGetServer1.md -docs/paths/foo/get/servers/server1/Variables.md +docs/paths/foo/get/servers/server1/FooGetServer1Variables.md docs/paths/pet/PetPost.md docs/paths/pet/PetPut.md docs/paths/pet/post/PetPostRequestBody.md @@ -617,7 +617,7 @@ docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObj docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md -docs/paths/petfindbystatus/servers/server1/Variables.md +docs/paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.md docs/paths/petfindbytags/PetfindbytagsGet.md docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md @@ -746,13 +746,13 @@ docs/paths/userusername/put/UserusernamePutResponses.md docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md docs/paths/userusername/put/responses/UserusernamePutCode400Response.md docs/paths/userusername/put/responses/UserusernamePutCode404Response.md -docs/servers/Server0.md -docs/servers/Server1.md -docs/servers/Server2.md -docs/servers/server0/Server0Variables.md -docs/servers/server1/Server1Variables.md +docs/servers/RootServer0.md +docs/servers/RootServer1.md +docs/servers/RootServer2.md +docs/servers/rootserver0/RootServer0Variables.md +docs/servers/rootserver1/RootServer1Variables.md pom.xml -src/main/java/org/openapijsonschematools/client/ServerInfo.java +src/main/java/org/openapijsonschematools/client/RootServerInfo.java src/main/java/org/openapijsonschematools/client/apiclient/ApiClient.java src/main/java/org/openapijsonschematools/client/apis/paths/Anotherfakedummy.java src/main/java/org/openapijsonschematools/client/apis/paths/Commonparamsubdir.java @@ -1504,7 +1504,7 @@ src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCo src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java -src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java +src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/FooGetServer1Variables.java src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java @@ -1538,7 +1538,7 @@ src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/securi src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer0.java src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java -src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java +src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Parameters.java src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java @@ -1816,15 +1816,15 @@ src/main/java/org/openapijsonschematools/client/securityschemes/MutualTlsSecurit src/main/java/org/openapijsonschematools/client/securityschemes/OAuth2SecurityScheme.java src/main/java/org/openapijsonschematools/client/securityschemes/OpenIdConnectSecurityScheme.java src/main/java/org/openapijsonschematools/client/securityschemes/SecurityScheme.java +src/main/java/org/openapijsonschematools/client/servers/RootServer0.java +src/main/java/org/openapijsonschematools/client/servers/RootServer1.java +src/main/java/org/openapijsonschematools/client/servers/RootServer2.java src/main/java/org/openapijsonschematools/client/servers/Server.java -src/main/java/org/openapijsonschematools/client/servers/Server0.java -src/main/java/org/openapijsonschematools/client/servers/Server1.java -src/main/java/org/openapijsonschematools/client/servers/Server2.java src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java -src/main/java/org/openapijsonschematools/client/servers/server0/Server0Variables.java -src/main/java/org/openapijsonschematools/client/servers/server1/Server1Variables.java +src/main/java/org/openapijsonschematools/client/servers/rootserver0/RootServer0Variables.java +src/main/java/org/openapijsonschematools/client/servers/rootserver1/RootServer1Variables.java src/test/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlagsTest.java src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java diff --git a/samples/client/petstore/java/README.md b/samples/client/petstore/java/README.md index dac3b17773d..5a29bf2142b 100644 --- a/samples/client/petstore/java/README.md +++ b/samples/client/petstore/java/README.md @@ -157,12 +157,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; @@ -174,14 +174,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); @@ -219,9 +219,9 @@ SolidusGetResponses.EndpointSolidusGetCode200Response castResponse = (SolidusGet ## Servers | server_index | Class | Description | | ------------ | ----- | ----------- | -| 0 | [Server0](docs/servers/Server0.md) | petstore server | -| 1 | [Server1](docs/servers/Server1.md) | The local server | -| 2 | [Server2](docs/servers/Server2.md) | staging server with no variables | +| 0 | [RootServer0](docs/servers/RootServer0.md) | petstore server | +| 1 | [RootServer1](docs/servers/RootServer1.md) | The local server | +| 2 | [RootServer2](docs/servers/RootServer2.md) | staging server with no variables | ## Component SecuritySchemes | Class | Description | diff --git a/samples/client/petstore/java/docs/RootServerInfo.md b/samples/client/petstore/java/docs/RootServerInfo.md new file mode 100644 index 00000000000..efe32cf743d --- /dev/null +++ b/samples/client/petstore/java/docs/RootServerInfo.md @@ -0,0 +1,65 @@ +# RootServerInfo +RootServerInfo.java + +public class RootServerInfo + +A class that provides a server, and any needed server info classes +- a class that is a ServerProvider +- a builder for the ServerProvider +- an enum class that stores server index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [RootServerInfo.RootServerInfo1](#rootserverinfo1)
class that stores a server index | +| static class | [RootServerInfo.RootServerInfoBuilder](#rootserverinfobuilder)
class that stores a server index | +| enum | [RootServerInfo.ServerIndex](#serverindex)
class that stores a server index | + +## RootServerInfo1 +implements ServerProvider<[ServerIndex](#serverindex)>
+ +A class that stores servers and allows one to be returned with a ServerIndex instance + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServerInfo1(@Nullable [RootServer0](servers/RootServer0.md) server0,@Nullable [RootServer1](servers/RootServer1.md) server1,@Nullable [RootServer2](servers/RootServer2.md) server2)
Creates an instance using passed in servers | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [RootServer0](servers/RootServer0.md) | server0 | +| [RootServer1](servers/RootServer1.md) | server1 | +| [RootServer2](servers/RootServer2.md) | server2 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Server | getServer([ServerIndex](#serverindex) serverIndex) | + +## RootServerInfoBuilder + +a builder for [RootServerInfo1](#rootserverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [RootServerInfoBuilder](#rootserverinfobuilder) | rootServer0([RootServer0](servers/RootServer0.md) server0)
sets the server | +| [RootServerInfoBuilder](#rootserverinfobuilder) | rootServer1([RootServer1](servers/RootServer1.md) server1)
sets the server | +| [RootServerInfoBuilder](#rootserverinfobuilder) | rootServer2([RootServer2](servers/RootServer2.md) server2)
sets the server | +| [RootServerInfo1](#rootserverinfo1) | build() | + +## ServerIndex +enum ServerIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SERVER_0
server 0 | +| SERVER_1
server 1 | +| SERVER_2
server 2 | diff --git a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md index 46ecff88638..dd44aeae181 100644 --- a/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md +++ b/samples/client/petstore/java/docs/apis/paths/Anotherfakedummy.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.AnotherfakedummyPatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Anotherfakedummy; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md index a8a75cd49e6..1d778b34d13 100644 --- a/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md +++ b/samples/client/petstore/java/docs/apis/paths/Commonparamsubdir.md @@ -46,13 +46,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.CommonparamsubdirDeleteCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Commonparamsubdir; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; @@ -64,17 +64,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -146,13 +146,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.CommonparamsubdirGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Commonparamsubdir; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; @@ -164,17 +164,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -246,13 +246,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.CommonparamsubdirPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Commonparamsubdir; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; @@ -264,17 +264,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fake.md b/samples/client/petstore/java/docs/apis/paths/Fake.md index 3c671b29ee8..2f0f6492dd4 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fake.md +++ b/samples/client/petstore/java/docs/apis/paths/Fake.md @@ -47,17 +47,17 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.BearerTest; import org.openapijsonschematools.client.paths.fake.delete.responses.FakeDeleteCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; @@ -69,14 +69,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -86,7 +86,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakeDeleteSecurityRequirementObject0SecurityIndex(FakeDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -184,13 +184,13 @@ import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode200Response; import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; @@ -202,17 +202,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -276,14 +276,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fake.patch.responses.FakePatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; @@ -295,17 +295,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -382,16 +382,16 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fake.post.FakePostRequestBody; import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode200Response; import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fake; import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; @@ -403,14 +403,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -420,7 +420,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakePostSecurityRequirementObject0SecurityIndex(FakePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md index 6aac5d89934..b79b67276cb 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeadditionalpropertieswitharrayofenums.md @@ -41,12 +41,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.FakeadditionalpropertieswitharrayofenumsGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeadditionalpropertieswitharrayofenums; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; @@ -58,17 +58,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md index f9c4edac4de..531b96a5ee1 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithfileschema.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; import org.openapijsonschematools.client.components.schemas.FileSchemaTestClass; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.FakebodywithfileschemaPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakebodywithfileschema; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md index 051ede8e0dc..62ce5e81352 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakebodywithqueryparams.md @@ -39,15 +39,15 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.FakebodywithqueryparamsPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakebodywithqueryparams; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; @@ -59,17 +59,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md index f459c6985e3..81d60e9c5d1 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakecasesensitiveparams.md @@ -41,13 +41,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.FakecasesensitiveparamsPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakecasesensitiveparams; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; @@ -59,17 +59,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md index fa2063703d7..cc6495fc943 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeclassnametest.md @@ -41,17 +41,17 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.FakeclassnametestPatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeclassnametest; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; @@ -63,14 +63,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -80,7 +80,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakeclassnametestPatchSecurityRequirementObject0SecurityIndex(FakeclassnametestPatchSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md index 5fc9ab3b73a..4e01b0caf73 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakedeletecoffeeid.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCode200Response; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakedeletecoffeeid; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md index 2662d5f5b34..c477de9e166 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakehealth.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakehealth.md @@ -39,12 +39,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakehealth.get.responses.FakehealthGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakehealth; import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; @@ -56,17 +56,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md index cb9061ea055..4cbe6ceeb28 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlineadditionalproperties.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.FakeinlineadditionalpropertiesPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeinlineadditionalproperties; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md index a76cc19fe96..fe11f7b38aa 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeinlinecomposition.md @@ -44,12 +44,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.FakeinlinecompositionPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeinlinecomposition; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; @@ -61,17 +61,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md index 067b448639d..d39ea3d3fdb 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonformdata.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.FakejsonformdataGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakejsonformdata; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md index bd7b7412d11..11c9c8955d8 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonpatch.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; import org.openapijsonschematools.client.components.schemas.JSONPatchRequest; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.FakejsonpatchPatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakejsonpatch; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md index bdba1c0a5fe..077bfa360b1 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakejsonwithcharset.md @@ -41,12 +41,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.FakejsonwithcharsetPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakejsonwithcharset; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; @@ -58,17 +58,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md index c0555215f63..f2345495f5a 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplerequestbodycontenttypes.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.FakemultiplerequestbodycontenttypesPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakemultiplerequestbodycontenttypes; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md index a47af141250..71f6ad6a82e 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultipleresponsebodies.md @@ -39,13 +39,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode200Response; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode202Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakemultipleresponsebodies; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; @@ -57,17 +57,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md index a0e4fef223a..18d875440b9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakemultiplesecurities.md @@ -39,17 +39,17 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.FakemultiplesecuritiesGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakemultiplesecurities; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; @@ -61,14 +61,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -81,7 +81,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakemultiplesecuritiesGetSecurityRequirementObject0SecurityIndex(FakemultiplesecuritiesGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md index 84cccaf5824..f7af00866a0 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeobjinquery.md @@ -40,12 +40,12 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.FakeobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeobjinquery; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; @@ -57,17 +57,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md index ecf40f190d0..bc2267b7934 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeparametercollisions1ababselfab.md @@ -43,13 +43,13 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfa import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Fakeparametercollisions1ababselfabPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeparametercollisions1ababselfab; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; @@ -61,17 +61,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md index b22d352ee63..b71cd83b0f0 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepemcontenttype.md @@ -41,12 +41,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile.ApplicationxpemfileSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.FakepemcontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakepemcontenttype; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; @@ -58,17 +58,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md index c022625d189..371650850c3 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakepetiduploadimagewithrequiredfile.md @@ -42,16 +42,16 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostRequestBody; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.FakepetiduploadimagewithrequiredfilePostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakepetiduploadimagewithrequiredfile; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; @@ -63,21 +63,21 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() .fakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0SecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md index a3914276703..58ad6cb5fd2 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakequeryparamwithjsoncontenttype.md @@ -39,13 +39,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.FakequeryparamwithjsoncontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakequeryparamwithjsoncontenttype; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; @@ -57,17 +57,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md index 91125a6783f..0d2adfb058b 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeredirection.md @@ -39,13 +39,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode303Response; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode3XXResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeredirection; import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; @@ -57,17 +57,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md index a501fbd5fc6..242cd1710c3 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefobjinquery.md @@ -40,12 +40,12 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.FakerefobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefobjinquery; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; @@ -57,17 +57,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md index 0d3a3a3f8f0..57d5832ebc0 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarraymodel.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; import org.openapijsonschematools.client.components.schemas.AnimalFarm; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.FakerefsarraymodelPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsarraymodel; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md index ae95591bf47..c4f5e5dda18 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsarrayofenums.md @@ -41,12 +41,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.FakerefsarrayofenumsPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsarrayofenums; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; @@ -58,17 +58,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md index 50adf2d55ea..08d970ada80 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsboolean.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; import org.openapijsonschematools.client.components.schemas.BooleanSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.FakerefsbooleanPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsboolean; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md index 48186a0aaa5..56fc7d18035 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefscomposedoneofnumberwithvalidations.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.FakerefscomposedoneofnumberwithvalidationsPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefscomposedoneofnumberwithvalidations; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md index 8aa0628c35a..2b6519d22b7 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsenum.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; import org.openapijsonschematools.client.components.schemas.StringEnum; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.FakerefsenumPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsenum; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md index e089d8865f2..5c5dbc63e7c 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsmammal.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; import org.openapijsonschematools.client.components.schemas.Mammal; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.FakerefsmammalPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsmammal; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md index dfa15b92659..c3269287ddb 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsnumber.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; import org.openapijsonschematools.client.components.schemas.NumberWithValidations; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.FakerefsnumberPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsnumber; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md index 611aa96a1c9..fc8472f4837 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsobjectmodelwithrefprops.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.FakerefsobjectmodelwithrefpropsPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsobjectmodelwithrefprops; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md index c52b38ded83..c7875ab8678 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakerefsstring.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; import org.openapijsonschematools.client.components.schemas.StringSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.FakerefsstringPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakerefsstring; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md index 45a9ca409fc..c2d5cfb56bc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeresponsewithoutschema.md @@ -39,12 +39,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.FakeresponsewithoutschemaGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeresponsewithoutschema; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; @@ -56,17 +56,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md index ebadd01af66..bf56283e144 100644 --- a/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md +++ b/samples/client/petstore/java/docs/apis/paths/Faketestqueryparamters.md @@ -41,13 +41,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.FaketestqueryparamtersPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Faketestqueryparamters; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; @@ -59,17 +59,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md index f0332599810..edb77f20fa0 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploaddownloadfile.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream.ApplicationoctetstreamSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.FakeuploaddownloadfilePostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeuploaddownloadfile; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md index e1913c45d1f..4df05ea0937 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfile.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.FakeuploadfilePostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeuploadfile; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md index b61e596e277..3727c05c983 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakeuploadfiles.md @@ -43,12 +43,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.FakeuploadfilesPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakeuploadfiles; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md index 0ccbb672dc4..1cc837aac8d 100644 --- a/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md +++ b/samples/client/petstore/java/docs/apis/paths/Fakewildcardresponses.md @@ -39,17 +39,17 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode1XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode200Response; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode2XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode3XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode4XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode5XXResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Fakewildcardresponses; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; @@ -61,17 +61,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Foo.md b/samples/client/petstore/java/docs/apis/paths/Foo.md index bb1406c6f4f..17405cb7e38 100644 --- a/samples/client/petstore/java/docs/apis/paths/Foo.md +++ b/samples/client/petstore/java/docs/apis/paths/Foo.md @@ -65,7 +65,7 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Pet.md b/samples/client/petstore/java/docs/apis/paths/Pet.md index f7dc2191f7b..a8b1e0367c1 100644 --- a/samples/client/petstore/java/docs/apis/paths/Pet.md +++ b/samples/client/petstore/java/docs/apis/paths/Pet.md @@ -43,20 +43,20 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; import org.openapijsonschematools.client.components.schemas.Pet; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode200Response; import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode405Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Pet; import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; @@ -68,14 +68,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -85,7 +85,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petPostSecurityRequirementObject0SecurityIndex(PetPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -194,20 +194,20 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; import org.openapijsonschematools.client.components.schemas.Pet; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode400Response; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode404Response; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode405Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Pet; import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; @@ -219,21 +219,21 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() .petPutSecurityRequirementObject0SecurityIndex(PetPutSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md index abbfd60b0ca..475c6b547b9 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbystatus.md @@ -81,7 +81,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petfindbystatusGetSecurityRequirementObject0SecurityIndex(PetfindbystatusGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md index 1dc9bc6ab00..b3273aa91ce 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md +++ b/samples/client/petstore/java/docs/apis/paths/Petfindbytags.md @@ -41,18 +41,18 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode200Response; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Petfindbytags; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; @@ -64,21 +64,21 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() .petfindbytagsGetSecurityRequirementObject0SecurityIndex(PetfindbytagsGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetid.md b/samples/client/petstore/java/docs/apis/paths/Petpetid.md index 294aa5d2698..61c95c054d6 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetid.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetid.md @@ -46,17 +46,17 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.delete.responses.PetpetidDeleteCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Petpetid; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; @@ -68,14 +68,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -85,7 +85,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidDeleteSecurityRequirementObject0SecurityIndex(PetpetidDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -162,18 +162,18 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode200Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode400Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Petpetid; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; @@ -185,14 +185,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -202,7 +202,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidGetSecurityRequirementObject0SecurityIndex(PetpetidGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -287,17 +287,17 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.post.responses.PetpetidPostCode405Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Petpetid; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; @@ -309,14 +309,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -326,7 +326,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidPostSecurityRequirementObject0SecurityIndex(PetpetidPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md index 16c4ec09f1d..67614ba784c 100644 --- a/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md +++ b/samples/client/petstore/java/docs/apis/paths/Petpetiduploadimage.md @@ -42,17 +42,17 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostRequestBody; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.PetpetiduploadimagePostCode200Response; import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Petpetiduploadimage; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; @@ -64,21 +64,21 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() .petpetiduploadimagePostSecurityRequirementObject0SecurityIndex(PetpetiduploadimagePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Solidus.md b/samples/client/petstore/java/docs/apis/paths/Solidus.md index 1059fcd1a00..4a157001b35 100644 --- a/samples/client/petstore/java/docs/apis/paths/Solidus.md +++ b/samples/client/petstore/java/docs/apis/paths/Solidus.md @@ -39,12 +39,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Solidus; import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; @@ -56,17 +56,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md index aa294221e15..c22c9ecc957 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeinventory.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeinventory.md @@ -41,16 +41,16 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.storeinventory.get.responses.StoreinventoryGetCode200Response; import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Storeinventory; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; @@ -62,14 +62,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -79,7 +79,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .storeinventoryGetSecurityRequirementObject0SecurityIndex(StoreinventoryGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorder.md b/samples/client/petstore/java/docs/apis/paths/Storeorder.md index a5f2b7ae18b..90478bd1169 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorder.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorder.md @@ -41,15 +41,15 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; import org.openapijsonschematools.client.components.schemas.Order; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode200Response; import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Storeorder; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; @@ -61,17 +61,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md index 34762a62561..e84103a8d79 100644 --- a/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md +++ b/samples/client/petstore/java/docs/apis/paths/Storeorderorderid.md @@ -43,14 +43,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode400Response; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Storeorderorderid; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; @@ -62,17 +62,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -147,15 +147,15 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode200Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode400Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Storeorderorderid; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; @@ -167,17 +167,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/User.md b/samples/client/petstore/java/docs/apis/paths/User.md index 00a200c46c4..3dd6a3600f9 100644 --- a/samples/client/petstore/java/docs/apis/paths/User.md +++ b/samples/client/petstore/java/docs/apis/paths/User.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; import org.openapijsonschematools.client.components.schemas.User; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.user.post.responses.UserPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.User; import org.openapijsonschematools.client.paths.user.post.UserPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md index 897dfbdf22b..a60a10c723e 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewitharray.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.UsercreatewitharrayPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Usercreatewitharray; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md index ca9666e3c64..e46aba02776 100644 --- a/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md +++ b/samples/client/petstore/java/docs/apis/paths/Usercreatewithlist.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.UsercreatewithlistPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Usercreatewithlist; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogin.md b/samples/client/petstore/java/docs/apis/paths/Userlogin.md index cfb92f94ba1..ea65ab6d1d8 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogin.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogin.md @@ -41,15 +41,15 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode200Response; import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Userlogin; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; @@ -61,17 +61,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Userlogout.md b/samples/client/petstore/java/docs/apis/paths/Userlogout.md index 21e4c181a58..a75e1f211ae 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userlogout.md +++ b/samples/client/petstore/java/docs/apis/paths/Userlogout.md @@ -41,12 +41,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.userlogout.get.responses.UserlogoutGetCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Userlogout; import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; @@ -58,17 +58,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/paths/Userusername.md b/samples/client/petstore/java/docs/apis/paths/Userusername.md index 43c1574beff..dc4364bd8cc 100644 --- a/samples/client/petstore/java/docs/apis/paths/Userusername.md +++ b/samples/client/petstore/java/docs/apis/paths/Userusername.md @@ -45,14 +45,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode200Response; import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Userusername; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; @@ -64,17 +64,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -150,15 +150,15 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode200Response; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode400Response; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Userusername; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; @@ -170,17 +170,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -262,16 +262,16 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode400Response; import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.paths.Userusername; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; @@ -283,17 +283,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/tags/Anotherfake.md b/samples/client/petstore/java/docs/apis/tags/Anotherfake.md index 16d6c24b381..b6f57d843bf 100644 --- a/samples/client/petstore/java/docs/apis/tags/Anotherfake.md +++ b/samples/client/petstore/java/docs/apis/tags/Anotherfake.md @@ -41,14 +41,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.AnotherfakedummyPatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Anotherfake; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; @@ -60,17 +60,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/tags/Default.md b/samples/client/petstore/java/docs/apis/tags/Default.md index 3e152801fe6..716930384b1 100644 --- a/samples/client/petstore/java/docs/apis/tags/Default.md +++ b/samples/client/petstore/java/docs/apis/tags/Default.md @@ -66,7 +66,7 @@ ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIn .fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/tags/Fake.md b/samples/client/petstore/java/docs/apis/tags/Fake.md index 2d1b48cb2d1..0ab9ed08dff 100644 --- a/samples/client/petstore/java/docs/apis/tags/Fake.md +++ b/samples/client/petstore/java/docs/apis/tags/Fake.md @@ -127,12 +127,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; import org.openapijsonschematools.client.components.schemas.JSONPatchRequest; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.FakejsonpatchPatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; @@ -144,17 +144,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -215,12 +215,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.FakerefsarrayofenumsPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; @@ -232,17 +232,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -306,13 +306,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.CommonparamsubdirDeleteCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; @@ -324,17 +324,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -406,13 +406,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.CommonparamsubdirGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; @@ -424,17 +424,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -506,13 +506,13 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.CommonparamsubdirPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; @@ -524,17 +524,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -607,13 +607,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.FakecasesensitiveparamsPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; @@ -625,17 +625,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -710,17 +710,17 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode1XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode200Response; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode2XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode3XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode4XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode5XXResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; @@ -732,17 +732,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -817,15 +817,15 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.FakebodywithqueryparamsPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; @@ -837,17 +837,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -947,12 +947,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.FakejsonwithcharsetPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; @@ -964,17 +964,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1039,12 +1039,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; import org.openapijsonschematools.client.components.schemas.AnimalFarm; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.FakerefsarraymodelPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; @@ -1056,17 +1056,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1127,12 +1127,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakehealth.get.responses.FakehealthGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; @@ -1144,17 +1144,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1219,12 +1219,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.FakerefscomposedoneofnumberwithvalidationsPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; @@ -1236,17 +1236,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1308,12 +1308,12 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.FakerefobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; @@ -1325,17 +1325,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1396,14 +1396,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; import org.openapijsonschematools.client.components.schemas.FileSchemaTestClass; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.FakebodywithfileschemaPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; @@ -1415,17 +1415,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1502,12 +1502,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; import org.openapijsonschematools.client.components.schemas.StringEnum; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.FakerefsenumPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; @@ -1519,17 +1519,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1590,13 +1590,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode303Response; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode3XXResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; @@ -1608,17 +1608,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1684,12 +1684,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.FakeuploadfilePostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; @@ -1701,17 +1701,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1777,12 +1777,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.FakeinlinecompositionPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; @@ -1794,17 +1794,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1871,17 +1871,17 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.BearerTest; import org.openapijsonschematools.client.paths.fake.delete.responses.FakeDeleteCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; @@ -1893,14 +1893,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -1910,7 +1910,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakeDeleteSecurityRequirementObject0SecurityIndex(FakeDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2008,13 +2008,13 @@ import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode200Response; import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; @@ -2026,17 +2026,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2100,14 +2100,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fake.patch.responses.FakePatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; @@ -2119,17 +2119,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2206,16 +2206,16 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fake.post.FakePostRequestBody; import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode200Response; import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; @@ -2227,14 +2227,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -2244,7 +2244,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakePostSecurityRequirementObject0SecurityIndex(FakePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2312,12 +2312,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.FakerefsobjectmodelwithrefpropsPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; @@ -2329,17 +2329,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2402,12 +2402,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile.ApplicationxpemfileSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.FakepemcontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; @@ -2419,17 +2419,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2494,12 +2494,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; import org.openapijsonschematools.client.components.schemas.NumberWithValidations; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.FakerefsnumberPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; @@ -2511,17 +2511,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2586,12 +2586,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; import org.openapijsonschematools.client.components.schemas.StringSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.FakerefsstringPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; @@ -2603,17 +2603,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2676,14 +2676,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.FakeinlineadditionalpropertiesPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; @@ -2695,17 +2695,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2778,14 +2778,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; import org.openapijsonschematools.client.components.schemas.Mammal; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.FakerefsmammalPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; @@ -2797,17 +2797,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2871,12 +2871,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; @@ -2888,17 +2888,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -2961,12 +2961,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; import org.openapijsonschematools.client.components.schemas.BooleanSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.FakerefsbooleanPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; @@ -2978,17 +2978,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -3053,12 +3053,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.FakejsonformdataGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; @@ -3070,17 +3070,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -3143,13 +3143,13 @@ import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfa import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Fakeparametercollisions1ababselfabPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; @@ -3161,17 +3161,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -3252,13 +3252,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.FakequeryparamwithjsoncontenttypeGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; @@ -3270,17 +3270,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -3352,12 +3352,12 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.FakeobjinqueryGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; @@ -3369,17 +3369,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -3438,17 +3438,17 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.FakemultiplesecuritiesGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; @@ -3460,14 +3460,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -3480,7 +3480,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakemultiplesecuritiesGetSecurityRequirementObject0SecurityIndex(FakemultiplesecuritiesGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -3545,13 +3545,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.FaketestqueryparamtersPutCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; @@ -3563,17 +3563,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -3669,13 +3669,13 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode200Response; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode202Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; @@ -3687,17 +3687,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -3763,12 +3763,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.FakeresponsewithoutschemaGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; @@ -3780,17 +3780,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -3853,12 +3853,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.FakemultiplerequestbodycontenttypesPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; @@ -3870,17 +3870,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -3943,14 +3943,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream.ApplicationoctetstreamSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.FakeuploaddownloadfilePostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; @@ -3962,17 +3962,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -4045,12 +4045,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.FakeuploadfilesPostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; @@ -4062,17 +4062,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -4135,12 +4135,12 @@ import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.FakeadditionalpropertieswitharrayofenumsGetCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; @@ -4152,17 +4152,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -4225,14 +4225,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCode200Response; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fake; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; @@ -4244,17 +4244,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md b/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md index 4e64625f44c..1fd6a698f2c 100644 --- a/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md +++ b/samples/client/petstore/java/docs/apis/tags/Fakeclassnametags123.md @@ -41,17 +41,17 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; import org.openapijsonschematools.client.components.schemas.Client; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.FakeclassnametestPatchCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Fakeclassnametags123; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; @@ -63,14 +63,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -80,7 +80,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .fakeclassnametestPatchSecurityRequirementObject0SecurityIndex(FakeclassnametestPatchSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/tags/Pet.md b/samples/client/petstore/java/docs/apis/tags/Pet.md index 6adb0caff16..b5f9db0e2f0 100644 --- a/samples/client/petstore/java/docs/apis/tags/Pet.md +++ b/samples/client/petstore/java/docs/apis/tags/Pet.md @@ -59,16 +59,16 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostRequestBody; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.FakepetiduploadimagewithrequiredfilePostCode200Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; @@ -80,21 +80,21 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() .fakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0SecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -171,20 +171,20 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; import org.openapijsonschematools.client.components.schemas.Pet; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode200Response; import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode405Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; @@ -196,14 +196,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -213,7 +213,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petPostSecurityRequirementObject0SecurityIndex(PetPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -322,20 +322,20 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; import org.openapijsonschematools.client.components.schemas.Pet; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode400Response; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode404Response; import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode405Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; @@ -347,21 +347,21 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() .petPutSecurityRequirementObject0SecurityIndex(PetPutSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -469,18 +469,18 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode200Response; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; @@ -492,21 +492,21 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() .petfindbytagsGetSecurityRequirementObject0SecurityIndex(PetfindbytagsGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -628,7 +628,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petfindbystatusGetSecurityRequirementObject0SecurityIndex(PetfindbystatusGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -711,17 +711,17 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostRequestBody; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.PetpetiduploadimagePostCode200Response; import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; @@ -733,21 +733,21 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() .petpetiduploadimagePostSecurityRequirementObject0SecurityIndex(PetpetiduploadimagePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -824,17 +824,17 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.delete.responses.PetpetidDeleteCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; @@ -846,14 +846,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -863,7 +863,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidDeleteSecurityRequirementObject0SecurityIndex(PetpetidDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -940,18 +940,18 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode200Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode400Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; @@ -963,14 +963,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -980,7 +980,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidGetSecurityRequirementObject0SecurityIndex(PetpetidGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -1065,17 +1065,17 @@ import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRequestBody; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.post.responses.PetpetidPostCode405Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Pet; import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; @@ -1087,14 +1087,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -1104,7 +1104,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .petpetidPostSecurityRequirementObject0SecurityIndex(PetpetidPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/tags/Store.md b/samples/client/petstore/java/docs/apis/tags/Store.md index c44d2258287..a66ff5ee5dd 100644 --- a/samples/client/petstore/java/docs/apis/tags/Store.md +++ b/samples/client/petstore/java/docs/apis/tags/Store.md @@ -48,16 +48,16 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.storeinventory.get.responses.StoreinventoryGetCode200Response; import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Store; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; @@ -69,14 +69,14 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); List securitySchemes = new ArrayList(); securitySchemes.add( @@ -86,7 +86,7 @@ ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.Secu .storeinventoryGetSecurityRequirementObject0SecurityIndex(StoreinventoryGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -150,14 +150,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode400Response; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Store; import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; @@ -169,17 +169,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -254,15 +254,15 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode200Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode400Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Store; import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; @@ -274,17 +274,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -366,15 +366,15 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; import org.openapijsonschematools.client.components.schemas.Order; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode200Response; import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.Store; import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; @@ -386,17 +386,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/apis/tags/User.md b/samples/client/petstore/java/docs/apis/tags/User.md index a658eabeeb5..41c9c44720c 100644 --- a/samples/client/petstore/java/docs/apis/tags/User.md +++ b/samples/client/petstore/java/docs/apis/tags/User.md @@ -56,12 +56,12 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.userlogout.get.responses.UserlogoutGetCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; @@ -73,17 +73,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -144,14 +144,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.UsercreatewitharrayPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; @@ -163,17 +163,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -284,14 +284,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; import org.openapijsonschematools.client.components.schemas.User; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.user.post.responses.UserPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.user.post.UserPostResponses; @@ -303,17 +303,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -402,15 +402,15 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode200Response; import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode400Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; @@ -422,17 +422,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -516,14 +516,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode200Response; import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; @@ -535,17 +535,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -621,15 +621,15 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode200Response; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode400Response; import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; @@ -641,17 +641,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -733,16 +733,16 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; import org.openapijsonschematools.client.components.schemas.User; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode400Response; import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode404Response; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; @@ -754,17 +754,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, @@ -866,14 +866,14 @@ import org.openapijsonschematools.client.exceptions.ApiException; import org.openapijsonschematools.client.schemas.validation.MapUtils; import org.openapijsonschematools.client.schemas.validation.FrozenList; import org.openapijsonschematools.client.schemas.validation.FrozenMap; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server1; -import org.openapijsonschematools.client.servers.Server2; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.UsercreatewithlistPostCodedefaultResponse; -import org.openapijsonschematools.client.servers.ServerInfo; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.apis.tags.User; import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; @@ -885,17 +885,17 @@ import java.util.AbstractMap; // if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() - .serverInfo( - new ServerInfo.ServerInfoBuilder() - .server0(new Server0()) + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) .build() ) .build(); ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() - .serverInfoServerIndex(ServerInfo.ServerIndex.SERVER_0) + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) .build(); Duration timeout = Duration.ofSeconds(1L); -Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator//java")); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md new file mode 100644 index 00000000000..a85eb636b4c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/AnotherfakedummyPatch.md @@ -0,0 +1,188 @@ +# AnotherfakedummyPatch + +public class AnotherfakedummyPatch + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Patch](#patch)
The class that has a patch method to call the endpoint | +| interface | [Model123TestSpecialTagsOperation](#model123testspecialtagsoperation)
The interface that has a model123TestSpecialTags method to call the endpoint | +| static class | [PatchRequest](#patchrequest)
The final request inputs class | +| static class | [PatchNullableRequest](#patchnullablerequest)
The initial request inputs class | +| static class | [Patch0RequestBuilder](#patch0requestbuilder)
A builder for the request input class | +| static class | [PatchRequestBuilder](#patchrequestbuilder)
A builder for the request input class | + +## Patch +public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
+ +a class that allows one to call the endpoint using a method named patch + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; +import org.openapijsonschematools.client.components.schemas.Client; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.AnotherfakedummyPatchCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.anotherfakedummy.AnotherfakedummyPatch; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +AnotherfakedummyPatch.Patch apiClient = new AnotherfakedummyPatch.Patch(apiConfiguration, schemaConfiguration); + + +Client1BoxedMap requestBodyPayload = + Client.Client1.validateAndBox( + new Client.ClientMapBuilder1() + .client("a") + + .build(), + schemaConfiguration +); +AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody = new AnotherfakedummyPatchRequestBody.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new AnotherfakedummyPatch.PatchRequestBuilder() + .requestBody(requestBody) + .build(); + +AnotherfakedummyPatchResponses.EndpointResponse response; +try { + response = apiClient.patch(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +AnotherfakedummyPatchResponses.EndpointAnotherfakedummyPatchCode200Response castResponse = (AnotherfakedummyPatchResponses.EndpointAnotherfakedummyPatchCode200Response) response; +AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody deserializedBody = (AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | + +## Model123TestSpecialTagsOperation +public interface Model123TestSpecialTagsOperation
+ +an interface that allows one to call the endpoint using a method named model123TestSpecialTags by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [AnotherfakedummyPatchResponses.EndpointResponse](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md#endpointresponse) | model123TestSpecialTags([PatchRequest](#patchrequest) request) | + +## PatchRequest +public static class PatchRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [AnotherfakedummyPatchRequestBody.SealedRequestBody](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PatchNullableRequest +public static class PatchNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [AnotherfakedummyPatchRequestBody.@Nullable SealedRequestBody](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Patch0RequestBuilder +public static class Patch0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Patch0RequestBuilder(Patch0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | +| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Patch0RequestBuilder](#patch0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PatchRequestBuilder +public static class PatchRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PatchRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Patch0RequestBuilder](#patch0requestbuilder) | requestBody([AnotherfakedummyPatchRequestBody.SealedRequestBody](../../paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md new file mode 100644 index 00000000000..efa5336e17e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.md @@ -0,0 +1,17 @@ +# AnotherfakedummyPatchRequestBody + +public class AnotherfakedummyPatchRequestBody extends [Client](../../../components/requestbodies/Client.md) + +A class (extended from the $ref class) that contains necessary nested request body classes +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [AnotherfakedummyPatchRequestBody.AnotherfakedummyPatchRequestBody1](#anotherfakedummypatchrequestbody1)
class that serializes request bodies | + +## AnotherfakedummyPatchRequestBody1 +public static class AnotherfakedummyPatchRequestBody1 extends [Client1](../../../components/requestbodies/Client.md#client1)
+ +a class that serializes SealedRequestBody request bodies, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md new file mode 100644 index 00000000000..b7064b938da --- /dev/null +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.md @@ -0,0 +1,29 @@ +# AnotherfakedummyPatchResponses + +public class AnotherfakedummyPatchResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointAnotherfakedummyPatchCode200Response](#endpointanotherfakedummypatchcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointAnotherfakedummyPatchCode200Response](#endpointanotherfakedummypatchcode200response) + +a sealed interface that stores endpoint responses + +## EndpointAnotherfakedummyPatchCode200Response +public record EndpointAnotherfakedummyPatchCode200Response( + HttpResponse response, + [AnotherfakedummyPatchCode200Response.SealedResponseBody](../../../paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md new file mode 100644 index 00000000000..e9a291fa5fb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.md @@ -0,0 +1,87 @@ +# AnotherfakedummyPatchCode200Response + +public class AnotherfakedummyPatchCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [AnotherfakedummyPatchCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [AnotherfakedummyPatchCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [AnotherfakedummyPatchCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [AnotherfakedummyPatchCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [AnotherfakedummyPatchCode200Response.AnotherfakedummyPatchCode200Response1](#anotherfakedummypatchcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | + +## AnotherfakedummyPatchCode200Response1 +public static class AnotherfakedummyPatchCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AnotherfakedummyPatchCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..534041524ca --- /dev/null +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Client1](../../../../../../../components/schemas/Client.md#client) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Client.Client1](../../../../../../../components/schemas/Client.md#client1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md new file mode 100644 index 00000000000..10427882962 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirDelete.md @@ -0,0 +1,189 @@ +# CommonparamsubdirDelete + +public class CommonparamsubdirDelete + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | +| interface | [DeleteCommonParamOperation](#deletecommonparamoperation)
The interface that has a deleteCommonParam method to call the endpoint | +| static class | [DeleteRequest](#deleterequest)
The final request inputs class | +| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | +| static class | [Delete0RequestBuilder](#delete0requestbuilder)
A builder for the request input class | +| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | + +## Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
+ +a class that allows one to call the endpoint using a method named delete + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.CommonparamsubdirDeleteCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirDelete; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +CommonparamsubdirDelete.Delete apiClient = new CommonparamsubdirDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters = + CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( + new CommonparamsubdirDeletePathParameters.PathParametersMapBuilder() + .subDir("c") + + .build(), + schemaConfiguration +); + +var request = new CommonparamsubdirDelete.DeleteRequestBuilder() + .pathParameters(pathParameters) + .build(); + +CommonparamsubdirDeleteResponses.EndpointResponse response; +try { + response = apiClient.delete(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response castResponse = (CommonparamsubdirDeleteResponses.EndpointCommonparamsubdirDeleteCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | + +## DeleteCommonParamOperation +public interface DeleteCommonParamOperation
+ +an interface that allows one to call the endpoint using a method named deleteCommonParam by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirDeleteResponses.EndpointResponse](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md#endpointresponse) | deleteCommonParam([DeleteRequest](#deleterequest) request) | + +## DeleteRequest +public static class DeleteRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [CommonparamsubdirDeletePathParameters.PathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#headerparametersmap) | headerParameters
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## DeleteNullableRequest +public static class DeleteNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [CommonparamsubdirDeletePathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#headerparametersmap) | headerParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Delete0RequestBuilder +public static class Delete0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete0RequestBuilder(Delete0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([CommonparamsubdirDeleteHeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | +| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## DeleteRequestBuilder +public static class DeleteRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([CommonparamsubdirDeletePathParametersPathParametersMap](../../paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md new file mode 100644 index 00000000000..a3ff40c51bc --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirGet.md @@ -0,0 +1,189 @@ +# CommonparamsubdirGet + +public class CommonparamsubdirGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [GetCommonParamOperation](#getcommonparamoperation)
The interface that has a getCommonParam method to call the endpoint | +| static class | [GetRequest](#getrequest)
The final request inputs class | +| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | +| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.CommonparamsubdirGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirGet; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +CommonparamsubdirGet.Get apiClient = new CommonparamsubdirGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +CommonparamsubdirGetPathParameters.PathParametersMap pathParameters = + CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( + new CommonparamsubdirGetPathParameters.PathParametersMapBuilder() + .subDir("a") + + .build(), + schemaConfiguration +); + +var request = new CommonparamsubdirGet.GetRequestBuilder() + .pathParameters(pathParameters) + .build(); + +CommonparamsubdirGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response castResponse = (CommonparamsubdirGetResponses.EndpointCommonparamsubdirGetCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## GetCommonParamOperation +public interface GetCommonParamOperation
+ +an interface that allows one to call the endpoint using a method named getCommonParam by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirGetResponses.EndpointResponse](../../paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md#endpointresponse) | getCommonParam([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [CommonparamsubdirGetPathParameters.PathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#queryparametersmap) | queryParameters
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetNullableRequest +public static class GetNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [CommonparamsubdirGetPathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Get0RequestBuilder +public static class Get0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([CommonparamsubdirGetQueryParametersQueryParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([CommonparamsubdirGetPathParametersPathParametersMap](../../paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md new file mode 100644 index 00000000000..f55668cf6c5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/CommonparamsubdirPost.md @@ -0,0 +1,189 @@ +# CommonparamsubdirPost + +public class CommonparamsubdirPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [PostCommonParamOperation](#postcommonparamoperation)
The interface that has a postCommonParam method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.CommonparamsubdirPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.commonparamsubdir.CommonparamsubdirPost; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +CommonparamsubdirPost.Post apiClient = new CommonparamsubdirPost.Post(apiConfiguration, schemaConfiguration); + + +// Map validation +CommonparamsubdirPostPathParameters.PathParametersMap pathParameters = + CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( + new CommonparamsubdirPostPathParameters.PathParametersMapBuilder() + .subDir("a") + + .build(), + schemaConfiguration +); + +var request = new CommonparamsubdirPost.PostRequestBuilder() + .pathParameters(pathParameters) + .build(); + +CommonparamsubdirPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response castResponse = (CommonparamsubdirPostResponses.EndpointCommonparamsubdirPostCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## PostCommonParamOperation +public interface PostCommonParamOperation
+ +an interface that allows one to call the endpoint using a method named postCommonParam by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CommonparamsubdirPostResponses.EndpointResponse](../../paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md#endpointresponse) | postCommonParam([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [CommonparamsubdirPostPathParameters.PathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#headerparametersmap) | headerParameters
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [CommonparamsubdirPostPathParameters.@Nullable PathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#pathparametersmap) | pathParameters | +| [CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#headerparametersmap) | headerParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([CommonparamsubdirPostHeaderParametersHeaderParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([CommonparamsubdirPostPathParametersPathParametersMap](../../paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md new file mode 100644 index 00000000000..c13b25baebb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.md @@ -0,0 +1,252 @@ +# CommonparamsubdirDeleteHeaderParameters +public class CommonparamsubdirDeleteHeaderParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1](#commonparamsubdirdeleteheaderparameters1)
schema class | +| static class | [CommonparamsubdirDeleteHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirDeleteHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirDeleteHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirDeleteHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | + +## CommonparamsubdirDeleteHeaderParameters1Boxed +public sealed interface CommonparamsubdirDeleteHeaderParameters1Boxed
+permits
+[CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirDeleteHeaderParameters1BoxedMap +public record CommonparamsubdirDeleteHeaderParameters1BoxedMap
+implements [CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeleteHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirDeleteHeaderParameters1 +public static class CommonparamsubdirDeleteHeaderParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +CommonparamsubdirDeleteHeaderParameters.HeaderParametersMap validatedPayload = + CommonparamsubdirDeleteHeaderParameters.CommonparamsubdirDeleteHeaderParameters1.validate( + new CommonparamsubdirDeleteHeaderParameters.HeaderParametersMapBuilder() + .someHeader("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("someHeader", [Schema0.Schema01.class](../../../paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md#schema01))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeleteHeaderParameters1BoxedMap](#commonparamsubdirdeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeleteHeaderParameters1Boxed](#commonparamsubdirdeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | someHeader(String value) | + +## HeaderParametersMap +public static class HeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | someHeader()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md new file mode 100644 index 00000000000..167225d6daf --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.md @@ -0,0 +1,269 @@ +# CommonparamsubdirDeletePathParameters +public class CommonparamsubdirDeletePathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1](#commonparamsubdirdeletepathparameters1)
schema class | +| static class | [CommonparamsubdirDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## CommonparamsubdirDeletePathParameters1Boxed +public sealed interface CommonparamsubdirDeletePathParameters1Boxed
+permits
+[CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirDeletePathParameters1BoxedMap +public record CommonparamsubdirDeletePathParameters1BoxedMap
+implements [CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirDeletePathParameters1 +public static class CommonparamsubdirDeletePathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +CommonparamsubdirDeletePathParameters.PathParametersMap validatedPayload = + CommonparamsubdirDeletePathParameters.CommonparamsubdirDeletePathParameters1.validate( + new CommonparamsubdirDeletePathParameters.PathParametersMapBuilder() + .subDir("c") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [Schema1.Schema11.class](../../../paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md#schema11))
)
| +| Set | required = Set.of(
    "subDir"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeletePathParameters1BoxedMap](#commonparamsubdirdeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirDeletePathParameters1Boxed](#commonparamsubdirdeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir([Schema1.StringSchemaEnums1](../../../paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | subDir()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md new file mode 100644 index 00000000000..955c52cfc4c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.md @@ -0,0 +1,29 @@ +# CommonparamsubdirDeleteResponses + +public class CommonparamsubdirDeleteResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointCommonparamsubdirDeleteCode200Response](#endpointcommonparamsubdirdeletecode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCommonparamsubdirDeleteCode200Response](#endpointcommonparamsubdirdeletecode200response) + +a sealed interface that stores endpoint responses + +## EndpointCommonparamsubdirDeleteCode200Response +public record EndpointCommonparamsubdirDeleteCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md new file mode 100644 index 00000000000..ef5c82182ba --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md @@ -0,0 +1,96 @@ +# Schema1 +public class Schema1
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| static class | [Schema1.Schema11](#schema11)
schema class | +| enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | + +## Schema11Boxed +public sealed interface Schema11Boxed
+permits
+[Schema11BoxedString](#schema11boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema11BoxedString +public record Schema11BoxedString
+implements [Schema11Boxed](#schema11boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema11BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema11 +public static class Schema11
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter1.Schema1; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = Schema1.Schema11.validate( + "c", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "c",
    "d"
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringSchemaEnums1](#stringschemaenums1) arg, SchemaConfiguration configuration) | +| [Schema11BoxedString](#schema11boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringSchemaEnums1 +public enum StringSchemaEnums1
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| C | value = "c" | +| D | value = "d" | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.md new file mode 100644 index 00000000000..7781a6df85d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.md @@ -0,0 +1,17 @@ +# CommonparamsubdirDeleteCode200Response + +public class CommonparamsubdirDeleteCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [CommonparamsubdirDeleteCode200Response.CommonparamsubdirDeleteCode200Response1](#commonparamsubdirdeletecode200response1)
class that deserializes responses | + +## CommonparamsubdirDeleteCode200Response1 +public static class CommonparamsubdirDeleteCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md new file mode 100644 index 00000000000..3d4e639751b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.md @@ -0,0 +1,269 @@ +# CommonparamsubdirGetPathParameters +public class CommonparamsubdirGetPathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1](#commonparamsubdirgetpathparameters1)
schema class | +| static class | [CommonparamsubdirGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## CommonparamsubdirGetPathParameters1Boxed +public sealed interface CommonparamsubdirGetPathParameters1Boxed
+permits
+[CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirGetPathParameters1BoxedMap +public record CommonparamsubdirGetPathParameters1BoxedMap
+implements [CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirGetPathParameters1 +public static class CommonparamsubdirGetPathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +CommonparamsubdirGetPathParameters.PathParametersMap validatedPayload = + CommonparamsubdirGetPathParameters.CommonparamsubdirGetPathParameters1.validate( + new CommonparamsubdirGetPathParameters.PathParametersMapBuilder() + .subDir("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [RouteParamSchema0.RouteParamSchema01.class](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#routeparamschema01))
)
| +| Set | required = Set.of(
    "subDir"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetPathParameters1BoxedMap](#commonparamsubdirgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetPathParameters1Boxed](#commonparamsubdirgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | subDir()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md new file mode 100644 index 00000000000..c2e2c4ecda1 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.md @@ -0,0 +1,252 @@ +# CommonparamsubdirGetQueryParameters +public class CommonparamsubdirGetQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1](#commonparamsubdirgetqueryparameters1)
schema class | +| static class | [CommonparamsubdirGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## CommonparamsubdirGetQueryParameters1Boxed +public sealed interface CommonparamsubdirGetQueryParameters1Boxed
+permits
+[CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirGetQueryParameters1BoxedMap +public record CommonparamsubdirGetQueryParameters1BoxedMap
+implements [CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirGetQueryParameters1 +public static class CommonparamsubdirGetQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +CommonparamsubdirGetQueryParameters.QueryParametersMap validatedPayload = + CommonparamsubdirGetQueryParameters.CommonparamsubdirGetQueryParameters1.validate( + new CommonparamsubdirGetQueryParameters.QueryParametersMapBuilder() + .searchStr("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("searchStr", [Schema0.Schema01.class](../../../paths/commonparamsubdir/get/parameters/parameter0/Schema0.md#schema01))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetQueryParameters1BoxedMap](#commonparamsubdirgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirGetQueryParameters1Boxed](#commonparamsubdirgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | searchStr(String value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | searchStr()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md new file mode 100644 index 00000000000..1341c9284d9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.md @@ -0,0 +1,29 @@ +# CommonparamsubdirGetResponses + +public class CommonparamsubdirGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointCommonparamsubdirGetCode200Response](#endpointcommonparamsubdirgetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCommonparamsubdirGetCode200Response](#endpointcommonparamsubdirgetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCommonparamsubdirGetCode200Response +public record EndpointCommonparamsubdirGetCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.md new file mode 100644 index 00000000000..11da3fc2681 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.md @@ -0,0 +1,17 @@ +# CommonparamsubdirGetCode200Response + +public class CommonparamsubdirGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [CommonparamsubdirGetCode200Response.CommonparamsubdirGetCode200Response1](#commonparamsubdirgetcode200response1)
class that deserializes responses | + +## CommonparamsubdirGetCode200Response1 +public static class CommonparamsubdirGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md new file mode 100644 index 00000000000..a21f308c2ea --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md @@ -0,0 +1,96 @@ +# RouteParamSchema0 +public class RouteParamSchema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [RouteParamSchema0.RouteParamSchema01Boxed](#routeparamschema01boxed)
sealed interface for validated payloads | +| record | [RouteParamSchema0.RouteParamSchema01BoxedString](#routeparamschema01boxedstring)
boxed class to store validated String payloads | +| static class | [RouteParamSchema0.RouteParamSchema01](#routeparamschema01)
schema class | +| enum | [RouteParamSchema0.StringRouteParamSchemaEnums0](#stringrouteparamschemaenums0)
String enum | + +## RouteParamSchema01Boxed +public sealed interface RouteParamSchema01Boxed
+permits
+[RouteParamSchema01BoxedString](#routeparamschema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## RouteParamSchema01BoxedString +public record RouteParamSchema01BoxedString
+implements [RouteParamSchema01Boxed](#routeparamschema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RouteParamSchema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## RouteParamSchema01 +public static class RouteParamSchema01
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.routeparameter0.RouteParamSchema0; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = RouteParamSchema0.RouteParamSchema01.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "a",
    "b"
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringRouteParamSchemaEnums0](#stringrouteparamschemaenums0) arg, SchemaConfiguration configuration) | +| [RouteParamSchema01BoxedString](#routeparamschema01boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [RouteParamSchema01Boxed](#routeparamschema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringRouteParamSchemaEnums0 +public enum StringRouteParamSchemaEnums0
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| A | value = "a" | +| B | value = "b" | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md new file mode 100644 index 00000000000..cc7b482a2f2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.md @@ -0,0 +1,252 @@ +# CommonparamsubdirPostHeaderParameters +public class CommonparamsubdirPostHeaderParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1](#commonparamsubdirpostheaderparameters1)
schema class | +| static class | [CommonparamsubdirPostHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirPostHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirPostHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirPostHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | + +## CommonparamsubdirPostHeaderParameters1Boxed +public sealed interface CommonparamsubdirPostHeaderParameters1Boxed
+permits
+[CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirPostHeaderParameters1BoxedMap +public record CommonparamsubdirPostHeaderParameters1BoxedMap
+implements [CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirPostHeaderParameters1 +public static class CommonparamsubdirPostHeaderParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +CommonparamsubdirPostHeaderParameters.HeaderParametersMap validatedPayload = + CommonparamsubdirPostHeaderParameters.CommonparamsubdirPostHeaderParameters1.validate( + new CommonparamsubdirPostHeaderParameters.HeaderParametersMapBuilder() + .someHeader("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("someHeader", [Schema0.Schema01.class](../../../paths/commonparamsubdir/post/parameters/parameter0/Schema0.md#schema01))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostHeaderParameters1BoxedMap](#commonparamsubdirpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostHeaderParameters1Boxed](#commonparamsubdirpostheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | someHeader(String value) | + +## HeaderParametersMap +public static class HeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | someHeader()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md new file mode 100644 index 00000000000..c07ad67929a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.md @@ -0,0 +1,269 @@ +# CommonparamsubdirPostPathParameters +public class CommonparamsubdirPostPathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1](#commonparamsubdirpostpathparameters1)
schema class | +| static class | [CommonparamsubdirPostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [CommonparamsubdirPostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [CommonparamsubdirPostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [CommonparamsubdirPostPathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## CommonparamsubdirPostPathParameters1Boxed +public sealed interface CommonparamsubdirPostPathParameters1Boxed
+permits
+[CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## CommonparamsubdirPostPathParameters1BoxedMap +public record CommonparamsubdirPostPathParameters1BoxedMap
+implements [CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CommonparamsubdirPostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## CommonparamsubdirPostPathParameters1 +public static class CommonparamsubdirPostPathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +CommonparamsubdirPostPathParameters.PathParametersMap validatedPayload = + CommonparamsubdirPostPathParameters.CommonparamsubdirPostPathParameters1.validate( + new CommonparamsubdirPostPathParameters.PathParametersMapBuilder() + .subDir("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("subDir", [RouteParamSchema0.RouteParamSchema01.class](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#routeparamschema01))
)
| +| Set | required = Set.of(
    "subDir"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostPathParameters1BoxedMap](#commonparamsubdirpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [CommonparamsubdirPostPathParameters1Boxed](#commonparamsubdirpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir(String value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | subDir([RouteParamSchema0.StringRouteParamSchemaEnums0](../../../paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md#stringrouteparamschemaenums0) value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | subDir()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md new file mode 100644 index 00000000000..2f181986105 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.md @@ -0,0 +1,29 @@ +# CommonparamsubdirPostResponses + +public class CommonparamsubdirPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointCommonparamsubdirPostCode200Response](#endpointcommonparamsubdirpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointCommonparamsubdirPostCode200Response](#endpointcommonparamsubdirpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointCommonparamsubdirPostCode200Response +public record EndpointCommonparamsubdirPostCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.md new file mode 100644 index 00000000000..56ce18a3786 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.md @@ -0,0 +1,17 @@ +# CommonparamsubdirPostCode200Response + +public class CommonparamsubdirPostCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [CommonparamsubdirPostCode200Response.CommonparamsubdirPostCode200Response1](#commonparamsubdirpostcode200response1)
class that deserializes responses | + +## CommonparamsubdirPostCode200Response1 +public static class CommonparamsubdirPostCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fake/FakeDelete.md b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md new file mode 100644 index 00000000000..49f9d408a2b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/FakeDelete.md @@ -0,0 +1,255 @@ +# FakeDelete + +public class FakeDelete + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | +| interface | [GroupParametersOperation](#groupparametersoperation)
The interface that has a groupParameters method to call the endpoint | +| static class | [DeleteRequest](#deleterequest)
The final request inputs class | +| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | +| static class | [Delete00RequestBuilder](#delete00requestbuilder)
A builder for the request input class | +| static class | [Delete01RequestBuilder](#delete01requestbuilder)
A builder for the request input class | +| static class | [Delete10RequestBuilder](#delete10requestbuilder)
A builder for the request input class | +| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | + +## Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
+ +a class that allows one to call the endpoint using a method named delete + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.BearerTest; +import org.openapijsonschematools.client.paths.fake.delete.responses.FakeDeleteCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.FakeDelete; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +securitySchemes.add( + new BearerTest("someAccessToken"); +); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .fakeDeleteSecurityRequirementObject0SecurityIndex(FakeDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeDelete.Delete apiClient = new FakeDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +FakeDeleteHeaderParameters.HeaderParametersMap headerParameters = + FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( + new FakeDeleteHeaderParameters.HeaderParametersMapBuilder() + .required_boolean_group("true") + + .boolean_group("true") + + .build(), + schemaConfiguration +); + +// Map validation +FakeDeleteQueryParameters.QueryParametersMap queryParameters = + FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( + new FakeDeleteQueryParameters.QueryParametersMapBuilder() + .required_int64_group(1L) + + .required_string_group("a") + + .int64_group(1L) + + .string_group("a") + + .build(), + schemaConfiguration +); + +var request = new FakeDelete.DeleteRequestBuilder() + .headerParameters(headerParameters) + .queryParameters(queryParameters) + .build(); + +FakeDeleteResponses.EndpointResponse response; +try { + response = apiClient.delete(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeDeleteResponses.EndpointFakeDeleteCode200Response castResponse = (FakeDeleteResponses.EndpointFakeDeleteCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | + +## GroupParametersOperation +public interface GroupParametersOperation
+ +an interface that allows one to call the endpoint using a method named groupParameters by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeDeleteResponses.EndpointResponse](../../paths/fake/delete/FakeDeleteResponses.md#endpointresponse) | groupParameters([DeleteRequest](#deleterequest) request) | + +## DeleteRequest +public static class DeleteRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeDeleteHeaderParameters.HeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) | headerParameters | +| [FakeDeleteQueryParameters.QueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## DeleteNullableRequest +public static class DeleteNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) | headerParameters | +| [FakeDeleteQueryParameters.@Nullable QueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [FakeDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Delete00RequestBuilder +public static class Delete00RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete00RequestBuilder(Delete00RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [Delete00RequestBuilder](#delete00requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete00RequestBuilder](#delete00requestbuilder) | securityIndex([FakeDeleteSecurityInfo.SecurityIndex](../../paths/fake/delete/FakeDeleteSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete00RequestBuilder](#delete00requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## Delete01RequestBuilder +public static class Delete01RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete01RequestBuilder(Delete01RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Delete00RequestBuilder](#delete00requestbuilder) | queryParameters([FakeDeleteQueryParametersQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) queryParameters)
sets the property | + +## Delete10RequestBuilder +public static class Delete10RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete10RequestBuilder(Delete10RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Delete00RequestBuilder](#delete00requestbuilder) | headerParameters([FakeDeleteHeaderParametersHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the property | + +## DeleteRequestBuilder +public static class DeleteRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Delete01RequestBuilder](#delete01requestbuilder) | headerParameters([FakeDeleteHeaderParametersHeaderParametersMap](../../paths/fake/delete/FakeDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the property | +| [Delete10RequestBuilder](#delete10requestbuilder) | queryParameters([FakeDeleteQueryParametersQueryParametersMap](../../paths/fake/delete/FakeDeleteQueryParameters.md#queryparametersmap) queryParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/FakeGet.md b/samples/client/petstore/java/docs/paths/fake/FakeGet.md new file mode 100644 index 00000000000..2504a8b4a8d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/FakeGet.md @@ -0,0 +1,156 @@ +# FakeGet + +public class FakeGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [EnumParametersOperation](#enumparametersoperation)
The interface that has a enumParameters method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; +import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; +import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; +import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode200Response; +import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.FakeGet; +import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeGet.Get apiClient = new FakeGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakeGet.GetRequestBuilder().build(); + +FakeGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (FakeGetCode404Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeGetResponses.EndpointFakeGetCode200Response castResponse = (FakeGetResponses.EndpointFakeGetCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## EnumParametersOperation +public interface EnumParametersOperation
+ +an interface that allows one to call the endpoint using a method named enumParameters by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeGetResponses.EndpointResponse](../../paths/fake/get/FakeGetResponses.md#endpointresponse) | enumParameters([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeGetRequestBody.@Nullable SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) | requestBody
optional | +| [FakeGetHeaderParameters.@Nullable HeaderParametersMap](../../paths/fake/get/FakeGetHeaderParameters.md#headerparametersmap) | headerParameters
optional | +| [FakeGetQueryParameters.@Nullable QueryParametersMap](../../paths/fake/get/FakeGetQueryParameters.md#queryparametersmap) | queryParameters
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | requestBody([FakeGetRequestBody.SealedRequestBody](../../paths/fake/get/FakeGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | headerParameters([FakeGetHeaderParametersHeaderParametersMap](../../paths/fake/get/FakeGetHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeGetQueryParametersQueryParametersMap](../../paths/fake/get/FakeGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/FakePatch.md b/samples/client/petstore/java/docs/paths/fake/FakePatch.md new file mode 100644 index 00000000000..a4b21b9a406 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/FakePatch.md @@ -0,0 +1,188 @@ +# FakePatch + +public class FakePatch + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Patch](#patch)
The class that has a patch method to call the endpoint | +| interface | [ClientModelOperation](#clientmodeloperation)
The interface that has a clientModel method to call the endpoint | +| static class | [PatchRequest](#patchrequest)
The final request inputs class | +| static class | [PatchNullableRequest](#patchnullablerequest)
The initial request inputs class | +| static class | [Patch0RequestBuilder](#patch0requestbuilder)
A builder for the request input class | +| static class | [PatchRequestBuilder](#patchrequestbuilder)
A builder for the request input class | + +## Patch +public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
+ +a class that allows one to call the endpoint using a method named patch + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; +import org.openapijsonschematools.client.components.schemas.Client; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fake.patch.responses.FakePatchCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.FakePatch; +import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakePatch.Patch apiClient = new FakePatch.Patch(apiConfiguration, schemaConfiguration); + + +Client1BoxedMap requestBodyPayload = + Client.Client1.validateAndBox( + new Client.ClientMapBuilder1() + .client("a") + + .build(), + schemaConfiguration +); +FakePatchRequestBody.SealedRequestBody requestBody = new FakePatchRequestBody.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new FakePatch.PatchRequestBuilder() + .requestBody(requestBody) + .build(); + +FakePatchResponses.EndpointResponse response; +try { + response = apiClient.patch(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakePatchResponses.EndpointFakePatchCode200Response castResponse = (FakePatchResponses.EndpointFakePatchCode200Response) response; +FakePatchCode200Response.ApplicationjsonResponseBody deserializedBody = (FakePatchCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | + +## ClientModelOperation +public interface ClientModelOperation
+ +an interface that allows one to call the endpoint using a method named clientModel by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakePatchResponses.EndpointResponse](../../paths/fake/patch/FakePatchResponses.md#endpointresponse) | clientModel([PatchRequest](#patchrequest) request) | + +## PatchRequest +public static class PatchRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakePatchRequestBody.SealedRequestBody](../../paths/fake/patch/FakePatchRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PatchNullableRequest +public static class PatchNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakePatchRequestBody.@Nullable SealedRequestBody](../../paths/fake/patch/FakePatchRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Patch0RequestBuilder +public static class Patch0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Patch0RequestBuilder(Patch0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | +| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Patch0RequestBuilder](#patch0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PatchRequestBuilder +public static class PatchRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PatchRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Patch0RequestBuilder](#patch0requestbuilder) | requestBody([FakePatchRequestBody.SealedRequestBody](../../paths/fake/patch/FakePatchRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/FakePost.md b/samples/client/petstore/java/docs/paths/fake/FakePost.md new file mode 100644 index 00000000000..e9f8e9199b1 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/FakePost.md @@ -0,0 +1,164 @@ +# FakePost + +public class FakePost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [EndpointParametersOperation](#endpointparametersoperation)
The interface that has a endpointParameters method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.FakePostRequestBody; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; +import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode200Response; +import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.FakePost; +import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +securitySchemes.add( + new HttpBasicTest("someUserId", "somePassword"); +); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .fakePostSecurityRequirementObject0SecurityIndex(FakePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakePost.Post apiClient = new FakePost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakePost.PostRequestBuilder().build(); + +FakePostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (FakePostCode404Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakePostResponses.EndpointFakePostCode200Response castResponse = (FakePostResponses.EndpointFakePostCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## EndpointParametersOperation +public interface EndpointParametersOperation
+ +an interface that allows one to call the endpoint using a method named endpointParameters by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakePostResponses.EndpointResponse](../../paths/fake/post/FakePostResponses.md#endpointresponse) | endpointParameters([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakePostRequestBody.@Nullable SealedRequestBody](../../paths/fake/post/FakePostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [FakePostSecurityInfo.@Nullable SecurityIndex](../../paths/fake/post/FakePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakePostRequestBody.SealedRequestBody](../../paths/fake/post/FakePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | securityIndex([FakePostSecurityInfo.SecurityIndex](../../paths/fake/post/FakePostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md new file mode 100644 index 00000000000..58e271594da --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteHeaderParameters.md @@ -0,0 +1,274 @@ +# FakeDeleteHeaderParameters +public class FakeDeleteHeaderParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed)
sealed interface for validated payloads | +| record | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1](#fakedeleteheaderparameters1)
schema class | +| static class | [FakeDeleteHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [FakeDeleteHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeDeleteHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeDeleteHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakeDeleteHeaderParameters1Boxed +public sealed interface FakeDeleteHeaderParameters1Boxed
+permits
+[FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeDeleteHeaderParameters1BoxedMap +public record FakeDeleteHeaderParameters1BoxedMap
+implements [FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeDeleteHeaderParameters1 +public static class FakeDeleteHeaderParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakeDeleteHeaderParameters.HeaderParametersMap validatedPayload = + FakeDeleteHeaderParameters.FakeDeleteHeaderParameters1.validate( + new FakeDeleteHeaderParameters.HeaderParametersMapBuilder() + .required_boolean_group("true") + + .boolean_group("true") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("required_boolean_group", [Schema1.Schema11.class](../../../paths/fake/delete/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("boolean_group", [Schema4.Schema41.class](../../../paths/fake/delete/parameters/parameter4/Schema4.md#schema41))
)
| +| Set | required = Set.of(
    "required_boolean_group"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteHeaderParameters1BoxedMap](#fakedeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteHeaderParameters1Boxed](#fakedeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## HeaderParametersMap0Builder +public class HeaderParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| HeaderParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [HeaderParametersMap0Builder](#headerparametersmap0builder) | boolean_group(String value) | +| [HeaderParametersMap0Builder](#headerparametersmap0builder) | boolean_group([Schema4.StringSchemaEnums4](../../../paths/fake/delete/parameters/parameter4/Schema4.md#stringschemaenums4) value) | + +## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap0Builder](#headerparametersmap0builder) | required_boolean_group(String value) | +| [HeaderParametersMap0Builder](#headerparametersmap0builder) | required_boolean_group([Schema1.StringSchemaEnums1](../../../paths/fake/delete/parameters/parameter1/Schema1.md#stringschemaenums1) value) | + +## HeaderParametersMap +public static class HeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | required_boolean_group()
| +| String | boolean_group()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md new file mode 100644 index 00000000000..393e446a18a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteQueryParameters.md @@ -0,0 +1,321 @@ +# FakeDeleteQueryParameters +public class FakeDeleteQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed)
sealed interface for validated payloads | +| record | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeDeleteQueryParameters.FakeDeleteQueryParameters1](#fakedeletequeryparameters1)
schema class | +| static class | [FakeDeleteQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakeDeleteQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakeDeleteQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeDeleteQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeDeleteQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakeDeleteQueryParameters1Boxed +public sealed interface FakeDeleteQueryParameters1Boxed
+permits
+[FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeDeleteQueryParameters1BoxedMap +public record FakeDeleteQueryParameters1BoxedMap
+implements [FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeDeleteQueryParameters1 +public static class FakeDeleteQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakeDeleteQueryParameters.QueryParametersMap validatedPayload = + FakeDeleteQueryParameters.FakeDeleteQueryParameters1.validate( + new FakeDeleteQueryParameters.QueryParametersMapBuilder() + .required_int64_group(1L) + + .required_string_group("a") + + .int64_group(1L) + + .string_group("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("required_string_group", [Schema0.Schema01.class](../../../paths/fake/delete/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("int64_group", [Schema5.Schema51.class](../../../paths/fake/delete/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("string_group", [Schema3.Schema31.class](../../../paths/fake/delete/parameters/parameter3/Schema3.md#schema31)),
    new PropertyEntry("required_int64_group", [Schema2.Schema21.class](../../../paths/fake/delete/parameters/parameter2/Schema2.md#schema21))
)
| +| Set | required = Set.of(
    "required_int64_group",
    "required_string_group"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteQueryParameters1BoxedMap](#fakedeletequeryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeDeleteQueryParameters1Boxed](#fakedeletequeryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMap00Builder +public class QueryParametersMap00Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap00Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(int value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(float value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(long value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | int64_group(double value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | string_group(String value) | + +## QueryParametersMap01Builder +public class QueryParametersMap01Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap01Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_string_group(String value) | + +## QueryParametersMap10Builder +public class QueryParametersMap10Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap10Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(int value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(float value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(long value) | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | required_int64_group(double value) | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(int value) | +| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(float value) | +| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(long value) | +| [QueryParametersMap01Builder](#queryparametersmap01builder) | required_int64_group(double value) | +| [QueryParametersMap10Builder](#queryparametersmap10builder) | required_string_group(String value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | required_int64_group()
| +| String | required_string_group()
| +| Number | int64_group()
[optional] | +| String | string_group()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md new file mode 100644 index 00000000000..f922799dc04 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteResponses.md @@ -0,0 +1,29 @@ +# FakeDeleteResponses + +public class FakeDeleteResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeDeleteCode200Response](#endpointfakedeletecode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeDeleteCode200Response](#endpointfakedeletecode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeDeleteCode200Response +public record EndpointFakeDeleteCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md new file mode 100644 index 00000000000..7c008b766c7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md @@ -0,0 +1,40 @@ +# FakeDeleteSecurityInfo +FakeDeleteSecurityInfo.java + +public class FakeDeleteSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakeDeleteSecurityInfo.FakeDeleteSecurityInfo1](#fakedeletesecurityinfo1)
SecurityRequirementObjectProvider +| enum | [FakeDeleteSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## FakeDeleteSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeDeleteSecurityRequirementObject0](../../../paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md) | security0 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md new file mode 100644 index 00000000000..8f952c2caf2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md @@ -0,0 +1,96 @@ +# Schema1 +public class Schema1
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| static class | [Schema1.Schema11](#schema11)
schema class | +| enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | + +## Schema11Boxed +public sealed interface Schema11Boxed
+permits
+[Schema11BoxedString](#schema11boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema11BoxedString +public record Schema11BoxedString
+implements [Schema11Boxed](#schema11boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema11BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema11 +public static class Schema11
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter1.Schema1; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = Schema1.Schema11.validate( + "true", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "true",
    "false"
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringSchemaEnums1](#stringschemaenums1) arg, SchemaConfiguration configuration) | +| [Schema11BoxedString](#schema11boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringSchemaEnums1 +public enum StringSchemaEnums1
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| TRUE | value = "true" | +| FALSE | value = "false" | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md new file mode 100644 index 00000000000..440bb8ca283 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter2/Schema2.md @@ -0,0 +1,49 @@ +# Schema2 +public class Schema2
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | +| record | [Schema2.Schema21BoxedNumber](#schema21boxednumber)
boxed class to store validated Number payloads | +| static class | [Schema2.Schema21](#schema21)
schema class | + +## Schema21Boxed +public sealed interface Schema21Boxed
+permits
+[Schema21BoxedNumber](#schema21boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## Schema21BoxedNumber +public record Schema21BoxedNumber
+implements [Schema21Boxed](#schema21boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema21BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema21 +public static class Schema21
+extends Int64JsonSchema.Int64JsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md new file mode 100644 index 00000000000..41d54a1d930 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter3/Schema3.md @@ -0,0 +1,49 @@ +# Schema3 +public class Schema3
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | +| record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | +| static class | [Schema3.Schema31](#schema31)
schema class | + +## Schema31Boxed +public sealed interface Schema31Boxed
+permits
+[Schema31BoxedString](#schema31boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema31BoxedString +public record Schema31BoxedString
+implements [Schema31Boxed](#schema31boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema31BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema31 +public static class Schema31
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md new file mode 100644 index 00000000000..deb5749b4c6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md @@ -0,0 +1,96 @@ +# Schema4 +public class Schema4
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | +| record | [Schema4.Schema41BoxedString](#schema41boxedstring)
boxed class to store validated String payloads | +| static class | [Schema4.Schema41](#schema41)
schema class | +| enum | [Schema4.StringSchemaEnums4](#stringschemaenums4)
String enum | + +## Schema41Boxed +public sealed interface Schema41Boxed
+permits
+[Schema41BoxedString](#schema41boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema41BoxedString +public record Schema41BoxedString
+implements [Schema41Boxed](#schema41boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema41BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema41 +public static class Schema41
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter4.Schema4; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = Schema4.Schema41.validate( + "true", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "true",
    "false"
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringSchemaEnums4](#stringschemaenums4) arg, SchemaConfiguration configuration) | +| [Schema41BoxedString](#schema41boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema41Boxed](#schema41boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringSchemaEnums4 +public enum StringSchemaEnums4
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| TRUE | value = "true" | +| FALSE | value = "false" | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md new file mode 100644 index 00000000000..9611a34edb2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter5/Schema5.md @@ -0,0 +1,49 @@ +# Schema5 +public class Schema5
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
sealed interface for validated payloads | +| record | [Schema5.Schema51BoxedNumber](#schema51boxednumber)
boxed class to store validated Number payloads | +| static class | [Schema5.Schema51](#schema51)
schema class | + +## Schema51Boxed +public sealed interface Schema51Boxed
+permits
+[Schema51BoxedNumber](#schema51boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## Schema51BoxedNumber +public record Schema51BoxedNumber
+implements [Schema51Boxed](#schema51boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema51BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema51 +public static class Schema51
+extends Int64JsonSchema.Int64JsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/delete/responses/FakeDeleteCode200Response.md b/samples/client/petstore/java/docs/paths/fake/delete/responses/FakeDeleteCode200Response.md new file mode 100644 index 00000000000..64d63ac41a4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/responses/FakeDeleteCode200Response.md @@ -0,0 +1,17 @@ +# FakeDeleteCode200Response + +public class FakeDeleteCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakeDeleteCode200Response.FakeDeleteCode200Response1](#fakedeletecode200response1)
class that deserializes responses | + +## FakeDeleteCode200Response1 +public static class FakeDeleteCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md new file mode 100644 index 00000000000..ce14db9f6b9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# FakeDeleteSecurityRequirementObject0 +FakeDeleteSecurityRequirementObject0.java + +public class FakeDeleteSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeDeleteSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [BearerTest.class](../../../../components/securityschemes/BearerTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md new file mode 100644 index 00000000000..b5ccccfd2b8 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeGetHeaderParameters.md @@ -0,0 +1,260 @@ +# FakeGetHeaderParameters +public class FakeGetHeaderParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakeGetHeaderParameters.FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed)
sealed interface for validated payloads | +| record | [FakeGetHeaderParameters.FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeGetHeaderParameters.FakeGetHeaderParameters1](#fakegetheaderparameters1)
schema class | +| static class | [FakeGetHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [FakeGetHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [FakeGetHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeGetHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeGetHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakeGetHeaderParameters1Boxed +public sealed interface FakeGetHeaderParameters1Boxed
+permits
+[FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeGetHeaderParameters1BoxedMap +public record FakeGetHeaderParameters1BoxedMap
+implements [FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeGetHeaderParameters1 +public static class FakeGetHeaderParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakeGetHeaderParameters.HeaderParametersMap validatedPayload = + FakeGetHeaderParameters.FakeGetHeaderParameters1.validate( + new FakeGetHeaderParameters.HeaderParametersMapBuilder() + .enum_header_string("_abc") + + .enum_header_string_array( + Arrays.asList( + ">" + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("enum_header_string", [Schema1.Schema11.class](../../../paths/fake/get/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("enum_header_string_array", [Schema0.Schema01.class](../../../paths/fake/get/parameters/parameter0/Schema0.md#schema01))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetHeaderParameters1BoxedMap](#fakegetheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetHeaderParameters1Boxed](#fakegetheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | enum_header_string(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | enum_header_string([Schema1.StringSchemaEnums1](../../../paths/fake/get/parameters/parameter1/Schema1.md#stringschemaenums1) value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | enum_header_string_array(List value) | + +## HeaderParametersMap +public static class HeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | enum_header_string()
[optional] | +| [Schema0.SchemaList0](../../../paths/fake/get/parameters/parameter0/Schema0.md#schemalist0) | enum_header_string_array()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md new file mode 100644 index 00000000000..0c5e4591745 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeGetQueryParameters.md @@ -0,0 +1,278 @@ +# FakeGetQueryParameters +public class FakeGetQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakeGetQueryParameters.FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed)
sealed interface for validated payloads | +| record | [FakeGetQueryParameters.FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeGetQueryParameters.FakeGetQueryParameters1](#fakegetqueryparameters1)
schema class | +| static class | [FakeGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakeGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakeGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakeGetQueryParameters1Boxed +public sealed interface FakeGetQueryParameters1Boxed
+permits
+[FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeGetQueryParameters1BoxedMap +public record FakeGetQueryParameters1BoxedMap
+implements [FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeGetQueryParameters1 +public static class FakeGetQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakeGetQueryParameters.QueryParametersMap validatedPayload = + FakeGetQueryParameters.FakeGetQueryParameters1.validate( + new FakeGetQueryParameters.QueryParametersMapBuilder() + .enum_query_double(3.14d) + + .enum_query_string("_abc") + + .enum_query_integer(1) + + .enum_query_string_array( + Arrays.asList( + ">" + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("enum_query_double", [Schema5.Schema51.class](../../../paths/fake/get/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("enum_query_string", [Schema3.Schema31.class](../../../paths/fake/get/parameters/parameter3/Schema3.md#schema31)),
    new PropertyEntry("enum_query_integer", [Schema4.Schema41.class](../../../paths/fake/get/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("enum_query_string_array", [Schema2.Schema21.class](../../../paths/fake/get/parameters/parameter2/Schema2.md#schema21))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetQueryParameters1BoxedMap](#fakegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeGetQueryParameters1Boxed](#fakegetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(int value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(float value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(long value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double(double value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double([Schema5.DoubleSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#doubleschemaenums5) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_double([Schema5.FloatSchemaEnums5](../../../paths/fake/get/parameters/parameter5/Schema5.md#floatschemaenums5) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_string(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_string([Schema3.StringSchemaEnums3](../../../paths/fake/get/parameters/parameter3/Schema3.md#stringschemaenums3) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer(int value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer(float value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.IntegerSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#integerschemaenums4) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.LongSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#longschemaenums4) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.FloatSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#floatschemaenums4) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_integer([Schema4.DoubleSchemaEnums4](../../../paths/fake/get/parameters/parameter4/Schema4.md#doubleschemaenums4) value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | enum_query_string_array(List value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | enum_query_double()
[optional] | +| String | enum_query_string()
[optional] | +| Number | enum_query_integer()
[optional] | +| [Schema2.SchemaList2](../../../paths/fake/get/parameters/parameter2/Schema2.md#schemalist2) | enum_query_string_array()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetRequestBody.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetRequestBody.md new file mode 100644 index 00000000000..3ac852200b2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeGetRequestBody.md @@ -0,0 +1,90 @@ +# FakeGetRequestBody + +public class FakeGetRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeGetRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeGetRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeGetRequestBody.FakeGetRequestBody1](#fakegetrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeGetRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeGetRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationxwwwformurlencodedMediaType +public record ApplicationxwwwformurlencodedMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakeGetRequestBody1 +public static class FakeGetRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new [ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationxwwwformurlencodedRequestBody +public record ApplicationxwwwformurlencodedRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/x-www-form-urlencoded" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/x-www-form-urlencoded" | +| ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md b/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md new file mode 100644 index 00000000000..97fb3ded3d4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/FakeGetResponses.md @@ -0,0 +1,29 @@ +# FakeGetResponses + +public class FakeGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeGetCode200Response](#endpointfakegetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeGetCode200Response](#endpointfakegetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeGetCode200Response +public record EndpointFakeGetCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..648f585218b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md @@ -0,0 +1,205 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | +| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | +| static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | +| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Items0](#items0)
schema class | +| enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedList](#schema01boxedlist) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedList +public record Schema01BoxedList
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedList([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList0](#schemalist0) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter0.Schema0; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +Schema0.SchemaList0 validatedPayload = + Schema0.Schema01.validate( + new Schema0.SchemaListBuilder0() + .add(">") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [Items0.class](#items0) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaListBuilder0 +public class SchemaListBuilder0
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder0()
Creates an empty list | +| SchemaListBuilder0(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder0 | add(String item) | +| SchemaListBuilder0 | add([StringItemsEnums0](#stringitemsenums0) item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## SchemaList0 +public class SchemaList0
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | + +## Items0Boxed +public sealed interface Items0Boxed
+permits
+[Items0BoxedString](#items0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Items0BoxedString +public record Items0BoxedString
+implements [Items0Boxed](#items0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Items0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Items0 +public static class Items0
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter0.Schema0; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = Schema0.Items0.validate( + ">", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    ">",
    "$"
)
| +| @Nullable Object | defaultValue = "$" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringItemsEnums0](#stringitemsenums0) arg, SchemaConfiguration configuration) | +| [Items0BoxedString](#items0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Items0Boxed](#items0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringItemsEnums0 +public enum StringItemsEnums0
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| GREATER_THAN_SIGN | value = ">" | +| DOLLAR_SIGN | value = "$" | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md new file mode 100644 index 00000000000..f800da764fd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md @@ -0,0 +1,98 @@ +# Schema1 +public class Schema1
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| static class | [Schema1.Schema11](#schema11)
schema class | +| enum | [Schema1.StringSchemaEnums1](#stringschemaenums1)
String enum | + +## Schema11Boxed +public sealed interface Schema11Boxed
+permits
+[Schema11BoxedString](#schema11boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema11BoxedString +public record Schema11BoxedString
+implements [Schema11Boxed](#schema11boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema11BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema11 +public static class Schema11
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter1.Schema1; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = Schema1.Schema11.validate( + "_abc", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "_abc",
    "-efg",
    "(xyz)"
)
| +| @Nullable Object | defaultValue = "-efg" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringSchemaEnums1](#stringschemaenums1) arg, SchemaConfiguration configuration) | +| [Schema11BoxedString](#schema11boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringSchemaEnums1 +public enum StringSchemaEnums1
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| LOW_LINE_ABC | value = "_abc" | +| HYPHEN_MINUS_EFG | value = "-efg" | +| LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS | value = "(xyz)" | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md new file mode 100644 index 00000000000..0d9d6f7469a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md @@ -0,0 +1,205 @@ +# Schema2 +public class Schema2
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | +| record | [Schema2.Schema21BoxedList](#schema21boxedlist)
boxed class to store validated List payloads | +| static class | [Schema2.Schema21](#schema21)
schema class | +| static class | [Schema2.SchemaListBuilder2](#schemalistbuilder2)
builder for List payloads | +| static class | [Schema2.SchemaList2](#schemalist2)
output class for List payloads | +| sealed interface | [Schema2.Items2Boxed](#items2boxed)
sealed interface for validated payloads | +| record | [Schema2.Items2BoxedString](#items2boxedstring)
boxed class to store validated String payloads | +| static class | [Schema2.Items2](#items2)
schema class | +| enum | [Schema2.StringItemsEnums2](#stringitemsenums2)
String enum | + +## Schema21Boxed +public sealed interface Schema21Boxed
+permits
+[Schema21BoxedList](#schema21boxedlist) + +sealed interface that stores validated payloads using boxed classes + +## Schema21BoxedList +public record Schema21BoxedList
+implements [Schema21Boxed](#schema21boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema21BoxedList([SchemaList2](#schemalist2) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList2](#schemalist2) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema21 +public static class Schema21
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter2.Schema2; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +Schema2.SchemaList2 validatedPayload = + Schema2.Schema21.validate( + new Schema2.SchemaListBuilder2() + .add(">") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [Items2.class](#items2) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList2](#schemalist2) | validate([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | +| [Schema21BoxedList](#schema21boxedlist) | validateAndBox([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | +| [Schema21Boxed](#schema21boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaListBuilder2 +public class SchemaListBuilder2
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder2()
Creates an empty list | +| SchemaListBuilder2(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder2 | add(String item) | +| SchemaListBuilder2 | add([StringItemsEnums2](#stringitemsenums2) item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## SchemaList2 +public class SchemaList2
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaList2](#schemalist2) | of([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | + +## Items2Boxed +public sealed interface Items2Boxed
+permits
+[Items2BoxedString](#items2boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Items2BoxedString +public record Items2BoxedString
+implements [Items2Boxed](#items2boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Items2BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Items2 +public static class Items2
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter2.Schema2; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = Schema2.Items2.validate( + ">", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    ">",
    "$"
)
| +| @Nullable Object | defaultValue = "$" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringItemsEnums2](#stringitemsenums2) arg, SchemaConfiguration configuration) | +| [Items2BoxedString](#items2boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Items2Boxed](#items2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringItemsEnums2 +public enum StringItemsEnums2
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| GREATER_THAN_SIGN | value = ">" | +| DOLLAR_SIGN | value = "$" | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md new file mode 100644 index 00000000000..8ea43fa12ea --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md @@ -0,0 +1,98 @@ +# Schema3 +public class Schema3
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | +| record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | +| static class | [Schema3.Schema31](#schema31)
schema class | +| enum | [Schema3.StringSchemaEnums3](#stringschemaenums3)
String enum | + +## Schema31Boxed +public sealed interface Schema31Boxed
+permits
+[Schema31BoxedString](#schema31boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema31BoxedString +public record Schema31BoxedString
+implements [Schema31Boxed](#schema31boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema31BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema31 +public static class Schema31
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter3.Schema3; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = Schema3.Schema31.validate( + "_abc", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "_abc",
    "-efg",
    "(xyz)"
)
| +| @Nullable Object | defaultValue = "-efg" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringSchemaEnums3](#stringschemaenums3) arg, SchemaConfiguration configuration) | +| [Schema31BoxedString](#schema31boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema31Boxed](#schema31boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringSchemaEnums3 +public enum StringSchemaEnums3
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| LOW_LINE_ABC | value = "_abc" | +| HYPHEN_MINUS_EFG | value = "-efg" | +| LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS | value = "(xyz)" | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md new file mode 100644 index 00000000000..937aae56a94 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md @@ -0,0 +1,135 @@ +# Schema4 +public class Schema4
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | +| record | [Schema4.Schema41BoxedNumber](#schema41boxednumber)
boxed class to store validated Number payloads | +| static class | [Schema4.Schema41](#schema41)
schema class | +| enum | [Schema4.IntegerSchemaEnums4](#integerschemaenums4)
Integer enum | +| enum | [Schema4.LongSchemaEnums4](#longschemaenums4)
Long enum | +| enum | [Schema4.FloatSchemaEnums4](#floatschemaenums4)
Float enum | +| enum | [Schema4.DoubleSchemaEnums4](#doubleschemaenums4)
Double enum | + +## Schema41Boxed +public sealed interface Schema41Boxed
+permits
+[Schema41BoxedNumber](#schema41boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## Schema41BoxedNumber +public record Schema41BoxedNumber
+implements [Schema41Boxed](#schema41boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema41BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema41 +public static class Schema41
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter4.Schema4; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// int validation +int validatedPayload = Schema4.Schema41.validate( + 1, + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| +| String | type = "int32"; | +| Set | enumValues = SetMaker.makeSet(
    1,
    -2
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| int | validate(int arg, SchemaConfiguration configuration) | +| [Schema41BoxedNumber](#schema41boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [Schema41Boxed](#schema41boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## IntegerSchemaEnums4 +public enum IntegerSchemaEnums4
+extends `Enum` + +A class that stores Integer enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| POSITIVE_1 | value = 1 | +| NEGATIVE_2 | value = -2 | + +## LongSchemaEnums4 +public enum LongSchemaEnums4
+extends `Enum` + +A class that stores Long enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| POSITIVE_1 | value = 1L | +| NEGATIVE_2 | value = -2L | + +## FloatSchemaEnums4 +public enum FloatSchemaEnums4
+extends `Enum` + +A class that stores Float enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| POSITIVE_1 | value = 1.0f | +| NEGATIVE_2 | value = -2.0f | + +## DoubleSchemaEnums4 +public enum DoubleSchemaEnums4
+extends `Enum` + +A class that stores Double enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| POSITIVE_1 | value = 1.0d | +| NEGATIVE_2 | value = -2.0d | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md new file mode 100644 index 00000000000..63198fed5b8 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md @@ -0,0 +1,109 @@ +# Schema5 +public class Schema5
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
sealed interface for validated payloads | +| record | [Schema5.Schema51BoxedNumber](#schema51boxednumber)
boxed class to store validated Number payloads | +| static class | [Schema5.Schema51](#schema51)
schema class | +| enum | [Schema5.DoubleSchemaEnums5](#doubleschemaenums5)
Double enum | +| enum | [Schema5.FloatSchemaEnums5](#floatschemaenums5)
Float enum | + +## Schema51Boxed +public sealed interface Schema51Boxed
+permits
+[Schema51BoxedNumber](#schema51boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## Schema51BoxedNumber +public record Schema51BoxedNumber
+implements [Schema51Boxed](#schema51boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema51BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema51 +public static class Schema51
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter5.Schema5; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// double validation +double validatedPayload = Schema5.Schema51.validate( + 3.14d, + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| +| String | type = "double"; | +| Set | enumValues = SetMaker.makeSet(
    1.1,
    -1.2
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| double | validate(double arg, SchemaConfiguration configuration) | +| [Schema51BoxedNumber](#schema51boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [Schema51Boxed](#schema51boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## DoubleSchemaEnums5 +public enum DoubleSchemaEnums5
+extends `Enum` + +A class that stores Double enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| POSITIVE_1_PT_1 | value = 1.1d | +| NEGATIVE_1_PT_2 | value = -1.2d | + +## FloatSchemaEnums5 +public enum FloatSchemaEnums5
+extends `Enum` + +A class that stores Float enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| POSITIVE_1_PT_1 | value = 1.1f | +| NEGATIVE_1_PT_2 | value = -1.2f | diff --git a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md new file mode 100644 index 00000000000..d84853fb4ea --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -0,0 +1,422 @@ +# ApplicationxwwwformurlencodedSchema +public class ApplicationxwwwformurlencodedSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormString](#applicationxwwwformurlencodedenumformstring)
schema class | +| enum | [ApplicationxwwwformurlencodedSchema.StringApplicationxwwwformurlencodedEnumFormStringEnums](#stringapplicationxwwwformurlencodedenumformstringenums)
String enum | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist)
boxed class to store validated List payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArray](#applicationxwwwformurlencodedenumformstringarray)
schema class | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder](#applicationxwwwformurlencodedenumformstringarraylistbuilder)
builder for List payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist)
output class for List payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItems](#applicationxwwwformurlencodeditems)
schema class | +| enum | [ApplicationxwwwformurlencodedSchema.StringApplicationxwwwformurlencodedItemsEnums](#stringapplicationxwwwformurlencodeditemsenums)
String enum | + +## ApplicationxwwwformurlencodedSchema1Boxed +public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
+permits
+[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedSchema1BoxedMap +public record ApplicationxwwwformurlencodedSchema1BoxedMap
+implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedSchema1 +public static class ApplicationxwwwformurlencodedSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = + ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.validate( + new ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder() + .enum_form_string_array( + Arrays.asList( + ">" + ) + ) + .enum_form_string("_abc") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("enum_form_string_array", [ApplicationxwwwformurlencodedEnumFormStringArray.class](#applicationxwwwformurlencodedenumformstringarray))),
    new PropertyEntry("enum_form_string", [ApplicationxwwwformurlencodedEnumFormString.class](#applicationxwwwformurlencodedenumformstring)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedSchemaMapBuilder +public class ApplicationxwwwformurlencodedSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | enum_form_string_array(List value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | enum_form_string(String value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | enum_form_string([StringApplicationxwwwformurlencodedEnumFormStringEnums](#stringapplicationxwwwformurlencodedenumformstringenums) value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, Void value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, boolean value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, String value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, int value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, float value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, long value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, double value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, List value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, Map value) | + +## ApplicationxwwwformurlencodedSchemaMap +public static class ApplicationxwwwformurlencodedSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | of([Map](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | enum_form_string_array()
[optional] | +| String | enum_form_string()
[optional] must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## ApplicationxwwwformurlencodedEnumFormStringBoxed +public sealed interface ApplicationxwwwformurlencodedEnumFormStringBoxed
+permits
+[ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedEnumFormStringBoxedString +public record ApplicationxwwwformurlencodedEnumFormStringBoxedString
+implements [ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedEnumFormStringBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedEnumFormString +public static class ApplicationxwwwformurlencodedEnumFormString
+extends JsonSchema + +A schema class that validates payloads + +## Description +Form parameter enum test (string) + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormString.validate( + "_abc", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "_abc",
    "-efg",
    "(xyz)"
)
| +| @Nullable Object | defaultValue = "-efg" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringApplicationxwwwformurlencodedEnumFormStringEnums](#stringapplicationxwwwformurlencodedenumformstringenums) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedEnumFormStringBoxedString](#applicationxwwwformurlencodedenumformstringboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedEnumFormStringBoxed](#applicationxwwwformurlencodedenumformstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringApplicationxwwwformurlencodedEnumFormStringEnums +public enum StringApplicationxwwwformurlencodedEnumFormStringEnums
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| LOW_LINE_ABC | value = "_abc" | +| HYPHEN_MINUS_EFG | value = "-efg" | +| LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS | value = "(xyz)" | + +## ApplicationxwwwformurlencodedEnumFormStringArrayBoxed +public sealed interface ApplicationxwwwformurlencodedEnumFormStringArrayBoxed
+permits
+[ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList +public record ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList
+implements [ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList([ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedEnumFormStringArray +public static class ApplicationxwwwformurlencodedEnumFormStringArray
+extends JsonSchema + +A schema class that validates payloads + +## Description +Form parameter enum test (string array) + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayList validatedPayload = + ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArray.validate( + new ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder() + .add(">") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [ApplicationxwwwformurlencodedItems.class](#applicationxwwwformurlencodeditems) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | validate([List](#applicationxwwwformurlencodedenumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList](#applicationxwwwformurlencodedenumformstringarrayboxedlist) | validateAndBox([List](#applicationxwwwformurlencodedenumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedEnumFormStringArrayBoxed](#applicationxwwwformurlencodedenumformstringarrayboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder +public class ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder()
Creates an empty list | +| ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder | add(String item) | +| ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder | add([StringApplicationxwwwformurlencodedItemsEnums](#stringapplicationxwwwformurlencodeditemsenums) item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## ApplicationxwwwformurlencodedEnumFormStringArrayList +public class ApplicationxwwwformurlencodedEnumFormStringArrayList
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [ApplicationxwwwformurlencodedEnumFormStringArrayList](#applicationxwwwformurlencodedenumformstringarraylist) | of([List](#applicationxwwwformurlencodedenumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedItemsBoxed +public sealed interface ApplicationxwwwformurlencodedItemsBoxed
+permits
+[ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedItemsBoxedString +public record ApplicationxwwwformurlencodedItemsBoxedString
+implements [ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedItemsBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedItems +public static class ApplicationxwwwformurlencodedItems
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItems.validate( + ">", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    ">",
    "$"
)
| +| @Nullable Object | defaultValue = "$" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringApplicationxwwwformurlencodedItemsEnums](#stringapplicationxwwwformurlencodeditemsenums) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedItemsBoxedString](#applicationxwwwformurlencodeditemsboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedItemsBoxed](#applicationxwwwformurlencodeditemsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringApplicationxwwwformurlencodedItemsEnums +public enum StringApplicationxwwwformurlencodedItemsEnums
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| GREATER_THAN_SIGN | value = ">" | +| DOLLAR_SIGN | value = "$" | diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode200Response.md b/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode200Response.md new file mode 100644 index 00000000000..e22d671a474 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode200Response.md @@ -0,0 +1,17 @@ +# FakeGetCode200Response + +public class FakeGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakeGetCode200Response.FakeGetCode200Response1](#fakegetcode200response1)
class that deserializes responses | + +## FakeGetCode200Response1 +public static class FakeGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md b/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md new file mode 100644 index 00000000000..2bfdf12aa75 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/FakeGetCode404Response.md @@ -0,0 +1,87 @@ +# FakeGetCode404Response + +public class FakeGetCode404Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeGetCode404Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeGetCode404Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakeGetCode404Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakeGetCode404Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakeGetCode404Response.FakeGetCode404Response1](#fakegetcode404response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.MapJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.MapJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakeGetCode404Response1 +public static class FakeGetCode404Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeGetCode404Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..3ce84c1630e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,49 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends MapJsonSchema.MapJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.MapJsonSchema.MapJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fake/patch/FakePatchRequestBody.md b/samples/client/petstore/java/docs/paths/fake/patch/FakePatchRequestBody.md new file mode 100644 index 00000000000..3f33af4fba5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/patch/FakePatchRequestBody.md @@ -0,0 +1,17 @@ +# FakePatchRequestBody + +public class FakePatchRequestBody extends [Client](../../../components/requestbodies/Client.md) + +A class (extended from the $ref class) that contains necessary nested request body classes +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakePatchRequestBody.FakePatchRequestBody1](#fakepatchrequestbody1)
class that serializes request bodies | + +## FakePatchRequestBody1 +public static class FakePatchRequestBody1 extends [Client1](../../../components/requestbodies/Client.md#client1)
+ +a class that serializes SealedRequestBody request bodies, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md b/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md new file mode 100644 index 00000000000..82fcf7cfd43 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/patch/FakePatchResponses.md @@ -0,0 +1,29 @@ +# FakePatchResponses + +public class FakePatchResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakePatchCode200Response](#endpointfakepatchcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakePatchCode200Response](#endpointfakepatchcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakePatchCode200Response +public record EndpointFakePatchCode200Response( + HttpResponse response, + [FakePatchCode200Response.SealedResponseBody](../../../paths/fake/patch/responses/FakePatchCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md new file mode 100644 index 00000000000..15e710e9dbb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/patch/responses/FakePatchCode200Response.md @@ -0,0 +1,87 @@ +# FakePatchCode200Response + +public class FakePatchCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakePatchCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakePatchCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakePatchCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakePatchCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakePatchCode200Response.FakePatchCode200Response1](#fakepatchcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | + +## FakePatchCode200Response1 +public static class FakePatchCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakePatchCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..534041524ca --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Client1](../../../../../../../components/schemas/Client.md#client) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Client.Client1](../../../../../../../components/schemas/Client.md#client1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/post/FakePostRequestBody.md b/samples/client/petstore/java/docs/paths/fake/post/FakePostRequestBody.md new file mode 100644 index 00000000000..4cb4e7994be --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/post/FakePostRequestBody.md @@ -0,0 +1,90 @@ +# FakePostRequestBody + +public class FakePostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakePostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakePostRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakePostRequestBody.FakePostRequestBody1](#fakepostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakePostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakePostRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationxwwwformurlencodedMediaType +public record ApplicationxwwwformurlencodedMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakePostRequestBody1 +public static class FakePostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakePostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new [ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationxwwwformurlencodedRequestBody +public record ApplicationxwwwformurlencodedRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/x-www-form-urlencoded" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/x-www-form-urlencoded" | +| ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md b/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md new file mode 100644 index 00000000000..a5bb926cd94 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/post/FakePostResponses.md @@ -0,0 +1,29 @@ +# FakePostResponses + +public class FakePostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakePostCode200Response](#endpointfakepostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakePostCode200Response](#endpointfakepostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakePostCode200Response +public record EndpointFakePostCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md b/samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md new file mode 100644 index 00000000000..0166862a304 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md @@ -0,0 +1,40 @@ +# FakePostSecurityInfo +FakePostSecurityInfo.java + +public class FakePostSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakePostSecurityInfo.FakePostSecurityInfo1](#fakepostsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [FakePostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## FakePostSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakePostSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakePostSecurityRequirementObject0](../../../paths/fake/post/security/FakePostSecurityRequirementObject0.md) | security0 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md new file mode 100644 index 00000000000..5075ea7d3c7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -0,0 +1,1331 @@ +# ApplicationxwwwformurlencodedSchema +public class ApplicationxwwwformurlencodedSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallbackBoxedString](#applicationxwwwformurlencodedcallbackboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedCallback](#applicationxwwwformurlencodedcallback)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPassword](#applicationxwwwformurlencodedpassword)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTime](#applicationxwwwformurlencodeddatetime)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateBoxedString](#applicationxwwwformurlencodeddateboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDate](#applicationxwwwformurlencodeddate)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedBinaryBoxed](#applicationxwwwformurlencodedbinaryboxed)
sealed interface for validated payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedBinary](#applicationxwwwformurlencodedbinary)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByteBoxedString](#applicationxwwwformurlencodedbyteboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedByte](#applicationxwwwformurlencodedbyte)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiter](#applicationxwwwformurlencodedpatternwithoutdelimiter)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedString](#applicationxwwwformurlencodedstring)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber)
boxed class to store validated Number payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDouble](#applicationxwwwformurlencodeddouble)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber)
boxed class to store validated Number payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloat](#applicationxwwwformurlencodedfloat)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber)
boxed class to store validated Number payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumber](#applicationxwwwformurlencodednumber)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64BoxedNumber](#applicationxwwwformurlencodedint64boxednumber)
boxed class to store validated Number payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt64](#applicationxwwwformurlencodedint64)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber)
boxed class to store validated Number payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32](#applicationxwwwformurlencodedint32)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber)
boxed class to store validated Number payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInteger](#applicationxwwwformurlencodedinteger)
schema class | + +## ApplicationxwwwformurlencodedSchema1Boxed +public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
+permits
+[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedSchema1BoxedMap +public record ApplicationxwwwformurlencodedSchema1BoxedMap
+implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedSchema1 +public static class ApplicationxwwwformurlencodedSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = + ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.validate( + new ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder() + .setByte("a") + + .setDouble(3.14d) + + .setNumber(1) + + .pattern_without_delimiter("AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>") + + .setInteger(1) + + .int32(1) + + .int64(1L) + + .setFloat(3.14f) + + .setString("A") + + .binary("a") + + .date("2020-12-13") + + .dateTime("1970-01-01T00:00:00.00Z") + + .password("a") + + .callback("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("integer", [ApplicationxwwwformurlencodedInteger.class](#applicationxwwwformurlencodedinteger))),
    new PropertyEntry("int32", [ApplicationxwwwformurlencodedInt32.class](#applicationxwwwformurlencodedint32))),
    new PropertyEntry("int64", [ApplicationxwwwformurlencodedInt64.class](#applicationxwwwformurlencodedint64))),
    new PropertyEntry("number", [ApplicationxwwwformurlencodedNumber.class](#applicationxwwwformurlencodednumber))),
    new PropertyEntry("float", [ApplicationxwwwformurlencodedFloat.class](#applicationxwwwformurlencodedfloat))),
    new PropertyEntry("double", [ApplicationxwwwformurlencodedDouble.class](#applicationxwwwformurlencodeddouble))),
    new PropertyEntry("string", [ApplicationxwwwformurlencodedString.class](#applicationxwwwformurlencodedstring))),
    new PropertyEntry("pattern_without_delimiter", [ApplicationxwwwformurlencodedPatternWithoutDelimiter.class](#applicationxwwwformurlencodedpatternwithoutdelimiter))),
    new PropertyEntry("byte", [ApplicationxwwwformurlencodedByte.class](#applicationxwwwformurlencodedbyte))),
    new PropertyEntry("binary", [ApplicationxwwwformurlencodedBinary.class](#applicationxwwwformurlencodedbinary))),
    new PropertyEntry("date", [ApplicationxwwwformurlencodedDate.class](#applicationxwwwformurlencodeddate))),
    new PropertyEntry("dateTime", [ApplicationxwwwformurlencodedDateTime.class](#applicationxwwwformurlencodeddatetime))),
    new PropertyEntry("password", [ApplicationxwwwformurlencodedPassword.class](#applicationxwwwformurlencodedpassword))),
    new PropertyEntry("callback", [ApplicationxwwwformurlencodedCallback.class](#applicationxwwwformurlencodedcallback)))
)
| +| Set | required = Set.of(
    "byte",
    "double",
    "number",
    "pattern_without_delimiter"
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedSchemaMap0000Builder +public class ApplicationxwwwformurlencodedSchemaMap0000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap0000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setInteger(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setInteger(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setInteger(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setInteger(double value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int32(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int32(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int64(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int64(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int64(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | int64(double value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setFloat(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setFloat(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setFloat(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setFloat(double value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setString(String value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | binary(String value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | date(String value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | dateTime(String value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | password(String value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | callback(String value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, Void value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, boolean value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, String value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, int value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, float value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, long value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, double value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, List value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | additionalProperty(String key, Map value) | + +## ApplicationxwwwformurlencodedSchemaMap0001Builder +public class ApplicationxwwwformurlencodedSchemaMap0001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap0001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | pattern_without_delimiter(String value) | + +## ApplicationxwwwformurlencodedSchemaMap0010Builder +public class ApplicationxwwwformurlencodedSchemaMap0010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap0010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setNumber(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setNumber(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setNumber(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setNumber(double value) | + +## ApplicationxwwwformurlencodedSchemaMap0011Builder +public class ApplicationxwwwformurlencodedSchemaMap0011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap0011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setNumber(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setNumber(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setNumber(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setNumber(double value) | +| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | pattern_without_delimiter(String value) | + +## ApplicationxwwwformurlencodedSchemaMap0100Builder +public class ApplicationxwwwformurlencodedSchemaMap0100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap0100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setDouble(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setDouble(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setDouble(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setDouble(double value) | + +## ApplicationxwwwformurlencodedSchemaMap0101Builder +public class ApplicationxwwwformurlencodedSchemaMap0101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap0101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setDouble(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setDouble(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setDouble(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setDouble(double value) | +| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | pattern_without_delimiter(String value) | + +## ApplicationxwwwformurlencodedSchemaMap0110Builder +public class ApplicationxwwwformurlencodedSchemaMap0110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap0110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | setDouble(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | setDouble(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | setDouble(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | setDouble(double value) | +| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | setNumber(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | setNumber(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | setNumber(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | setNumber(double value) | + +## ApplicationxwwwformurlencodedSchemaMap0111Builder +public class ApplicationxwwwformurlencodedSchemaMap0111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap0111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0011Builder](#applicationxwwwformurlencodedschemamap0011builder) | setDouble(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0011Builder](#applicationxwwwformurlencodedschemamap0011builder) | setDouble(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0011Builder](#applicationxwwwformurlencodedschemamap0011builder) | setDouble(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0011Builder](#applicationxwwwformurlencodedschemamap0011builder) | setDouble(double value) | +| [ApplicationxwwwformurlencodedSchemaMap0101Builder](#applicationxwwwformurlencodedschemamap0101builder) | setNumber(int value) | +| [ApplicationxwwwformurlencodedSchemaMap0101Builder](#applicationxwwwformurlencodedschemamap0101builder) | setNumber(float value) | +| [ApplicationxwwwformurlencodedSchemaMap0101Builder](#applicationxwwwformurlencodedschemamap0101builder) | setNumber(long value) | +| [ApplicationxwwwformurlencodedSchemaMap0101Builder](#applicationxwwwformurlencodedschemamap0101builder) | setNumber(double value) | +| [ApplicationxwwwformurlencodedSchemaMap0110Builder](#applicationxwwwformurlencodedschemamap0110builder) | pattern_without_delimiter(String value) | + +## ApplicationxwwwformurlencodedSchemaMap1000Builder +public class ApplicationxwwwformurlencodedSchemaMap1000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap1000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0000Builder](#applicationxwwwformurlencodedschemamap0000builder) | setByte(String value) | + +## ApplicationxwwwformurlencodedSchemaMap1001Builder +public class ApplicationxwwwformurlencodedSchemaMap1001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap1001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0001Builder](#applicationxwwwformurlencodedschemamap0001builder) | setByte(String value) | +| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | pattern_without_delimiter(String value) | + +## ApplicationxwwwformurlencodedSchemaMap1010Builder +public class ApplicationxwwwformurlencodedSchemaMap1010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap1010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0010Builder](#applicationxwwwformurlencodedschemamap0010builder) | setByte(String value) | +| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setNumber(int value) | +| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setNumber(float value) | +| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setNumber(long value) | +| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setNumber(double value) | + +## ApplicationxwwwformurlencodedSchemaMap1011Builder +public class ApplicationxwwwformurlencodedSchemaMap1011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap1011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0011Builder](#applicationxwwwformurlencodedschemamap0011builder) | setByte(String value) | +| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setNumber(int value) | +| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setNumber(float value) | +| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setNumber(long value) | +| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setNumber(double value) | +| [ApplicationxwwwformurlencodedSchemaMap1010Builder](#applicationxwwwformurlencodedschemamap1010builder) | pattern_without_delimiter(String value) | + +## ApplicationxwwwformurlencodedSchemaMap1100Builder +public class ApplicationxwwwformurlencodedSchemaMap1100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap1100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0100Builder](#applicationxwwwformurlencodedschemamap0100builder) | setByte(String value) | +| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setDouble(int value) | +| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setDouble(float value) | +| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setDouble(long value) | +| [ApplicationxwwwformurlencodedSchemaMap1000Builder](#applicationxwwwformurlencodedschemamap1000builder) | setDouble(double value) | + +## ApplicationxwwwformurlencodedSchemaMap1101Builder +public class ApplicationxwwwformurlencodedSchemaMap1101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap1101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0101Builder](#applicationxwwwformurlencodedschemamap0101builder) | setByte(String value) | +| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setDouble(int value) | +| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setDouble(float value) | +| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setDouble(long value) | +| [ApplicationxwwwformurlencodedSchemaMap1001Builder](#applicationxwwwformurlencodedschemamap1001builder) | setDouble(double value) | +| [ApplicationxwwwformurlencodedSchemaMap1100Builder](#applicationxwwwformurlencodedschemamap1100builder) | pattern_without_delimiter(String value) | + +## ApplicationxwwwformurlencodedSchemaMap1110Builder +public class ApplicationxwwwformurlencodedSchemaMap1110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap1110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0110Builder](#applicationxwwwformurlencodedschemamap0110builder) | setByte(String value) | +| [ApplicationxwwwformurlencodedSchemaMap1010Builder](#applicationxwwwformurlencodedschemamap1010builder) | setDouble(int value) | +| [ApplicationxwwwformurlencodedSchemaMap1010Builder](#applicationxwwwformurlencodedschemamap1010builder) | setDouble(float value) | +| [ApplicationxwwwformurlencodedSchemaMap1010Builder](#applicationxwwwformurlencodedschemamap1010builder) | setDouble(long value) | +| [ApplicationxwwwformurlencodedSchemaMap1010Builder](#applicationxwwwformurlencodedschemamap1010builder) | setDouble(double value) | +| [ApplicationxwwwformurlencodedSchemaMap1100Builder](#applicationxwwwformurlencodedschemamap1100builder) | setNumber(int value) | +| [ApplicationxwwwformurlencodedSchemaMap1100Builder](#applicationxwwwformurlencodedschemamap1100builder) | setNumber(float value) | +| [ApplicationxwwwformurlencodedSchemaMap1100Builder](#applicationxwwwformurlencodedschemamap1100builder) | setNumber(long value) | +| [ApplicationxwwwformurlencodedSchemaMap1100Builder](#applicationxwwwformurlencodedschemamap1100builder) | setNumber(double value) | + +## ApplicationxwwwformurlencodedSchemaMapBuilder +public class ApplicationxwwwformurlencodedSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap0111Builder](#applicationxwwwformurlencodedschemamap0111builder) | setByte(String value) | +| [ApplicationxwwwformurlencodedSchemaMap1011Builder](#applicationxwwwformurlencodedschemamap1011builder) | setDouble(int value) | +| [ApplicationxwwwformurlencodedSchemaMap1011Builder](#applicationxwwwformurlencodedschemamap1011builder) | setDouble(float value) | +| [ApplicationxwwwformurlencodedSchemaMap1011Builder](#applicationxwwwformurlencodedschemamap1011builder) | setDouble(long value) | +| [ApplicationxwwwformurlencodedSchemaMap1011Builder](#applicationxwwwformurlencodedschemamap1011builder) | setDouble(double value) | +| [ApplicationxwwwformurlencodedSchemaMap1101Builder](#applicationxwwwformurlencodedschemamap1101builder) | setNumber(int value) | +| [ApplicationxwwwformurlencodedSchemaMap1101Builder](#applicationxwwwformurlencodedschemamap1101builder) | setNumber(float value) | +| [ApplicationxwwwformurlencodedSchemaMap1101Builder](#applicationxwwwformurlencodedschemamap1101builder) | setNumber(long value) | +| [ApplicationxwwwformurlencodedSchemaMap1101Builder](#applicationxwwwformurlencodedschemamap1101builder) | setNumber(double value) | +| [ApplicationxwwwformurlencodedSchemaMap1110Builder](#applicationxwwwformurlencodedschemamap1110builder) | pattern_without_delimiter(String value) | + +## ApplicationxwwwformurlencodedSchemaMap +public static class ApplicationxwwwformurlencodedSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | of([Map](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| String | pattern_without_delimiter()
| +| Number | int32()
[optional] value must be a 32 bit integer | +| Number | int64()
[optional] value must be a 64 bit integer | +| String | binary()
[optional] | +| String | date()
[optional] value must conform to RFC-3339 full-date YYYY-MM-DD | +| String | dateTime()
[optional] if omitted the server will use the default value of 2010-02-01T10:20:10.111110+01:00 value must conform to RFC-3339 date-time | +| String | password()
[optional] | +| String | callback()
[optional] | +| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["byte"], instance["double"], instance["number"], instance["integer"], instance["float"], instance["string"], | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## ApplicationxwwwformurlencodedCallbackBoxed +public sealed interface ApplicationxwwwformurlencodedCallbackBoxed
+permits
+[ApplicationxwwwformurlencodedCallbackBoxedString](#applicationxwwwformurlencodedcallbackboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedCallbackBoxedString +public record ApplicationxwwwformurlencodedCallbackBoxedString
+implements [ApplicationxwwwformurlencodedCallbackBoxed](#applicationxwwwformurlencodedcallbackboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedCallbackBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedCallback +public static class ApplicationxwwwformurlencodedCallback
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +## Description +None + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | + +## ApplicationxwwwformurlencodedPasswordBoxed +public sealed interface ApplicationxwwwformurlencodedPasswordBoxed
+permits
+[ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedPasswordBoxedString +public record ApplicationxwwwformurlencodedPasswordBoxedString
+implements [ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedPasswordBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedPassword +public static class ApplicationxwwwformurlencodedPassword
+extends JsonSchema + +A schema class that validates payloads + +## Description +None + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPassword.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| String | type = "password"; | +| Integer | maxLength = 64 | +| Integer | minLength = 10 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedPasswordBoxedString](#applicationxwwwformurlencodedpasswordboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedPasswordBoxed](#applicationxwwwformurlencodedpasswordboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedDateTimeBoxed +public sealed interface ApplicationxwwwformurlencodedDateTimeBoxed
+permits
+[ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedDateTimeBoxedString +public record ApplicationxwwwformurlencodedDateTimeBoxedString
+implements [ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedDateTimeBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedDateTime +public static class ApplicationxwwwformurlencodedDateTime
+extends JsonSchema + +A schema class that validates payloads + +## Description +None + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTime.validate( + "1970-01-01T00:00:00.00Z", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| String | type = "date-time"; | +| @Nullable Object | defaultValue = "2010-02-01T10:20:10.111110+01:00" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedDateTimeBoxedString](#applicationxwwwformurlencodeddatetimeboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedDateTimeBoxed](#applicationxwwwformurlencodeddatetimeboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedDateBoxed +public sealed interface ApplicationxwwwformurlencodedDateBoxed
+permits
+[ApplicationxwwwformurlencodedDateBoxedString](#applicationxwwwformurlencodeddateboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedDateBoxedString +public record ApplicationxwwwformurlencodedDateBoxedString
+implements [ApplicationxwwwformurlencodedDateBoxed](#applicationxwwwformurlencodeddateboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedDateBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedDate +public static class ApplicationxwwwformurlencodedDate
+extends DateJsonSchema.DateJsonSchema1 + +A schema class that validates payloads + +## Description +None + +| Methods Inherited from class org.openapijsonschematools.client.schemas.DateJsonSchema.DateJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | + +## ApplicationxwwwformurlencodedBinaryBoxed +public sealed interface ApplicationxwwwformurlencodedBinaryBoxed
+permits
+ +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedBinary +public static class ApplicationxwwwformurlencodedBinary
+extends JsonSchema + +A schema class that validates payloads + +## Description +None + +## ApplicationxwwwformurlencodedByteBoxed +public sealed interface ApplicationxwwwformurlencodedByteBoxed
+permits
+[ApplicationxwwwformurlencodedByteBoxedString](#applicationxwwwformurlencodedbyteboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedByteBoxedString +public record ApplicationxwwwformurlencodedByteBoxedString
+implements [ApplicationxwwwformurlencodedByteBoxed](#applicationxwwwformurlencodedbyteboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedByteBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedByte +public static class ApplicationxwwwformurlencodedByte
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +## Description +None + +## ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed +public sealed interface ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed
+permits
+[ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString +public record ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString
+implements [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedPatternWithoutDelimiter +public static class ApplicationxwwwformurlencodedPatternWithoutDelimiter
+extends JsonSchema + +A schema class that validates payloads + +## Description +None + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiter.validate( + "AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Pattern | pattern = Pattern.compile(
    "^[A-Z].*"
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString](#applicationxwwwformurlencodedpatternwithoutdelimiterboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed](#applicationxwwwformurlencodedpatternwithoutdelimiterboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedStringBoxed +public sealed interface ApplicationxwwwformurlencodedStringBoxed
+permits
+[ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedStringBoxedString +public record ApplicationxwwwformurlencodedStringBoxedString
+implements [ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedStringBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedString +public static class ApplicationxwwwformurlencodedString
+extends JsonSchema + +A schema class that validates payloads + +## Description +None + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedString.validate( + "A", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Pattern | pattern = Pattern.compile(
    "[a-z]",
    Pattern.CASE_INSENSITIVE
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedStringBoxedString](#applicationxwwwformurlencodedstringboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedStringBoxed](#applicationxwwwformurlencodedstringboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedDoubleBoxed +public sealed interface ApplicationxwwwformurlencodedDoubleBoxed
+permits
+[ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedDoubleBoxedNumber +public record ApplicationxwwwformurlencodedDoubleBoxedNumber
+implements [ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedDoubleBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedDouble +public static class ApplicationxwwwformurlencodedDouble
+extends JsonSchema + +A schema class that validates payloads + +## Description +None + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// double validation +double validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDouble.validate( + 3.14d, + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| +| String | type = "double"; | +| Number | maximum = 123.4 | +| Number | minimum = 67.8 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| double | validate(double arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedDoubleBoxedNumber](#applicationxwwwformurlencodeddoubleboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedDoubleBoxed](#applicationxwwwformurlencodeddoubleboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedFloatBoxed +public sealed interface ApplicationxwwwformurlencodedFloatBoxed
+permits
+[ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedFloatBoxedNumber +public record ApplicationxwwwformurlencodedFloatBoxedNumber
+implements [ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedFloatBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedFloat +public static class ApplicationxwwwformurlencodedFloat
+extends JsonSchema + +A schema class that validates payloads + +## Description +None + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// float validation +float validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloat.validate( + 3.14f, + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| +| String | type = "float"; | +| Number | maximum = 987.6 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| float | validate(float arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedFloatBoxedNumber](#applicationxwwwformurlencodedfloatboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedFloatBoxed](#applicationxwwwformurlencodedfloatboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedNumberBoxed +public sealed interface ApplicationxwwwformurlencodedNumberBoxed
+permits
+[ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedNumberBoxedNumber +public record ApplicationxwwwformurlencodedNumberBoxedNumber
+implements [ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedNumberBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedNumber +public static class ApplicationxwwwformurlencodedNumber
+extends JsonSchema + +A schema class that validates payloads + +## Description +None + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// int validation +int validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumber.validate( + 1, + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| +| Number | maximum = 543.2 | +| Number | minimum = 32.1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedNumberBoxedNumber](#applicationxwwwformurlencodednumberboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedNumberBoxed](#applicationxwwwformurlencodednumberboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedInt64Boxed +public sealed interface ApplicationxwwwformurlencodedInt64Boxed
+permits
+[ApplicationxwwwformurlencodedInt64BoxedNumber](#applicationxwwwformurlencodedint64boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedInt64BoxedNumber +public record ApplicationxwwwformurlencodedInt64BoxedNumber
+implements [ApplicationxwwwformurlencodedInt64Boxed](#applicationxwwwformurlencodedint64boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedInt64BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedInt64 +public static class ApplicationxwwwformurlencodedInt64
+extends Int64JsonSchema.Int64JsonSchema1 + +A schema class that validates payloads + +## Description +None + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | + +## ApplicationxwwwformurlencodedInt32Boxed +public sealed interface ApplicationxwwwformurlencodedInt32Boxed
+permits
+[ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedInt32BoxedNumber +public record ApplicationxwwwformurlencodedInt32BoxedNumber
+implements [ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedInt32BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedInt32 +public static class ApplicationxwwwformurlencodedInt32
+extends JsonSchema + +A schema class that validates payloads + +## Description +None + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// int validation +int validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32.validate( + 1, + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| +| String | type = "int32"; | +| Number | maximum = 200 | +| Number | minimum = 20 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| int | validate(int arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedInt32BoxedNumber](#applicationxwwwformurlencodedint32boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedInt32Boxed](#applicationxwwwformurlencodedint32boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedIntegerBoxed +public sealed interface ApplicationxwwwformurlencodedIntegerBoxed
+permits
+[ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedIntegerBoxedNumber +public record ApplicationxwwwformurlencodedIntegerBoxedNumber
+implements [ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedIntegerBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedInteger +public static class ApplicationxwwwformurlencodedInteger
+extends JsonSchema + +A schema class that validates payloads + +## Description +None + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// int validation +int validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInteger.validate( + 1L, + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| +| String | type = "int"; | +| Number | maximum = 100 | +| Number | minimum = 10 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| long | validate(long arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedIntegerBoxedNumber](#applicationxwwwformurlencodedintegerboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedIntegerBoxed](#applicationxwwwformurlencodedintegerboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode200Response.md b/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode200Response.md new file mode 100644 index 00000000000..3e3ca088f80 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode200Response.md @@ -0,0 +1,17 @@ +# FakePostCode200Response + +public class FakePostCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakePostCode200Response.FakePostCode200Response1](#fakepostcode200response1)
class that deserializes responses | + +## FakePostCode200Response1 +public static class FakePostCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode404Response.md b/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode404Response.md new file mode 100644 index 00000000000..8bc289f2bd3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/post/responses/FakePostCode404Response.md @@ -0,0 +1,32 @@ +# FakePostCode404Response + +public class FakePostCode404Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakePostCode404Response.FakePostCode404Response1](#fakepostcode404response1)
class that deserializes responses | + +## FakePostCode404Response1 +public static class FakePostCode404Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakePostCode404Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md new file mode 100644 index 00000000000..db0df44256c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# FakePostSecurityRequirementObject0 +FakePostSecurityRequirementObject0.java + +public class FakePostSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakePostSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpBasicTest.class](../../../../components/securityschemes/HttpBasicTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md new file mode 100644 index 00000000000..a1315d492bd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.md @@ -0,0 +1,148 @@ +# FakeadditionalpropertieswitharrayofenumsGet + +public class FakeadditionalpropertieswitharrayofenumsGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [AdditionalPropertiesWithArrayOfEnumsOperation](#additionalpropertieswitharrayofenumsoperation)
The interface that has a additionalPropertiesWithArrayOfEnums method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; +import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.FakeadditionalpropertieswitharrayofenumsGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.FakeadditionalpropertieswitharrayofenumsGet; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeadditionalpropertieswitharrayofenumsGet.Get apiClient = new FakeadditionalpropertieswitharrayofenumsGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakeadditionalpropertieswitharrayofenumsGet.GetRequestBuilder().build(); + +FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response castResponse = (FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response) response; +FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## AdditionalPropertiesWithArrayOfEnumsOperation +public interface AdditionalPropertiesWithArrayOfEnumsOperation
+ +an interface that allows one to call the endpoint using a method named additionalPropertiesWithArrayOfEnums by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md#endpointresponse) | additionalPropertiesWithArrayOfEnums([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeadditionalpropertieswitharrayofenumsGetRequestBody.@Nullable SealedRequestBody](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | requestBody([FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedRequestBody](../../paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md new file mode 100644 index 00000000000..6bbac40d22f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.md @@ -0,0 +1,90 @@ +# FakeadditionalpropertieswitharrayofenumsGetRequestBody + +public class FakeadditionalpropertieswitharrayofenumsGetRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.FakeadditionalpropertieswitharrayofenumsGetRequestBody1](#fakeadditionalpropertieswitharrayofenumsgetrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeadditionalpropertieswitharrayofenumsGetRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakeadditionalpropertieswitharrayofenumsGetRequestBody1 +public static class FakeadditionalpropertieswitharrayofenumsGetRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeadditionalpropertieswitharrayofenumsGetRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md new file mode 100644 index 00000000000..7c3bbeb85dc --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.md @@ -0,0 +1,29 @@ +# FakeadditionalpropertieswitharrayofenumsGetResponses + +public class FakeadditionalpropertieswitharrayofenumsGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response](#endpointfakeadditionalpropertieswitharrayofenumsgetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response](#endpointfakeadditionalpropertieswitharrayofenumsgetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response +public record EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response( + HttpResponse response, + [FakeadditionalpropertieswitharrayofenumsGetCode200Response.SealedResponseBody](../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..e583d49bf2d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md new file mode 100644 index 00000000000..14134525aa5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.md @@ -0,0 +1,87 @@ +# FakeadditionalpropertieswitharrayofenumsGetCode200Response + +public class FakeadditionalpropertieswitharrayofenumsGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeadditionalpropertieswitharrayofenumsGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakeadditionalpropertieswitharrayofenumsGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakeadditionalpropertieswitharrayofenumsGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakeadditionalpropertieswitharrayofenumsGetCode200Response.FakeadditionalpropertieswitharrayofenumsGetCode200Response1](#fakeadditionalpropertieswitharrayofenumsgetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) | body()
returns the body passed in in the constructor | + +## FakeadditionalpropertieswitharrayofenumsGetCode200Response1 +public static class FakeadditionalpropertieswitharrayofenumsGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeadditionalpropertieswitharrayofenumsGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..3c5d3360d21 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md new file mode 100644 index 00000000000..0da6338b397 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/FakebodywithfileschemaPut.md @@ -0,0 +1,188 @@ +# FakebodywithfileschemaPut + +public class FakebodywithfileschemaPut + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Put](#put)
The class that has a put method to call the endpoint | +| interface | [BodyWithFileSchemaOperation](#bodywithfileschemaoperation)
The interface that has a bodyWithFileSchema method to call the endpoint | +| static class | [PutRequest](#putrequest)
The final request inputs class | +| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | +| static class | [Put0RequestBuilder](#put0requestbuilder)
A builder for the request input class | +| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | + +## Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
+ +a class that allows one to call the endpoint using a method named put + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; +import org.openapijsonschematools.client.components.schemas.FileSchemaTestClass; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.FakebodywithfileschemaPutCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.FakebodywithfileschemaPut; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakebodywithfileschemaPut.Put apiClient = new FakebodywithfileschemaPut.Put(apiConfiguration, schemaConfiguration); + + +FileSchemaTestClass1BoxedMap requestBodyPayload = + FileSchemaTestClass.FileSchemaTestClass1.validateAndBox( + new FileSchemaTestClass.FileSchemaTestClassMapBuilder() + .files( + Arrays.asList( + ) + ) + .build(), + schemaConfiguration +); +FakebodywithfileschemaPut.SealedRequestBody requestBody = new FakebodywithfileschemaPut.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new FakebodywithfileschemaPut.PutRequestBuilder() + .requestBody(requestBody) + .build(); + +FakebodywithfileschemaPutResponses.EndpointResponse response; +try { + response = apiClient.put(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Response castResponse = (FakebodywithfileschemaPutResponses.EndpointFakebodywithfileschemaPutCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | + +## BodyWithFileSchemaOperation +public interface BodyWithFileSchemaOperation
+ +an interface that allows one to call the endpoint using a method named bodyWithFileSchema by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakebodywithfileschemaPutResponses.EndpointResponse](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md#endpointresponse) | bodyWithFileSchema([PutRequest](#putrequest) request) | + +## PutRequest +public static class PutRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakebodywithfileschemaPutRequestBody.SealedRequestBody](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PutNullableRequest +public static class PutNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakebodywithfileschemaPutRequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Put0RequestBuilder +public static class Put0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put0RequestBuilder(Put0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PutRequestBuilder +public static class PutRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PutRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Put0RequestBuilder](#put0requestbuilder) | requestBody([FakebodywithfileschemaPutRequestBody.SealedRequestBody](../../paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md new file mode 100644 index 00000000000..6852ab03fce --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.md @@ -0,0 +1,90 @@ +# FakebodywithfileschemaPutRequestBody + +public class FakebodywithfileschemaPutRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakebodywithfileschemaPutRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakebodywithfileschemaPutRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakebodywithfileschemaPutRequestBody.FakebodywithfileschemaPutRequestBody1](#fakebodywithfileschemaputrequestbody1)
class that serializes request bodies | +| sealed interface | [FakebodywithfileschemaPutRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakebodywithfileschemaPutRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakebodywithfileschemaPutRequestBody1 +public static class FakebodywithfileschemaPutRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithfileschemaPutRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = true
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[FileSchemaTestClass1Boxed](../../../components/schemas/FileSchemaTestClass.md#fileschematestclass1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[FileSchemaTestClass1Boxed](../../../components/schemas/FileSchemaTestClass.md#fileschematestclass1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md new file mode 100644 index 00000000000..a1f75ddb0d8 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.md @@ -0,0 +1,29 @@ +# FakebodywithfileschemaPutResponses + +public class FakebodywithfileschemaPutResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakebodywithfileschemaPutCode200Response](#endpointfakebodywithfileschemaputcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakebodywithfileschemaPutCode200Response](#endpointfakebodywithfileschemaputcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakebodywithfileschemaPutCode200Response +public record EndpointFakebodywithfileschemaPutCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..16f5864b396 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [FileSchemaTestClass1](../../../../../../components/schemas/FileSchemaTestClass.md#fileschematestclass) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [FileSchemaTestClass.FileSchemaTestClass1](../../../../../../components/schemas/FileSchemaTestClass.md#fileschematestclass1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.md new file mode 100644 index 00000000000..7de1a2829fb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.md @@ -0,0 +1,17 @@ +# FakebodywithfileschemaPutCode200Response + +public class FakebodywithfileschemaPutCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakebodywithfileschemaPutCode200Response.FakebodywithfileschemaPutCode200Response1](#fakebodywithfileschemaputcode200response1)
class that deserializes responses | + +## FakebodywithfileschemaPutCode200Response1 +public static class FakebodywithfileschemaPutCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md new file mode 100644 index 00000000000..3e459a91467 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.md @@ -0,0 +1,249 @@ +# FakebodywithqueryparamsPut + +public class FakebodywithqueryparamsPut + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Put](#put)
The class that has a put method to call the endpoint | +| interface | [BodyWithQueryParamsOperation](#bodywithqueryparamsoperation)
The interface that has a bodyWithQueryParams method to call the endpoint | +| static class | [PutRequest](#putrequest)
The final request inputs class | +| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | +| static class | [Put00RequestBuilder](#put00requestbuilder)
A builder for the request input class | +| static class | [Put01RequestBuilder](#put01requestbuilder)
A builder for the request input class | +| static class | [Put10RequestBuilder](#put10requestbuilder)
A builder for the request input class | +| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | + +## Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
+ +a class that allows one to call the endpoint using a method named put + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; +import org.openapijsonschematools.client.components.schemas.User; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.FakebodywithqueryparamsPutCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.FakebodywithqueryparamsPut; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakebodywithqueryparamsPut.Put apiClient = new FakebodywithqueryparamsPut.Put(apiConfiguration, schemaConfiguration); + + +User1BoxedMap requestBodyPayload = + User.User1.validateAndBox( + new User.UserMapBuilder() + .id(1L) + + .username("a") + + .firstName("a") + + .lastName("a") + + .email("a") + + .password("a") + + .phone("a") + + .userStatus(1) + + .objectWithNoDeclaredPropsNullable(null) + + .build(), + schemaConfiguration +); +FakebodywithqueryparamsPut.SealedRequestBody requestBody = new FakebodywithqueryparamsPut.ApplicationjsonRequestBody(requestBodyPayload); + +// Map validation +FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters = + FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( + new FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder() + .query("a") + + .build(), + schemaConfiguration +); + +var request = new FakebodywithqueryparamsPut.PutRequestBuilder() + .requestBody(requestBody) + .queryParameters(queryParameters) + .build(); + +FakebodywithqueryparamsPutResponses.EndpointResponse response; +try { + response = apiClient.put(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Response castResponse = (FakebodywithqueryparamsPutResponses.EndpointFakebodywithqueryparamsPutCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | + +## BodyWithQueryParamsOperation +public interface BodyWithQueryParamsOperation
+ +an interface that allows one to call the endpoint using a method named bodyWithQueryParams by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakebodywithqueryparamsPutResponses.EndpointResponse](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md#endpointresponse) | bodyWithQueryParams([PutRequest](#putrequest) request) | + +## PutRequest +public static class PutRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | +| [FakebodywithqueryparamsPutQueryParameters.QueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PutNullableRequest +public static class PutNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) | requestBody | +| [FakebodywithqueryparamsPutQueryParameters.@Nullable QueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Put00RequestBuilder +public static class Put00RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put00RequestBuilder(Put00RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [Put00RequestBuilder](#put00requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put00RequestBuilder](#put00requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## Put01RequestBuilder +public static class Put01RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put01RequestBuilder(Put01RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Put00RequestBuilder](#put00requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | + +## Put10RequestBuilder +public static class Put10RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put10RequestBuilder(Put10RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Put00RequestBuilder](#put00requestbuilder) | requestBody([FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +## PutRequestBuilder +public static class PutRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PutRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Put01RequestBuilder](#put01requestbuilder) | requestBody([FakebodywithqueryparamsPutRequestBody.SealedRequestBody](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [Put10RequestBuilder](#put10requestbuilder) | queryParameters([FakebodywithqueryparamsPutQueryParametersQueryParametersMap](../../paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md new file mode 100644 index 00000000000..74a71c5e92a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.md @@ -0,0 +1,268 @@ +# FakebodywithqueryparamsPutQueryParameters +public class FakebodywithqueryparamsPutQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed)
sealed interface for validated payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1](#fakebodywithqueryparamsputqueryparameters1)
schema class | +| static class | [FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakebodywithqueryparamsPutQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakebodywithqueryparamsPutQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakebodywithqueryparamsPutQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakebodywithqueryparamsPutQueryParameters1Boxed +public sealed interface FakebodywithqueryparamsPutQueryParameters1Boxed
+permits
+[FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakebodywithqueryparamsPutQueryParameters1BoxedMap +public record FakebodywithqueryparamsPutQueryParameters1BoxedMap
+implements [FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithqueryparamsPutQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakebodywithqueryparamsPutQueryParameters1 +public static class FakebodywithqueryparamsPutQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakebodywithqueryparamsPutQueryParameters.QueryParametersMap validatedPayload = + FakebodywithqueryparamsPutQueryParameters.FakebodywithqueryparamsPutQueryParameters1.validate( + new FakebodywithqueryparamsPutQueryParameters.QueryParametersMapBuilder() + .query("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("query", [Schema0.Schema01.class](../../../paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "query"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakebodywithqueryparamsPutQueryParameters1BoxedMap](#fakebodywithqueryparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakebodywithqueryparamsPutQueryParameters1Boxed](#fakebodywithqueryparamsputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMap0Builder +public class QueryParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | query(String value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | query()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md new file mode 100644 index 00000000000..676dc92b904 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.md @@ -0,0 +1,90 @@ +# FakebodywithqueryparamsPutRequestBody + +public class FakebodywithqueryparamsPutRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakebodywithqueryparamsPutRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakebodywithqueryparamsPutRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakebodywithqueryparamsPutRequestBody.FakebodywithqueryparamsPutRequestBody1](#fakebodywithqueryparamsputrequestbody1)
class that serializes request bodies | +| sealed interface | [FakebodywithqueryparamsPutRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakebodywithqueryparamsPutRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakebodywithqueryparamsPutRequestBody1 +public static class FakebodywithqueryparamsPutRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakebodywithqueryparamsPutRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = true
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md new file mode 100644 index 00000000000..beeea9503ca --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.md @@ -0,0 +1,29 @@ +# FakebodywithqueryparamsPutResponses + +public class FakebodywithqueryparamsPutResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakebodywithqueryparamsPutCode200Response](#endpointfakebodywithqueryparamsputcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakebodywithqueryparamsPutCode200Response](#endpointfakebodywithqueryparamsputcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakebodywithqueryparamsPutCode200Response +public record EndpointFakebodywithqueryparamsPutCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..87ec51870cc --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [User1](../../../../../../components/schemas/User.md#user) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [User.User1](../../../../../../components/schemas/User.md#user1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.md new file mode 100644 index 00000000000..e6bbeac0a7b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.md @@ -0,0 +1,17 @@ +# FakebodywithqueryparamsPutCode200Response + +public class FakebodywithqueryparamsPutCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakebodywithqueryparamsPutCode200Response.FakebodywithqueryparamsPutCode200Response1](#fakebodywithqueryparamsputcode200response1)
class that deserializes responses | + +## FakebodywithqueryparamsPutCode200Response1 +public static class FakebodywithqueryparamsPutCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md new file mode 100644 index 00000000000..2996f66f440 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.md @@ -0,0 +1,189 @@ +# FakecasesensitiveparamsPut + +public class FakecasesensitiveparamsPut + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Put](#put)
The class that has a put method to call the endpoint | +| interface | [CaseSensitiveParamsOperation](#casesensitiveparamsoperation)
The interface that has a caseSensitiveParams method to call the endpoint | +| static class | [PutRequest](#putrequest)
The final request inputs class | +| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | +| static class | [Put0RequestBuilder](#put0requestbuilder)
A builder for the request input class | +| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | + +## Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
+ +a class that allows one to call the endpoint using a method named put + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.FakecasesensitiveparamsPutCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.FakecasesensitiveparamsPut; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakecasesensitiveparamsPut.Put apiClient = new FakecasesensitiveparamsPut.Put(apiConfiguration, schemaConfiguration); + + +// Map validation +FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters = + FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( + new FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder() + .SomeVar("a") + + .someVar("a") + + .some_var("a") + + .build(), + schemaConfiguration +); + +var request = new FakecasesensitiveparamsPut.PutRequestBuilder() + .queryParameters(queryParameters) + .build(); + +FakecasesensitiveparamsPutResponses.EndpointResponse response; +try { + response = apiClient.put(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Response castResponse = (FakecasesensitiveparamsPutResponses.EndpointFakecasesensitiveparamsPutCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | + +## CaseSensitiveParamsOperation +public interface CaseSensitiveParamsOperation
+ +an interface that allows one to call the endpoint using a method named caseSensitiveParams by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakecasesensitiveparamsPutResponses.EndpointResponse](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md#endpointresponse) | caseSensitiveParams([PutRequest](#putrequest) request) | + +## PutRequest +public static class PutRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakecasesensitiveparamsPutQueryParameters.QueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PutNullableRequest +public static class PutNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakecasesensitiveparamsPutQueryParameters.@Nullable QueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Put0RequestBuilder +public static class Put0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put0RequestBuilder(Put0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PutRequestBuilder +public static class PutRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PutRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FakecasesensitiveparamsPutQueryParametersQueryParametersMap](../../paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md new file mode 100644 index 00000000000..0822ddca240 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.md @@ -0,0 +1,375 @@ +# FakecasesensitiveparamsPutQueryParameters +public class FakecasesensitiveparamsPutQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed)
sealed interface for validated payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1](#fakecasesensitiveparamsputqueryparameters1)
schema class | +| static class | [FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakecasesensitiveparamsPutQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakecasesensitiveparamsPutQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakecasesensitiveparamsPutQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakecasesensitiveparamsPutQueryParameters1Boxed +public sealed interface FakecasesensitiveparamsPutQueryParameters1Boxed
+permits
+[FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakecasesensitiveparamsPutQueryParameters1BoxedMap +public record FakecasesensitiveparamsPutQueryParameters1BoxedMap
+implements [FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakecasesensitiveparamsPutQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakecasesensitiveparamsPutQueryParameters1 +public static class FakecasesensitiveparamsPutQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakecasesensitiveparamsPutQueryParameters.QueryParametersMap validatedPayload = + FakecasesensitiveparamsPutQueryParameters.FakecasesensitiveparamsPutQueryParameters1.validate( + new FakecasesensitiveparamsPutQueryParameters.QueryParametersMapBuilder() + .SomeVar("a") + + .someVar("a") + + .some_var("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("someVar", [Schema0.Schema01.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("some_var", [Schema2.Schema21.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("SomeVar", [Schema1.Schema11.class](../../../paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md#schema11))
)
| +| Set | required = Set.of(
    "SomeVar",
    "someVar",
    "some_var"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakecasesensitiveparamsPutQueryParameters1BoxedMap](#fakecasesensitiveparamsputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakecasesensitiveparamsPutQueryParameters1Boxed](#fakecasesensitiveparamsputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMap000Builder +public class QueryParametersMap000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## QueryParametersMap001Builder +public class QueryParametersMap001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000Builder](#queryparametersmap000builder) | some_var(String value) | + +## QueryParametersMap010Builder +public class QueryParametersMap010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000Builder](#queryparametersmap000builder) | someVar(String value) | + +## QueryParametersMap011Builder +public class QueryParametersMap011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001Builder](#queryparametersmap001builder) | someVar(String value) | +| [QueryParametersMap010Builder](#queryparametersmap010builder) | some_var(String value) | + +## QueryParametersMap100Builder +public class QueryParametersMap100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000Builder](#queryparametersmap000builder) | SomeVar(String value) | + +## QueryParametersMap101Builder +public class QueryParametersMap101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001Builder](#queryparametersmap001builder) | SomeVar(String value) | +| [QueryParametersMap100Builder](#queryparametersmap100builder) | some_var(String value) | + +## QueryParametersMap110Builder +public class QueryParametersMap110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap010Builder](#queryparametersmap010builder) | SomeVar(String value) | +| [QueryParametersMap100Builder](#queryparametersmap100builder) | someVar(String value) | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap011Builder](#queryparametersmap011builder) | SomeVar(String value) | +| [QueryParametersMap101Builder](#queryparametersmap101builder) | someVar(String value) | +| [QueryParametersMap110Builder](#queryparametersmap110builder) | some_var(String value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | SomeVar()
| +| String | someVar()
| +| String | some_var()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md new file mode 100644 index 00000000000..aec4af1f778 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.md @@ -0,0 +1,29 @@ +# FakecasesensitiveparamsPutResponses + +public class FakecasesensitiveparamsPutResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakecasesensitiveparamsPutCode200Response](#endpointfakecasesensitiveparamsputcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakecasesensitiveparamsPutCode200Response](#endpointfakecasesensitiveparamsputcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakecasesensitiveparamsPutCode200Response +public record EndpointFakecasesensitiveparamsPutCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md new file mode 100644 index 00000000000..63ec3a884fc --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.md @@ -0,0 +1,49 @@ +# Schema1 +public class Schema1
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| static class | [Schema1.Schema11](#schema11)
schema class | + +## Schema11Boxed +public sealed interface Schema11Boxed
+permits
+[Schema11BoxedString](#schema11boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema11BoxedString +public record Schema11BoxedString
+implements [Schema11Boxed](#schema11boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema11BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema11 +public static class Schema11
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md new file mode 100644 index 00000000000..4a7d57953eb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.md @@ -0,0 +1,49 @@ +# Schema2 +public class Schema2
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | +| record | [Schema2.Schema21BoxedString](#schema21boxedstring)
boxed class to store validated String payloads | +| static class | [Schema2.Schema21](#schema21)
schema class | + +## Schema21Boxed +public sealed interface Schema21Boxed
+permits
+[Schema21BoxedString](#schema21boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema21BoxedString +public record Schema21BoxedString
+implements [Schema21Boxed](#schema21boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema21BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema21 +public static class Schema21
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.md new file mode 100644 index 00000000000..2ec9adb95bd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.md @@ -0,0 +1,17 @@ +# FakecasesensitiveparamsPutCode200Response + +public class FakecasesensitiveparamsPutCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakecasesensitiveparamsPutCode200Response.FakecasesensitiveparamsPutCode200Response1](#fakecasesensitiveparamsputcode200response1)
class that deserializes responses | + +## FakecasesensitiveparamsPutCode200Response1 +public static class FakecasesensitiveparamsPutCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md new file mode 100644 index 00000000000..1adc69788e6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/FakeclassnametestPatch.md @@ -0,0 +1,203 @@ +# FakeclassnametestPatch + +public class FakeclassnametestPatch + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Patch](#patch)
The class that has a patch method to call the endpoint | +| interface | [ClassnameOperation](#classnameoperation)
The interface that has a classname method to call the endpoint | +| static class | [PatchRequest](#patchrequest)
The final request inputs class | +| static class | [PatchNullableRequest](#patchnullablerequest)
The initial request inputs class | +| static class | [Patch0RequestBuilder](#patch0requestbuilder)
A builder for the request input class | +| static class | [PatchRequestBuilder](#patchrequestbuilder)
A builder for the request input class | + +## Patch +public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
+ +a class that allows one to call the endpoint using a method named patch + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; +import org.openapijsonschematools.client.components.schemas.Client; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.FakeclassnametestPatchCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeclassnametest.FakeclassnametestPatch; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +securitySchemes.add( + new ApiKeyQuery("someApiKey"); +); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .fakeclassnametestPatchSecurityRequirementObject0SecurityIndex(FakeclassnametestPatchSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeclassnametestPatch.Patch apiClient = new FakeclassnametestPatch.Patch(apiConfiguration, schemaConfiguration); + + +Client1BoxedMap requestBodyPayload = + Client.Client1.validateAndBox( + new Client.ClientMapBuilder1() + .client("a") + + .build(), + schemaConfiguration +); +FakeclassnametestPatchRequestBody.SealedRequestBody requestBody = new FakeclassnametestPatchRequestBody.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new FakeclassnametestPatch.PatchRequestBuilder() + .requestBody(requestBody) + .build(); + +FakeclassnametestPatchResponses.EndpointResponse response; +try { + response = apiClient.patch(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeclassnametestPatchResponses.EndpointFakeclassnametestPatchCode200Response castResponse = (FakeclassnametestPatchResponses.EndpointFakeclassnametestPatchCode200Response) response; +FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | + +## ClassnameOperation +public interface ClassnameOperation
+ +an interface that allows one to call the endpoint using a method named classname by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeclassnametestPatchResponses.EndpointResponse](../../paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md#endpointresponse) | classname([PatchRequest](#patchrequest) request) | + +## PatchRequest +public static class PatchRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeclassnametestPatchRequestBody.SealedRequestBody](../../paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex](../../paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PatchNullableRequest +public static class PatchNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeclassnametestPatchRequestBody.@Nullable SealedRequestBody](../../paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex](../../paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Patch0RequestBuilder +public static class Patch0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Patch0RequestBuilder(Patch0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | +| [Patch0RequestBuilder](#patch0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Patch0RequestBuilder](#patch0requestbuilder) | securityIndex([FakeclassnametestPatchSecurityInfo.SecurityIndex](../../paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Patch0RequestBuilder](#patch0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PatchRequestBuilder +public static class PatchRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PatchRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Patch0RequestBuilder](#patch0requestbuilder) | requestBody([FakeclassnametestPatchRequestBody.SealedRequestBody](../../paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md new file mode 100644 index 00000000000..ee0772ceed2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.md @@ -0,0 +1,17 @@ +# FakeclassnametestPatchRequestBody + +public class FakeclassnametestPatchRequestBody extends [Client](../../../components/requestbodies/Client.md) + +A class (extended from the $ref class) that contains necessary nested request body classes +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakeclassnametestPatchRequestBody.FakeclassnametestPatchRequestBody1](#fakeclassnametestpatchrequestbody1)
class that serializes request bodies | + +## FakeclassnametestPatchRequestBody1 +public static class FakeclassnametestPatchRequestBody1 extends [Client1](../../../components/requestbodies/Client.md#client1)
+ +a class that serializes SealedRequestBody request bodies, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md new file mode 100644 index 00000000000..a8397a692e6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.md @@ -0,0 +1,29 @@ +# FakeclassnametestPatchResponses + +public class FakeclassnametestPatchResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeclassnametestPatchCode200Response](#endpointfakeclassnametestpatchcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeclassnametestPatchCode200Response](#endpointfakeclassnametestpatchcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeclassnametestPatchCode200Response +public record EndpointFakeclassnametestPatchCode200Response( + HttpResponse response, + [FakeclassnametestPatchCode200Response.SealedResponseBody](../../../paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md new file mode 100644 index 00000000000..3e252e7cdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md @@ -0,0 +1,40 @@ +# FakeclassnametestPatchSecurityInfo +FakeclassnametestPatchSecurityInfo.java + +public class FakeclassnametestPatchSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakeclassnametestPatchSecurityInfo.FakeclassnametestPatchSecurityInfo1](#fakeclassnametestpatchsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [FakeclassnametestPatchSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## FakeclassnametestPatchSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeclassnametestPatchSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeclassnametestPatchSecurityRequirementObject0](../../../paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md) | security0 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md new file mode 100644 index 00000000000..7ece775356e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.md @@ -0,0 +1,87 @@ +# FakeclassnametestPatchCode200Response + +public class FakeclassnametestPatchCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeclassnametestPatchCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeclassnametestPatchCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakeclassnametestPatchCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakeclassnametestPatchCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakeclassnametestPatchCode200Response.FakeclassnametestPatchCode200Response1](#fakeclassnametestpatchcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | + +## FakeclassnametestPatchCode200Response1 +public static class FakeclassnametestPatchCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeclassnametestPatchCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..534041524ca --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Client1](../../../../../../../components/schemas/Client.md#client) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Client.Client1](../../../../../../../components/schemas/Client.md#client1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md new file mode 100644 index 00000000000..0651521d4b3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# FakeclassnametestPatchSecurityRequirementObject0 +FakeclassnametestPatchSecurityRequirementObject0.java + +public class FakeclassnametestPatchSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeclassnametestPatchSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKeyQuery.class](../../../../components/securityschemes/ApiKeyQuery.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md new file mode 100644 index 00000000000..0223066b60f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.md @@ -0,0 +1,189 @@ +# FakedeletecoffeeidDelete + +public class FakedeletecoffeeidDelete + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | +| interface | [DeleteCoffeeOperation](#deletecoffeeoperation)
The interface that has a deleteCoffee method to call the endpoint | +| static class | [DeleteRequest](#deleterequest)
The final request inputs class | +| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | +| static class | [Delete0RequestBuilder](#delete0requestbuilder)
A builder for the request input class | +| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | + +## Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
+ +a class that allows one to call the endpoint using a method named delete + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCode200Response; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCodedefaultResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.FakedeletecoffeeidDelete; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakedeletecoffeeidDelete.Delete apiClient = new FakedeletecoffeeidDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters = + FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( + new FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder() + .id("a") + + .build(), + schemaConfiguration +); + +var request = new FakedeletecoffeeidDelete.DeleteRequestBuilder() + .pathParameters(pathParameters) + .build(); + +FakedeletecoffeeidDeleteResponses.EndpointResponse response; +try { + response = apiClient.delete(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +if (response instanceof FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCode200Response castResponse) { +} else { + FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCodedefaultResponse castResponse = (FakedeletecoffeeidDeleteResponses.EndpointFakedeletecoffeeidDeleteCodedefaultResponse) response; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | + +## DeleteCoffeeOperation +public interface DeleteCoffeeOperation
+ +an interface that allows one to call the endpoint using a method named deleteCoffee by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakedeletecoffeeidDeleteResponses.EndpointResponse](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md#endpointresponse) | deleteCoffee([DeleteRequest](#deleterequest) request) | + +## DeleteRequest +public static class DeleteRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakedeletecoffeeidDeletePathParameters.PathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## DeleteNullableRequest +public static class DeleteNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakedeletecoffeeidDeletePathParameters.@Nullable PathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Delete0RequestBuilder +public static class Delete0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete0RequestBuilder(Delete0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## DeleteRequestBuilder +public static class DeleteRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([FakedeletecoffeeidDeletePathParametersPathParametersMap](../../paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md new file mode 100644 index 00000000000..fbe77c0964a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.md @@ -0,0 +1,268 @@ +# FakedeletecoffeeidDeletePathParameters +public class FakedeletecoffeeidDeletePathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed)
sealed interface for validated payloads | +| record | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1](#fakedeletecoffeeiddeletepathparameters1)
schema class | +| static class | [FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [FakedeletecoffeeidDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakedeletecoffeeidDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakedeletecoffeeidDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakedeletecoffeeidDeletePathParameters1Boxed +public sealed interface FakedeletecoffeeidDeletePathParameters1Boxed
+permits
+[FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakedeletecoffeeidDeletePathParameters1BoxedMap +public record FakedeletecoffeeidDeletePathParameters1BoxedMap
+implements [FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakedeletecoffeeidDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakedeletecoffeeidDeletePathParameters1 +public static class FakedeletecoffeeidDeletePathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakedeletecoffeeidDeletePathParameters.PathParametersMap validatedPayload = + FakedeletecoffeeidDeletePathParameters.FakedeletecoffeeidDeletePathParameters1.validate( + new FakedeletecoffeeidDeletePathParameters.PathParametersMapBuilder() + .id("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("id", [Schema0.Schema01.class](../../../paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "id"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakedeletecoffeeidDeletePathParameters1BoxedMap](#fakedeletecoffeeiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakedeletecoffeeidDeletePathParameters1Boxed](#fakedeletecoffeeiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | id(String value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | id()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md new file mode 100644 index 00000000000..a3a6107c9ae --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.md @@ -0,0 +1,40 @@ +# FakedeletecoffeeidDeleteResponses + +public class FakedeletecoffeeidDeleteResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakedeletecoffeeidDeleteCode200Response](#endpointfakedeletecoffeeiddeletecode200response)
the response for 200 | +| record | [EndpointFakedeletecoffeeidDeleteCodedefaultResponse](#endpointfakedeletecoffeeiddeletecodedefaultresponse)
the response for default | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakedeletecoffeeidDeleteCode200Response](#endpointfakedeletecoffeeiddeletecode200response), +[EndpointFakedeletecoffeeidDeleteCodedefaultResponse](#endpointfakedeletecoffeeiddeletecodedefaultresponse) + +a sealed interface that stores endpoint responses + +## EndpointFakedeletecoffeeidDeleteCode200Response +public record EndpointFakedeletecoffeeidDeleteCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + +## EndpointFakedeletecoffeeidDeleteCodedefaultResponse +public record EndpointFakedeletecoffeeidDeleteCodedefaultResponse( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.md new file mode 100644 index 00000000000..6c115aadfcf --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.md @@ -0,0 +1,17 @@ +# FakedeletecoffeeidDeleteCode200Response + +public class FakedeletecoffeeidDeleteCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakedeletecoffeeidDeleteCode200Response.FakedeletecoffeeidDeleteCode200Response1](#fakedeletecoffeeiddeletecode200response1)
class that deserializes responses | + +## FakedeletecoffeeidDeleteCode200Response1 +public static class FakedeletecoffeeidDeleteCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.md new file mode 100644 index 00000000000..452d7bdc061 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.md @@ -0,0 +1,32 @@ +# FakedeletecoffeeidDeleteCodedefaultResponse + +public class FakedeletecoffeeidDeleteCodedefaultResponse + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakedeletecoffeeidDeleteCodedefaultResponse.FakedeletecoffeeidDeleteCodedefaultResponse1](#fakedeletecoffeeiddeletecodedefaultresponse1)
class that deserializes responses | + +## FakedeletecoffeeidDeleteCodedefaultResponse1 +public static class FakedeletecoffeeidDeleteCodedefaultResponse1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakedeletecoffeeidDeleteCodedefaultResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md new file mode 100644 index 00000000000..d6b572bc19f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakehealth/FakehealthGet.md @@ -0,0 +1,144 @@ +# FakehealthGet + +public class FakehealthGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [FakeHealthGetOperation](#fakehealthgetoperation)
The interface that has a fakeHealthGet method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakehealth.get.responses.FakehealthGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakehealth.FakehealthGet; +import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakehealthGet.Get apiClient = new FakehealthGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakehealthGet.GetRequestBuilder().build(); + +FakehealthGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakehealthGetResponses.EndpointFakehealthGetCode200Response castResponse = (FakehealthGetResponses.EndpointFakehealthGetCode200Response) response; +FakehealthGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakehealthGetCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## FakeHealthGetOperation +public interface FakeHealthGetOperation
+ +an interface that allows one to call the endpoint using a method named fakeHealthGet by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakehealthGetResponses.EndpointResponse](../../paths/fakehealth/get/FakehealthGetResponses.md#endpointresponse) | fakeHealthGet([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md b/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md new file mode 100644 index 00000000000..1e9033aabea --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/FakehealthGetResponses.md @@ -0,0 +1,29 @@ +# FakehealthGetResponses + +public class FakehealthGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakehealthGetCode200Response](#endpointfakehealthgetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakehealthGetCode200Response](#endpointfakehealthgetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakehealthGetCode200Response +public record EndpointFakehealthGetCode200Response( + HttpResponse response, + [FakehealthGetCode200Response.SealedResponseBody](../../../paths/fakehealth/get/responses/FakehealthGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md new file mode 100644 index 00000000000..5e1134ff388 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/FakehealthGetCode200Response.md @@ -0,0 +1,87 @@ +# FakehealthGetCode200Response + +public class FakehealthGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakehealthGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakehealthGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakehealthGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakehealthGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakehealthGetCode200Response.FakehealthGetCode200Response1](#fakehealthgetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[HealthCheckResult1Boxed](../../../../components/schemas/HealthCheckResult.md#healthcheckresult1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[HealthCheckResult1Boxed](../../../../components/schemas/HealthCheckResult.md#healthcheckresult1boxed) | body()
returns the body passed in in the constructor | + +## FakehealthGetCode200Response1 +public static class FakehealthGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakehealthGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..4b80f3aefdb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [HealthCheckResult1](../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [HealthCheckResult.HealthCheckResult1](../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md new file mode 100644 index 00000000000..ea4e8d93b7e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.md @@ -0,0 +1,186 @@ +# FakeinlineadditionalpropertiesPost + +public class FakeinlineadditionalpropertiesPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [InlineAdditionalPropertiesOperation](#inlineadditionalpropertiesoperation)
The interface that has a inlineAdditionalProperties method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.FakeinlineadditionalpropertiesPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.FakeinlineadditionalpropertiesPost; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeinlineadditionalpropertiesPost.Post apiClient = new FakeinlineadditionalpropertiesPost.Post(apiConfiguration, schemaConfiguration); + + +ApplicationjsonSchema1BoxedMap requestBodyPayload = + ApplicationjsonSchema.ApplicationjsonSchema1.validateAndBox( + new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() + .additionalProperty("someAdditionalProperty", "a") + + .build(), + schemaConfiguration +); +FakeinlineadditionalpropertiesPost.SealedRequestBody requestBody = new FakeinlineadditionalpropertiesPost.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new FakeinlineadditionalpropertiesPost.PostRequestBuilder() + .requestBody(requestBody) + .build(); + +FakeinlineadditionalpropertiesPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalpropertiesPostCode200Response castResponse = (FakeinlineadditionalpropertiesPostResponses.EndpointFakeinlineadditionalpropertiesPostCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## InlineAdditionalPropertiesOperation +public interface InlineAdditionalPropertiesOperation
+ +an interface that allows one to call the endpoint using a method named inlineAdditionalProperties by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeinlineadditionalpropertiesPostResponses.EndpointResponse](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md#endpointresponse) | inlineAdditionalProperties([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeinlineadditionalpropertiesPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody](../../paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md new file mode 100644 index 00000000000..8f6e8ff9a1d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.md @@ -0,0 +1,90 @@ +# FakeinlineadditionalpropertiesPostRequestBody + +public class FakeinlineadditionalpropertiesPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeinlineadditionalpropertiesPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeinlineadditionalpropertiesPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeinlineadditionalpropertiesPostRequestBody.FakeinlineadditionalpropertiesPostRequestBody1](#fakeinlineadditionalpropertiespostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeinlineadditionalpropertiesPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakeinlineadditionalpropertiesPostRequestBody1 +public static class FakeinlineadditionalpropertiesPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlineadditionalpropertiesPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = true
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md new file mode 100644 index 00000000000..604668bd4c2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.md @@ -0,0 +1,29 @@ +# FakeinlineadditionalpropertiesPostResponses + +public class FakeinlineadditionalpropertiesPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeinlineadditionalpropertiesPostCode200Response](#endpointfakeinlineadditionalpropertiespostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeinlineadditionalpropertiesPostCode200Response](#endpointfakeinlineadditionalpropertiespostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeinlineadditionalpropertiesPostCode200Response +public record EndpointFakeinlineadditionalpropertiesPostCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..99e2db386dc --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,156 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | +| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonAdditionalPropertiesBoxedString](#applicationjsonadditionalpropertiesboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonAdditionalProperties](#applicationjsonadditionalproperties)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = + ApplicationjsonSchema.ApplicationjsonSchema1.validate( + new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() + .additionalProperty("someAdditionalProperty", "a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Class | additionalProperties = [ApplicationjsonAdditionalProperties.class](#applicationjsonadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationjsonSchemaMapBuilder +public class ApplicationjsonSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, String value) | + +## ApplicationjsonSchemaMap +public static class ApplicationjsonSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [ApplicationjsonSchemaMap](#applicationjsonschemamap) | of([Map](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| String | getAdditionalProperty(String name)
provides type safety for additional properties | + +## ApplicationjsonAdditionalPropertiesBoxed +public sealed interface ApplicationjsonAdditionalPropertiesBoxed
+permits
+[ApplicationjsonAdditionalPropertiesBoxedString](#applicationjsonadditionalpropertiesboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonAdditionalPropertiesBoxedString +public record ApplicationjsonAdditionalPropertiesBoxedString
+implements [ApplicationjsonAdditionalPropertiesBoxed](#applicationjsonadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonAdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonAdditionalProperties +public static class ApplicationjsonAdditionalProperties
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.md new file mode 100644 index 00000000000..2c23bf79f3b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.md @@ -0,0 +1,17 @@ +# FakeinlineadditionalpropertiesPostCode200Response + +public class FakeinlineadditionalpropertiesPostCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakeinlineadditionalpropertiesPostCode200Response.FakeinlineadditionalpropertiesPostCode200Response1](#fakeinlineadditionalpropertiespostcode200response1)
class that deserializes responses | + +## FakeinlineadditionalpropertiesPostCode200Response1 +public static class FakeinlineadditionalpropertiesPostCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md new file mode 100644 index 00000000000..8a6f721e5cd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/FakeinlinecompositionPost.md @@ -0,0 +1,155 @@ +# FakeinlinecompositionPost + +public class FakeinlinecompositionPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [InlineCompositionOperation](#inlinecompositionoperation)
The interface that has a inlineComposition method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.FakeinlinecompositionPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.FakeinlinecompositionPost; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeinlinecompositionPost.Post apiClient = new FakeinlinecompositionPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakeinlinecompositionPost.PostRequestBuilder().build(); + +FakeinlinecompositionPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeinlinecompositionPostResponses.EndpointFakeinlinecompositionPostCode200Response castResponse = (FakeinlinecompositionPostResponses.EndpointFakeinlinecompositionPostCode200Response) response; +if (castResponse.body instanceof FakeinlinecompositionPostCode200Response.ApplicationjsonResponseBody deserializedBody) { + // handle deserialized body here +} else { + FakeinlinecompositionPostCode200Response.MultipartformdataResponseBody deserializedBody = (FakeinlinecompositionPostCode200Response.MultipartformdataResponseBody) castResponse.body; + // handle deserialized body here +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## InlineCompositionOperation +public interface InlineCompositionOperation
+ +an interface that allows one to call the endpoint using a method named inlineComposition by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeinlinecompositionPostResponses.EndpointResponse](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md#endpointresponse) | inlineComposition([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [FakeinlinecompositionPostQueryParameters.@Nullable QueryParametersMap](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#queryparametersmap) | queryParameters
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeinlinecompositionPostRequestBody.SealedRequestBody](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | queryParameters([FakeinlinecompositionPostQueryParametersQueryParametersMap](../../paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md new file mode 100644 index 00000000000..958be9e102e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.md @@ -0,0 +1,264 @@ +# FakeinlinecompositionPostQueryParameters +public class FakeinlinecompositionPostQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed)
sealed interface for validated payloads | +| record | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1](#fakeinlinecompositionpostqueryparameters1)
schema class | +| static class | [FakeinlinecompositionPostQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakeinlinecompositionPostQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeinlinecompositionPostQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeinlinecompositionPostQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakeinlinecompositionPostQueryParameters1Boxed +public sealed interface FakeinlinecompositionPostQueryParameters1Boxed
+permits
+[FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeinlinecompositionPostQueryParameters1BoxedMap +public record FakeinlinecompositionPostQueryParameters1BoxedMap
+implements [FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlinecompositionPostQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeinlinecompositionPostQueryParameters1 +public static class FakeinlinecompositionPostQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakeinlinecompositionPostQueryParameters.QueryParametersMap validatedPayload = + FakeinlinecompositionPostQueryParameters.FakeinlinecompositionPostQueryParameters1.validate( + new FakeinlinecompositionPostQueryParameters.QueryParametersMapBuilder() + .compositionInProperty( + MapUtils.makeMap( + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("compositionAtRoot", [Schema0.Schema01.class](../../../paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("compositionInProperty", [Schema1.Schema11.class](../../../paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md#schema11))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeinlinecompositionPostQueryParameters1BoxedMap](#fakeinlinecompositionpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeinlinecompositionPostQueryParameters1Boxed](#fakeinlinecompositionpostqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(Void value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(boolean value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(int value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(float value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(long value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(double value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(List value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionAtRoot(Map value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | compositionInProperty(Map value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | compositionAtRoot()
[optional] | +| [Schema1.SchemaMap1](../../../paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md#schemamap1) | compositionInProperty()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md new file mode 100644 index 00000000000..33420abb4b9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.md @@ -0,0 +1,128 @@ +# FakeinlinecompositionPostRequestBody + +public class FakeinlinecompositionPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeinlinecompositionPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeinlinecompositionPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| record | [FakeinlinecompositionPostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeinlinecompositionPostRequestBody.FakeinlinecompositionPostRequestBody1](#fakeinlinecompositionpostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeinlinecompositionPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeinlinecompositionPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| record | [FakeinlinecompositionPostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype), +[MultipartformdataMediaType](#multipartformdatamediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## MultipartformdataMediaType +public record MultipartformdataMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakeinlinecompositionPostRequestBody1 +public static class FakeinlinecompositionPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlinecompositionPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)()),
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody), +[MultipartformdataRequestBody](#multipartformdatarequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | +## MultipartformdataRequestBody +public record MultipartformdataRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="multipart/form-data" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "multipart/form-data" | +| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md new file mode 100644 index 00000000000..86492517c79 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.md @@ -0,0 +1,29 @@ +# FakeinlinecompositionPostResponses + +public class FakeinlinecompositionPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeinlinecompositionPostCode200Response](#endpointfakeinlinecompositionpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeinlinecompositionPostCode200Response](#endpointfakeinlinecompositionpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeinlinecompositionPostCode200Response +public record EndpointFakeinlinecompositionPostCode200Response( + HttpResponse response, + [FakeinlinecompositionPostCode200Response.SealedResponseBody](../../../paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..d9573cef8e6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md @@ -0,0 +1,236 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedVoid](#schema01boxedvoid)
boxed class to store validated null payloads | +| record | [Schema0.Schema01BoxedBoolean](#schema01boxedboolean)
boxed class to store validated boolean payloads | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | +| sealed interface | [Schema0.Schema00Boxed](#schema00boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema00BoxedString](#schema00boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema00](#schema00)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedVoid](#schema01boxedvoid), +[Schema01BoxedBoolean](#schema01boxedboolean), +[Schema01BoxedNumber](#schema01boxednumber), +[Schema01BoxedString](#schema01boxedstring), +[Schema01BoxedList](#schema01boxedlist), +[Schema01BoxedMap](#schema01boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedVoid +public record Schema01BoxedVoid
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01BoxedBoolean +public record Schema01BoxedBoolean
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01BoxedNumber +public record Schema01BoxedNumber
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01BoxedList +public record Schema01BoxedList
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01BoxedMap +public record Schema01BoxedMap
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends JsonSchema + +A schema class that validates payloads + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| List> | allOf = List.of(
    [Schema00.class](#schema00)
;)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| Void | validate(Void arg, SchemaConfiguration configuration) | +| int | validate(int arg, SchemaConfiguration configuration) | +| long | validate(long arg, SchemaConfiguration configuration) | +| float | validate(float arg, SchemaConfiguration configuration) | +| double | validate(double arg, SchemaConfiguration configuration) | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | +| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | +| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | +| [Schema01BoxedString](#schema01boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema01BoxedVoid](#schema01boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [Schema01BoxedNumber](#schema01boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [Schema01BoxedBoolean](#schema01boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [Schema01BoxedMap](#schema01boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [Schema01BoxedList](#schema01boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Schema00Boxed +public sealed interface Schema00Boxed
+permits
+[Schema00BoxedString](#schema00boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema00BoxedString +public record Schema00BoxedString
+implements [Schema00Boxed](#schema00boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema00BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema00 +public static class Schema00
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter0.Schema0; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = Schema0.Schema00.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Integer | minLength = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [Schema00BoxedString](#schema00boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema00Boxed](#schema00boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md new file mode 100644 index 00000000000..5698ce8d5e9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md @@ -0,0 +1,359 @@ +# Schema1 +public class Schema1
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | +| record | [Schema1.Schema11BoxedMap](#schema11boxedmap)
boxed class to store validated Map payloads | +| static class | [Schema1.Schema11](#schema11)
schema class | +| static class | [Schema1.SchemaMapBuilder1](#schemamapbuilder1)
builder for Map payloads | +| static class | [Schema1.SchemaMap1](#schemamap1)
output class for Map payloads | +| sealed interface | [Schema1.SomeProp1Boxed](#someprop1boxed)
sealed interface for validated payloads | +| record | [Schema1.SomeProp1BoxedVoid](#someprop1boxedvoid)
boxed class to store validated null payloads | +| record | [Schema1.SomeProp1BoxedBoolean](#someprop1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Schema1.SomeProp1BoxedNumber](#someprop1boxednumber)
boxed class to store validated Number payloads | +| record | [Schema1.SomeProp1BoxedString](#someprop1boxedstring)
boxed class to store validated String payloads | +| record | [Schema1.SomeProp1BoxedList](#someprop1boxedlist)
boxed class to store validated List payloads | +| record | [Schema1.SomeProp1BoxedMap](#someprop1boxedmap)
boxed class to store validated Map payloads | +| static class | [Schema1.SomeProp1](#someprop1)
schema class | +| sealed interface | [Schema1.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema1.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema1.Schema01](#schema01)
schema class | + +## Schema11Boxed +public sealed interface Schema11Boxed
+permits
+[Schema11BoxedMap](#schema11boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Schema11BoxedMap +public record Schema11BoxedMap
+implements [Schema11Boxed](#schema11boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema11BoxedMap([SchemaMap1](#schemamap1) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaMap1](#schemamap1) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema11 +public static class Schema11
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter1.Schema1; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +Schema1.SchemaMap1 validatedPayload = + Schema1.Schema11.validate( + new Schema1.SchemaMapBuilder1() + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("someProp", [SomeProp1.class](#someprop1)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaMap1](#schemamap1) | validate([Map<?, ?>](#schemamapbuilder1) arg, SchemaConfiguration configuration) | +| [Schema11BoxedMap](#schema11boxedmap) | validateAndBox([Map<?, ?>](#schemamapbuilder1) arg, SchemaConfiguration configuration) | +| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaMapBuilder1 +public class SchemaMapBuilder1
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaMapBuilder1()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(Void value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(boolean value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(String value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(int value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(float value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(long value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(double value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(List value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | someProp(Map value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, Void value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, boolean value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, String value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, int value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, float value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, long value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, double value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, List value) | +| [SchemaMapBuilder1](#schemamapbuilder1) | additionalProperty(String key, Map value) | + +## SchemaMap1 +public static class SchemaMap1
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaMap1](#schemamap1) | of([Map](#schemamapbuilder1) arg, SchemaConfiguration configuration) | +| @Nullable Object | someProp()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## SomeProp1Boxed +public sealed interface SomeProp1Boxed
+permits
+[SomeProp1BoxedVoid](#someprop1boxedvoid), +[SomeProp1BoxedBoolean](#someprop1boxedboolean), +[SomeProp1BoxedNumber](#someprop1boxednumber), +[SomeProp1BoxedString](#someprop1boxedstring), +[SomeProp1BoxedList](#someprop1boxedlist), +[SomeProp1BoxedMap](#someprop1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## SomeProp1BoxedVoid +public record SomeProp1BoxedVoid
+implements [SomeProp1Boxed](#someprop1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SomeProp1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## SomeProp1BoxedBoolean +public record SomeProp1BoxedBoolean
+implements [SomeProp1Boxed](#someprop1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SomeProp1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## SomeProp1BoxedNumber +public record SomeProp1BoxedNumber
+implements [SomeProp1Boxed](#someprop1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SomeProp1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## SomeProp1BoxedString +public record SomeProp1BoxedString
+implements [SomeProp1Boxed](#someprop1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SomeProp1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## SomeProp1BoxedList +public record SomeProp1BoxedList
+implements [SomeProp1Boxed](#someprop1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SomeProp1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## SomeProp1BoxedMap +public record SomeProp1BoxedMap
+implements [SomeProp1Boxed](#someprop1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SomeProp1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## SomeProp1 +public static class SomeProp1
+extends JsonSchema + +A schema class that validates payloads + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| List> | allOf = List.of(
    [Schema01.class](#schema01)
;)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| Void | validate(Void arg, SchemaConfiguration configuration) | +| int | validate(int arg, SchemaConfiguration configuration) | +| long | validate(long arg, SchemaConfiguration configuration) | +| float | validate(float arg, SchemaConfiguration configuration) | +| double | validate(double arg, SchemaConfiguration configuration) | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | +| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | +| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | +| [SomeProp1BoxedString](#someprop1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [SomeProp1BoxedVoid](#someprop1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [SomeProp1BoxedNumber](#someprop1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [SomeProp1BoxedBoolean](#someprop1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [SomeProp1BoxedMap](#someprop1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [SomeProp1BoxedList](#someprop1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [SomeProp1Boxed](#someprop1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter1.Schema1; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = Schema1.Schema01.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Integer | minLength = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [Schema01BoxedString](#schema01boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..e4f1139126b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,236 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | +| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| List> | allOf = List.of(
    [Applicationjson0.class](#applicationjson0)
;)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| Void | validate(Void arg, SchemaConfiguration configuration) | +| int | validate(int arg, SchemaConfiguration configuration) | +| long | validate(long arg, SchemaConfiguration configuration) | +| float | validate(float arg, SchemaConfiguration configuration) | +| double | validate(double arg, SchemaConfiguration configuration) | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | +| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | +| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Applicationjson0Boxed +public sealed interface Applicationjson0Boxed
+permits
+[Applicationjson0BoxedString](#applicationjson0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Applicationjson0BoxedString +public record Applicationjson0BoxedString
+implements [Applicationjson0Boxed](#applicationjson0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjson0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjson0 +public static class Applicationjson0
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Integer | minLength = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [Applicationjson0BoxedString](#applicationjson0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Applicationjson0Boxed](#applicationjson0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md new file mode 100644 index 00000000000..a788b114ec5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -0,0 +1,359 @@ +# MultipartformdataSchema +public class MultipartformdataSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | +| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | +| static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | + +## MultipartformdataSchema1Boxed +public sealed interface MultipartformdataSchema1Boxed
+permits
+[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSchema1BoxedMap +public record MultipartformdataSchema1BoxedMap
+implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSchema1 +public static class MultipartformdataSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = + MultipartformdataSchema.MultipartformdataSchema1.validate( + new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("someProp", [MultipartformdataSomeProp.class](#multipartformdatasomeprop)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## MultipartformdataSchemaMapBuilder +public class MultipartformdataSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Map value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | + +## MultipartformdataSchemaMap +public static class MultipartformdataSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | someProp()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## MultipartformdataSomePropBoxed +public sealed interface MultipartformdataSomePropBoxed
+permits
+[MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid), +[MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean), +[MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber), +[MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring), +[MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist), +[MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSomePropBoxedVoid +public record MultipartformdataSomePropBoxedVoid
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedBoolean +public record MultipartformdataSomePropBoxedBoolean
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedNumber +public record MultipartformdataSomePropBoxedNumber
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedString +public record MultipartformdataSomePropBoxedString
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedList +public record MultipartformdataSomePropBoxedList
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedMap +public record MultipartformdataSomePropBoxedMap
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomeProp +public static class MultipartformdataSomeProp
+extends JsonSchema + +A schema class that validates payloads + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| List> | allOf = List.of(
    [Multipartformdata0.class](#multipartformdata0)
;)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| Void | validate(Void arg, SchemaConfiguration configuration) | +| int | validate(int arg, SchemaConfiguration configuration) | +| long | validate(long arg, SchemaConfiguration configuration) | +| float | validate(float arg, SchemaConfiguration configuration) | +| double | validate(double arg, SchemaConfiguration configuration) | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | +| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | +| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Multipartformdata0Boxed +public sealed interface Multipartformdata0Boxed
+permits
+[Multipartformdata0BoxedString](#multipartformdata0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Multipartformdata0BoxedString +public record Multipartformdata0BoxedString
+implements [Multipartformdata0Boxed](#multipartformdata0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Multipartformdata0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Multipartformdata0 +public static class Multipartformdata0
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Integer | minLength = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [Multipartformdata0BoxedString](#multipartformdata0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Multipartformdata0Boxed](#multipartformdata0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md new file mode 100644 index 00000000000..786ddf56087 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.md @@ -0,0 +1,123 @@ +# FakeinlinecompositionPostCode200Response + +public class FakeinlinecompositionPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeinlinecompositionPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeinlinecompositionPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| record | [FakeinlinecompositionPostCode200Response.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakeinlinecompositionPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakeinlinecompositionPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| record | [FakeinlinecompositionPostCode200Response.MultipartformdataResponseBody](#multipartformdataresponsebody)
implements sealed interface to store response body | +| static class | [FakeinlinecompositionPostCode200Response.FakeinlinecompositionPostCode200Response1](#fakeinlinecompositionpostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype), +[MultipartformdataMediaType](#multipartformdatamediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## MultipartformdataMediaType +public record MultipartformdataMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchema.MultipartformdataSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody), +[MultipartformdataResponseBody](#multipartformdataresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | +## MultipartformdataResponseBody +public record MultipartformdataResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="multipart/form-data" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataResponseBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | + +## FakeinlinecompositionPostCode200Response1 +public static class FakeinlinecompositionPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeinlinecompositionPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)()),
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..6da7a53d31e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,236 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | +| sealed interface | [ApplicationjsonSchema.Applicationjson0Boxed](#applicationjson0boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.Applicationjson0BoxedString](#applicationjson0boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationjsonSchema.Applicationjson0](#applicationjson0)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| List> | allOf = List.of(
    [Applicationjson0.class](#applicationjson0)
;)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| Void | validate(Void arg, SchemaConfiguration configuration) | +| int | validate(int arg, SchemaConfiguration configuration) | +| long | validate(long arg, SchemaConfiguration configuration) | +| float | validate(float arg, SchemaConfiguration configuration) | +| double | validate(double arg, SchemaConfiguration configuration) | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | +| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | +| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Applicationjson0Boxed +public sealed interface Applicationjson0Boxed
+permits
+[Applicationjson0BoxedString](#applicationjson0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Applicationjson0BoxedString +public record Applicationjson0BoxedString
+implements [Applicationjson0Boxed](#applicationjson0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjson0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjson0 +public static class Applicationjson0
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Integer | minLength = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [Applicationjson0BoxedString](#applicationjson0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Applicationjson0Boxed](#applicationjson0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md new file mode 100644 index 00000000000..9d9d89cfb44 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md @@ -0,0 +1,359 @@ +# MultipartformdataSchema +public class MultipartformdataSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid)
boxed class to store validated null payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean)
boxed class to store validated boolean payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber)
boxed class to store validated Number payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring)
boxed class to store validated String payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist)
boxed class to store validated List payloads | +| record | [MultipartformdataSchema.MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSomeProp](#multipartformdatasomeprop)
schema class | +| sealed interface | [MultipartformdataSchema.Multipartformdata0Boxed](#multipartformdata0boxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.Multipartformdata0BoxedString](#multipartformdata0boxedstring)
boxed class to store validated String payloads | +| static class | [MultipartformdataSchema.Multipartformdata0](#multipartformdata0)
schema class | + +## MultipartformdataSchema1Boxed +public sealed interface MultipartformdataSchema1Boxed
+permits
+[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSchema1BoxedMap +public record MultipartformdataSchema1BoxedMap
+implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSchema1 +public static class MultipartformdataSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.multipartformdata.MultipartformdataSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = + MultipartformdataSchema.MultipartformdataSchema1.validate( + new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("someProp", [MultipartformdataSomeProp.class](#multipartformdatasomeprop)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## MultipartformdataSchemaMapBuilder +public class MultipartformdataSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | someProp(Map value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | + +## MultipartformdataSchemaMap +public static class MultipartformdataSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | someProp()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## MultipartformdataSomePropBoxed +public sealed interface MultipartformdataSomePropBoxed
+permits
+[MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid), +[MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean), +[MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber), +[MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring), +[MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist), +[MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSomePropBoxedVoid +public record MultipartformdataSomePropBoxedVoid
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedBoolean +public record MultipartformdataSomePropBoxedBoolean
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedNumber +public record MultipartformdataSomePropBoxedNumber
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedString +public record MultipartformdataSomePropBoxedString
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedList +public record MultipartformdataSomePropBoxedList
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomePropBoxedMap +public record MultipartformdataSomePropBoxedMap
+implements [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSomeProp +public static class MultipartformdataSomeProp
+extends JsonSchema + +A schema class that validates payloads + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| List> | allOf = List.of(
    [Multipartformdata0.class](#multipartformdata0)
;)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| Void | validate(Void arg, SchemaConfiguration configuration) | +| int | validate(int arg, SchemaConfiguration configuration) | +| long | validate(long arg, SchemaConfiguration configuration) | +| float | validate(float arg, SchemaConfiguration configuration) | +| double | validate(double arg, SchemaConfiguration configuration) | +| Number | validate(Number arg, SchemaConfiguration configuration) | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | +| FrozenMap<@Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | +| FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedString](#multipartformdatasomepropboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedVoid](#multipartformdatasomepropboxedvoid) | validateAndBox(Void arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedNumber](#multipartformdatasomepropboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedBoolean](#multipartformdatasomepropboxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedMap](#multipartformdatasomepropboxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxedList](#multipartformdatasomepropboxedlist) | validateAndBox(List arg, SchemaConfiguration configuration) | +| [MultipartformdataSomePropBoxed](#multipartformdatasomepropboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## Multipartformdata0Boxed +public sealed interface Multipartformdata0Boxed
+permits
+[Multipartformdata0BoxedString](#multipartformdata0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Multipartformdata0BoxedString +public record Multipartformdata0BoxedString
+implements [Multipartformdata0Boxed](#multipartformdata0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Multipartformdata0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Multipartformdata0 +public static class Multipartformdata0
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.multipartformdata.MultipartformdataSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( + "a", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Integer | minLength = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| [Multipartformdata0BoxedString](#multipartformdata0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Multipartformdata0Boxed](#multipartformdata0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md new file mode 100644 index 00000000000..d7cfc4e3192 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/FakejsonformdataGet.md @@ -0,0 +1,146 @@ +# FakejsonformdataGet + +public class FakejsonformdataGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [JsonFormDataOperation](#jsonformdataoperation)
The interface that has a jsonFormData method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.FakejsonformdataGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakejsonformdata.FakejsonformdataGet; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakejsonformdataGet.Get apiClient = new FakejsonformdataGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakejsonformdataGet.GetRequestBuilder().build(); + +FakejsonformdataGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response castResponse = (FakejsonformdataGetResponses.EndpointFakejsonformdataGetCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## JsonFormDataOperation +public interface JsonFormDataOperation
+ +an interface that allows one to call the endpoint using a method named jsonFormData by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakejsonformdataGetResponses.EndpointResponse](../../paths/fakejsonformdata/get/FakejsonformdataGetResponses.md#endpointresponse) | jsonFormData([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakejsonformdataGetRequestBody.@Nullable SealedRequestBody](../../paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | requestBody([FakejsonformdataGetRequestBody.SealedRequestBody](../../paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md new file mode 100644 index 00000000000..da678f85003 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.md @@ -0,0 +1,90 @@ +# FakejsonformdataGetRequestBody + +public class FakejsonformdataGetRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakejsonformdataGetRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakejsonformdataGetRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakejsonformdataGetRequestBody.FakejsonformdataGetRequestBody1](#fakejsonformdatagetrequestbody1)
class that serializes request bodies | +| sealed interface | [FakejsonformdataGetRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakejsonformdataGetRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationxwwwformurlencodedMediaType +public record ApplicationxwwwformurlencodedMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakejsonformdataGetRequestBody1 +public static class FakejsonformdataGetRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakejsonformdataGetRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new [ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationxwwwformurlencodedRequestBody +public record ApplicationxwwwformurlencodedRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/x-www-form-urlencoded" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/x-www-form-urlencoded" | +| ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md new file mode 100644 index 00000000000..89354bae3a3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/FakejsonformdataGetResponses.md @@ -0,0 +1,29 @@ +# FakejsonformdataGetResponses + +public class FakejsonformdataGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakejsonformdataGetCode200Response](#endpointfakejsonformdatagetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakejsonformdataGetCode200Response](#endpointfakejsonformdatagetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakejsonformdataGetCode200Response +public record EndpointFakejsonformdataGetCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md new file mode 100644 index 00000000000..0007484657b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -0,0 +1,262 @@ +# ApplicationxwwwformurlencodedSchema +public class ApplicationxwwwformurlencodedSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2BoxedString](#applicationxwwwformurlencodedparam2boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam2](#applicationxwwwformurlencodedparam2)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParamBoxedString](#applicationxwwwformurlencodedparamboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedParam](#applicationxwwwformurlencodedparam)
schema class | + +## ApplicationxwwwformurlencodedSchema1Boxed +public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
+permits
+[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedSchema1BoxedMap +public record ApplicationxwwwformurlencodedSchema1BoxedMap
+implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedSchema1 +public static class ApplicationxwwwformurlencodedSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = + ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.validate( + new ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder() + .param("a") + + .param2("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("param", [ApplicationxwwwformurlencodedParam.class](#applicationxwwwformurlencodedparam))),
    new PropertyEntry("param2", [ApplicationxwwwformurlencodedParam2.class](#applicationxwwwformurlencodedparam2)))
)
| +| Set | required = Set.of(
    "param",
    "param2"
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedSchemaMap00Builder +public class ApplicationxwwwformurlencodedSchemaMap00Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap00Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, Void value) | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, boolean value) | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, String value) | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, int value) | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, float value) | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, long value) | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, double value) | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, List value) | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | additionalProperty(String key, Map value) | + +## ApplicationxwwwformurlencodedSchemaMap01Builder +public class ApplicationxwwwformurlencodedSchemaMap01Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap01Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | param2(String value) | + +## ApplicationxwwwformurlencodedSchemaMap10Builder +public class ApplicationxwwwformurlencodedSchemaMap10Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMap10Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap00Builder](#applicationxwwwformurlencodedschemamap00builder) | param(String value) | + +## ApplicationxwwwformurlencodedSchemaMapBuilder +public class ApplicationxwwwformurlencodedSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap01Builder](#applicationxwwwformurlencodedschemamap01builder) | param(String value) | +| [ApplicationxwwwformurlencodedSchemaMap10Builder](#applicationxwwwformurlencodedschemamap10builder) | param2(String value) | + +## ApplicationxwwwformurlencodedSchemaMap +public static class ApplicationxwwwformurlencodedSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | of([Map](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| String | param()
| +| String | param2()
| +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## ApplicationxwwwformurlencodedParam2Boxed +public sealed interface ApplicationxwwwformurlencodedParam2Boxed
+permits
+[ApplicationxwwwformurlencodedParam2BoxedString](#applicationxwwwformurlencodedparam2boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedParam2BoxedString +public record ApplicationxwwwformurlencodedParam2BoxedString
+implements [ApplicationxwwwformurlencodedParam2Boxed](#applicationxwwwformurlencodedparam2boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedParam2BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedParam2 +public static class ApplicationxwwwformurlencodedParam2
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +## Description +field2 + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | + +## ApplicationxwwwformurlencodedParamBoxed +public sealed interface ApplicationxwwwformurlencodedParamBoxed
+permits
+[ApplicationxwwwformurlencodedParamBoxedString](#applicationxwwwformurlencodedparamboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedParamBoxedString +public record ApplicationxwwwformurlencodedParamBoxedString
+implements [ApplicationxwwwformurlencodedParamBoxed](#applicationxwwwformurlencodedparamboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedParamBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedParam +public static class ApplicationxwwwformurlencodedParam
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +## Description +field1 + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.md new file mode 100644 index 00000000000..c7ae900e122 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.md @@ -0,0 +1,17 @@ +# FakejsonformdataGetCode200Response + +public class FakejsonformdataGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakejsonformdataGetCode200Response.FakejsonformdataGetCode200Response1](#fakejsonformdatagetcode200response1)
class that deserializes responses | + +## FakejsonformdataGetCode200Response1 +public static class FakejsonformdataGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md new file mode 100644 index 00000000000..28d3b8c040d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/FakejsonpatchPatch.md @@ -0,0 +1,146 @@ +# FakejsonpatchPatch + +public class FakejsonpatchPatch + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Patch](#patch)
The class that has a patch method to call the endpoint | +| interface | [JsonPatchOperation](#jsonpatchoperation)
The interface that has a jsonPatch method to call the endpoint | +| static class | [PatchRequest](#patchrequest)
The request inputs class | +| static class | [PatchRequestBuilder](#patchrequestbuilder)
A builder for the request input class | + +## Patch +public static class Patch extends ApiClient.ApiClient1 implements PatchOperation
+ +a class that allows one to call the endpoint using a method named patch + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; +import org.openapijsonschematools.client.components.schemas.JSONPatchRequest; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.FakejsonpatchPatchCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakejsonpatch.FakejsonpatchPatch; +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakejsonpatchPatch.Patch apiClient = new FakejsonpatchPatch.Patch(apiConfiguration, schemaConfiguration); + + +var request = new FakejsonpatchPatch.PatchRequestBuilder().build(); + +FakejsonpatchPatchResponses.EndpointResponse response; +try { + response = apiClient.patch(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response castResponse = (FakejsonpatchPatchResponses.EndpointFakejsonpatchPatchCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | patch([PatchRequest](#patchrequest) request) | + +## JsonPatchOperation +public interface JsonPatchOperation
+ +an interface that allows one to call the endpoint using a method named jsonPatch by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakejsonpatchPatchResponses.EndpointResponse](../../paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md#endpointresponse) | jsonPatch([PatchRequest](#patchrequest) request) | + +## PatchRequest +public static class PatchRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakejsonpatchPatchRequestBody.@Nullable SealedRequestBody](../../paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PatchRequestBuilder +public static class PatchRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PatchRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PatchRequest](#patchrequest) | build()
Returns the request input used to call an endpoint method | +| [PatchRequestBuilder](#patchrequestbuilder) | requestBody([FakejsonpatchPatchRequestBody.SealedRequestBody](../../paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PatchRequestBuilder](#patchrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PatchRequestBuilder](#patchrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md new file mode 100644 index 00000000000..1b5ffa82e1b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.md @@ -0,0 +1,90 @@ +# FakejsonpatchPatchRequestBody + +public class FakejsonpatchPatchRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakejsonpatchPatchRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakejsonpatchPatchRequestBody.ApplicationjsonpatchjsonMediaType](#applicationjsonpatchjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakejsonpatchPatchRequestBody.FakejsonpatchPatchRequestBody1](#fakejsonpatchpatchrequestbody1)
class that serializes request bodies | +| sealed interface | [FakejsonpatchPatchRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakejsonpatchPatchRequestBody.ApplicationjsonpatchjsonRequestBody](#applicationjsonpatchjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonpatchjsonMediaType](#applicationjsonpatchjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonpatchjsonMediaType +public record ApplicationjsonpatchjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1](../../../paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md#applicationjsonpatchjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonpatchjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1](../../../paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md#applicationjsonpatchjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakejsonpatchPatchRequestBody1 +public static class FakejsonpatchPatchRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakejsonpatchPatchRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json-patch+json", new [ApplicationjsonpatchjsonMediaType](#applicationjsonpatchjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonpatchjsonRequestBody](#applicationjsonpatchjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonpatchjsonRequestBody +public record ApplicationjsonpatchjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json-patch+json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonpatchjsonRequestBody(ApplicationjsonpatchjsonSchema.[JSONPatchRequest1Boxed](../../../components/schemas/JSONPatchRequest.md#jsonpatchrequest1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json-patch+json" | +| ApplicationjsonpatchjsonSchema.[JSONPatchRequest1Boxed](../../../components/schemas/JSONPatchRequest.md#jsonpatchrequest1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md new file mode 100644 index 00000000000..c0ece525307 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.md @@ -0,0 +1,29 @@ +# FakejsonpatchPatchResponses + +public class FakejsonpatchPatchResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakejsonpatchPatchCode200Response](#endpointfakejsonpatchpatchcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakejsonpatchPatchCode200Response](#endpointfakejsonpatchpatchcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakejsonpatchPatchCode200Response +public record EndpointFakejsonpatchPatchCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md new file mode 100644 index 00000000000..c8f50418586 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonpatchjsonSchema +public class ApplicationjsonpatchjsonSchema
+extends [JSONPatchRequest1](../../../../../../components/schemas/JSONPatchRequest.md#jsonpatchrequest) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1](#applicationjsonpatchjsonschema1)
schema class | + +## ApplicationjsonpatchjsonSchema1 +public static class ApplicationjsonpatchjsonSchema1
+extends [JSONPatchRequest.JSONPatchRequest1](../../../../../../components/schemas/JSONPatchRequest.md#jsonpatchrequest1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.md new file mode 100644 index 00000000000..72f6aff6618 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.md @@ -0,0 +1,17 @@ +# FakejsonpatchPatchCode200Response + +public class FakejsonpatchPatchCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakejsonpatchPatchCode200Response.FakejsonpatchPatchCode200Response1](#fakejsonpatchpatchcode200response1)
class that deserializes responses | + +## FakejsonpatchPatchCode200Response1 +public static class FakejsonpatchPatchCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md new file mode 100644 index 00000000000..9456e893032 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/FakejsonwithcharsetPost.md @@ -0,0 +1,148 @@ +# FakejsonwithcharsetPost + +public class FakejsonwithcharsetPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [JsonWithCharsetOperation](#jsonwithcharsetoperation)
The interface that has a jsonWithCharset method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.FakejsonwithcharsetPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.FakejsonwithcharsetPost; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakejsonwithcharsetPost.Post apiClient = new FakejsonwithcharsetPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakejsonwithcharsetPost.PostRequestBuilder().build(); + +FakejsonwithcharsetPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakejsonwithcharsetPostResponses.EndpointFakejsonwithcharsetPostCode200Response castResponse = (FakejsonwithcharsetPostResponses.EndpointFakejsonwithcharsetPostCode200Response) response; +FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody deserializedBody = (FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## JsonWithCharsetOperation +public interface JsonWithCharsetOperation
+ +an interface that allows one to call the endpoint using a method named jsonWithCharset by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakejsonwithcharsetPostResponses.EndpointResponse](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md#endpointresponse) | jsonWithCharset([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakejsonwithcharsetPostRequestBody.@Nullable SealedRequestBody](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakejsonwithcharsetPostRequestBody.SealedRequestBody](../../paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md new file mode 100644 index 00000000000..5e338880026 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.md @@ -0,0 +1,90 @@ +# FakejsonwithcharsetPostRequestBody + +public class FakejsonwithcharsetPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakejsonwithcharsetPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakejsonwithcharsetPostRequestBody.Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakejsonwithcharsetPostRequestBody.FakejsonwithcharsetPostRequestBody1](#fakejsonwithcharsetpostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakejsonwithcharsetPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakejsonwithcharsetPostRequestBody.Applicationjsoncharsetutf8RequestBody](#applicationjsoncharsetutf8requestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype) + +sealed interface that stores schema and encoding info + + +## Applicationjsoncharsetutf8MediaType +public record Applicationjsoncharsetutf8MediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8MediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakejsonwithcharsetPostRequestBody1 +public static class FakejsonwithcharsetPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakejsonwithcharsetPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new [Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[Applicationjsoncharsetutf8RequestBody](#applicationjsoncharsetutf8requestbody) + +sealed interface that stores request contentType + validated schema data + +## Applicationjsoncharsetutf8RequestBody +public record Applicationjsoncharsetutf8RequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json; charset=utf-8" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8RequestBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json; charset=utf-8" | +| Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md new file mode 100644 index 00000000000..f47d58cd759 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.md @@ -0,0 +1,29 @@ +# FakejsonwithcharsetPostResponses + +public class FakejsonwithcharsetPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakejsonwithcharsetPostCode200Response](#endpointfakejsonwithcharsetpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakejsonwithcharsetPostCode200Response](#endpointfakejsonwithcharsetpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakejsonwithcharsetPostCode200Response +public record EndpointFakejsonwithcharsetPostCode200Response( + HttpResponse response, + [FakejsonwithcharsetPostCode200Response.SealedResponseBody](../../../paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md new file mode 100644 index 00000000000..1465105b55d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -0,0 +1,144 @@ +# Applicationjsoncharsetutf8Schema +public class Applicationjsoncharsetutf8Schema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
sealed interface for validated payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | +| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | + +## Applicationjsoncharsetutf8Schema1Boxed +public sealed interface Applicationjsoncharsetutf8Schema1Boxed
+permits
+[Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid), +[Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean), +[Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber), +[Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring), +[Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist), +[Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Applicationjsoncharsetutf8Schema1BoxedVoid +public record Applicationjsoncharsetutf8Schema1BoxedVoid
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedBoolean +public record Applicationjsoncharsetutf8Schema1BoxedBoolean
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedNumber +public record Applicationjsoncharsetutf8Schema1BoxedNumber
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedString +public record Applicationjsoncharsetutf8Schema1BoxedString
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedList +public record Applicationjsoncharsetutf8Schema1BoxedList
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedMap +public record Applicationjsoncharsetutf8Schema1BoxedMap
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1 +public static class Applicationjsoncharsetutf8Schema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md new file mode 100644 index 00000000000..fe4f16ce9f8 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.md @@ -0,0 +1,87 @@ +# FakejsonwithcharsetPostCode200Response + +public class FakejsonwithcharsetPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakejsonwithcharsetPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakejsonwithcharsetPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakejsonwithcharsetPostCode200Response.Applicationjsoncharsetutf8ResponseBody](#applicationjsoncharsetutf8responsebody)
implements sealed interface to store response body | +| static class | [FakejsonwithcharsetPostCode200Response.FakejsonwithcharsetPostCode200Response1](#fakejsonwithcharsetpostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype) + +sealed interface that stores schema and encoding info + +## Applicationjsoncharsetutf8MediaType +public record Applicationjsoncharsetutf8MediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../../paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8MediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../../paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[Applicationjsoncharsetutf8ResponseBody](#applicationjsoncharsetutf8responsebody) + +sealed interface that stores response body + +## Applicationjsoncharsetutf8ResponseBody +public record Applicationjsoncharsetutf8ResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json; charset=utf-8" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8ResponseBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakejsonwithcharsetPostCode200Response1 +public static class FakejsonwithcharsetPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakejsonwithcharsetPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new [Applicationjsoncharsetutf8MediaType](#applicationjsoncharsetutf8mediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md new file mode 100644 index 00000000000..1465105b55d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md @@ -0,0 +1,144 @@ +# Applicationjsoncharsetutf8Schema +public class Applicationjsoncharsetutf8Schema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed)
sealed interface for validated payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid)
boxed class to store validated null payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber)
boxed class to store validated Number payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring)
boxed class to store validated String payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist)
boxed class to store validated List payloads | +| record | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap)
boxed class to store validated Map payloads | +| static class | [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](#applicationjsoncharsetutf8schema1)
schema class | + +## Applicationjsoncharsetutf8Schema1Boxed +public sealed interface Applicationjsoncharsetutf8Schema1Boxed
+permits
+[Applicationjsoncharsetutf8Schema1BoxedVoid](#applicationjsoncharsetutf8schema1boxedvoid), +[Applicationjsoncharsetutf8Schema1BoxedBoolean](#applicationjsoncharsetutf8schema1boxedboolean), +[Applicationjsoncharsetutf8Schema1BoxedNumber](#applicationjsoncharsetutf8schema1boxednumber), +[Applicationjsoncharsetutf8Schema1BoxedString](#applicationjsoncharsetutf8schema1boxedstring), +[Applicationjsoncharsetutf8Schema1BoxedList](#applicationjsoncharsetutf8schema1boxedlist), +[Applicationjsoncharsetutf8Schema1BoxedMap](#applicationjsoncharsetutf8schema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Applicationjsoncharsetutf8Schema1BoxedVoid +public record Applicationjsoncharsetutf8Schema1BoxedVoid
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedBoolean +public record Applicationjsoncharsetutf8Schema1BoxedBoolean
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedNumber +public record Applicationjsoncharsetutf8Schema1BoxedNumber
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedString +public record Applicationjsoncharsetutf8Schema1BoxedString
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedList +public record Applicationjsoncharsetutf8Schema1BoxedList
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1BoxedMap +public record Applicationjsoncharsetutf8Schema1BoxedMap
+implements [Applicationjsoncharsetutf8Schema1Boxed](#applicationjsoncharsetutf8schema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Applicationjsoncharsetutf8Schema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Applicationjsoncharsetutf8Schema1 +public static class Applicationjsoncharsetutf8Schema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md new file mode 100644 index 00000000000..a4581c24d6e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.md @@ -0,0 +1,148 @@ +# FakemultiplerequestbodycontenttypesPost + +public class FakemultiplerequestbodycontenttypesPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [MultipleRequestBodyContentTypesOperation](#multiplerequestbodycontenttypesoperation)
The interface that has a multipleRequestBodyContentTypes method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.FakemultiplerequestbodycontenttypesPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.FakemultiplerequestbodycontenttypesPost; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakemultiplerequestbodycontenttypesPost.Post apiClient = new FakemultiplerequestbodycontenttypesPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakemultiplerequestbodycontenttypesPost.PostRequestBuilder().build(); + +FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakemultiplerequestbodycontenttypesPostResponses.EndpointFakemultiplerequestbodycontenttypesPostCode200Response castResponse = (FakemultiplerequestbodycontenttypesPostResponses.EndpointFakemultiplerequestbodycontenttypesPostCode200Response) response; +FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## MultipleRequestBodyContentTypesOperation +public interface MultipleRequestBodyContentTypesOperation
+ +an interface that allows one to call the endpoint using a method named multipleRequestBodyContentTypes by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md#endpointresponse) | multipleRequestBodyContentTypes([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakemultiplerequestbodycontenttypesPostRequestBody.@Nullable SealedRequestBody](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakemultiplerequestbodycontenttypesPostRequestBody.SealedRequestBody](../../paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md new file mode 100644 index 00000000000..8c3563ecad3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.md @@ -0,0 +1,128 @@ +# FakemultiplerequestbodycontenttypesPostRequestBody + +public class FakemultiplerequestbodycontenttypesPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakemultiplerequestbodycontenttypesPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakemultiplerequestbodycontenttypesPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| record | [FakemultiplerequestbodycontenttypesPostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakemultiplerequestbodycontenttypesPostRequestBody.FakemultiplerequestbodycontenttypesPostRequestBody1](#fakemultiplerequestbodycontenttypespostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakemultiplerequestbodycontenttypesPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakemultiplerequestbodycontenttypesPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | +| record | [FakemultiplerequestbodycontenttypesPostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype), +[MultipartformdataMediaType](#multipartformdatamediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## MultipartformdataMediaType +public record MultipartformdataMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakemultiplerequestbodycontenttypesPostRequestBody1 +public static class FakemultiplerequestbodycontenttypesPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakemultiplerequestbodycontenttypesPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)()),
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody), +[MultipartformdataRequestBody](#multipartformdatarequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | +## MultipartformdataRequestBody +public record MultipartformdataRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="multipart/form-data" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "multipart/form-data" | +| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md new file mode 100644 index 00000000000..cb74256a8d0 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.md @@ -0,0 +1,29 @@ +# FakemultiplerequestbodycontenttypesPostResponses + +public class FakemultiplerequestbodycontenttypesPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakemultiplerequestbodycontenttypesPostCode200Response](#endpointfakemultiplerequestbodycontenttypespostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakemultiplerequestbodycontenttypesPostCode200Response](#endpointfakemultiplerequestbodycontenttypespostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakemultiplerequestbodycontenttypesPostCode200Response +public record EndpointFakemultiplerequestbodycontenttypesPostCode200Response( + HttpResponse response, + [FakemultiplerequestbodycontenttypesPostCode200Response.SealedResponseBody](../../../paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1a451c294b9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,166 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | +| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonABoxed](#applicationjsonaboxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonABoxedString](#applicationjsonaboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonA](#applicationjsona)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = + ApplicationjsonSchema.ApplicationjsonSchema1.validate( + new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() + .a("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("a", [ApplicationjsonA.class](#applicationjsona)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationjsonSchemaMapBuilder +public class ApplicationjsonSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | a(String value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Void value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, boolean value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, String value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, int value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, float value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, long value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, double value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, List value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Map value) | + +## ApplicationjsonSchemaMap +public static class ApplicationjsonSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [ApplicationjsonSchemaMap](#applicationjsonschemamap) | of([Map](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| String | a()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## ApplicationjsonABoxed +public sealed interface ApplicationjsonABoxed
+permits
+[ApplicationjsonABoxedString](#applicationjsonaboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonABoxedString +public record ApplicationjsonABoxedString
+implements [ApplicationjsonABoxed](#applicationjsonaboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonABoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonA +public static class ApplicationjsonA
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md new file mode 100644 index 00000000000..c09adef6e02 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -0,0 +1,166 @@ +# MultipartformdataSchema +public class MultipartformdataSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataBBoxed](#multipartformdatabboxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataBBoxedString](#multipartformdatabboxedstring)
boxed class to store validated String payloads | +| static class | [MultipartformdataSchema.MultipartformdataB](#multipartformdatab)
schema class | + +## MultipartformdataSchema1Boxed +public sealed interface MultipartformdataSchema1Boxed
+permits
+[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSchema1BoxedMap +public record MultipartformdataSchema1BoxedMap
+implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSchema1 +public static class MultipartformdataSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = + MultipartformdataSchema.MultipartformdataSchema1.validate( + new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() + .b("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("b", [MultipartformdataB.class](#multipartformdatab)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## MultipartformdataSchemaMapBuilder +public class MultipartformdataSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | b(String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | + +## MultipartformdataSchemaMap +public static class MultipartformdataSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| String | b()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## MultipartformdataBBoxed +public sealed interface MultipartformdataBBoxed
+permits
+[MultipartformdataBBoxedString](#multipartformdatabboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataBBoxedString +public record MultipartformdataBBoxedString
+implements [MultipartformdataBBoxed](#multipartformdatabboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataBBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataB +public static class MultipartformdataB
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md new file mode 100644 index 00000000000..c6bb2c77dfd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.md @@ -0,0 +1,87 @@ +# FakemultiplerequestbodycontenttypesPostCode200Response + +public class FakemultiplerequestbodycontenttypesPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakemultiplerequestbodycontenttypesPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakemultiplerequestbodycontenttypesPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakemultiplerequestbodycontenttypesPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakemultiplerequestbodycontenttypesPostCode200Response.FakemultiplerequestbodycontenttypesPostCode200Response1](#fakemultiplerequestbodycontenttypespostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakemultiplerequestbodycontenttypesPostCode200Response1 +public static class FakemultiplerequestbodycontenttypesPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakemultiplerequestbodycontenttypesPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md new file mode 100644 index 00000000000..f95220fcb65 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.md @@ -0,0 +1,150 @@ +# FakemultipleresponsebodiesGet + +public class FakemultipleresponsebodiesGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [MultipleResponseBodiesOperation](#multipleresponsebodiesoperation)
The interface that has a multipleResponseBodies method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode200Response; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode202Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.FakemultipleresponsebodiesGet; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakemultipleresponsebodiesGet.Get apiClient = new FakemultipleresponsebodiesGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakemultipleresponsebodiesGet.GetRequestBuilder().build(); + +FakemultipleresponsebodiesGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +if (response instanceof FakemultipleresponsebodiesGetResponses.EndpointFakemultipleresponsebodiesGetCode200Response castResponse) { +FakemultipleresponsebodiesGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultipleresponsebodiesGetCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +} else { + FakemultipleresponsebodiesGetResponses.EndpointFakemultipleresponsebodiesGetCode202Response castResponse = (FakemultipleresponsebodiesGetResponses.EndpointFakemultipleresponsebodiesGetCode202Response) response; +FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody deserializedBody = (FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## MultipleResponseBodiesOperation +public interface MultipleResponseBodiesOperation
+ +an interface that allows one to call the endpoint using a method named multipleResponseBodies by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakemultipleresponsebodiesGetResponses.EndpointResponse](../../paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md#endpointresponse) | multipleResponseBodies([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md new file mode 100644 index 00000000000..526882905f0 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.md @@ -0,0 +1,40 @@ +# FakemultipleresponsebodiesGetResponses + +public class FakemultipleresponsebodiesGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakemultipleresponsebodiesGetCode200Response](#endpointfakemultipleresponsebodiesgetcode200response)
the response for 200 | +| record | [EndpointFakemultipleresponsebodiesGetCode202Response](#endpointfakemultipleresponsebodiesgetcode202response)
the response for 202 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakemultipleresponsebodiesGetCode200Response](#endpointfakemultipleresponsebodiesgetcode200response), +[EndpointFakemultipleresponsebodiesGetCode202Response](#endpointfakemultipleresponsebodiesgetcode202response) + +a sealed interface that stores endpoint responses + +## EndpointFakemultipleresponsebodiesGetCode200Response +public record EndpointFakemultipleresponsebodiesGetCode200Response( + HttpResponse response, + [FakemultipleresponsebodiesGetCode200Response.SealedResponseBody](../../../paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + +## EndpointFakemultipleresponsebodiesGetCode202Response +public record EndpointFakemultipleresponsebodiesGetCode202Response( + HttpResponse response, + [FakemultipleresponsebodiesGetCode202Response.SealedResponseBody](../../../paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md new file mode 100644 index 00000000000..43977a02fe7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.md @@ -0,0 +1,87 @@ +# FakemultipleresponsebodiesGetCode200Response + +public class FakemultipleresponsebodiesGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakemultipleresponsebodiesGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakemultipleresponsebodiesGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakemultipleresponsebodiesGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakemultipleresponsebodiesGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakemultipleresponsebodiesGetCode200Response.FakemultipleresponsebodiesGetCode200Response1](#fakemultipleresponsebodiesgetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakemultipleresponsebodiesGetCode200Response1 +public static class FakemultipleresponsebodiesGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakemultipleresponsebodiesGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md new file mode 100644 index 00000000000..75f30c5f0f3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.md @@ -0,0 +1,87 @@ +# FakemultipleresponsebodiesGetCode202Response + +public class FakemultipleresponsebodiesGetCode202Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakemultipleresponsebodiesGetCode202Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakemultipleresponsebodiesGetCode202Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakemultipleresponsebodiesGetCode202Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakemultipleresponsebodiesGetCode202Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakemultipleresponsebodiesGetCode202Response.FakemultipleresponsebodiesGetCode202Response1](#fakemultipleresponsebodiesgetcode202response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakemultipleresponsebodiesGetCode202Response1 +public static class FakemultipleresponsebodiesGetCode202Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakemultipleresponsebodiesGetCode202Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md new file mode 100644 index 00000000000..4ce19768eab --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.md @@ -0,0 +1,163 @@ +# FakemultiplesecuritiesGet + +public class FakemultiplesecuritiesGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [MultipleSecuritiesOperation](#multiplesecuritiesoperation)
The interface that has a multipleSecurities method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.FakemultiplesecuritiesGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.FakemultiplesecuritiesGet; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +securitySchemes.add( + new HttpBasicTest("someUserId", "somePassword"); +); +securitySchemes.add( + new ApiKey("someApiKey"); +); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .fakemultiplesecuritiesGetSecurityRequirementObject0SecurityIndex(FakemultiplesecuritiesGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakemultiplesecuritiesGet.Get apiClient = new FakemultiplesecuritiesGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakemultiplesecuritiesGet.GetRequestBuilder().build(); + +FakemultiplesecuritiesGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakemultiplesecuritiesGetResponses.EndpointFakemultiplesecuritiesGetCode200Response castResponse = (FakemultiplesecuritiesGetResponses.EndpointFakemultiplesecuritiesGetCode200Response) response; +FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## MultipleSecuritiesOperation +public interface MultipleSecuritiesOperation
+ +an interface that allows one to call the endpoint using a method named multipleSecurities by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakemultiplesecuritiesGetResponses.EndpointResponse](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md#endpointresponse) | multipleSecurities([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [FakemultiplesecuritiesGetSecurityInfo.@Nullable SecurityIndex](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | securityIndex([FakemultiplesecuritiesGetSecurityInfo.SecurityIndex](../../paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md new file mode 100644 index 00000000000..10182841698 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.md @@ -0,0 +1,29 @@ +# FakemultiplesecuritiesGetResponses + +public class FakemultiplesecuritiesGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakemultiplesecuritiesGetCode200Response](#endpointfakemultiplesecuritiesgetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakemultiplesecuritiesGetCode200Response](#endpointfakemultiplesecuritiesgetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakemultiplesecuritiesGetCode200Response +public record EndpointFakemultiplesecuritiesGetCode200Response( + HttpResponse response, + [FakemultiplesecuritiesGetCode200Response.SealedResponseBody](../../../paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md new file mode 100644 index 00000000000..dfdd24f765d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md @@ -0,0 +1,44 @@ +# FakemultiplesecuritiesGetSecurityInfo +FakemultiplesecuritiesGetSecurityInfo.java + +public class FakemultiplesecuritiesGetSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakemultiplesecuritiesGetSecurityInfo.FakemultiplesecuritiesGetSecurityInfo1](#fakemultiplesecuritiesgetsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [FakemultiplesecuritiesGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## FakemultiplesecuritiesGetSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakemultiplesecuritiesGetSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakemultiplesecuritiesGetSecurityRequirementObject0](../../../paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md) | security0 | +| [FakemultiplesecuritiesGetSecurityRequirementObject1](../../../paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md) | security1 | +| [FakemultiplesecuritiesGetSecurityRequirementObject2](../../../paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md) | security2 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | +| SECURITY_1
security 1 | +| SECURITY_2
security 2 | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md new file mode 100644 index 00000000000..fe4134ce780 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.md @@ -0,0 +1,87 @@ +# FakemultiplesecuritiesGetCode200Response + +public class FakemultiplesecuritiesGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakemultiplesecuritiesGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakemultiplesecuritiesGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakemultiplesecuritiesGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakemultiplesecuritiesGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakemultiplesecuritiesGetCode200Response.FakemultiplesecuritiesGetCode200Response1](#fakemultiplesecuritiesgetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakemultiplesecuritiesGetCode200Response1 +public static class FakemultiplesecuritiesGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakemultiplesecuritiesGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md new file mode 100644 index 00000000000..e762a030213 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# FakemultiplesecuritiesGetSecurityRequirementObject0 +FakemultiplesecuritiesGetSecurityRequirementObject0.java + +public class FakemultiplesecuritiesGetSecurityRequirementObject0 +extends EmptySecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakemultiplesecuritiesGetSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries() | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md new file mode 100644 index 00000000000..2fc62ae0497 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md @@ -0,0 +1,15 @@ +# FakemultiplesecuritiesGetSecurityRequirementObject1 +FakemultiplesecuritiesGetSecurityRequirementObject1.java + +public class FakemultiplesecuritiesGetSecurityRequirementObject1 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakemultiplesecuritiesGetSecurityRequirementObject1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpBasicTest.class](../../../../components/securityschemes/HttpBasicTest.md),
        List.of()
    ),
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md new file mode 100644 index 00000000000..b073e315c8b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md @@ -0,0 +1,15 @@ +# FakemultiplesecuritiesGetSecurityRequirementObject2 +FakemultiplesecuritiesGetSecurityRequirementObject2.java + +public class FakemultiplesecuritiesGetSecurityRequirementObject2 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakemultiplesecuritiesGetSecurityRequirementObject2()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md new file mode 100644 index 00000000000..0fdd2d46e90 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/FakeobjinqueryGet.md @@ -0,0 +1,145 @@ +# FakeobjinqueryGet + +public class FakeobjinqueryGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [ObjectInQueryOperation](#objectinqueryoperation)
The interface that has a objectInQuery method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.FakeobjinqueryGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeobjinquery.FakeobjinqueryGet; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeobjinqueryGet.Get apiClient = new FakeobjinqueryGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakeobjinqueryGet.GetRequestBuilder().build(); + +FakeobjinqueryGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response castResponse = (FakeobjinqueryGetResponses.EndpointFakeobjinqueryGetCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## ObjectInQueryOperation +public interface ObjectInQueryOperation
+ +an interface that allows one to call the endpoint using a method named objectInQuery by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeobjinqueryGetResponses.EndpointResponse](../../paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md#endpointresponse) | objectInQuery([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeobjinqueryGetQueryParameters.@Nullable QueryParametersMap](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#queryparametersmap) | queryParameters
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakeobjinqueryGetQueryParametersQueryParametersMap](../../paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md new file mode 100644 index 00000000000..f5b52436710 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.md @@ -0,0 +1,258 @@ +# FakeobjinqueryGetQueryParameters +public class FakeobjinqueryGetQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed)
sealed interface for validated payloads | +| record | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1](#fakeobjinquerygetqueryparameters1)
schema class | +| static class | [FakeobjinqueryGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakeobjinqueryGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakeobjinqueryGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakeobjinqueryGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakeobjinqueryGetQueryParameters1Boxed +public sealed interface FakeobjinqueryGetQueryParameters1Boxed
+permits
+[FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakeobjinqueryGetQueryParameters1BoxedMap +public record FakeobjinqueryGetQueryParameters1BoxedMap
+implements [FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeobjinqueryGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakeobjinqueryGetQueryParameters1 +public static class FakeobjinqueryGetQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakeobjinqueryGetQueryParameters.QueryParametersMap validatedPayload = + FakeobjinqueryGetQueryParameters.FakeobjinqueryGetQueryParameters1.validate( + new FakeobjinqueryGetQueryParameters.QueryParametersMapBuilder() + .mapBean( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "keyword", + "a" + ) + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("mapBean", [Schema0.Schema01.class](../../../paths/fakeobjinquery/get/parameters/parameter0/Schema0.md#schema01))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeobjinqueryGetQueryParameters1BoxedMap](#fakeobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakeobjinqueryGetQueryParameters1Boxed](#fakeobjinquerygetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map> | build()
Returns map input that should be used with Schema.validate | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | mapBean(Map value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Schema0.SchemaMap0](../../../paths/fakeobjinquery/get/parameters/parameter0/Schema0.md#schemamap0) | mapBean()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md new file mode 100644 index 00000000000..edf71dc70ce --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.md @@ -0,0 +1,29 @@ +# FakeobjinqueryGetResponses + +public class FakeobjinqueryGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeobjinqueryGetCode200Response](#endpointfakeobjinquerygetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeobjinqueryGetCode200Response](#endpointfakeobjinquerygetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeobjinqueryGetCode200Response +public record EndpointFakeobjinqueryGetCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9272e5e5527 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md @@ -0,0 +1,166 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | +| static class | [Schema0.SchemaMapBuilder0](#schemamapbuilder0)
builder for Map payloads | +| static class | [Schema0.SchemaMap0](#schemamap0)
output class for Map payloads | +| sealed interface | [Schema0.Keyword0Boxed](#keyword0boxed)
sealed interface for validated payloads | +| record | [Schema0.Keyword0BoxedString](#keyword0boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Keyword0](#keyword0)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedMap](#schema01boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedMap +public record Schema01BoxedMap
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedMap([SchemaMap0](#schemamap0) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaMap0](#schemamap0) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters.parameter0.Schema0; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +Schema0.SchemaMap0 validatedPayload = + Schema0.Schema01.validate( + new Schema0.SchemaMapBuilder0() + .keyword("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("keyword", [Keyword0.class](#keyword0)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaMap0](#schemamap0) | validate([Map<?, ?>](#schemamapbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01BoxedMap](#schema01boxedmap) | validateAndBox([Map<?, ?>](#schemamapbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaMapBuilder0 +public class SchemaMapBuilder0
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaMapBuilder0()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [SchemaMapBuilder0](#schemamapbuilder0) | keyword(String value) | +| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, Void value) | +| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, boolean value) | +| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, String value) | +| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, int value) | +| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, float value) | +| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, long value) | +| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, double value) | +| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, List value) | +| [SchemaMapBuilder0](#schemamapbuilder0) | additionalProperty(String key, Map value) | + +## SchemaMap0 +public static class SchemaMap0
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaMap0](#schemamap0) | of([Map](#schemamapbuilder0) arg, SchemaConfiguration configuration) | +| String | keyword()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## Keyword0Boxed +public sealed interface Keyword0Boxed
+permits
+[Keyword0BoxedString](#keyword0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Keyword0BoxedString +public record Keyword0BoxedString
+implements [Keyword0Boxed](#keyword0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Keyword0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Keyword0 +public static class Keyword0
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.md new file mode 100644 index 00000000000..6ff3fdb9b67 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.md @@ -0,0 +1,17 @@ +# FakeobjinqueryGetCode200Response + +public class FakeobjinqueryGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakeobjinqueryGetCode200Response.FakeobjinqueryGetCode200Response1](#fakeobjinquerygetcode200response1)
class that deserializes responses | + +## FakeobjinqueryGetCode200Response1 +public static class FakeobjinqueryGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md new file mode 100644 index 00000000000..69f3676cb5e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.md @@ -0,0 +1,211 @@ +# Fakeparametercollisions1ababselfabPost + +public class Fakeparametercollisions1ababselfabPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [ParameterCollisionsOperation](#parametercollisionsoperation)
The interface that has a parameterCollisions method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostRequestBody; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Fakeparametercollisions1ababselfabPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Fakeparametercollisions1ababselfabPost; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +Fakeparametercollisions1ababselfabPost.Post apiClient = new Fakeparametercollisions1ababselfabPost.Post(apiConfiguration, schemaConfiguration); + + +// Map validation +Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters = + Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( + new Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder() + .positive1("a") + + .aHyphenMinusB("a") + + .Ab("a") + + .aB("a") + + .self("a") + + .build(), + schemaConfiguration +); + +var request = new Fakeparametercollisions1ababselfabPost.PostRequestBuilder() + .pathParameters(pathParameters) + .build(); + +Fakeparametercollisions1ababselfabPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +Fakeparametercollisions1ababselfabPostResponses.EndpointFakeparametercollisions1ababselfabPostCode200Response castResponse = (Fakeparametercollisions1ababselfabPostResponses.EndpointFakeparametercollisions1ababselfabPostCode200Response) response; +Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBody deserializedBody = (Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## ParameterCollisionsOperation +public interface ParameterCollisionsOperation
+ +an interface that allows one to call the endpoint using a method named parameterCollisions by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Fakeparametercollisions1ababselfabPostResponses.EndpointResponse](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md#endpointresponse) | parameterCollisions([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#pathparametersmap) | pathParameters | +| [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#headerparametersmap) | headerParameters
optional | +| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#queryparametersmap) | queryParameters
optional | +| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#cookieparametersmap) | cookieParameters
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [Fakeparametercollisions1ababselfabPostPathParameters.@Nullable PathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#pathparametersmap) | pathParameters | +| [Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) | requestBody | +| [Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#headerparametersmap) | headerParameters | +| [Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#queryparametersmap) | queryParameters | +| [Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#cookieparametersmap) | cookieParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | headerParameters([Fakeparametercollisions1ababselfabPostHeaderParametersHeaderParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | queryParameters([Fakeparametercollisions1ababselfabPostQueryParametersQueryParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | cookieParameters([Fakeparametercollisions1ababselfabPostCookieParametersCookieParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md#cookieparametersmap) cookieParameters)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([Fakeparametercollisions1ababselfabPostPathParametersPathParametersMap](../../paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md new file mode 100644 index 00000000000..02b21681818 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.md @@ -0,0 +1,267 @@ +# Fakeparametercollisions1ababselfabPostCookieParameters +public class Fakeparametercollisions1ababselfabPostCookieParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1](#fakeparametercollisions1ababselfabpostcookieparameters1)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMapBuilder](#cookieparametersmapbuilder)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMap](#cookieparametersmap)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostCookieParameters.AdditionalProperties](#additionalproperties)
schema class | + +## Fakeparametercollisions1ababselfabPostCookieParameters1Boxed +public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters1Boxed
+permits
+[Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap +public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap
+implements [Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap([CookieParametersMap](#cookieparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CookieParametersMap](#cookieparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostCookieParameters1 +public static class Fakeparametercollisions1ababselfabPostCookieParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMap validatedPayload = + Fakeparametercollisions1ababselfabPostCookieParameters.Fakeparametercollisions1ababselfabPostCookieParameters1.validate( + new Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMapBuilder() + .positive1("a") + + .aB("a") + + .Ab("a") + + .aHyphenMinusB("a") + + .self("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema14.Schema141.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md#schema141)),
    new PropertyEntry("aB", [Schema15.Schema151.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md#schema151)),
    new PropertyEntry("Ab", [Schema16.Schema161.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md#schema161)),
    new PropertyEntry("A-B", [Schema18.Schema181.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md#schema181)),
    new PropertyEntry("self", [Schema17.Schema171.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md#schema171))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [CookieParametersMap](#cookieparametersmap) | validate([Map<?, ?>](#cookieparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap](#fakeparametercollisions1ababselfabpostcookieparameters1boxedmap) | validateAndBox([Map<?, ?>](#cookieparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostCookieParameters1Boxed](#fakeparametercollisions1ababselfabpostcookieparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## CookieParametersMapBuilder +public class CookieParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| CookieParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | positive1(String value) | +| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | aB(String value) | +| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | Ab(String value) | +| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | aHyphenMinusB(String value) | +| [CookieParametersMapBuilder](#cookieparametersmapbuilder) | self(String value) | + +## CookieParametersMap +public static class CookieParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [CookieParametersMap](#cookieparametersmap) | of([Map](#cookieparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | aB()
[optional] | +| String | Ab()
[optional] | +| String | self()
[optional] | +| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md new file mode 100644 index 00000000000..35e45166b63 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.md @@ -0,0 +1,263 @@ +# Fakeparametercollisions1ababselfabPostHeaderParameters +public class Fakeparametercollisions1ababselfabPostHeaderParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1](#fakeparametercollisions1ababselfabpostheaderparameters1)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | + +## Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed +public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed
+permits
+[Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap +public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap
+implements [Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostHeaderParameters1 +public static class Fakeparametercollisions1ababselfabPostHeaderParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMap validatedPayload = + Fakeparametercollisions1ababselfabPostHeaderParameters.Fakeparametercollisions1ababselfabPostHeaderParameters1.validate( + new Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMapBuilder() + .positive1("a") + + .aB("a") + + .aHyphenMinusB("a") + + .self("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema5.Schema51.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md#schema51)),
    new PropertyEntry("aB", [Schema6.Schema61.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md#schema61)),
    new PropertyEntry("A-B", [Schema8.Schema81.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md#schema81)),
    new PropertyEntry("self", [Schema7.Schema71.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md#schema71))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap](#fakeparametercollisions1ababselfabpostheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed](#fakeparametercollisions1ababselfabpostheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | positive1(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | aB(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | aHyphenMinusB(String value) | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | self(String value) | + +## HeaderParametersMap +public static class HeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | aB()
[optional] | +| String | self()
[optional] | +| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md new file mode 100644 index 00000000000..923dee054a3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.md @@ -0,0 +1,808 @@ +# Fakeparametercollisions1ababselfabPostPathParameters +public class Fakeparametercollisions1ababselfabPostPathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1](#fakeparametercollisions1ababselfabpostpathparameters1)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostPathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## Fakeparametercollisions1ababselfabPostPathParameters1Boxed +public sealed interface Fakeparametercollisions1ababselfabPostPathParameters1Boxed
+permits
+[Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap +public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap
+implements [Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostPathParameters1 +public static class Fakeparametercollisions1ababselfabPostPathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap validatedPayload = + Fakeparametercollisions1ababselfabPostPathParameters.Fakeparametercollisions1ababselfabPostPathParameters1.validate( + new Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMapBuilder() + .positive1("a") + + .aHyphenMinusB("a") + + .Ab("a") + + .aB("a") + + .self("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema9.Schema91.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md#schema91)),
    new PropertyEntry("aB", [Schema10.Schema101.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md#schema101)),
    new PropertyEntry("Ab", [Schema11.Schema111.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md#schema111)),
    new PropertyEntry("A-B", [Schema13.Schema131.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md#schema131)),
    new PropertyEntry("self", [Schema12.Schema121.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md#schema121))
)
| +| Set | required = Set.of(
    "1",
    "A-B",
    "Ab",
    "aB",
    "self"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap](#fakeparametercollisions1ababselfabpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostPathParameters1Boxed](#fakeparametercollisions1ababselfabpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap00000Builder +public class PathParametersMap00000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap00000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMap00001Builder +public class PathParametersMap00001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap00001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00000Builder](#pathparametersmap00000builder) | self(String value) | + +## PathParametersMap00010Builder +public class PathParametersMap00010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap00010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00000Builder](#pathparametersmap00000builder) | aB(String value) | + +## PathParametersMap00011Builder +public class PathParametersMap00011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap00011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00001Builder](#pathparametersmap00001builder) | aB(String value) | +| [PathParametersMap00010Builder](#pathparametersmap00010builder) | self(String value) | + +## PathParametersMap00100Builder +public class PathParametersMap00100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap00100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00000Builder](#pathparametersmap00000builder) | Ab(String value) | + +## PathParametersMap00101Builder +public class PathParametersMap00101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap00101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00001Builder](#pathparametersmap00001builder) | Ab(String value) | +| [PathParametersMap00100Builder](#pathparametersmap00100builder) | self(String value) | + +## PathParametersMap00110Builder +public class PathParametersMap00110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap00110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00010Builder](#pathparametersmap00010builder) | Ab(String value) | +| [PathParametersMap00100Builder](#pathparametersmap00100builder) | aB(String value) | + +## PathParametersMap00111Builder +public class PathParametersMap00111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap00111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00011Builder](#pathparametersmap00011builder) | Ab(String value) | +| [PathParametersMap00101Builder](#pathparametersmap00101builder) | aB(String value) | +| [PathParametersMap00110Builder](#pathparametersmap00110builder) | self(String value) | + +## PathParametersMap01000Builder +public class PathParametersMap01000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap01000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00000Builder](#pathparametersmap00000builder) | aHyphenMinusB(String value) | + +## PathParametersMap01001Builder +public class PathParametersMap01001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap01001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00001Builder](#pathparametersmap00001builder) | aHyphenMinusB(String value) | +| [PathParametersMap01000Builder](#pathparametersmap01000builder) | self(String value) | + +## PathParametersMap01010Builder +public class PathParametersMap01010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap01010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00010Builder](#pathparametersmap00010builder) | aHyphenMinusB(String value) | +| [PathParametersMap01000Builder](#pathparametersmap01000builder) | aB(String value) | + +## PathParametersMap01011Builder +public class PathParametersMap01011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap01011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00011Builder](#pathparametersmap00011builder) | aHyphenMinusB(String value) | +| [PathParametersMap01001Builder](#pathparametersmap01001builder) | aB(String value) | +| [PathParametersMap01010Builder](#pathparametersmap01010builder) | self(String value) | + +## PathParametersMap01100Builder +public class PathParametersMap01100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap01100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00100Builder](#pathparametersmap00100builder) | aHyphenMinusB(String value) | +| [PathParametersMap01000Builder](#pathparametersmap01000builder) | Ab(String value) | + +## PathParametersMap01101Builder +public class PathParametersMap01101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap01101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00101Builder](#pathparametersmap00101builder) | aHyphenMinusB(String value) | +| [PathParametersMap01001Builder](#pathparametersmap01001builder) | Ab(String value) | +| [PathParametersMap01100Builder](#pathparametersmap01100builder) | self(String value) | + +## PathParametersMap01110Builder +public class PathParametersMap01110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap01110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00110Builder](#pathparametersmap00110builder) | aHyphenMinusB(String value) | +| [PathParametersMap01010Builder](#pathparametersmap01010builder) | Ab(String value) | +| [PathParametersMap01100Builder](#pathparametersmap01100builder) | aB(String value) | + +## PathParametersMap01111Builder +public class PathParametersMap01111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap01111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00111Builder](#pathparametersmap00111builder) | aHyphenMinusB(String value) | +| [PathParametersMap01011Builder](#pathparametersmap01011builder) | Ab(String value) | +| [PathParametersMap01101Builder](#pathparametersmap01101builder) | aB(String value) | +| [PathParametersMap01110Builder](#pathparametersmap01110builder) | self(String value) | + +## PathParametersMap10000Builder +public class PathParametersMap10000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap10000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00000Builder](#pathparametersmap00000builder) | positive1(String value) | + +## PathParametersMap10001Builder +public class PathParametersMap10001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap10001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00001Builder](#pathparametersmap00001builder) | positive1(String value) | +| [PathParametersMap10000Builder](#pathparametersmap10000builder) | self(String value) | + +## PathParametersMap10010Builder +public class PathParametersMap10010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap10010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00010Builder](#pathparametersmap00010builder) | positive1(String value) | +| [PathParametersMap10000Builder](#pathparametersmap10000builder) | aB(String value) | + +## PathParametersMap10011Builder +public class PathParametersMap10011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap10011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00011Builder](#pathparametersmap00011builder) | positive1(String value) | +| [PathParametersMap10001Builder](#pathparametersmap10001builder) | aB(String value) | +| [PathParametersMap10010Builder](#pathparametersmap10010builder) | self(String value) | + +## PathParametersMap10100Builder +public class PathParametersMap10100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap10100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00100Builder](#pathparametersmap00100builder) | positive1(String value) | +| [PathParametersMap10000Builder](#pathparametersmap10000builder) | Ab(String value) | + +## PathParametersMap10101Builder +public class PathParametersMap10101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap10101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00101Builder](#pathparametersmap00101builder) | positive1(String value) | +| [PathParametersMap10001Builder](#pathparametersmap10001builder) | Ab(String value) | +| [PathParametersMap10100Builder](#pathparametersmap10100builder) | self(String value) | + +## PathParametersMap10110Builder +public class PathParametersMap10110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap10110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00110Builder](#pathparametersmap00110builder) | positive1(String value) | +| [PathParametersMap10010Builder](#pathparametersmap10010builder) | Ab(String value) | +| [PathParametersMap10100Builder](#pathparametersmap10100builder) | aB(String value) | + +## PathParametersMap10111Builder +public class PathParametersMap10111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap10111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap00111Builder](#pathparametersmap00111builder) | positive1(String value) | +| [PathParametersMap10011Builder](#pathparametersmap10011builder) | Ab(String value) | +| [PathParametersMap10101Builder](#pathparametersmap10101builder) | aB(String value) | +| [PathParametersMap10110Builder](#pathparametersmap10110builder) | self(String value) | + +## PathParametersMap11000Builder +public class PathParametersMap11000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap11000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap01000Builder](#pathparametersmap01000builder) | positive1(String value) | +| [PathParametersMap10000Builder](#pathparametersmap10000builder) | aHyphenMinusB(String value) | + +## PathParametersMap11001Builder +public class PathParametersMap11001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap11001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap01001Builder](#pathparametersmap01001builder) | positive1(String value) | +| [PathParametersMap10001Builder](#pathparametersmap10001builder) | aHyphenMinusB(String value) | +| [PathParametersMap11000Builder](#pathparametersmap11000builder) | self(String value) | + +## PathParametersMap11010Builder +public class PathParametersMap11010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap11010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap01010Builder](#pathparametersmap01010builder) | positive1(String value) | +| [PathParametersMap10010Builder](#pathparametersmap10010builder) | aHyphenMinusB(String value) | +| [PathParametersMap11000Builder](#pathparametersmap11000builder) | aB(String value) | + +## PathParametersMap11011Builder +public class PathParametersMap11011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap11011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap01011Builder](#pathparametersmap01011builder) | positive1(String value) | +| [PathParametersMap10011Builder](#pathparametersmap10011builder) | aHyphenMinusB(String value) | +| [PathParametersMap11001Builder](#pathparametersmap11001builder) | aB(String value) | +| [PathParametersMap11010Builder](#pathparametersmap11010builder) | self(String value) | + +## PathParametersMap11100Builder +public class PathParametersMap11100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap11100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap01100Builder](#pathparametersmap01100builder) | positive1(String value) | +| [PathParametersMap10100Builder](#pathparametersmap10100builder) | aHyphenMinusB(String value) | +| [PathParametersMap11000Builder](#pathparametersmap11000builder) | Ab(String value) | + +## PathParametersMap11101Builder +public class PathParametersMap11101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap11101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap01101Builder](#pathparametersmap01101builder) | positive1(String value) | +| [PathParametersMap10101Builder](#pathparametersmap10101builder) | aHyphenMinusB(String value) | +| [PathParametersMap11001Builder](#pathparametersmap11001builder) | Ab(String value) | +| [PathParametersMap11100Builder](#pathparametersmap11100builder) | self(String value) | + +## PathParametersMap11110Builder +public class PathParametersMap11110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap11110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap01110Builder](#pathparametersmap01110builder) | positive1(String value) | +| [PathParametersMap10110Builder](#pathparametersmap10110builder) | aHyphenMinusB(String value) | +| [PathParametersMap11010Builder](#pathparametersmap11010builder) | Ab(String value) | +| [PathParametersMap11100Builder](#pathparametersmap11100builder) | aB(String value) | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap01111Builder](#pathparametersmap01111builder) | positive1(String value) | +| [PathParametersMap10111Builder](#pathparametersmap10111builder) | aHyphenMinusB(String value) | +| [PathParametersMap11011Builder](#pathparametersmap11011builder) | Ab(String value) | +| [PathParametersMap11101Builder](#pathparametersmap11101builder) | aB(String value) | +| [PathParametersMap11110Builder](#pathparametersmap11110builder) | self(String value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | Ab()
| +| String | aB()
| +| String | self()
| +| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md new file mode 100644 index 00000000000..5c8d38d4e68 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.md @@ -0,0 +1,267 @@ +# Fakeparametercollisions1ababselfabPostQueryParameters +public class Fakeparametercollisions1ababselfabPostQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1](#fakeparametercollisions1ababselfabpostqueryparameters1)
schema class | +| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Fakeparametercollisions1ababselfabPostQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## Fakeparametercollisions1ababselfabPostQueryParameters1Boxed +public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters1Boxed
+permits
+[Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap +public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap
+implements [Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Fakeparametercollisions1ababselfabPostQueryParameters1 +public static class Fakeparametercollisions1ababselfabPostQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMap validatedPayload = + Fakeparametercollisions1ababselfabPostQueryParameters.Fakeparametercollisions1ababselfabPostQueryParameters1.validate( + new Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMapBuilder() + .positive1("a") + + .aB("a") + + .Ab("a") + + .aHyphenMinusB("a") + + .self("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("1", [Schema0.Schema01.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("aB", [Schema1.Schema11.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("Ab", [Schema2.Schema21.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("A-B", [Schema4.Schema41.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("self", [Schema3.Schema31.class](../../../paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md#schema31))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap](#fakeparametercollisions1ababselfabpostqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Fakeparametercollisions1ababselfabPostQueryParameters1Boxed](#fakeparametercollisions1ababselfabpostqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | positive1(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | aB(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | Ab(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | aHyphenMinusB(String value) | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | self(String value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | aB()
[optional] | +| String | Ab()
[optional] | +| String | self()
[optional] | +| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["1"], instance["A-B"], | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md new file mode 100644 index 00000000000..a1386452447 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.md @@ -0,0 +1,90 @@ +# Fakeparametercollisions1ababselfabPostRequestBody + +public class Fakeparametercollisions1ababselfabPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [Fakeparametercollisions1ababselfabPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [Fakeparametercollisions1ababselfabPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [Fakeparametercollisions1ababselfabPostRequestBody.Fakeparametercollisions1ababselfabPostRequestBody1](#fakeparametercollisions1ababselfabpostrequestbody1)
class that serializes request bodies | +| sealed interface | [Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [Fakeparametercollisions1ababselfabPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## Fakeparametercollisions1ababselfabPostRequestBody1 +public static class Fakeparametercollisions1ababselfabPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md new file mode 100644 index 00000000000..950f7cf471d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.md @@ -0,0 +1,29 @@ +# Fakeparametercollisions1ababselfabPostResponses + +public class Fakeparametercollisions1ababselfabPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeparametercollisions1ababselfabPostCode200Response](#endpointfakeparametercollisions1ababselfabpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeparametercollisions1ababselfabPostCode200Response](#endpointfakeparametercollisions1ababselfabpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeparametercollisions1ababselfabPostCode200Response +public record EndpointFakeparametercollisions1ababselfabPostCode200Response( + HttpResponse response, + [Fakeparametercollisions1ababselfabPostCode200Response.SealedResponseBody](../../../paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md new file mode 100644 index 00000000000..63ec3a884fc --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.md @@ -0,0 +1,49 @@ +# Schema1 +public class Schema1
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| static class | [Schema1.Schema11](#schema11)
schema class | + +## Schema11Boxed +public sealed interface Schema11Boxed
+permits
+[Schema11BoxedString](#schema11boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema11BoxedString +public record Schema11BoxedString
+implements [Schema11Boxed](#schema11boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema11BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema11 +public static class Schema11
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md new file mode 100644 index 00000000000..f2313e921f9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.md @@ -0,0 +1,49 @@ +# Schema10 +public class Schema10
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema10.Schema101Boxed](#schema101boxed)
sealed interface for validated payloads | +| record | [Schema10.Schema101BoxedString](#schema101boxedstring)
boxed class to store validated String payloads | +| static class | [Schema10.Schema101](#schema101)
schema class | + +## Schema101Boxed +public sealed interface Schema101Boxed
+permits
+[Schema101BoxedString](#schema101boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema101BoxedString +public record Schema101BoxedString
+implements [Schema101Boxed](#schema101boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema101BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema101 +public static class Schema101
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md new file mode 100644 index 00000000000..c309cbd677b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.md @@ -0,0 +1,49 @@ +# Schema11 +public class Schema11
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema11.Schema111Boxed](#schema111boxed)
sealed interface for validated payloads | +| record | [Schema11.Schema111BoxedString](#schema111boxedstring)
boxed class to store validated String payloads | +| static class | [Schema11.Schema111](#schema111)
schema class | + +## Schema111Boxed +public sealed interface Schema111Boxed
+permits
+[Schema111BoxedString](#schema111boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema111BoxedString +public record Schema111BoxedString
+implements [Schema111Boxed](#schema111boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema111BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema111 +public static class Schema111
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md new file mode 100644 index 00000000000..fa969e69734 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.md @@ -0,0 +1,49 @@ +# Schema12 +public class Schema12
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema12.Schema121Boxed](#schema121boxed)
sealed interface for validated payloads | +| record | [Schema12.Schema121BoxedString](#schema121boxedstring)
boxed class to store validated String payloads | +| static class | [Schema12.Schema121](#schema121)
schema class | + +## Schema121Boxed +public sealed interface Schema121Boxed
+permits
+[Schema121BoxedString](#schema121boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema121BoxedString +public record Schema121BoxedString
+implements [Schema121Boxed](#schema121boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema121BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema121 +public static class Schema121
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md new file mode 100644 index 00000000000..8b6ce934c35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.md @@ -0,0 +1,49 @@ +# Schema13 +public class Schema13
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema13.Schema131Boxed](#schema131boxed)
sealed interface for validated payloads | +| record | [Schema13.Schema131BoxedString](#schema131boxedstring)
boxed class to store validated String payloads | +| static class | [Schema13.Schema131](#schema131)
schema class | + +## Schema131Boxed +public sealed interface Schema131Boxed
+permits
+[Schema131BoxedString](#schema131boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema131BoxedString +public record Schema131BoxedString
+implements [Schema131Boxed](#schema131boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema131BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema131 +public static class Schema131
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md new file mode 100644 index 00000000000..b6987c8c80f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.md @@ -0,0 +1,49 @@ +# Schema14 +public class Schema14
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema14.Schema141Boxed](#schema141boxed)
sealed interface for validated payloads | +| record | [Schema14.Schema141BoxedString](#schema141boxedstring)
boxed class to store validated String payloads | +| static class | [Schema14.Schema141](#schema141)
schema class | + +## Schema141Boxed +public sealed interface Schema141Boxed
+permits
+[Schema141BoxedString](#schema141boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema141BoxedString +public record Schema141BoxedString
+implements [Schema141Boxed](#schema141boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema141BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema141 +public static class Schema141
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md new file mode 100644 index 00000000000..272a98b600d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.md @@ -0,0 +1,49 @@ +# Schema15 +public class Schema15
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema15.Schema151Boxed](#schema151boxed)
sealed interface for validated payloads | +| record | [Schema15.Schema151BoxedString](#schema151boxedstring)
boxed class to store validated String payloads | +| static class | [Schema15.Schema151](#schema151)
schema class | + +## Schema151Boxed +public sealed interface Schema151Boxed
+permits
+[Schema151BoxedString](#schema151boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema151BoxedString +public record Schema151BoxedString
+implements [Schema151Boxed](#schema151boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema151BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema151 +public static class Schema151
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md new file mode 100644 index 00000000000..059eeb943a7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.md @@ -0,0 +1,49 @@ +# Schema16 +public class Schema16
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema16.Schema161Boxed](#schema161boxed)
sealed interface for validated payloads | +| record | [Schema16.Schema161BoxedString](#schema161boxedstring)
boxed class to store validated String payloads | +| static class | [Schema16.Schema161](#schema161)
schema class | + +## Schema161Boxed +public sealed interface Schema161Boxed
+permits
+[Schema161BoxedString](#schema161boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema161BoxedString +public record Schema161BoxedString
+implements [Schema161Boxed](#schema161boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema161BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema161 +public static class Schema161
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md new file mode 100644 index 00000000000..4bf4ae7e510 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.md @@ -0,0 +1,49 @@ +# Schema17 +public class Schema17
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema17.Schema171Boxed](#schema171boxed)
sealed interface for validated payloads | +| record | [Schema17.Schema171BoxedString](#schema171boxedstring)
boxed class to store validated String payloads | +| static class | [Schema17.Schema171](#schema171)
schema class | + +## Schema171Boxed +public sealed interface Schema171Boxed
+permits
+[Schema171BoxedString](#schema171boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema171BoxedString +public record Schema171BoxedString
+implements [Schema171Boxed](#schema171boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema171BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema171 +public static class Schema171
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md new file mode 100644 index 00000000000..962dca4cbb3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.md @@ -0,0 +1,49 @@ +# Schema18 +public class Schema18
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema18.Schema181Boxed](#schema181boxed)
sealed interface for validated payloads | +| record | [Schema18.Schema181BoxedString](#schema181boxedstring)
boxed class to store validated String payloads | +| static class | [Schema18.Schema181](#schema181)
schema class | + +## Schema181Boxed +public sealed interface Schema181Boxed
+permits
+[Schema181BoxedString](#schema181boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema181BoxedString +public record Schema181BoxedString
+implements [Schema181Boxed](#schema181boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema181BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema181 +public static class Schema181
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md new file mode 100644 index 00000000000..4a7d57953eb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.md @@ -0,0 +1,49 @@ +# Schema2 +public class Schema2
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | +| record | [Schema2.Schema21BoxedString](#schema21boxedstring)
boxed class to store validated String payloads | +| static class | [Schema2.Schema21](#schema21)
schema class | + +## Schema21Boxed +public sealed interface Schema21Boxed
+permits
+[Schema21BoxedString](#schema21boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema21BoxedString +public record Schema21BoxedString
+implements [Schema21Boxed](#schema21boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema21BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema21 +public static class Schema21
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md new file mode 100644 index 00000000000..41d54a1d930 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.md @@ -0,0 +1,49 @@ +# Schema3 +public class Schema3
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | +| record | [Schema3.Schema31BoxedString](#schema31boxedstring)
boxed class to store validated String payloads | +| static class | [Schema3.Schema31](#schema31)
schema class | + +## Schema31Boxed +public sealed interface Schema31Boxed
+permits
+[Schema31BoxedString](#schema31boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema31BoxedString +public record Schema31BoxedString
+implements [Schema31Boxed](#schema31boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema31BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema31 +public static class Schema31
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md new file mode 100644 index 00000000000..7bc2523d7af --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.md @@ -0,0 +1,49 @@ +# Schema4 +public class Schema4
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | +| record | [Schema4.Schema41BoxedString](#schema41boxedstring)
boxed class to store validated String payloads | +| static class | [Schema4.Schema41](#schema41)
schema class | + +## Schema41Boxed +public sealed interface Schema41Boxed
+permits
+[Schema41BoxedString](#schema41boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema41BoxedString +public record Schema41BoxedString
+implements [Schema41Boxed](#schema41boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema41BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema41 +public static class Schema41
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md new file mode 100644 index 00000000000..ff888c33afd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.md @@ -0,0 +1,49 @@ +# Schema5 +public class Schema5
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema5.Schema51Boxed](#schema51boxed)
sealed interface for validated payloads | +| record | [Schema5.Schema51BoxedString](#schema51boxedstring)
boxed class to store validated String payloads | +| static class | [Schema5.Schema51](#schema51)
schema class | + +## Schema51Boxed +public sealed interface Schema51Boxed
+permits
+[Schema51BoxedString](#schema51boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema51BoxedString +public record Schema51BoxedString
+implements [Schema51Boxed](#schema51boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema51BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema51 +public static class Schema51
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md new file mode 100644 index 00000000000..ba0b2fad7df --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.md @@ -0,0 +1,49 @@ +# Schema6 +public class Schema6
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema6.Schema61Boxed](#schema61boxed)
sealed interface for validated payloads | +| record | [Schema6.Schema61BoxedString](#schema61boxedstring)
boxed class to store validated String payloads | +| static class | [Schema6.Schema61](#schema61)
schema class | + +## Schema61Boxed +public sealed interface Schema61Boxed
+permits
+[Schema61BoxedString](#schema61boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema61BoxedString +public record Schema61BoxedString
+implements [Schema61Boxed](#schema61boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema61BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema61 +public static class Schema61
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md new file mode 100644 index 00000000000..a4e0ad0106a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.md @@ -0,0 +1,49 @@ +# Schema7 +public class Schema7
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema7.Schema71Boxed](#schema71boxed)
sealed interface for validated payloads | +| record | [Schema7.Schema71BoxedString](#schema71boxedstring)
boxed class to store validated String payloads | +| static class | [Schema7.Schema71](#schema71)
schema class | + +## Schema71Boxed +public sealed interface Schema71Boxed
+permits
+[Schema71BoxedString](#schema71boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema71BoxedString +public record Schema71BoxedString
+implements [Schema71Boxed](#schema71boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema71BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema71 +public static class Schema71
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md new file mode 100644 index 00000000000..63b13965df9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.md @@ -0,0 +1,49 @@ +# Schema8 +public class Schema8
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema8.Schema81Boxed](#schema81boxed)
sealed interface for validated payloads | +| record | [Schema8.Schema81BoxedString](#schema81boxedstring)
boxed class to store validated String payloads | +| static class | [Schema8.Schema81](#schema81)
schema class | + +## Schema81Boxed +public sealed interface Schema81Boxed
+permits
+[Schema81BoxedString](#schema81boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema81BoxedString +public record Schema81BoxedString
+implements [Schema81Boxed](#schema81boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema81BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema81 +public static class Schema81
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md new file mode 100644 index 00000000000..359fd15e9c6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.md @@ -0,0 +1,49 @@ +# Schema9 +public class Schema9
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema9.Schema91Boxed](#schema91boxed)
sealed interface for validated payloads | +| record | [Schema9.Schema91BoxedString](#schema91boxedstring)
boxed class to store validated String payloads | +| static class | [Schema9.Schema91](#schema91)
schema class | + +## Schema91Boxed +public sealed interface Schema91Boxed
+permits
+[Schema91BoxedString](#schema91boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema91BoxedString +public record Schema91BoxedString
+implements [Schema91Boxed](#schema91boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema91BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema91 +public static class Schema91
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md new file mode 100644 index 00000000000..2080fb2adb3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.md @@ -0,0 +1,87 @@ +# Fakeparametercollisions1ababselfabPostCode200Response + +public class Fakeparametercollisions1ababselfabPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [Fakeparametercollisions1ababselfabPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [Fakeparametercollisions1ababselfabPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [Fakeparametercollisions1ababselfabPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [Fakeparametercollisions1ababselfabPostCode200Response.Fakeparametercollisions1ababselfabPostCode200Response1](#fakeparametercollisions1ababselfabpostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## Fakeparametercollisions1ababselfabPostCode200Response1 +public static class Fakeparametercollisions1ababselfabPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Fakeparametercollisions1ababselfabPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md new file mode 100644 index 00000000000..85a6c160680 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/FakepemcontenttypeGet.md @@ -0,0 +1,148 @@ +# FakepemcontenttypeGet + +public class FakepemcontenttypeGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [PemContentTypeOperation](#pemcontenttypeoperation)
The interface that has a pemContentType method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile.ApplicationxpemfileSchema; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.FakepemcontenttypeGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakepemcontenttype.FakepemcontenttypeGet; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakepemcontenttypeGet.Get apiClient = new FakepemcontenttypeGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakepemcontenttypeGet.GetRequestBuilder().build(); + +FakepemcontenttypeGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakepemcontenttypeGetResponses.EndpointFakepemcontenttypeGetCode200Response castResponse = (FakepemcontenttypeGetResponses.EndpointFakepemcontenttypeGetCode200Response) response; +FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody deserializedBody = (FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## PemContentTypeOperation +public interface PemContentTypeOperation
+ +an interface that allows one to call the endpoint using a method named pemContentType by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakepemcontenttypeGetResponses.EndpointResponse](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md#endpointresponse) | pemContentType([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakepemcontenttypeGetRequestBody.@Nullable SealedRequestBody](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | requestBody([FakepemcontenttypeGetRequestBody.SealedRequestBody](../../paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md new file mode 100644 index 00000000000..4601113bc84 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.md @@ -0,0 +1,90 @@ +# FakepemcontenttypeGetRequestBody + +public class FakepemcontenttypeGetRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakepemcontenttypeGetRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakepemcontenttypeGetRequestBody.ApplicationxpemfileMediaType](#applicationxpemfilemediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakepemcontenttypeGetRequestBody.FakepemcontenttypeGetRequestBody1](#fakepemcontenttypegetrequestbody1)
class that serializes request bodies | +| sealed interface | [FakepemcontenttypeGetRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakepemcontenttypeGetRequestBody.ApplicationxpemfileRequestBody](#applicationxpemfilerequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxpemfileMediaType](#applicationxpemfilemediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationxpemfileMediaType +public record ApplicationxpemfileMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxpemfileMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakepemcontenttypeGetRequestBody1 +public static class FakepemcontenttypeGetRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepemcontenttypeGetRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-pem-file", new [ApplicationxpemfileMediaType](#applicationxpemfilemediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationxpemfileRequestBody](#applicationxpemfilerequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationxpemfileRequestBody +public record ApplicationxpemfileRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/x-pem-file" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxpemfileRequestBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/x-pem-file" | +| ApplicationxpemfileSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md new file mode 100644 index 00000000000..50c4184e734 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.md @@ -0,0 +1,29 @@ +# FakepemcontenttypeGetResponses + +public class FakepemcontenttypeGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakepemcontenttypeGetCode200Response](#endpointfakepemcontenttypegetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakepemcontenttypeGetCode200Response](#endpointfakepemcontenttypegetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakepemcontenttypeGetCode200Response +public record EndpointFakepemcontenttypeGetCode200Response( + HttpResponse response, + [FakepemcontenttypeGetCode200Response.SealedResponseBody](../../../paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md new file mode 100644 index 00000000000..91a1e361623 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -0,0 +1,49 @@ +# ApplicationxpemfileSchema +public class ApplicationxpemfileSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | + +## ApplicationxpemfileSchema1Boxed +public sealed interface ApplicationxpemfileSchema1Boxed
+permits
+[ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxpemfileSchema1BoxedString +public record ApplicationxpemfileSchema1BoxedString
+implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxpemfileSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxpemfileSchema1 +public static class ApplicationxpemfileSchema1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md new file mode 100644 index 00000000000..f89129a2374 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.md @@ -0,0 +1,87 @@ +# FakepemcontenttypeGetCode200Response + +public class FakepemcontenttypeGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakepemcontenttypeGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakepemcontenttypeGetCode200Response.ApplicationxpemfileMediaType](#applicationxpemfilemediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakepemcontenttypeGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakepemcontenttypeGetCode200Response.ApplicationxpemfileResponseBody](#applicationxpemfileresponsebody)
implements sealed interface to store response body | +| static class | [FakepemcontenttypeGetCode200Response.FakepemcontenttypeGetCode200Response1](#fakepemcontenttypegetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxpemfileMediaType](#applicationxpemfilemediatype) + +sealed interface that stores schema and encoding info + +## ApplicationxpemfileMediaType +public record ApplicationxpemfileMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../../paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxpemfileMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../../paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationxpemfileResponseBody](#applicationxpemfileresponsebody) + +sealed interface that stores response body + +## ApplicationxpemfileResponseBody +public record ApplicationxpemfileResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/x-pem-file" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxpemfileResponseBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationxpemfileSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakepemcontenttypeGetCode200Response1 +public static class FakepemcontenttypeGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepemcontenttypeGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-pem-file", new [ApplicationxpemfileMediaType](#applicationxpemfilemediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md new file mode 100644 index 00000000000..91a1e361623 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md @@ -0,0 +1,49 @@ +# ApplicationxpemfileSchema +public class ApplicationxpemfileSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](#applicationxpemfileschema1)
schema class | + +## ApplicationxpemfileSchema1Boxed +public sealed interface ApplicationxpemfileSchema1Boxed
+permits
+[ApplicationxpemfileSchema1BoxedString](#applicationxpemfileschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxpemfileSchema1BoxedString +public record ApplicationxpemfileSchema1BoxedString
+implements [ApplicationxpemfileSchema1Boxed](#applicationxpemfileschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxpemfileSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxpemfileSchema1 +public static class ApplicationxpemfileSchema1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md new file mode 100644 index 00000000000..0f305d0f1aa --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.md @@ -0,0 +1,203 @@ +# FakepetiduploadimagewithrequiredfilePost + +public class FakepetiduploadimagewithrequiredfilePost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [UploadFileWithRequiredFileOperation](#uploadfilewithrequiredfileoperation)
The interface that has a uploadFileWithRequiredFile method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.FakepetiduploadimagewithrequiredfilePostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.FakepetiduploadimagewithrequiredfilePost; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .fakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0SecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakepetiduploadimagewithrequiredfilePost.Post apiClient = new FakepetiduploadimagewithrequiredfilePost.Post(apiConfiguration, schemaConfiguration); + + +// Map validation +FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters = + FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( + new FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder() + .petId(1L) + + .build(), + schemaConfiguration +); + +var request = new FakepetiduploadimagewithrequiredfilePost.PostRequestBuilder() + .pathParameters(pathParameters) + .build(); + +FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakepetiduploadimagewithrequiredfilePostResponses.EndpointFakepetiduploadimagewithrequiredfilePostCode200Response castResponse = (FakepetiduploadimagewithrequiredfilePostResponses.EndpointFakepetiduploadimagewithrequiredfilePostCode200Response) response; +FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## UploadFileWithRequiredFileOperation +public interface UploadFileWithRequiredFileOperation
+ +an interface that allows one to call the endpoint using a method named uploadFileWithRequiredFile by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md#endpointresponse) | uploadFileWithRequiredFile([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#pathparametersmap) | pathParameters | +| [FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable PathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#pathparametersmap) | pathParameters | +| [FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([FakepetiduploadimagewithrequiredfilePostRequestBody.SealedRequestBody](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | securityIndex([FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([FakepetiduploadimagewithrequiredfilePostPathParametersPathParametersMap](../../paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md new file mode 100644 index 00000000000..d8238bf62e8 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.md @@ -0,0 +1,271 @@ +# FakepetiduploadimagewithrequiredfilePostPathParameters +public class FakepetiduploadimagewithrequiredfilePostPathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed)
sealed interface for validated payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1](#fakepetiduploadimagewithrequiredfilepostpathparameters1)
schema class | +| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakepetiduploadimagewithrequiredfilePostPathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed +public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed
+permits
+[FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap +public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap
+implements [FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakepetiduploadimagewithrequiredfilePostPathParameters1 +public static class FakepetiduploadimagewithrequiredfilePostPathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap validatedPayload = + FakepetiduploadimagewithrequiredfilePostPathParameters.FakepetiduploadimagewithrequiredfilePostPathParameters1.validate( + new FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMapBuilder() + .petId(1L) + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "petId"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed](#fakepetiduploadimagewithrequiredfilepostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | petId()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md new file mode 100644 index 00000000000..1bb49435994 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.md @@ -0,0 +1,90 @@ +# FakepetiduploadimagewithrequiredfilePostRequestBody + +public class FakepetiduploadimagewithrequiredfilePostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakepetiduploadimagewithrequiredfilePostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakepetiduploadimagewithrequiredfilePostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakepetiduploadimagewithrequiredfilePostRequestBody.FakepetiduploadimagewithrequiredfilePostRequestBody1](#fakepetiduploadimagewithrequiredfilepostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakepetiduploadimagewithrequiredfilePostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakepetiduploadimagewithrequiredfilePostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[MultipartformdataMediaType](#multipartformdatamediatype) + +sealed interface that stores schema and encoding info + + +## MultipartformdataMediaType +public record MultipartformdataMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakepetiduploadimagewithrequiredfilePostRequestBody1 +public static class FakepetiduploadimagewithrequiredfilePostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[MultipartformdataRequestBody](#multipartformdatarequestbody) + +sealed interface that stores request contentType + validated schema data + +## MultipartformdataRequestBody +public record MultipartformdataRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="multipart/form-data" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "multipart/form-data" | +| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md new file mode 100644 index 00000000000..4c28cb1368a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.md @@ -0,0 +1,29 @@ +# FakepetiduploadimagewithrequiredfilePostResponses + +public class FakepetiduploadimagewithrequiredfilePostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakepetiduploadimagewithrequiredfilePostCode200Response](#endpointfakepetiduploadimagewithrequiredfilepostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakepetiduploadimagewithrequiredfilePostCode200Response](#endpointfakepetiduploadimagewithrequiredfilepostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakepetiduploadimagewithrequiredfilePostCode200Response +public record EndpointFakepetiduploadimagewithrequiredfilePostCode200Response( + HttpResponse response, + [FakepetiduploadimagewithrequiredfilePostCode200Response.SealedResponseBody](../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md new file mode 100644 index 00000000000..7d31590a6a5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md @@ -0,0 +1,40 @@ +# FakepetiduploadimagewithrequiredfilePostSecurityInfo +FakepetiduploadimagewithrequiredfilePostSecurityInfo.java + +public class FakepetiduploadimagewithrequiredfilePostSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.FakepetiduploadimagewithrequiredfilePostSecurityInfo1](#fakepetiduploadimagewithrequiredfilepostsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## FakepetiduploadimagewithrequiredfilePostSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0](../../../paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md) | security0 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..55e4e5cb238 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedNumber](#schema01boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedNumber +public record Schema01BoxedNumber
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends Int64JsonSchema.Int64JsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md new file mode 100644 index 00000000000..033b1b81980 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -0,0 +1,206 @@ +# MultipartformdataSchema +public class MultipartformdataSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataRequiredFileBoxed](#multipartformdatarequiredfileboxed)
sealed interface for validated payloads | +| static class | [MultipartformdataSchema.MultipartformdataRequiredFile](#multipartformdatarequiredfile)
schema class | +| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | +| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | + +## MultipartformdataSchema1Boxed +public sealed interface MultipartformdataSchema1Boxed
+permits
+[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSchema1BoxedMap +public record MultipartformdataSchema1BoxedMap
+implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSchema1 +public static class MultipartformdataSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = + MultipartformdataSchema.MultipartformdataSchema1.validate( + new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() + .requiredFile("a") + + .additionalMetadata("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("additionalMetadata", [MultipartformdataAdditionalMetadata.class](#multipartformdataadditionalmetadata))),
    new PropertyEntry("requiredFile", [MultipartformdataRequiredFile.class](#multipartformdatarequiredfile)))
)
| +| Set | required = Set.of(
    "requiredFile"
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## MultipartformdataSchemaMap0Builder +public class MultipartformdataSchemaMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalMetadata(String value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, Void value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, boolean value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, String value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, int value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, float value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, long value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, double value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, List value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, Map value) | + +## MultipartformdataSchemaMapBuilder +public class MultipartformdataSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | requiredFile(String value) | + +## MultipartformdataSchemaMap +public static class MultipartformdataSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| String | requiredFile()
| +| String | additionalMetadata()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## MultipartformdataRequiredFileBoxed +public sealed interface MultipartformdataRequiredFileBoxed
+permits
+ +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataRequiredFile +public static class MultipartformdataRequiredFile
+extends JsonSchema + +A schema class that validates payloads + +## Description +file to upload + +## MultipartformdataAdditionalMetadataBoxed +public sealed interface MultipartformdataAdditionalMetadataBoxed
+permits
+[MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataAdditionalMetadataBoxedString +public record MultipartformdataAdditionalMetadataBoxedString
+implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataAdditionalMetadataBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataAdditionalMetadata +public static class MultipartformdataAdditionalMetadata
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +## Description +Additional data to pass to server + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md new file mode 100644 index 00000000000..fecda0a9b1d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.md @@ -0,0 +1,87 @@ +# FakepetiduploadimagewithrequiredfilePostCode200Response + +public class FakepetiduploadimagewithrequiredfilePostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakepetiduploadimagewithrequiredfilePostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakepetiduploadimagewithrequiredfilePostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakepetiduploadimagewithrequiredfilePostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakepetiduploadimagewithrequiredfilePostCode200Response.FakepetiduploadimagewithrequiredfilePostCode200Response1](#fakepetiduploadimagewithrequiredfilepostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | + +## FakepetiduploadimagewithrequiredfilePostCode200Response1 +public static class FakepetiduploadimagewithrequiredfilePostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..bb60c5776fb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md new file mode 100644 index 00000000000..3e58c101d48 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 +FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java + +public class FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md new file mode 100644 index 00000000000..7371ae8d0dc --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.md @@ -0,0 +1,185 @@ +# FakequeryparamwithjsoncontenttypeGet + +public class FakequeryparamwithjsoncontenttypeGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [QueryParamWithJsonContentTypeOperation](#queryparamwithjsoncontenttypeoperation)
The interface that has a queryParamWithJsonContentType method to call the endpoint | +| static class | [GetRequest](#getrequest)
The final request inputs class | +| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | +| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.FakequeryparamwithjsoncontenttypeGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.FakequeryparamwithjsoncontenttypeGet; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakequeryparamwithjsoncontenttypeGet.Get apiClient = new FakequeryparamwithjsoncontenttypeGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters = + FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( + new FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder() + .build(), + schemaConfiguration +); + +var request = new FakequeryparamwithjsoncontenttypeGet.GetRequestBuilder() + .queryParameters(queryParameters) + .build(); + +FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakequeryparamwithjsoncontenttypeGetResponses.EndpointFakequeryparamwithjsoncontenttypeGetCode200Response castResponse = (FakequeryparamwithjsoncontenttypeGetResponses.EndpointFakequeryparamwithjsoncontenttypeGetCode200Response) response; +FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## QueryParamWithJsonContentTypeOperation +public interface QueryParamWithJsonContentTypeOperation
+ +an interface that allows one to call the endpoint using a method named queryParamWithJsonContentType by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md#endpointresponse) | queryParamWithJsonContentType([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetNullableRequest +public static class GetNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable QueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Get0RequestBuilder +public static class Get0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([FakequeryparamwithjsoncontenttypeGetQueryParametersQueryParametersMap](../../paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md new file mode 100644 index 00000000000..da36f1e2a11 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.md @@ -0,0 +1,274 @@ +# FakequeryparamwithjsoncontenttypeGetQueryParameters +public class FakequeryparamwithjsoncontenttypeGetQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed)
sealed interface for validated payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1](#fakequeryparamwithjsoncontenttypegetqueryparameters1)
schema class | +| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakequeryparamwithjsoncontenttypeGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed +public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed
+permits
+[FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap +public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap
+implements [FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakequeryparamwithjsoncontenttypeGetQueryParameters1 +public static class FakequeryparamwithjsoncontenttypeGetQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap validatedPayload = + FakequeryparamwithjsoncontenttypeGetQueryParameters.FakequeryparamwithjsoncontenttypeGetQueryParameters1.validate( + new FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMapBuilder() + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("someParam", [Schema0.Schema01.class](../../../paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "someParam"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed](#fakequeryparamwithjsoncontenttypegetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMap0Builder +public class QueryParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(Void value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(boolean value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(String value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(int value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(float value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(long value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(double value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(List value) | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | someParam(Map value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | someParam()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md new file mode 100644 index 00000000000..8d267310181 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.md @@ -0,0 +1,29 @@ +# FakequeryparamwithjsoncontenttypeGetResponses + +public class FakequeryparamwithjsoncontenttypeGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakequeryparamwithjsoncontenttypeGetCode200Response](#endpointfakequeryparamwithjsoncontenttypegetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakequeryparamwithjsoncontenttypeGetCode200Response](#endpointfakequeryparamwithjsoncontenttypegetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakequeryparamwithjsoncontenttypeGetCode200Response +public record EndpointFakequeryparamwithjsoncontenttypeGetCode200Response( + HttpResponse response, + [FakequeryparamwithjsoncontenttypeGetCode200Response.SealedResponseBody](../../../paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md new file mode 100644 index 00000000000..d2b7bf3b598 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.md @@ -0,0 +1,144 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedVoid](#schema01boxedvoid)
boxed class to store validated null payloads | +| record | [Schema0.Schema01BoxedBoolean](#schema01boxedboolean)
boxed class to store validated boolean payloads | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| record | [Schema0.Schema01BoxedMap](#schema01boxedmap)
boxed class to store validated Map payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedVoid](#schema01boxedvoid), +[Schema01BoxedBoolean](#schema01boxedboolean), +[Schema01BoxedNumber](#schema01boxednumber), +[Schema01BoxedString](#schema01boxedstring), +[Schema01BoxedList](#schema01boxedlist), +[Schema01BoxedMap](#schema01boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedVoid +public record Schema01BoxedVoid
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01BoxedBoolean +public record Schema01BoxedBoolean
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01BoxedNumber +public record Schema01BoxedNumber
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01BoxedList +public record Schema01BoxedList
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01BoxedMap +public record Schema01BoxedMap
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md new file mode 100644 index 00000000000..9ec99947bbf --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.md @@ -0,0 +1,87 @@ +# FakequeryparamwithjsoncontenttypeGetCode200Response + +public class FakequeryparamwithjsoncontenttypeGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakequeryparamwithjsoncontenttypeGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakequeryparamwithjsoncontenttypeGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakequeryparamwithjsoncontenttypeGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakequeryparamwithjsoncontenttypeGetCode200Response.FakequeryparamwithjsoncontenttypeGetCode200Response1](#fakequeryparamwithjsoncontenttypegetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakequeryparamwithjsoncontenttypeGetCode200Response1 +public static class FakequeryparamwithjsoncontenttypeGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakequeryparamwithjsoncontenttypeGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md new file mode 100644 index 00000000000..fc63432c009 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeredirection/FakeredirectionGet.md @@ -0,0 +1,146 @@ +# FakeredirectionGet + +public class FakeredirectionGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [RedirectionOperation](#redirectionoperation)
The interface that has a redirection method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode303Response; +import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode3XXResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeredirection.FakeredirectionGet; +import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeredirectionGet.Get apiClient = new FakeredirectionGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakeredirectionGet.GetRequestBuilder().build(); + +FakeredirectionGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +if (response instanceof FakeredirectionGetResponses.EndpointFakeredirectionGetCode3XXResponse castResponse) { +} else { + FakeredirectionGetResponses.EndpointFakeredirectionGetCode303Response castResponse = (FakeredirectionGetResponses.EndpointFakeredirectionGetCode303Response) response; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## RedirectionOperation +public interface RedirectionOperation
+ +an interface that allows one to call the endpoint using a method named redirection by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeredirectionGetResponses.EndpointResponse](../../paths/fakeredirection/get/FakeredirectionGetResponses.md#endpointresponse) | redirection([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md b/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md new file mode 100644 index 00000000000..98e4c369709 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeredirection/get/FakeredirectionGetResponses.md @@ -0,0 +1,40 @@ +# FakeredirectionGetResponses + +public class FakeredirectionGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeredirectionGetCode3XXResponse](#endpointfakeredirectiongetcode3xxresponse)
the response for 3XX | +| record | [EndpointFakeredirectionGetCode303Response](#endpointfakeredirectiongetcode303response)
the response for 303 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeredirectionGetCode3XXResponse](#endpointfakeredirectiongetcode3xxresponse), +[EndpointFakeredirectionGetCode303Response](#endpointfakeredirectiongetcode303response) + +a sealed interface that stores endpoint responses + +## EndpointFakeredirectionGetCode3XXResponse +public record EndpointFakeredirectionGetCode3XXResponse( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + +## EndpointFakeredirectionGetCode303Response +public record EndpointFakeredirectionGetCode303Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.md b/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.md new file mode 100644 index 00000000000..25474489f32 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.md @@ -0,0 +1,32 @@ +# FakeredirectionGetCode303Response + +public class FakeredirectionGetCode303Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakeredirectionGetCode303Response.FakeredirectionGetCode303Response1](#fakeredirectiongetcode303response1)
class that deserializes responses | + +## FakeredirectionGetCode303Response1 +public static class FakeredirectionGetCode303Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeredirectionGetCode303Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.md b/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.md new file mode 100644 index 00000000000..f79a85bb494 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.md @@ -0,0 +1,32 @@ +# FakeredirectionGetCode3XXResponse + +public class FakeredirectionGetCode3XXResponse + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakeredirectionGetCode3XXResponse.FakeredirectionGetCode3XXResponse1](#fakeredirectiongetcode3xxresponse1)
class that deserializes responses | + +## FakeredirectionGetCode3XXResponse1 +public static class FakeredirectionGetCode3XXResponse1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeredirectionGetCode3XXResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md new file mode 100644 index 00000000000..ee25be0a844 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/FakerefobjinqueryGet.md @@ -0,0 +1,145 @@ +# FakerefobjinqueryGet + +public class FakerefobjinqueryGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [RefObjectInQueryOperation](#refobjectinqueryoperation)
The interface that has a refObjectInQuery method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.FakerefobjinqueryGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefobjinquery.FakerefobjinqueryGet; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakerefobjinqueryGet.Get apiClient = new FakerefobjinqueryGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakerefobjinqueryGet.GetRequestBuilder().build(); + +FakerefobjinqueryGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response castResponse = (FakerefobjinqueryGetResponses.EndpointFakerefobjinqueryGetCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## RefObjectInQueryOperation +public interface RefObjectInQueryOperation
+ +an interface that allows one to call the endpoint using a method named refObjectInQuery by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefobjinqueryGetResponses.EndpointResponse](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md#endpointresponse) | refObjectInQuery([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefobjinqueryGetQueryParameters.@Nullable QueryParametersMap](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#queryparametersmap) | queryParameters
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | queryParameters([FakerefobjinqueryGetQueryParametersQueryParametersMap](../../paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md#queryparametersmap) queryParameters)
sets the optional property | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md new file mode 100644 index 00000000000..4929ddf41e2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.md @@ -0,0 +1,258 @@ +# FakerefobjinqueryGetQueryParameters +public class FakerefobjinqueryGetQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed)
sealed interface for validated payloads | +| record | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1](#fakerefobjinquerygetqueryparameters1)
schema class | +| static class | [FakerefobjinqueryGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FakerefobjinqueryGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FakerefobjinqueryGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FakerefobjinqueryGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FakerefobjinqueryGetQueryParameters1Boxed +public sealed interface FakerefobjinqueryGetQueryParameters1Boxed
+permits
+[FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FakerefobjinqueryGetQueryParameters1BoxedMap +public record FakerefobjinqueryGetQueryParameters1BoxedMap
+implements [FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefobjinqueryGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FakerefobjinqueryGetQueryParameters1 +public static class FakerefobjinqueryGetQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FakerefobjinqueryGetQueryParameters.QueryParametersMap validatedPayload = + FakerefobjinqueryGetQueryParameters.FakerefobjinqueryGetQueryParameters1.validate( + new FakerefobjinqueryGetQueryParameters.QueryParametersMapBuilder() + .mapBean( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "bar", + "a" + ) + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("mapBean", [Foo.Foo1.class](../../../components/schemas/Foo.md#foo1))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakerefobjinqueryGetQueryParameters1BoxedMap](#fakerefobjinquerygetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FakerefobjinqueryGetQueryParameters1Boxed](#fakerefobjinquerygetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map> | build()
Returns map input that should be used with Schema.validate | +| [QueryParametersMapBuilder](#queryparametersmapbuilder) | mapBean(Map value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Foo.FooMap](../../../components/schemas/Foo.md#foomap) | mapBean()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md new file mode 100644 index 00000000000..304f571b661 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.md @@ -0,0 +1,29 @@ +# FakerefobjinqueryGetResponses + +public class FakerefobjinqueryGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakerefobjinqueryGetCode200Response](#endpointfakerefobjinquerygetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakerefobjinqueryGetCode200Response](#endpointfakerefobjinquerygetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakerefobjinqueryGetCode200Response +public record EndpointFakerefobjinqueryGetCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..22b82242cfb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.md @@ -0,0 +1,19 @@ +# Schema0 +public class Schema0
+extends [Foo1](../../../components/schemas/Foo.md#foo) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01 +public static class Schema01
+extends [Foo.Foo1](../../../components/schemas/Foo.md#foo1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.md new file mode 100644 index 00000000000..01ca962f7f5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.md @@ -0,0 +1,17 @@ +# FakerefobjinqueryGetCode200Response + +public class FakerefobjinqueryGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakerefobjinqueryGetCode200Response.FakerefobjinqueryGetCode200Response1](#fakerefobjinquerygetcode200response1)
class that deserializes responses | + +## FakerefobjinqueryGetCode200Response1 +public static class FakerefobjinqueryGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md new file mode 100644 index 00000000000..f6ec0996f3a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/FakerefsarraymodelPost.md @@ -0,0 +1,148 @@ +# FakerefsarraymodelPost + +public class FakerefsarraymodelPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [ArrayModelOperation](#arraymodeloperation)
The interface that has a arrayModel method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; +import org.openapijsonschematools.client.components.schemas.AnimalFarm; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.FakerefsarraymodelPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.FakerefsarraymodelPost; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakerefsarraymodelPost.Post apiClient = new FakerefsarraymodelPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakerefsarraymodelPost.PostRequestBuilder().build(); + +FakerefsarraymodelPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakerefsarraymodelPostResponses.EndpointFakerefsarraymodelPostCode200Response castResponse = (FakerefsarraymodelPostResponses.EndpointFakerefsarraymodelPostCode200Response) response; +FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## ArrayModelOperation +public interface ArrayModelOperation
+ +an interface that allows one to call the endpoint using a method named arrayModel by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsarraymodelPostResponses.EndpointResponse](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md#endpointresponse) | arrayModel([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefsarraymodelPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsarraymodelPostRequestBody.SealedRequestBody](../../paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md new file mode 100644 index 00000000000..b0185b64bfb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.md @@ -0,0 +1,90 @@ +# FakerefsarraymodelPostRequestBody + +public class FakerefsarraymodelPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsarraymodelPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsarraymodelPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsarraymodelPostRequestBody.FakerefsarraymodelPostRequestBody1](#fakerefsarraymodelpostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsarraymodelPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsarraymodelPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakerefsarraymodelPostRequestBody1 +public static class FakerefsarraymodelPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsarraymodelPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[AnimalFarm1Boxed](../../../components/schemas/AnimalFarm.md#animalfarm1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[AnimalFarm1Boxed](../../../components/schemas/AnimalFarm.md#animalfarm1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md new file mode 100644 index 00000000000..b6954fefd6a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.md @@ -0,0 +1,29 @@ +# FakerefsarraymodelPostResponses + +public class FakerefsarraymodelPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakerefsarraymodelPostCode200Response](#endpointfakerefsarraymodelpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakerefsarraymodelPostCode200Response](#endpointfakerefsarraymodelpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakerefsarraymodelPostCode200Response +public record EndpointFakerefsarraymodelPostCode200Response( + HttpResponse response, + [FakerefsarraymodelPostCode200Response.SealedResponseBody](../../../paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1418728fbd4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [AnimalFarm1](../../../../../../components/schemas/AnimalFarm.md#animalfarm) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [AnimalFarm.AnimalFarm1](../../../../../../components/schemas/AnimalFarm.md#animalfarm1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md new file mode 100644 index 00000000000..1642d910d0d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.md @@ -0,0 +1,87 @@ +# FakerefsarraymodelPostCode200Response + +public class FakerefsarraymodelPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsarraymodelPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsarraymodelPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakerefsarraymodelPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakerefsarraymodelPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakerefsarraymodelPostCode200Response.FakerefsarraymodelPostCode200Response1](#fakerefsarraymodelpostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[AnimalFarm1Boxed](../../../../components/schemas/AnimalFarm.md#animalfarm1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[AnimalFarm1Boxed](../../../../components/schemas/AnimalFarm.md#animalfarm1boxed) | body()
returns the body passed in in the constructor | + +## FakerefsarraymodelPostCode200Response1 +public static class FakerefsarraymodelPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsarraymodelPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..f4786efc35d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [AnimalFarm1](../../../../../../../components/schemas/AnimalFarm.md#animalfarm) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [AnimalFarm.AnimalFarm1](../../../../../../../components/schemas/AnimalFarm.md#animalfarm1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md new file mode 100644 index 00000000000..bad74ab9f4c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.md @@ -0,0 +1,148 @@ +# FakerefsarrayofenumsPost + +public class FakerefsarrayofenumsPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [ArrayOfEnumsOperation](#arrayofenumsoperation)
The interface that has a arrayOfEnums method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; +import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.FakerefsarrayofenumsPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.FakerefsarrayofenumsPost; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakerefsarrayofenumsPost.Post apiClient = new FakerefsarrayofenumsPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakerefsarrayofenumsPost.PostRequestBuilder().build(); + +FakerefsarrayofenumsPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakerefsarrayofenumsPostResponses.EndpointFakerefsarrayofenumsPostCode200Response castResponse = (FakerefsarrayofenumsPostResponses.EndpointFakerefsarrayofenumsPostCode200Response) response; +FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## ArrayOfEnumsOperation +public interface ArrayOfEnumsOperation
+ +an interface that allows one to call the endpoint using a method named arrayOfEnums by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsarrayofenumsPostResponses.EndpointResponse](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md#endpointresponse) | arrayOfEnums([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefsarrayofenumsPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsarrayofenumsPostRequestBody.SealedRequestBody](../../paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md new file mode 100644 index 00000000000..985f2555e68 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.md @@ -0,0 +1,90 @@ +# FakerefsarrayofenumsPostRequestBody + +public class FakerefsarrayofenumsPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsarrayofenumsPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsarrayofenumsPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsarrayofenumsPostRequestBody.FakerefsarrayofenumsPostRequestBody1](#fakerefsarrayofenumspostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsarrayofenumsPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsarrayofenumsPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakerefsarrayofenumsPostRequestBody1 +public static class FakerefsarrayofenumsPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsarrayofenumsPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md new file mode 100644 index 00000000000..45c6dbc66be --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.md @@ -0,0 +1,29 @@ +# FakerefsarrayofenumsPostResponses + +public class FakerefsarrayofenumsPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakerefsarrayofenumsPostCode200Response](#endpointfakerefsarrayofenumspostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakerefsarrayofenumsPostCode200Response](#endpointfakerefsarrayofenumspostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakerefsarrayofenumsPostCode200Response +public record EndpointFakerefsarrayofenumsPostCode200Response( + HttpResponse response, + [FakerefsarrayofenumsPostCode200Response.SealedResponseBody](../../../paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..c49c361c228 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ArrayOfEnums1](../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ArrayOfEnums.ArrayOfEnums1](../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md new file mode 100644 index 00000000000..0fac3a28e7a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.md @@ -0,0 +1,87 @@ +# FakerefsarrayofenumsPostCode200Response + +public class FakerefsarrayofenumsPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsarrayofenumsPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsarrayofenumsPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakerefsarrayofenumsPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakerefsarrayofenumsPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakerefsarrayofenumsPostCode200Response.FakerefsarrayofenumsPostCode200Response1](#fakerefsarrayofenumspostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) | body()
returns the body passed in in the constructor | + +## FakerefsarrayofenumsPostCode200Response1 +public static class FakerefsarrayofenumsPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsarrayofenumsPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..82450aa4900 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ArrayOfEnums1](../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ArrayOfEnums.ArrayOfEnums1](../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md new file mode 100644 index 00000000000..e24e63e6ee3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/FakerefsbooleanPost.md @@ -0,0 +1,148 @@ +# FakerefsbooleanPost + +public class FakerefsbooleanPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [ModelBooleanOperation](#modelbooleanoperation)
The interface that has a modelBoolean method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; +import org.openapijsonschematools.client.components.schemas.BooleanSchema; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.FakerefsbooleanPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsboolean.FakerefsbooleanPost; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakerefsbooleanPost.Post apiClient = new FakerefsbooleanPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakerefsbooleanPost.PostRequestBuilder().build(); + +FakerefsbooleanPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakerefsbooleanPostResponses.EndpointFakerefsbooleanPostCode200Response castResponse = (FakerefsbooleanPostResponses.EndpointFakerefsbooleanPostCode200Response) response; +FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## ModelBooleanOperation +public interface ModelBooleanOperation
+ +an interface that allows one to call the endpoint using a method named modelBoolean by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsbooleanPostResponses.EndpointResponse](../../paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md#endpointresponse) | modelBoolean([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefsbooleanPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsbooleanPostRequestBody.SealedRequestBody](../../paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md new file mode 100644 index 00000000000..a03b0522105 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.md @@ -0,0 +1,90 @@ +# FakerefsbooleanPostRequestBody + +public class FakerefsbooleanPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsbooleanPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsbooleanPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsbooleanPostRequestBody.FakerefsbooleanPostRequestBody1](#fakerefsbooleanpostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsbooleanPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsbooleanPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakerefsbooleanPostRequestBody1 +public static class FakerefsbooleanPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsbooleanPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.BooleanJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md new file mode 100644 index 00000000000..6a39490ec8f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.md @@ -0,0 +1,29 @@ +# FakerefsbooleanPostResponses + +public class FakerefsbooleanPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakerefsbooleanPostCode200Response](#endpointfakerefsbooleanpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakerefsbooleanPostCode200Response](#endpointfakerefsbooleanpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakerefsbooleanPostCode200Response +public record EndpointFakerefsbooleanPostCode200Response( + HttpResponse response, + [FakerefsbooleanPostCode200Response.SealedResponseBody](../../../paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..d0446d3d804 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [BooleanSchema1](../../../../../../components/schemas/BooleanSchema.md#booleanschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [BooleanSchema.BooleanSchema1](../../../../../../components/schemas/BooleanSchema.md#booleanschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md new file mode 100644 index 00000000000..c85cd66f858 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.md @@ -0,0 +1,87 @@ +# FakerefsbooleanPostCode200Response + +public class FakerefsbooleanPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsbooleanPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsbooleanPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakerefsbooleanPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakerefsbooleanPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakerefsbooleanPostCode200Response.FakerefsbooleanPostCode200Response1](#fakerefsbooleanpostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.BooleanJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakerefsbooleanPostCode200Response1 +public static class FakerefsbooleanPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsbooleanPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1694ac4a00a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [BooleanSchema1](../../../../../../../components/schemas/BooleanSchema.md#booleanschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [BooleanSchema.BooleanSchema1](../../../../../../../components/schemas/BooleanSchema.md#booleanschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md new file mode 100644 index 00000000000..731a2d4015d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.md @@ -0,0 +1,148 @@ +# FakerefscomposedoneofnumberwithvalidationsPost + +public class FakerefscomposedoneofnumberwithvalidationsPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [ComposedOneOfDifferentTypesOperation](#composedoneofdifferenttypesoperation)
The interface that has a composedOneOfDifferentTypes method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; +import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.FakerefscomposedoneofnumberwithvalidationsPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.FakerefscomposedoneofnumberwithvalidationsPost; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakerefscomposedoneofnumberwithvalidationsPost.Post apiClient = new FakerefscomposedoneofnumberwithvalidationsPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakerefscomposedoneofnumberwithvalidationsPost.PostRequestBuilder().build(); + +FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response castResponse = (FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response) response; +FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## ComposedOneOfDifferentTypesOperation +public interface ComposedOneOfDifferentTypesOperation
+ +an interface that allows one to call the endpoint using a method named composedOneOfDifferentTypes by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md#endpointresponse) | composedOneOfDifferentTypes([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedRequestBody](../../paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md new file mode 100644 index 00000000000..f93cdc72bd3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.md @@ -0,0 +1,90 @@ +# FakerefscomposedoneofnumberwithvalidationsPostRequestBody + +public class FakerefscomposedoneofnumberwithvalidationsPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.FakerefscomposedoneofnumberwithvalidationsPostRequestBody1](#fakerefscomposedoneofnumberwithvalidationspostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefscomposedoneofnumberwithvalidationsPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakerefscomposedoneofnumberwithvalidationsPostRequestBody1 +public static class FakerefscomposedoneofnumberwithvalidationsPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefscomposedoneofnumberwithvalidationsPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md new file mode 100644 index 00000000000..e692dc2a79f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.md @@ -0,0 +1,29 @@ +# FakerefscomposedoneofnumberwithvalidationsPostResponses + +public class FakerefscomposedoneofnumberwithvalidationsPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response](#endpointfakerefscomposedoneofnumberwithvalidationspostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response](#endpointfakerefscomposedoneofnumberwithvalidationspostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response +public record EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response( + HttpResponse response, + [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.SealedResponseBody](../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..6d15e5f1438 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ComposedOneOfDifferentTypes1](../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md new file mode 100644 index 00000000000..9ba53ab13ea --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.md @@ -0,0 +1,87 @@ +# FakerefscomposedoneofnumberwithvalidationsPostCode200Response + +public class FakerefscomposedoneofnumberwithvalidationsPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakerefscomposedoneofnumberwithvalidationsPostCode200Response.FakerefscomposedoneofnumberwithvalidationsPostCode200Response1](#fakerefscomposedoneofnumberwithvalidationspostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) | body()
returns the body passed in in the constructor | + +## FakerefscomposedoneofnumberwithvalidationsPostCode200Response1 +public static class FakerefscomposedoneofnumberwithvalidationsPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefscomposedoneofnumberwithvalidationsPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..1e3738551c2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ComposedOneOfDifferentTypes1](../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md new file mode 100644 index 00000000000..25dd52297ca --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/FakerefsenumPost.md @@ -0,0 +1,148 @@ +# FakerefsenumPost + +public class FakerefsenumPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [StringEnumOperation](#stringenumoperation)
The interface that has a stringEnum method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; +import org.openapijsonschematools.client.components.schemas.StringEnum; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.FakerefsenumPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsenum.FakerefsenumPost; +import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakerefsenumPost.Post apiClient = new FakerefsenumPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakerefsenumPost.PostRequestBuilder().build(); + +FakerefsenumPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakerefsenumPostResponses.EndpointFakerefsenumPostCode200Response castResponse = (FakerefsenumPostResponses.EndpointFakerefsenumPostCode200Response) response; +FakerefsenumPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsenumPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## StringEnumOperation +public interface StringEnumOperation
+ +an interface that allows one to call the endpoint using a method named stringEnum by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsenumPostResponses.EndpointResponse](../../paths/fakerefsenum/post/FakerefsenumPostResponses.md#endpointresponse) | stringEnum([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefsenumPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsenum/post/FakerefsenumPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsenumPostRequestBody.SealedRequestBody](../../paths/fakerefsenum/post/FakerefsenumPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md new file mode 100644 index 00000000000..37075fb26b1 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostRequestBody.md @@ -0,0 +1,90 @@ +# FakerefsenumPostRequestBody + +public class FakerefsenumPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsenumPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsenumPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsenumPostRequestBody.FakerefsenumPostRequestBody1](#fakerefsenumpostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsenumPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsenumPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakerefsenumPostRequestBody1 +public static class FakerefsenumPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsenumPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[StringEnum1Boxed](../../../components/schemas/StringEnum.md#stringenum1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[StringEnum1Boxed](../../../components/schemas/StringEnum.md#stringenum1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md new file mode 100644 index 00000000000..90cd1977718 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/FakerefsenumPostResponses.md @@ -0,0 +1,29 @@ +# FakerefsenumPostResponses + +public class FakerefsenumPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakerefsenumPostCode200Response](#endpointfakerefsenumpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakerefsenumPostCode200Response](#endpointfakerefsenumpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakerefsenumPostCode200Response +public record EndpointFakerefsenumPostCode200Response( + HttpResponse response, + [FakerefsenumPostCode200Response.SealedResponseBody](../../../paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..d83adaf246f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [StringEnum1](../../../../../../components/schemas/StringEnum.md#stringenum) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [StringEnum.StringEnum1](../../../../../../components/schemas/StringEnum.md#stringenum1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md new file mode 100644 index 00000000000..b5f96c362a3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.md @@ -0,0 +1,87 @@ +# FakerefsenumPostCode200Response + +public class FakerefsenumPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsenumPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsenumPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakerefsenumPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakerefsenumPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakerefsenumPostCode200Response.FakerefsenumPostCode200Response1](#fakerefsenumpostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[StringEnum1Boxed](../../../../components/schemas/StringEnum.md#stringenum1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[StringEnum1Boxed](../../../../components/schemas/StringEnum.md#stringenum1boxed) | body()
returns the body passed in in the constructor | + +## FakerefsenumPostCode200Response1 +public static class FakerefsenumPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsenumPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..2ac02fd09b9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [StringEnum1](../../../../../../../components/schemas/StringEnum.md#stringenum) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [StringEnum.StringEnum1](../../../../../../../components/schemas/StringEnum.md#stringenum1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md new file mode 100644 index 00000000000..0cd434caa3f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/FakerefsmammalPost.md @@ -0,0 +1,179 @@ +# FakerefsmammalPost + +public class FakerefsmammalPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [MammalOperation](#mammaloperation)
The interface that has a mammal method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; +import org.openapijsonschematools.client.components.schemas.Mammal; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.FakerefsmammalPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsmammal.FakerefsmammalPost; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakerefsmammalPost.Post apiClient = new FakerefsmammalPost.Post(apiConfiguration, schemaConfiguration); + +FakerefsmammalPost.SealedRequestBody requestBody = new FakerefsmammalPost.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new FakerefsmammalPost.PostRequestBuilder() + .requestBody(requestBody) + .build(); + +FakerefsmammalPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakerefsmammalPostResponses.EndpointFakerefsmammalPostCode200Response castResponse = (FakerefsmammalPostResponses.EndpointFakerefsmammalPostCode200Response) response; +FakerefsmammalPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsmammalPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## MammalOperation +public interface MammalOperation
+ +an interface that allows one to call the endpoint using a method named mammal by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsmammalPostResponses.EndpointResponse](../../paths/fakerefsmammal/post/FakerefsmammalPostResponses.md#endpointresponse) | mammal([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefsmammalPostRequestBody.SealedRequestBody](../../paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefsmammalPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([FakerefsmammalPostRequestBody.SealedRequestBody](../../paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md new file mode 100644 index 00000000000..c690512c787 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.md @@ -0,0 +1,90 @@ +# FakerefsmammalPostRequestBody + +public class FakerefsmammalPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsmammalPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsmammalPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsmammalPostRequestBody.FakerefsmammalPostRequestBody1](#fakerefsmammalpostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsmammalPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsmammalPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakerefsmammalPostRequestBody1 +public static class FakerefsmammalPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsmammalPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = true
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[Mammal1Boxed](../../../components/schemas/Mammal.md#mammal1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[Mammal1Boxed](../../../components/schemas/Mammal.md#mammal1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md new file mode 100644 index 00000000000..7f56fbe1cc0 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/FakerefsmammalPostResponses.md @@ -0,0 +1,29 @@ +# FakerefsmammalPostResponses + +public class FakerefsmammalPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakerefsmammalPostCode200Response](#endpointfakerefsmammalpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakerefsmammalPostCode200Response](#endpointfakerefsmammalpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakerefsmammalPostCode200Response +public record EndpointFakerefsmammalPostCode200Response( + HttpResponse response, + [FakerefsmammalPostCode200Response.SealedResponseBody](../../../paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..b1b525d94da --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Mammal1](../../../../../../components/schemas/Mammal.md#mammal) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Mammal.Mammal1](../../../../../../components/schemas/Mammal.md#mammal1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md new file mode 100644 index 00000000000..efd2fc83196 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.md @@ -0,0 +1,87 @@ +# FakerefsmammalPostCode200Response + +public class FakerefsmammalPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsmammalPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsmammalPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakerefsmammalPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakerefsmammalPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakerefsmammalPostCode200Response.FakerefsmammalPostCode200Response1](#fakerefsmammalpostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Mammal1Boxed](../../../../components/schemas/Mammal.md#mammal1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[Mammal1Boxed](../../../../components/schemas/Mammal.md#mammal1boxed) | body()
returns the body passed in in the constructor | + +## FakerefsmammalPostCode200Response1 +public static class FakerefsmammalPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsmammalPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..f0a5b53544f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Mammal1](../../../../../../../components/schemas/Mammal.md#mammal) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Mammal.Mammal1](../../../../../../../components/schemas/Mammal.md#mammal1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md new file mode 100644 index 00000000000..8bfc7f4c81f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/FakerefsnumberPost.md @@ -0,0 +1,148 @@ +# FakerefsnumberPost + +public class FakerefsnumberPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [NumberWithValidationsOperation](#numberwithvalidationsoperation)
The interface that has a numberWithValidations method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; +import org.openapijsonschematools.client.components.schemas.NumberWithValidations; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.FakerefsnumberPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsnumber.FakerefsnumberPost; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakerefsnumberPost.Post apiClient = new FakerefsnumberPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakerefsnumberPost.PostRequestBuilder().build(); + +FakerefsnumberPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakerefsnumberPostResponses.EndpointFakerefsnumberPostCode200Response castResponse = (FakerefsnumberPostResponses.EndpointFakerefsnumberPostCode200Response) response; +FakerefsnumberPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsnumberPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## NumberWithValidationsOperation +public interface NumberWithValidationsOperation
+ +an interface that allows one to call the endpoint using a method named numberWithValidations by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsnumberPostResponses.EndpointResponse](../../paths/fakerefsnumber/post/FakerefsnumberPostResponses.md#endpointresponse) | numberWithValidations([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefsnumberPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsnumberPostRequestBody.SealedRequestBody](../../paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md new file mode 100644 index 00000000000..b17bef8adae --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.md @@ -0,0 +1,90 @@ +# FakerefsnumberPostRequestBody + +public class FakerefsnumberPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsnumberPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsnumberPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsnumberPostRequestBody.FakerefsnumberPostRequestBody1](#fakerefsnumberpostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsnumberPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsnumberPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakerefsnumberPostRequestBody1 +public static class FakerefsnumberPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsnumberPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md new file mode 100644 index 00000000000..210666926f6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/FakerefsnumberPostResponses.md @@ -0,0 +1,29 @@ +# FakerefsnumberPostResponses + +public class FakerefsnumberPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakerefsnumberPostCode200Response](#endpointfakerefsnumberpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakerefsnumberPostCode200Response](#endpointfakerefsnumberpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakerefsnumberPostCode200Response +public record EndpointFakerefsnumberPostCode200Response( + HttpResponse response, + [FakerefsnumberPostCode200Response.SealedResponseBody](../../../paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..a6a485e5657 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [NumberWithValidations1](../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [NumberWithValidations.NumberWithValidations1](../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md new file mode 100644 index 00000000000..872b78c9847 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.md @@ -0,0 +1,87 @@ +# FakerefsnumberPostCode200Response + +public class FakerefsnumberPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsnumberPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsnumberPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakerefsnumberPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakerefsnumberPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakerefsnumberPostCode200Response.FakerefsnumberPostCode200Response1](#fakerefsnumberpostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) | body()
returns the body passed in in the constructor | + +## FakerefsnumberPostCode200Response1 +public static class FakerefsnumberPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsnumberPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..a903474b2ee --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [NumberWithValidations1](../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [NumberWithValidations.NumberWithValidations1](../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md new file mode 100644 index 00000000000..0b6534762de --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.md @@ -0,0 +1,148 @@ +# FakerefsobjectmodelwithrefpropsPost + +public class FakerefsobjectmodelwithrefpropsPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [ObjectModelWithRefPropsOperation](#objectmodelwithrefpropsoperation)
The interface that has a objectModelWithRefProps method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; +import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.FakerefsobjectmodelwithrefpropsPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.FakerefsobjectmodelwithrefpropsPost; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakerefsobjectmodelwithrefpropsPost.Post apiClient = new FakerefsobjectmodelwithrefpropsPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakerefsobjectmodelwithrefpropsPost.PostRequestBuilder().build(); + +FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakerefsobjectmodelwithrefpropsPostResponses.EndpointFakerefsobjectmodelwithrefpropsPostCode200Response castResponse = (FakerefsobjectmodelwithrefpropsPostResponses.EndpointFakerefsobjectmodelwithrefpropsPostCode200Response) response; +FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## ObjectModelWithRefPropsOperation +public interface ObjectModelWithRefPropsOperation
+ +an interface that allows one to call the endpoint using a method named objectModelWithRefProps by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md#endpointresponse) | objectModelWithRefProps([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefsobjectmodelwithrefpropsPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsobjectmodelwithrefpropsPostRequestBody.SealedRequestBody](../../paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md new file mode 100644 index 00000000000..e0846150c44 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.md @@ -0,0 +1,90 @@ +# FakerefsobjectmodelwithrefpropsPostRequestBody + +public class FakerefsobjectmodelwithrefpropsPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsobjectmodelwithrefpropsPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsobjectmodelwithrefpropsPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsobjectmodelwithrefpropsPostRequestBody.FakerefsobjectmodelwithrefpropsPostRequestBody1](#fakerefsobjectmodelwithrefpropspostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsobjectmodelwithrefpropsPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsobjectmodelwithrefpropsPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakerefsobjectmodelwithrefpropsPostRequestBody1 +public static class FakerefsobjectmodelwithrefpropsPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsobjectmodelwithrefpropsPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md new file mode 100644 index 00000000000..27e6230d866 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.md @@ -0,0 +1,29 @@ +# FakerefsobjectmodelwithrefpropsPostResponses + +public class FakerefsobjectmodelwithrefpropsPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakerefsobjectmodelwithrefpropsPostCode200Response](#endpointfakerefsobjectmodelwithrefpropspostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakerefsobjectmodelwithrefpropsPostCode200Response](#endpointfakerefsobjectmodelwithrefpropspostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakerefsobjectmodelwithrefpropsPostCode200Response +public record EndpointFakerefsobjectmodelwithrefpropsPostCode200Response( + HttpResponse response, + [FakerefsobjectmodelwithrefpropsPostCode200Response.SealedResponseBody](../../../paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..0cdc2140e3a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ObjectModelWithRefProps1](../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ObjectModelWithRefProps.ObjectModelWithRefProps1](../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md new file mode 100644 index 00000000000..920816b5528 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.md @@ -0,0 +1,87 @@ +# FakerefsobjectmodelwithrefpropsPostCode200Response + +public class FakerefsobjectmodelwithrefpropsPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsobjectmodelwithrefpropsPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakerefsobjectmodelwithrefpropsPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakerefsobjectmodelwithrefpropsPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakerefsobjectmodelwithrefpropsPostCode200Response.FakerefsobjectmodelwithrefpropsPostCode200Response1](#fakerefsobjectmodelwithrefpropspostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) | body()
returns the body passed in in the constructor | + +## FakerefsobjectmodelwithrefpropsPostCode200Response1 +public static class FakerefsobjectmodelwithrefpropsPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsobjectmodelwithrefpropsPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..495e07e6094 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ObjectModelWithRefProps1](../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ObjectModelWithRefProps.ObjectModelWithRefProps1](../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md new file mode 100644 index 00000000000..0a83e8e30bd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/FakerefsstringPost.md @@ -0,0 +1,148 @@ +# FakerefsstringPost + +public class FakerefsstringPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [ModelStringOperation](#modelstringoperation)
The interface that has a modelString method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; +import org.openapijsonschematools.client.components.schemas.StringSchema; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.FakerefsstringPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsstring.FakerefsstringPost; +import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakerefsstringPost.Post apiClient = new FakerefsstringPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakerefsstringPost.PostRequestBuilder().build(); + +FakerefsstringPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakerefsstringPostResponses.EndpointFakerefsstringPostCode200Response castResponse = (FakerefsstringPostResponses.EndpointFakerefsstringPostCode200Response) response; +FakerefsstringPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakerefsstringPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## ModelStringOperation +public interface ModelStringOperation
+ +an interface that allows one to call the endpoint using a method named modelString by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakerefsstringPostResponses.EndpointResponse](../../paths/fakerefsstring/post/FakerefsstringPostResponses.md#endpointresponse) | modelString([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakerefsstringPostRequestBody.@Nullable SealedRequestBody](../../paths/fakerefsstring/post/FakerefsstringPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakerefsstringPostRequestBody.SealedRequestBody](../../paths/fakerefsstring/post/FakerefsstringPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md new file mode 100644 index 00000000000..d9351381bcf --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostRequestBody.md @@ -0,0 +1,90 @@ +# FakerefsstringPostRequestBody + +public class FakerefsstringPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsstringPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsstringPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakerefsstringPostRequestBody.FakerefsstringPostRequestBody1](#fakerefsstringpostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakerefsstringPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakerefsstringPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakerefsstringPostRequestBody1 +public static class FakerefsstringPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsstringPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.StringJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md new file mode 100644 index 00000000000..dc00e6ebc01 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/FakerefsstringPostResponses.md @@ -0,0 +1,29 @@ +# FakerefsstringPostResponses + +public class FakerefsstringPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakerefsstringPostCode200Response](#endpointfakerefsstringpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakerefsstringPostCode200Response](#endpointfakerefsstringpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakerefsstringPostCode200Response +public record EndpointFakerefsstringPostCode200Response( + HttpResponse response, + [FakerefsstringPostCode200Response.SealedResponseBody](../../../paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..abe4f0713c9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [StringSchema1](../../../../../../components/schemas/StringSchema.md#stringschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [StringSchema.StringSchema1](../../../../../../components/schemas/StringSchema.md#stringschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md new file mode 100644 index 00000000000..d01efb93215 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.md @@ -0,0 +1,87 @@ +# FakerefsstringPostCode200Response + +public class FakerefsstringPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakerefsstringPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakerefsstringPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakerefsstringPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakerefsstringPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakerefsstringPostCode200Response.FakerefsstringPostCode200Response1](#fakerefsstringpostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakerefsstringPostCode200Response1 +public static class FakerefsstringPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakerefsstringPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..8fadd779761 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [StringSchema1](../../../../../../../components/schemas/StringSchema.md#stringschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [StringSchema.StringSchema1](../../../../../../../components/schemas/StringSchema.md#stringschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md new file mode 100644 index 00000000000..71fbe73307e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.md @@ -0,0 +1,142 @@ +# FakeresponsewithoutschemaGet + +public class FakeresponsewithoutschemaGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [ResponseWithoutSchemaOperation](#responsewithoutschemaoperation)
The interface that has a responseWithoutSchema method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.FakeresponsewithoutschemaGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.FakeresponsewithoutschemaGet; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeresponsewithoutschemaGet.Get apiClient = new FakeresponsewithoutschemaGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakeresponsewithoutschemaGet.GetRequestBuilder().build(); + +FakeresponsewithoutschemaGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode200Response castResponse = (FakeresponsewithoutschemaGetResponses.EndpointFakeresponsewithoutschemaGetCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## ResponseWithoutSchemaOperation +public interface ResponseWithoutSchemaOperation
+ +an interface that allows one to call the endpoint using a method named responseWithoutSchema by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeresponsewithoutschemaGetResponses.EndpointResponse](../../paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md#endpointresponse) | responseWithoutSchema([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md new file mode 100644 index 00000000000..0927c61dc2a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.md @@ -0,0 +1,29 @@ +# FakeresponsewithoutschemaGetResponses + +public class FakeresponsewithoutschemaGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeresponsewithoutschemaGetCode200Response](#endpointfakeresponsewithoutschemagetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeresponsewithoutschemaGetCode200Response](#endpointfakeresponsewithoutschemagetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeresponsewithoutschemaGetCode200Response +public record EndpointFakeresponsewithoutschemaGetCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md new file mode 100644 index 00000000000..79949c77d66 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.md @@ -0,0 +1,32 @@ +# FakeresponsewithoutschemaGetCode200Response + +public class FakeresponsewithoutschemaGetCode200Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FakeresponsewithoutschemaGetCode200Response.FakeresponsewithoutschemaGetCode200Response1](#fakeresponsewithoutschemagetcode200response1)
class that deserializes responses | + +## FakeresponsewithoutschemaGetCode200Response1 +public static class FakeresponsewithoutschemaGetCode200Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeresponsewithoutschemaGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
    new AbstractMap.SimpleEntry<>("application/json", null),
    new AbstractMap.SimpleEntry<>("application/xml", null)
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md new file mode 100644 index 00000000000..7c0c5bcc689 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/FaketestqueryparamtersPut.md @@ -0,0 +1,210 @@ +# FaketestqueryparamtersPut + +public class FaketestqueryparamtersPut + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Put](#put)
The class that has a put method to call the endpoint | +| interface | [QueryParameterCollectionFormatOperation](#queryparametercollectionformatoperation)
The interface that has a queryParameterCollectionFormat method to call the endpoint | +| static class | [PutRequest](#putrequest)
The final request inputs class | +| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | +| static class | [Put0RequestBuilder](#put0requestbuilder)
A builder for the request input class | +| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | + +## Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
+ +a class that allows one to call the endpoint using a method named put + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.FaketestqueryparamtersPutCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.faketestqueryparamters.FaketestqueryparamtersPut; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FaketestqueryparamtersPut.Put apiClient = new FaketestqueryparamtersPut.Put(apiConfiguration, schemaConfiguration); + + +// Map validation +FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters = + FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( + new FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder() + .context( + Arrays.asList( + "a" + ) + ) + .http( + Arrays.asList( + "a" + ) + ) + .ioutil( + Arrays.asList( + "a" + ) + ) + .pipe( + Arrays.asList( + "a" + ) + ) + .refParam("a") + + .url( + Arrays.asList( + "a" + ) + ) + .build(), + schemaConfiguration +); + +var request = new FaketestqueryparamtersPut.PutRequestBuilder() + .queryParameters(queryParameters) + .build(); + +FaketestqueryparamtersPutResponses.EndpointResponse response; +try { + response = apiClient.put(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Response castResponse = (FaketestqueryparamtersPutResponses.EndpointFaketestqueryparamtersPutCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | put([PutRequest](#putrequest) request) | + +## QueryParameterCollectionFormatOperation +public interface QueryParameterCollectionFormatOperation
+ +an interface that allows one to call the endpoint using a method named queryParameterCollectionFormat by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FaketestqueryparamtersPutResponses.EndpointResponse](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md#endpointresponse) | queryParameterCollectionFormat([PutRequest](#putrequest) request) | + +## PutRequest +public static class PutRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FaketestqueryparamtersPutQueryParameters.QueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PutNullableRequest +public static class PutNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FaketestqueryparamtersPutQueryParameters.@Nullable QueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Put0RequestBuilder +public static class Put0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put0RequestBuilder(Put0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PutRequestBuilder +public static class PutRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PutRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Put0RequestBuilder](#put0requestbuilder) | queryParameters([FaketestqueryparamtersPutQueryParametersQueryParametersMap](../../paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md#queryparametersmap) queryParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md new file mode 100644 index 00000000000..f2fb841bf9f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.md @@ -0,0 +1,1419 @@ +# FaketestqueryparamtersPutQueryParameters +public class FaketestqueryparamtersPutQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed)
sealed interface for validated payloads | +| record | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1](#faketestqueryparamtersputqueryparameters1)
schema class | +| static class | [FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [FaketestqueryparamtersPutQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FaketestqueryparamtersPutQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FaketestqueryparamtersPutQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## FaketestqueryparamtersPutQueryParameters1Boxed +public sealed interface FaketestqueryparamtersPutQueryParameters1Boxed
+permits
+[FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FaketestqueryparamtersPutQueryParameters1BoxedMap +public record FaketestqueryparamtersPutQueryParameters1BoxedMap
+implements [FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FaketestqueryparamtersPutQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FaketestqueryparamtersPutQueryParameters1 +public static class FaketestqueryparamtersPutQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FaketestqueryparamtersPutQueryParameters.QueryParametersMap validatedPayload = + FaketestqueryparamtersPutQueryParameters.FaketestqueryparamtersPutQueryParameters1.validate( + new FaketestqueryparamtersPutQueryParameters.QueryParametersMapBuilder() + .context( + Arrays.asList( + "a" + ) + ) + .http( + Arrays.asList( + "a" + ) + ) + .ioutil( + Arrays.asList( + "a" + ) + ) + .pipe( + Arrays.asList( + "a" + ) + ) + .refParam("a") + + .url( + Arrays.asList( + "a" + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("refParam", [StringWithValidation.StringWithValidation1.class](../../../components/schemas/StringWithValidation.md#stringwithvalidation1)),
    new PropertyEntry("ioutil", [Schema1.Schema11.class](../../../paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("context", [Schema4.Schema41.class](../../../paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md#schema41)),
    new PropertyEntry("http", [Schema2.Schema21.class](../../../paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md#schema21)),
    new PropertyEntry("pipe", [Schema0.Schema01.class](../../../paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md#schema01)),
    new PropertyEntry("url", [Schema3.Schema31.class](../../../paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md#schema31))
)
| +| Set | required = Set.of(
    "context",
    "http",
    "ioutil",
    "pipe",
    "refParam",
    "url"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FaketestqueryparamtersPutQueryParameters1BoxedMap](#faketestqueryparamtersputqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [FaketestqueryparamtersPutQueryParameters1Boxed](#faketestqueryparamtersputqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMap000000Builder +public class QueryParametersMap000000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap000000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## QueryParametersMap000001Builder +public class QueryParametersMap000001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap000001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | url(List value) | + +## QueryParametersMap000010Builder +public class QueryParametersMap000010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap000010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | refParam(String value) | + +## QueryParametersMap000011Builder +public class QueryParametersMap000011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap000011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | refParam(String value) | +| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | url(List value) | + +## QueryParametersMap000100Builder +public class QueryParametersMap000100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap000100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | pipe(List value) | + +## QueryParametersMap000101Builder +public class QueryParametersMap000101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap000101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | pipe(List value) | +| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | url(List value) | + +## QueryParametersMap000110Builder +public class QueryParametersMap000110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap000110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | pipe(List value) | +| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | refParam(String value) | + +## QueryParametersMap000111Builder +public class QueryParametersMap000111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap000111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | pipe(List value) | +| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | refParam(String value) | +| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | url(List value) | + +## QueryParametersMap001000Builder +public class QueryParametersMap001000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap001000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | ioutil(List value) | + +## QueryParametersMap001001Builder +public class QueryParametersMap001001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap001001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | ioutil(List value) | +| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | url(List value) | + +## QueryParametersMap001010Builder +public class QueryParametersMap001010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap001010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | ioutil(List value) | +| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | refParam(String value) | + +## QueryParametersMap001011Builder +public class QueryParametersMap001011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap001011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | ioutil(List value) | +| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | refParam(String value) | +| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | url(List value) | + +## QueryParametersMap001100Builder +public class QueryParametersMap001100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap001100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | ioutil(List value) | +| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | pipe(List value) | + +## QueryParametersMap001101Builder +public class QueryParametersMap001101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap001101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | ioutil(List value) | +| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | pipe(List value) | +| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | url(List value) | + +## QueryParametersMap001110Builder +public class QueryParametersMap001110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap001110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | ioutil(List value) | +| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | pipe(List value) | +| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | refParam(String value) | + +## QueryParametersMap001111Builder +public class QueryParametersMap001111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap001111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000111Builder](#queryparametersmap000111builder) | ioutil(List value) | +| [QueryParametersMap001011Builder](#queryparametersmap001011builder) | pipe(List value) | +| [QueryParametersMap001101Builder](#queryparametersmap001101builder) | refParam(String value) | +| [QueryParametersMap001110Builder](#queryparametersmap001110builder) | url(List value) | + +## QueryParametersMap010000Builder +public class QueryParametersMap010000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap010000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | http(List value) | + +## QueryParametersMap010001Builder +public class QueryParametersMap010001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap010001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | http(List value) | +| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | url(List value) | + +## QueryParametersMap010010Builder +public class QueryParametersMap010010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap010010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | http(List value) | +| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | refParam(String value) | + +## QueryParametersMap010011Builder +public class QueryParametersMap010011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap010011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | http(List value) | +| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | refParam(String value) | +| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | url(List value) | + +## QueryParametersMap010100Builder +public class QueryParametersMap010100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap010100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | http(List value) | +| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | pipe(List value) | + +## QueryParametersMap010101Builder +public class QueryParametersMap010101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap010101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | http(List value) | +| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | pipe(List value) | +| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | url(List value) | + +## QueryParametersMap010110Builder +public class QueryParametersMap010110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap010110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | http(List value) | +| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | pipe(List value) | +| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | refParam(String value) | + +## QueryParametersMap010111Builder +public class QueryParametersMap010111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap010111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000111Builder](#queryparametersmap000111builder) | http(List value) | +| [QueryParametersMap010011Builder](#queryparametersmap010011builder) | pipe(List value) | +| [QueryParametersMap010101Builder](#queryparametersmap010101builder) | refParam(String value) | +| [QueryParametersMap010110Builder](#queryparametersmap010110builder) | url(List value) | + +## QueryParametersMap011000Builder +public class QueryParametersMap011000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap011000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | http(List value) | +| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | ioutil(List value) | + +## QueryParametersMap011001Builder +public class QueryParametersMap011001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap011001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | http(List value) | +| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | ioutil(List value) | +| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | url(List value) | + +## QueryParametersMap011010Builder +public class QueryParametersMap011010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap011010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | http(List value) | +| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | ioutil(List value) | +| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | refParam(String value) | + +## QueryParametersMap011011Builder +public class QueryParametersMap011011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap011011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001011Builder](#queryparametersmap001011builder) | http(List value) | +| [QueryParametersMap010011Builder](#queryparametersmap010011builder) | ioutil(List value) | +| [QueryParametersMap011001Builder](#queryparametersmap011001builder) | refParam(String value) | +| [QueryParametersMap011010Builder](#queryparametersmap011010builder) | url(List value) | + +## QueryParametersMap011100Builder +public class QueryParametersMap011100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap011100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | http(List value) | +| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | ioutil(List value) | +| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | pipe(List value) | + +## QueryParametersMap011101Builder +public class QueryParametersMap011101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap011101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001101Builder](#queryparametersmap001101builder) | http(List value) | +| [QueryParametersMap010101Builder](#queryparametersmap010101builder) | ioutil(List value) | +| [QueryParametersMap011001Builder](#queryparametersmap011001builder) | pipe(List value) | +| [QueryParametersMap011100Builder](#queryparametersmap011100builder) | url(List value) | + +## QueryParametersMap011110Builder +public class QueryParametersMap011110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap011110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001110Builder](#queryparametersmap001110builder) | http(List value) | +| [QueryParametersMap010110Builder](#queryparametersmap010110builder) | ioutil(List value) | +| [QueryParametersMap011010Builder](#queryparametersmap011010builder) | pipe(List value) | +| [QueryParametersMap011100Builder](#queryparametersmap011100builder) | refParam(String value) | + +## QueryParametersMap011111Builder +public class QueryParametersMap011111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap011111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001111Builder](#queryparametersmap001111builder) | http(List value) | +| [QueryParametersMap010111Builder](#queryparametersmap010111builder) | ioutil(List value) | +| [QueryParametersMap011011Builder](#queryparametersmap011011builder) | pipe(List value) | +| [QueryParametersMap011101Builder](#queryparametersmap011101builder) | refParam(String value) | +| [QueryParametersMap011110Builder](#queryparametersmap011110builder) | url(List value) | + +## QueryParametersMap100000Builder +public class QueryParametersMap100000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap100000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000000Builder](#queryparametersmap000000builder) | context(List value) | + +## QueryParametersMap100001Builder +public class QueryParametersMap100001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap100001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000001Builder](#queryparametersmap000001builder) | context(List value) | +| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | url(List value) | + +## QueryParametersMap100010Builder +public class QueryParametersMap100010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap100010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000010Builder](#queryparametersmap000010builder) | context(List value) | +| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | refParam(String value) | + +## QueryParametersMap100011Builder +public class QueryParametersMap100011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap100011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000011Builder](#queryparametersmap000011builder) | context(List value) | +| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | refParam(String value) | +| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | url(List value) | + +## QueryParametersMap100100Builder +public class QueryParametersMap100100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap100100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000100Builder](#queryparametersmap000100builder) | context(List value) | +| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | pipe(List value) | + +## QueryParametersMap100101Builder +public class QueryParametersMap100101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap100101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000101Builder](#queryparametersmap000101builder) | context(List value) | +| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | pipe(List value) | +| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | url(List value) | + +## QueryParametersMap100110Builder +public class QueryParametersMap100110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap100110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000110Builder](#queryparametersmap000110builder) | context(List value) | +| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | pipe(List value) | +| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | refParam(String value) | + +## QueryParametersMap100111Builder +public class QueryParametersMap100111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap100111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap000111Builder](#queryparametersmap000111builder) | context(List value) | +| [QueryParametersMap100011Builder](#queryparametersmap100011builder) | pipe(List value) | +| [QueryParametersMap100101Builder](#queryparametersmap100101builder) | refParam(String value) | +| [QueryParametersMap100110Builder](#queryparametersmap100110builder) | url(List value) | + +## QueryParametersMap101000Builder +public class QueryParametersMap101000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap101000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001000Builder](#queryparametersmap001000builder) | context(List value) | +| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | ioutil(List value) | + +## QueryParametersMap101001Builder +public class QueryParametersMap101001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap101001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001001Builder](#queryparametersmap001001builder) | context(List value) | +| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | ioutil(List value) | +| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | url(List value) | + +## QueryParametersMap101010Builder +public class QueryParametersMap101010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap101010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001010Builder](#queryparametersmap001010builder) | context(List value) | +| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | ioutil(List value) | +| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | refParam(String value) | + +## QueryParametersMap101011Builder +public class QueryParametersMap101011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap101011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001011Builder](#queryparametersmap001011builder) | context(List value) | +| [QueryParametersMap100011Builder](#queryparametersmap100011builder) | ioutil(List value) | +| [QueryParametersMap101001Builder](#queryparametersmap101001builder) | refParam(String value) | +| [QueryParametersMap101010Builder](#queryparametersmap101010builder) | url(List value) | + +## QueryParametersMap101100Builder +public class QueryParametersMap101100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap101100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001100Builder](#queryparametersmap001100builder) | context(List value) | +| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | ioutil(List value) | +| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | pipe(List value) | + +## QueryParametersMap101101Builder +public class QueryParametersMap101101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap101101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001101Builder](#queryparametersmap001101builder) | context(List value) | +| [QueryParametersMap100101Builder](#queryparametersmap100101builder) | ioutil(List value) | +| [QueryParametersMap101001Builder](#queryparametersmap101001builder) | pipe(List value) | +| [QueryParametersMap101100Builder](#queryparametersmap101100builder) | url(List value) | + +## QueryParametersMap101110Builder +public class QueryParametersMap101110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap101110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001110Builder](#queryparametersmap001110builder) | context(List value) | +| [QueryParametersMap100110Builder](#queryparametersmap100110builder) | ioutil(List value) | +| [QueryParametersMap101010Builder](#queryparametersmap101010builder) | pipe(List value) | +| [QueryParametersMap101100Builder](#queryparametersmap101100builder) | refParam(String value) | + +## QueryParametersMap101111Builder +public class QueryParametersMap101111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap101111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap001111Builder](#queryparametersmap001111builder) | context(List value) | +| [QueryParametersMap100111Builder](#queryparametersmap100111builder) | ioutil(List value) | +| [QueryParametersMap101011Builder](#queryparametersmap101011builder) | pipe(List value) | +| [QueryParametersMap101101Builder](#queryparametersmap101101builder) | refParam(String value) | +| [QueryParametersMap101110Builder](#queryparametersmap101110builder) | url(List value) | + +## QueryParametersMap110000Builder +public class QueryParametersMap110000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap110000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap010000Builder](#queryparametersmap010000builder) | context(List value) | +| [QueryParametersMap100000Builder](#queryparametersmap100000builder) | http(List value) | + +## QueryParametersMap110001Builder +public class QueryParametersMap110001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap110001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap010001Builder](#queryparametersmap010001builder) | context(List value) | +| [QueryParametersMap100001Builder](#queryparametersmap100001builder) | http(List value) | +| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | url(List value) | + +## QueryParametersMap110010Builder +public class QueryParametersMap110010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap110010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap010010Builder](#queryparametersmap010010builder) | context(List value) | +| [QueryParametersMap100010Builder](#queryparametersmap100010builder) | http(List value) | +| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | refParam(String value) | + +## QueryParametersMap110011Builder +public class QueryParametersMap110011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap110011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap010011Builder](#queryparametersmap010011builder) | context(List value) | +| [QueryParametersMap100011Builder](#queryparametersmap100011builder) | http(List value) | +| [QueryParametersMap110001Builder](#queryparametersmap110001builder) | refParam(String value) | +| [QueryParametersMap110010Builder](#queryparametersmap110010builder) | url(List value) | + +## QueryParametersMap110100Builder +public class QueryParametersMap110100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap110100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap010100Builder](#queryparametersmap010100builder) | context(List value) | +| [QueryParametersMap100100Builder](#queryparametersmap100100builder) | http(List value) | +| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | pipe(List value) | + +## QueryParametersMap110101Builder +public class QueryParametersMap110101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap110101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap010101Builder](#queryparametersmap010101builder) | context(List value) | +| [QueryParametersMap100101Builder](#queryparametersmap100101builder) | http(List value) | +| [QueryParametersMap110001Builder](#queryparametersmap110001builder) | pipe(List value) | +| [QueryParametersMap110100Builder](#queryparametersmap110100builder) | url(List value) | + +## QueryParametersMap110110Builder +public class QueryParametersMap110110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap110110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap010110Builder](#queryparametersmap010110builder) | context(List value) | +| [QueryParametersMap100110Builder](#queryparametersmap100110builder) | http(List value) | +| [QueryParametersMap110010Builder](#queryparametersmap110010builder) | pipe(List value) | +| [QueryParametersMap110100Builder](#queryparametersmap110100builder) | refParam(String value) | + +## QueryParametersMap110111Builder +public class QueryParametersMap110111Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap110111Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap010111Builder](#queryparametersmap010111builder) | context(List value) | +| [QueryParametersMap100111Builder](#queryparametersmap100111builder) | http(List value) | +| [QueryParametersMap110011Builder](#queryparametersmap110011builder) | pipe(List value) | +| [QueryParametersMap110101Builder](#queryparametersmap110101builder) | refParam(String value) | +| [QueryParametersMap110110Builder](#queryparametersmap110110builder) | url(List value) | + +## QueryParametersMap111000Builder +public class QueryParametersMap111000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap111000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap011000Builder](#queryparametersmap011000builder) | context(List value) | +| [QueryParametersMap101000Builder](#queryparametersmap101000builder) | http(List value) | +| [QueryParametersMap110000Builder](#queryparametersmap110000builder) | ioutil(List value) | + +## QueryParametersMap111001Builder +public class QueryParametersMap111001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap111001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap011001Builder](#queryparametersmap011001builder) | context(List value) | +| [QueryParametersMap101001Builder](#queryparametersmap101001builder) | http(List value) | +| [QueryParametersMap110001Builder](#queryparametersmap110001builder) | ioutil(List value) | +| [QueryParametersMap111000Builder](#queryparametersmap111000builder) | url(List value) | + +## QueryParametersMap111010Builder +public class QueryParametersMap111010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap111010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap011010Builder](#queryparametersmap011010builder) | context(List value) | +| [QueryParametersMap101010Builder](#queryparametersmap101010builder) | http(List value) | +| [QueryParametersMap110010Builder](#queryparametersmap110010builder) | ioutil(List value) | +| [QueryParametersMap111000Builder](#queryparametersmap111000builder) | refParam(String value) | + +## QueryParametersMap111011Builder +public class QueryParametersMap111011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap111011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap011011Builder](#queryparametersmap011011builder) | context(List value) | +| [QueryParametersMap101011Builder](#queryparametersmap101011builder) | http(List value) | +| [QueryParametersMap110011Builder](#queryparametersmap110011builder) | ioutil(List value) | +| [QueryParametersMap111001Builder](#queryparametersmap111001builder) | refParam(String value) | +| [QueryParametersMap111010Builder](#queryparametersmap111010builder) | url(List value) | + +## QueryParametersMap111100Builder +public class QueryParametersMap111100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap111100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap011100Builder](#queryparametersmap011100builder) | context(List value) | +| [QueryParametersMap101100Builder](#queryparametersmap101100builder) | http(List value) | +| [QueryParametersMap110100Builder](#queryparametersmap110100builder) | ioutil(List value) | +| [QueryParametersMap111000Builder](#queryparametersmap111000builder) | pipe(List value) | + +## QueryParametersMap111101Builder +public class QueryParametersMap111101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap111101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap011101Builder](#queryparametersmap011101builder) | context(List value) | +| [QueryParametersMap101101Builder](#queryparametersmap101101builder) | http(List value) | +| [QueryParametersMap110101Builder](#queryparametersmap110101builder) | ioutil(List value) | +| [QueryParametersMap111001Builder](#queryparametersmap111001builder) | pipe(List value) | +| [QueryParametersMap111100Builder](#queryparametersmap111100builder) | url(List value) | + +## QueryParametersMap111110Builder +public class QueryParametersMap111110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap111110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap011110Builder](#queryparametersmap011110builder) | context(List value) | +| [QueryParametersMap101110Builder](#queryparametersmap101110builder) | http(List value) | +| [QueryParametersMap110110Builder](#queryparametersmap110110builder) | ioutil(List value) | +| [QueryParametersMap111010Builder](#queryparametersmap111010builder) | pipe(List value) | +| [QueryParametersMap111100Builder](#queryparametersmap111100builder) | refParam(String value) | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap011111Builder](#queryparametersmap011111builder) | context(List value) | +| [QueryParametersMap101111Builder](#queryparametersmap101111builder) | http(List value) | +| [QueryParametersMap110111Builder](#queryparametersmap110111builder) | ioutil(List value) | +| [QueryParametersMap111011Builder](#queryparametersmap111011builder) | pipe(List value) | +| [QueryParametersMap111101Builder](#queryparametersmap111101builder) | refParam(String value) | +| [QueryParametersMap111110Builder](#queryparametersmap111110builder) | url(List value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Schema4.SchemaList4](../../../paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md#schemalist4) | context()
| +| [Schema2.SchemaList2](../../../paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md#schemalist2) | http()
| +| [Schema1.SchemaList1](../../../paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md#schemalist1) | ioutil()
| +| [Schema0.SchemaList0](../../../paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md#schemalist0) | pipe()
| +| String | refParam()
| +| [Schema3.SchemaList3](../../../paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md#schemalist3) | url()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md new file mode 100644 index 00000000000..2107a4d5471 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.md @@ -0,0 +1,29 @@ +# FaketestqueryparamtersPutResponses + +public class FaketestqueryparamtersPutResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFaketestqueryparamtersPutCode200Response](#endpointfaketestqueryparamtersputcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFaketestqueryparamtersPutCode200Response](#endpointfaketestqueryparamtersputcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFaketestqueryparamtersPutCode200Response +public record EndpointFaketestqueryparamtersPutCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..a4efd071e64 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md @@ -0,0 +1,156 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | +| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | +| static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | +| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Items0](#items0)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedList](#schema01boxedlist) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedList +public record Schema01BoxedList
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedList([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList0](#schemalist0) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter0.Schema0; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +Schema0.SchemaList0 validatedPayload = + Schema0.Schema01.validate( + new Schema0.SchemaListBuilder0() + .add("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [Items0.class](#items0) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaListBuilder0 +public class SchemaListBuilder0
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder0()
Creates an empty list | +| SchemaListBuilder0(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder0 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## SchemaList0 +public class SchemaList0
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | + +## Items0Boxed +public sealed interface Items0Boxed
+permits
+[Items0BoxedString](#items0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Items0BoxedString +public record Items0BoxedString
+implements [Items0Boxed](#items0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Items0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Items0 +public static class Items0
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md new file mode 100644 index 00000000000..d0d8efab32e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md @@ -0,0 +1,156 @@ +# Schema1 +public class Schema1
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | +| record | [Schema1.Schema11BoxedList](#schema11boxedlist)
boxed class to store validated List payloads | +| static class | [Schema1.Schema11](#schema11)
schema class | +| static class | [Schema1.SchemaListBuilder1](#schemalistbuilder1)
builder for List payloads | +| static class | [Schema1.SchemaList1](#schemalist1)
output class for List payloads | +| sealed interface | [Schema1.Items1Boxed](#items1boxed)
sealed interface for validated payloads | +| record | [Schema1.Items1BoxedString](#items1boxedstring)
boxed class to store validated String payloads | +| static class | [Schema1.Items1](#items1)
schema class | + +## Schema11Boxed +public sealed interface Schema11Boxed
+permits
+[Schema11BoxedList](#schema11boxedlist) + +sealed interface that stores validated payloads using boxed classes + +## Schema11BoxedList +public record Schema11BoxedList
+implements [Schema11Boxed](#schema11boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema11BoxedList([SchemaList1](#schemalist1) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList1](#schemalist1) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema11 +public static class Schema11
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter1.Schema1; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +Schema1.SchemaList1 validatedPayload = + Schema1.Schema11.validate( + new Schema1.SchemaListBuilder1() + .add("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [Items1.class](#items1) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList1](#schemalist1) | validate([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | +| [Schema11BoxedList](#schema11boxedlist) | validateAndBox([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | +| [Schema11Boxed](#schema11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaListBuilder1 +public class SchemaListBuilder1
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder1()
Creates an empty list | +| SchemaListBuilder1(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder1 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## SchemaList1 +public class SchemaList1
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaList1](#schemalist1) | of([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | + +## Items1Boxed +public sealed interface Items1Boxed
+permits
+[Items1BoxedString](#items1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Items1BoxedString +public record Items1BoxedString
+implements [Items1Boxed](#items1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Items1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Items1 +public static class Items1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md new file mode 100644 index 00000000000..3357a64749a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md @@ -0,0 +1,156 @@ +# Schema2 +public class Schema2
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema2.Schema21Boxed](#schema21boxed)
sealed interface for validated payloads | +| record | [Schema2.Schema21BoxedList](#schema21boxedlist)
boxed class to store validated List payloads | +| static class | [Schema2.Schema21](#schema21)
schema class | +| static class | [Schema2.SchemaListBuilder2](#schemalistbuilder2)
builder for List payloads | +| static class | [Schema2.SchemaList2](#schemalist2)
output class for List payloads | +| sealed interface | [Schema2.Items2Boxed](#items2boxed)
sealed interface for validated payloads | +| record | [Schema2.Items2BoxedString](#items2boxedstring)
boxed class to store validated String payloads | +| static class | [Schema2.Items2](#items2)
schema class | + +## Schema21Boxed +public sealed interface Schema21Boxed
+permits
+[Schema21BoxedList](#schema21boxedlist) + +sealed interface that stores validated payloads using boxed classes + +## Schema21BoxedList +public record Schema21BoxedList
+implements [Schema21Boxed](#schema21boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema21BoxedList([SchemaList2](#schemalist2) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList2](#schemalist2) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema21 +public static class Schema21
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter2.Schema2; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +Schema2.SchemaList2 validatedPayload = + Schema2.Schema21.validate( + new Schema2.SchemaListBuilder2() + .add("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [Items2.class](#items2) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList2](#schemalist2) | validate([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | +| [Schema21BoxedList](#schema21boxedlist) | validateAndBox([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | +| [Schema21Boxed](#schema21boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaListBuilder2 +public class SchemaListBuilder2
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder2()
Creates an empty list | +| SchemaListBuilder2(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder2 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## SchemaList2 +public class SchemaList2
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaList2](#schemalist2) | of([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | + +## Items2Boxed +public sealed interface Items2Boxed
+permits
+[Items2BoxedString](#items2boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Items2BoxedString +public record Items2BoxedString
+implements [Items2Boxed](#items2boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Items2BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Items2 +public static class Items2
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md new file mode 100644 index 00000000000..cede783379d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md @@ -0,0 +1,156 @@ +# Schema3 +public class Schema3
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema3.Schema31Boxed](#schema31boxed)
sealed interface for validated payloads | +| record | [Schema3.Schema31BoxedList](#schema31boxedlist)
boxed class to store validated List payloads | +| static class | [Schema3.Schema31](#schema31)
schema class | +| static class | [Schema3.SchemaListBuilder3](#schemalistbuilder3)
builder for List payloads | +| static class | [Schema3.SchemaList3](#schemalist3)
output class for List payloads | +| sealed interface | [Schema3.Items3Boxed](#items3boxed)
sealed interface for validated payloads | +| record | [Schema3.Items3BoxedString](#items3boxedstring)
boxed class to store validated String payloads | +| static class | [Schema3.Items3](#items3)
schema class | + +## Schema31Boxed +public sealed interface Schema31Boxed
+permits
+[Schema31BoxedList](#schema31boxedlist) + +sealed interface that stores validated payloads using boxed classes + +## Schema31BoxedList +public record Schema31BoxedList
+implements [Schema31Boxed](#schema31boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema31BoxedList([SchemaList3](#schemalist3) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList3](#schemalist3) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema31 +public static class Schema31
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter3.Schema3; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +Schema3.SchemaList3 validatedPayload = + Schema3.Schema31.validate( + new Schema3.SchemaListBuilder3() + .add("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [Items3.class](#items3) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList3](#schemalist3) | validate([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | +| [Schema31BoxedList](#schema31boxedlist) | validateAndBox([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | +| [Schema31Boxed](#schema31boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaListBuilder3 +public class SchemaListBuilder3
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder3()
Creates an empty list | +| SchemaListBuilder3(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder3 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## SchemaList3 +public class SchemaList3
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaList3](#schemalist3) | of([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | + +## Items3Boxed +public sealed interface Items3Boxed
+permits
+[Items3BoxedString](#items3boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Items3BoxedString +public record Items3BoxedString
+implements [Items3Boxed](#items3boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Items3BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Items3 +public static class Items3
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md new file mode 100644 index 00000000000..17c3da4dab2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md @@ -0,0 +1,156 @@ +# Schema4 +public class Schema4
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema4.Schema41Boxed](#schema41boxed)
sealed interface for validated payloads | +| record | [Schema4.Schema41BoxedList](#schema41boxedlist)
boxed class to store validated List payloads | +| static class | [Schema4.Schema41](#schema41)
schema class | +| static class | [Schema4.SchemaListBuilder4](#schemalistbuilder4)
builder for List payloads | +| static class | [Schema4.SchemaList4](#schemalist4)
output class for List payloads | +| sealed interface | [Schema4.Items4Boxed](#items4boxed)
sealed interface for validated payloads | +| record | [Schema4.Items4BoxedString](#items4boxedstring)
boxed class to store validated String payloads | +| static class | [Schema4.Items4](#items4)
schema class | + +## Schema41Boxed +public sealed interface Schema41Boxed
+permits
+[Schema41BoxedList](#schema41boxedlist) + +sealed interface that stores validated payloads using boxed classes + +## Schema41BoxedList +public record Schema41BoxedList
+implements [Schema41Boxed](#schema41boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema41BoxedList([SchemaList4](#schemalist4) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList4](#schemalist4) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema41 +public static class Schema41
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter4.Schema4; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +Schema4.SchemaList4 validatedPayload = + Schema4.Schema41.validate( + new Schema4.SchemaListBuilder4() + .add("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [Items4.class](#items4) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList4](#schemalist4) | validate([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | +| [Schema41BoxedList](#schema41boxedlist) | validateAndBox([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | +| [Schema41Boxed](#schema41boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaListBuilder4 +public class SchemaListBuilder4
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder4()
Creates an empty list | +| SchemaListBuilder4(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder4 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## SchemaList4 +public class SchemaList4
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaList4](#schemalist4) | of([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | + +## Items4Boxed +public sealed interface Items4Boxed
+permits
+[Items4BoxedString](#items4boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Items4BoxedString +public record Items4BoxedString
+implements [Items4Boxed](#items4boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Items4BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Items4 +public static class Items4
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md new file mode 100644 index 00000000000..f566af62cf0 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.md @@ -0,0 +1,19 @@ +# Schema5 +public class Schema5
+extends [StringWithValidation1](../../../components/schemas/StringWithValidation.md#stringwithvalidation) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [Schema5.Schema51](#schema51)
schema class | + +## Schema51 +public static class Schema51
+extends [StringWithValidation.StringWithValidation1](../../../components/schemas/StringWithValidation.md#stringwithvalidation1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.md new file mode 100644 index 00000000000..078eb74fdbe --- /dev/null +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.md @@ -0,0 +1,17 @@ +# FaketestqueryparamtersPutCode200Response + +public class FaketestqueryparamtersPutCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FaketestqueryparamtersPutCode200Response.FaketestqueryparamtersPutCode200Response1](#faketestqueryparamtersputcode200response1)
class that deserializes responses | + +## FaketestqueryparamtersPutCode200Response1 +public static class FaketestqueryparamtersPutCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md new file mode 100644 index 00000000000..70ad30f02e8 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.md @@ -0,0 +1,184 @@ +# FakeuploaddownloadfilePost + +public class FakeuploaddownloadfilePost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [UploadDownloadFileOperation](#uploaddownloadfileoperation)
The interface that has a uploadDownloadFile method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream.ApplicationoctetstreamSchema; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.FakeuploaddownloadfilePostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.FakeuploaddownloadfilePost; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeuploaddownloadfilePost.Post apiClient = new FakeuploaddownloadfilePost.Post(apiConfiguration, schemaConfiguration); + + +ApplicationoctetstreamSchema1BoxedString requestBodyPayload = ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.validateAndBox( + "a", + schemaConfiguration +); +FakeuploaddownloadfilePost.SealedRequestBody requestBody = new FakeuploaddownloadfilePost.ApplicationoctetstreamRequestBody(requestBodyPayload); + +var request = new FakeuploaddownloadfilePost.PostRequestBuilder() + .requestBody(requestBody) + .build(); + +FakeuploaddownloadfilePostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeuploaddownloadfilePostResponses.EndpointFakeuploaddownloadfilePostCode200Response castResponse = (FakeuploaddownloadfilePostResponses.EndpointFakeuploaddownloadfilePostCode200Response) response; +FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody deserializedBody = (FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## UploadDownloadFileOperation +public interface UploadDownloadFileOperation
+ +an interface that allows one to call the endpoint using a method named uploadDownloadFile by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeuploaddownloadfilePostResponses.EndpointResponse](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md#endpointresponse) | uploadDownloadFile([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeuploaddownloadfilePostRequestBody.SealedRequestBody](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeuploaddownloadfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([FakeuploaddownloadfilePostRequestBody.SealedRequestBody](../../paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md new file mode 100644 index 00000000000..42fa7a21828 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.md @@ -0,0 +1,90 @@ +# FakeuploaddownloadfilePostRequestBody + +public class FakeuploaddownloadfilePostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeuploaddownloadfilePostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeuploaddownloadfilePostRequestBody.ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeuploaddownloadfilePostRequestBody.FakeuploaddownloadfilePostRequestBody1](#fakeuploaddownloadfilepostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeuploaddownloadfilePostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeuploaddownloadfilePostRequestBody.ApplicationoctetstreamRequestBody](#applicationoctetstreamrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationoctetstreamMediaType](#applicationoctetstreammediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationoctetstreamMediaType +public record ApplicationoctetstreamMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationoctetstreamMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakeuploaddownloadfilePostRequestBody1 +public static class FakeuploaddownloadfilePostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeuploaddownloadfilePostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = true
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/octet-stream", new [ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationoctetstreamRequestBody](#applicationoctetstreamrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationoctetstreamRequestBody +public record ApplicationoctetstreamRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/octet-stream" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationoctetstreamRequestBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/octet-stream" | +| ApplicationoctetstreamSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md new file mode 100644 index 00000000000..f5e6266e68f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.md @@ -0,0 +1,29 @@ +# FakeuploaddownloadfilePostResponses + +public class FakeuploaddownloadfilePostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeuploaddownloadfilePostCode200Response](#endpointfakeuploaddownloadfilepostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeuploaddownloadfilePostCode200Response](#endpointfakeuploaddownloadfilepostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeuploaddownloadfilePostCode200Response +public record EndpointFakeuploaddownloadfilePostCode200Response( + HttpResponse response, + [FakeuploaddownloadfilePostCode200Response.SealedResponseBody](../../../paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md new file mode 100644 index 00000000000..757329e0634 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.md @@ -0,0 +1,28 @@ +# ApplicationoctetstreamSchema +public class ApplicationoctetstreamSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
sealed interface for validated payloads | +| static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | + +## ApplicationoctetstreamSchema1Boxed +public sealed interface ApplicationoctetstreamSchema1Boxed
+permits
+ +sealed interface that stores validated payloads using boxed classes + +## ApplicationoctetstreamSchema1 +public static class ApplicationoctetstreamSchema1
+extends JsonSchema + +A schema class that validates payloads + +## Description +file to upload diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md new file mode 100644 index 00000000000..3a7e22da29c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.md @@ -0,0 +1,87 @@ +# FakeuploaddownloadfilePostCode200Response + +public class FakeuploaddownloadfilePostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeuploaddownloadfilePostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakeuploaddownloadfilePostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakeuploaddownloadfilePostCode200Response.ApplicationoctetstreamResponseBody](#applicationoctetstreamresponsebody)
implements sealed interface to store response body | +| static class | [FakeuploaddownloadfilePostCode200Response.FakeuploaddownloadfilePostCode200Response1](#fakeuploaddownloadfilepostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationoctetstreamMediaType](#applicationoctetstreammediatype) + +sealed interface that stores schema and encoding info + +## ApplicationoctetstreamMediaType +public record ApplicationoctetstreamMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../../paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationoctetstreamMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../../paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationoctetstreamResponseBody](#applicationoctetstreamresponsebody) + +sealed interface that stores response body + +## ApplicationoctetstreamResponseBody +public record ApplicationoctetstreamResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/octet-stream" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationoctetstreamResponseBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationoctetstreamSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakeuploaddownloadfilePostCode200Response1 +public static class FakeuploaddownloadfilePostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeuploaddownloadfilePostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/octet-stream", new [ApplicationoctetstreamMediaType](#applicationoctetstreammediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md new file mode 100644 index 00000000000..c1498d3a5a3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md @@ -0,0 +1,28 @@ +# ApplicationoctetstreamSchema +public class ApplicationoctetstreamSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1Boxed](#applicationoctetstreamschema1boxed)
sealed interface for validated payloads | +| static class | [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](#applicationoctetstreamschema1)
schema class | + +## ApplicationoctetstreamSchema1Boxed +public sealed interface ApplicationoctetstreamSchema1Boxed
+permits
+ +sealed interface that stores validated payloads using boxed classes + +## ApplicationoctetstreamSchema1 +public static class ApplicationoctetstreamSchema1
+extends JsonSchema + +A schema class that validates payloads + +## Description +file to download diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md new file mode 100644 index 00000000000..aeb3fc0520d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/FakeuploadfilePost.md @@ -0,0 +1,148 @@ +# FakeuploadfilePost + +public class FakeuploadfilePost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [UploadFileOperation](#uploadfileoperation)
The interface that has a uploadFile method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.FakeuploadfilePostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeuploadfile.FakeuploadfilePost; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeuploadfilePost.Post apiClient = new FakeuploadfilePost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakeuploadfilePost.PostRequestBuilder().build(); + +FakeuploadfilePostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeuploadfilePostResponses.EndpointFakeuploadfilePostCode200Response castResponse = (FakeuploadfilePostResponses.EndpointFakeuploadfilePostCode200Response) response; +FakeuploadfilePostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeuploadfilePostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## UploadFileOperation +public interface UploadFileOperation
+ +an interface that allows one to call the endpoint using a method named uploadFile by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeuploadfilePostResponses.EndpointResponse](../../paths/fakeuploadfile/post/FakeuploadfilePostResponses.md#endpointresponse) | uploadFile([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeuploadfilePostRequestBody.@Nullable SealedRequestBody](../../paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeuploadfilePostRequestBody.SealedRequestBody](../../paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md new file mode 100644 index 00000000000..eab07bac01a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.md @@ -0,0 +1,90 @@ +# FakeuploadfilePostRequestBody + +public class FakeuploadfilePostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeuploadfilePostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeuploadfilePostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeuploadfilePostRequestBody.FakeuploadfilePostRequestBody1](#fakeuploadfilepostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeuploadfilePostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeuploadfilePostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[MultipartformdataMediaType](#multipartformdatamediatype) + +sealed interface that stores schema and encoding info + + +## MultipartformdataMediaType +public record MultipartformdataMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakeuploadfilePostRequestBody1 +public static class FakeuploadfilePostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeuploadfilePostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[MultipartformdataRequestBody](#multipartformdatarequestbody) + +sealed interface that stores request contentType + validated schema data + +## MultipartformdataRequestBody +public record MultipartformdataRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="multipart/form-data" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "multipart/form-data" | +| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md new file mode 100644 index 00000000000..19391fd23db --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/FakeuploadfilePostResponses.md @@ -0,0 +1,29 @@ +# FakeuploadfilePostResponses + +public class FakeuploadfilePostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeuploadfilePostCode200Response](#endpointfakeuploadfilepostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeuploadfilePostCode200Response](#endpointfakeuploadfilepostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeuploadfilePostCode200Response +public record EndpointFakeuploadfilePostCode200Response( + HttpResponse response, + [FakeuploadfilePostCode200Response.SealedResponseBody](../../../paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md new file mode 100644 index 00000000000..21d6b7a79c7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -0,0 +1,206 @@ +# MultipartformdataSchema +public class MultipartformdataSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
sealed interface for validated payloads | +| static class | [MultipartformdataSchema.MultipartformdataFile](#multipartformdatafile)
schema class | +| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | +| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | + +## MultipartformdataSchema1Boxed +public sealed interface MultipartformdataSchema1Boxed
+permits
+[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSchema1BoxedMap +public record MultipartformdataSchema1BoxedMap
+implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSchema1 +public static class MultipartformdataSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = + MultipartformdataSchema.MultipartformdataSchema1.validate( + new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() + .file("a") + + .additionalMetadata("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("additionalMetadata", [MultipartformdataAdditionalMetadata.class](#multipartformdataadditionalmetadata))),
    new PropertyEntry("file", [MultipartformdataFile.class](#multipartformdatafile)))
)
| +| Set | required = Set.of(
    "file"
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## MultipartformdataSchemaMap0Builder +public class MultipartformdataSchemaMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalMetadata(String value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, Void value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, boolean value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, String value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, int value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, float value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, long value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, double value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, List value) | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | additionalProperty(String key, Map value) | + +## MultipartformdataSchemaMapBuilder +public class MultipartformdataSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap0Builder](#multipartformdataschemamap0builder) | file(String value) | + +## MultipartformdataSchemaMap +public static class MultipartformdataSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| String | file()
| +| String | additionalMetadata()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## MultipartformdataFileBoxed +public sealed interface MultipartformdataFileBoxed
+permits
+ +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataFile +public static class MultipartformdataFile
+extends JsonSchema + +A schema class that validates payloads + +## Description +file to upload + +## MultipartformdataAdditionalMetadataBoxed +public sealed interface MultipartformdataAdditionalMetadataBoxed
+permits
+[MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataAdditionalMetadataBoxedString +public record MultipartformdataAdditionalMetadataBoxedString
+implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataAdditionalMetadataBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataAdditionalMetadata +public static class MultipartformdataAdditionalMetadata
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +## Description +Additional data to pass to server + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md new file mode 100644 index 00000000000..9d6a4abeeb9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.md @@ -0,0 +1,87 @@ +# FakeuploadfilePostCode200Response + +public class FakeuploadfilePostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeuploadfilePostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeuploadfilePostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakeuploadfilePostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakeuploadfilePostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakeuploadfilePostCode200Response.FakeuploadfilePostCode200Response1](#fakeuploadfilepostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | + +## FakeuploadfilePostCode200Response1 +public static class FakeuploadfilePostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeuploadfilePostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..bb60c5776fb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md new file mode 100644 index 00000000000..5f1bd2c0a8d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/FakeuploadfilesPost.md @@ -0,0 +1,148 @@ +# FakeuploadfilesPost + +public class FakeuploadfilesPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [UploadFilesOperation](#uploadfilesoperation)
The interface that has a uploadFiles method to call the endpoint | +| static class | [PostRequest](#postrequest)
The request inputs class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.FakeuploadfilesPostCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeuploadfiles.FakeuploadfilesPost; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakeuploadfilesPost.Post apiClient = new FakeuploadfilesPost.Post(apiConfiguration, schemaConfiguration); + + +var request = new FakeuploadfilesPost.PostRequestBuilder().build(); + +FakeuploadfilesPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FakeuploadfilesPostResponses.EndpointFakeuploadfilesPostCode200Response castResponse = (FakeuploadfilesPostResponses.EndpointFakeuploadfilesPostCode200Response) response; +FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody deserializedBody = (FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## UploadFilesOperation +public interface UploadFilesOperation
+ +an interface that allows one to call the endpoint using a method named uploadFiles by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakeuploadfilesPostResponses.EndpointResponse](../../paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md#endpointresponse) | uploadFiles([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FakeuploadfilesPostRequestBody.@Nullable SealedRequestBody](../../paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [PostRequestBuilder](#postrequestbuilder) | requestBody([FakeuploadfilesPostRequestBody.SealedRequestBody](../../paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [PostRequestBuilder](#postrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [PostRequestBuilder](#postrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md new file mode 100644 index 00000000000..9a0de54b7ef --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.md @@ -0,0 +1,90 @@ +# FakeuploadfilesPostRequestBody + +public class FakeuploadfilesPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeuploadfilesPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeuploadfilesPostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [FakeuploadfilesPostRequestBody.FakeuploadfilesPostRequestBody1](#fakeuploadfilespostrequestbody1)
class that serializes request bodies | +| sealed interface | [FakeuploadfilesPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [FakeuploadfilesPostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[MultipartformdataMediaType](#multipartformdatamediatype) + +sealed interface that stores schema and encoding info + + +## MultipartformdataMediaType +public record MultipartformdataMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## FakeuploadfilesPostRequestBody1 +public static class FakeuploadfilesPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeuploadfilesPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[MultipartformdataRequestBody](#multipartformdatarequestbody) + +sealed interface that stores request contentType + validated schema data + +## MultipartformdataRequestBody +public record MultipartformdataRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="multipart/form-data" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "multipart/form-data" | +| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md new file mode 100644 index 00000000000..711c48ffd60 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.md @@ -0,0 +1,29 @@ +# FakeuploadfilesPostResponses + +public class FakeuploadfilesPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakeuploadfilesPostCode200Response](#endpointfakeuploadfilespostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakeuploadfilesPostCode200Response](#endpointfakeuploadfilespostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointFakeuploadfilesPostCode200Response +public record EndpointFakeuploadfilesPostCode200Response( + HttpResponse response, + [FakeuploadfilesPostCode200Response.SealedResponseBody](../../../paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md new file mode 100644 index 00000000000..64907a9f9cf --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -0,0 +1,252 @@ +# MultipartformdataSchema +public class MultipartformdataSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataFilesBoxed](#multipartformdatafilesboxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist)
boxed class to store validated List payloads | +| static class | [MultipartformdataSchema.MultipartformdataFiles](#multipartformdatafiles)
schema class | +| static class | [MultipartformdataSchema.MultipartformdataFilesListBuilder](#multipartformdatafileslistbuilder)
builder for List payloads | +| static class | [MultipartformdataSchema.MultipartformdataFilesList](#multipartformdatafileslist)
output class for List payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataItemsBoxed](#multipartformdataitemsboxed)
sealed interface for validated payloads | +| static class | [MultipartformdataSchema.MultipartformdataItems](#multipartformdataitems)
schema class | + +## MultipartformdataSchema1Boxed +public sealed interface MultipartformdataSchema1Boxed
+permits
+[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSchema1BoxedMap +public record MultipartformdataSchema1BoxedMap
+implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSchema1 +public static class MultipartformdataSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = + MultipartformdataSchema.MultipartformdataSchema1.validate( + new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() + .files( + Arrays.asList( + "a" + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("files", [MultipartformdataFiles.class](#multipartformdatafiles)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## MultipartformdataSchemaMapBuilder +public class MultipartformdataSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | files(List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | + +## MultipartformdataSchemaMap +public static class MultipartformdataSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataFilesList](#multipartformdatafileslist) | files()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## MultipartformdataFilesBoxed +public sealed interface MultipartformdataFilesBoxed
+permits
+[MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataFilesBoxedList +public record MultipartformdataFilesBoxedList
+implements [MultipartformdataFilesBoxed](#multipartformdatafilesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataFilesBoxedList([MultipartformdataFilesList](#multipartformdatafileslist) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataFilesList](#multipartformdatafileslist) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataFiles +public static class MultipartformdataFiles
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +MultipartformdataSchema.MultipartformdataFilesList validatedPayload = + MultipartformdataSchema.MultipartformdataFiles.validate( + new MultipartformdataSchema.MultipartformdataFilesListBuilder() + .add("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [MultipartformdataItems.class](#multipartformdataitems) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataFilesList](#multipartformdatafileslist) | validate([List](#multipartformdatafileslistbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataFilesBoxedList](#multipartformdatafilesboxedlist) | validateAndBox([List](#multipartformdatafileslistbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataFilesBoxed](#multipartformdatafilesboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## MultipartformdataFilesListBuilder +public class MultipartformdataFilesListBuilder
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataFilesListBuilder()
Creates an empty list | +| MultipartformdataFilesListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| MultipartformdataFilesListBuilder | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## MultipartformdataFilesList +public class MultipartformdataFilesList
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [MultipartformdataFilesList](#multipartformdatafileslist) | of([List](#multipartformdatafileslistbuilder) arg, SchemaConfiguration configuration) | + +## MultipartformdataItemsBoxed +public sealed interface MultipartformdataItemsBoxed
+permits
+ +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataItems +public static class MultipartformdataItems
+extends JsonSchema + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md new file mode 100644 index 00000000000..995bbba0333 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.md @@ -0,0 +1,87 @@ +# FakeuploadfilesPostCode200Response + +public class FakeuploadfilesPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakeuploadfilesPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakeuploadfilesPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakeuploadfilesPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakeuploadfilesPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakeuploadfilesPostCode200Response.FakeuploadfilesPostCode200Response1](#fakeuploadfilespostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | + +## FakeuploadfilesPostCode200Response1 +public static class FakeuploadfilesPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakeuploadfilesPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..bb60c5776fb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md new file mode 100644 index 00000000000..63c02dda3dd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/FakewildcardresponsesGet.md @@ -0,0 +1,163 @@ +# FakewildcardresponsesGet + +public class FakewildcardresponsesGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [WildCardResponsesOperation](#wildcardresponsesoperation)
The interface that has a wildCardResponses method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode1XXResponse; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode200Response; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode2XXResponse; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode3XXResponse; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode4XXResponse; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode5XXResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.fakewildcardresponses.FakewildcardresponsesGet; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FakewildcardresponsesGet.Get apiClient = new FakewildcardresponsesGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FakewildcardresponsesGet.GetRequestBuilder().build(); + +FakewildcardresponsesGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (FakewildcardresponsesGetCode4XXResponse.ResponseApiException | FakewildcardresponsesGetCode5XXResponse.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +if (response instanceof FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode1XXResponse castResponse) { +FakewildcardresponsesGetCode1XXResponse.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode1XXResponse.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +} else if (response instanceof FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode2XXResponse castResponse) { +FakewildcardresponsesGetCode2XXResponse.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode2XXResponse.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +} else if (response instanceof FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode200Response castResponse) { +FakewildcardresponsesGetCode200Response.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode200Response.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +} else { + FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode3XXResponse castResponse = (FakewildcardresponsesGetResponses.EndpointFakewildcardresponsesGetCode3XXResponse) response; +FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody deserializedBody = (FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## WildCardResponsesOperation +public interface WildCardResponsesOperation
+ +an interface that allows one to call the endpoint using a method named wildCardResponses by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FakewildcardresponsesGetResponses.EndpointResponse](../../paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md#endpointresponse) | wildCardResponses([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md new file mode 100644 index 00000000000..9a356985f83 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.md @@ -0,0 +1,62 @@ +# FakewildcardresponsesGetResponses + +public class FakewildcardresponsesGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFakewildcardresponsesGetCode1XXResponse](#endpointfakewildcardresponsesgetcode1xxresponse)
the response for 1XX | +| record | [EndpointFakewildcardresponsesGetCode2XXResponse](#endpointfakewildcardresponsesgetcode2xxresponse)
the response for 2XX | +| record | [EndpointFakewildcardresponsesGetCode200Response](#endpointfakewildcardresponsesgetcode200response)
the response for 200 | +| record | [EndpointFakewildcardresponsesGetCode3XXResponse](#endpointfakewildcardresponsesgetcode3xxresponse)
the response for 3XX | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFakewildcardresponsesGetCode1XXResponse](#endpointfakewildcardresponsesgetcode1xxresponse), +[EndpointFakewildcardresponsesGetCode2XXResponse](#endpointfakewildcardresponsesgetcode2xxresponse), +[EndpointFakewildcardresponsesGetCode200Response](#endpointfakewildcardresponsesgetcode200response), +[EndpointFakewildcardresponsesGetCode3XXResponse](#endpointfakewildcardresponsesgetcode3xxresponse) + +a sealed interface that stores endpoint responses + +## EndpointFakewildcardresponsesGetCode1XXResponse +public record EndpointFakewildcardresponsesGetCode1XXResponse( + HttpResponse response, + [FakewildcardresponsesGetCode1XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + +## EndpointFakewildcardresponsesGetCode2XXResponse +public record EndpointFakewildcardresponsesGetCode2XXResponse( + HttpResponse response, + [FakewildcardresponsesGetCode2XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + +## EndpointFakewildcardresponsesGetCode200Response +public record EndpointFakewildcardresponsesGetCode200Response( + HttpResponse response, + [FakewildcardresponsesGetCode200Response.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + +## EndpointFakewildcardresponsesGetCode3XXResponse +public record EndpointFakewildcardresponsesGetCode3XXResponse( + HttpResponse response, + [FakewildcardresponsesGetCode3XXResponse.SealedResponseBody](../../../paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md new file mode 100644 index 00000000000..23636633dee --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.md @@ -0,0 +1,87 @@ +# FakewildcardresponsesGetCode1XXResponse + +public class FakewildcardresponsesGetCode1XXResponse + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakewildcardresponsesGetCode1XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakewildcardresponsesGetCode1XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakewildcardresponsesGetCode1XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakewildcardresponsesGetCode1XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakewildcardresponsesGetCode1XXResponse.FakewildcardresponsesGetCode1XXResponse1](#fakewildcardresponsesgetcode1xxresponse1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakewildcardresponsesGetCode1XXResponse1 +public static class FakewildcardresponsesGetCode1XXResponse1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakewildcardresponsesGetCode1XXResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md new file mode 100644 index 00000000000..fa140c39b02 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.md @@ -0,0 +1,87 @@ +# FakewildcardresponsesGetCode200Response + +public class FakewildcardresponsesGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakewildcardresponsesGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakewildcardresponsesGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakewildcardresponsesGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakewildcardresponsesGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakewildcardresponsesGetCode200Response.FakewildcardresponsesGetCode200Response1](#fakewildcardresponsesgetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakewildcardresponsesGetCode200Response1 +public static class FakewildcardresponsesGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakewildcardresponsesGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md new file mode 100644 index 00000000000..dc0e68874f8 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.md @@ -0,0 +1,87 @@ +# FakewildcardresponsesGetCode2XXResponse + +public class FakewildcardresponsesGetCode2XXResponse + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakewildcardresponsesGetCode2XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakewildcardresponsesGetCode2XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakewildcardresponsesGetCode2XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakewildcardresponsesGetCode2XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakewildcardresponsesGetCode2XXResponse.FakewildcardresponsesGetCode2XXResponse1](#fakewildcardresponsesgetcode2xxresponse1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakewildcardresponsesGetCode2XXResponse1 +public static class FakewildcardresponsesGetCode2XXResponse1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakewildcardresponsesGetCode2XXResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md new file mode 100644 index 00000000000..bb7f367daab --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.md @@ -0,0 +1,87 @@ +# FakewildcardresponsesGetCode3XXResponse + +public class FakewildcardresponsesGetCode3XXResponse + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakewildcardresponsesGetCode3XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakewildcardresponsesGetCode3XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakewildcardresponsesGetCode3XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakewildcardresponsesGetCode3XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakewildcardresponsesGetCode3XXResponse.FakewildcardresponsesGetCode3XXResponse1](#fakewildcardresponsesgetcode3xxresponse1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakewildcardresponsesGetCode3XXResponse1 +public static class FakewildcardresponsesGetCode3XXResponse1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakewildcardresponsesGetCode3XXResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md new file mode 100644 index 00000000000..a8fab3d2cf1 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.md @@ -0,0 +1,87 @@ +# FakewildcardresponsesGetCode4XXResponse + +public class FakewildcardresponsesGetCode4XXResponse + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakewildcardresponsesGetCode4XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakewildcardresponsesGetCode4XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakewildcardresponsesGetCode4XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakewildcardresponsesGetCode4XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakewildcardresponsesGetCode4XXResponse.FakewildcardresponsesGetCode4XXResponse1](#fakewildcardresponsesgetcode4xxresponse1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakewildcardresponsesGetCode4XXResponse1 +public static class FakewildcardresponsesGetCode4XXResponse1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakewildcardresponsesGetCode4XXResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md new file mode 100644 index 00000000000..4b06440cd06 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.md @@ -0,0 +1,87 @@ +# FakewildcardresponsesGetCode5XXResponse + +public class FakewildcardresponsesGetCode5XXResponse + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FakewildcardresponsesGetCode5XXResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FakewildcardresponsesGetCode5XXResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FakewildcardresponsesGetCode5XXResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FakewildcardresponsesGetCode5XXResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FakewildcardresponsesGetCode5XXResponse.FakewildcardresponsesGetCode5XXResponse1](#fakewildcardresponsesgetcode5xxresponse1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.AnyTypeJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## FakewildcardresponsesGetCode5XXResponse1 +public static class FakewildcardresponsesGetCode5XXResponse1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FakewildcardresponsesGetCode5XXResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..98eb062fdd7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,144 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid)
boxed class to store validated null payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean)
boxed class to store validated boolean payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber)
boxed class to store validated Number payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist)
boxed class to store validated List payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedVoid](#applicationjsonschema1boxedvoid), +[ApplicationjsonSchema1BoxedBoolean](#applicationjsonschema1boxedboolean), +[ApplicationjsonSchema1BoxedNumber](#applicationjsonschema1boxednumber), +[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring), +[ApplicationjsonSchema1BoxedList](#applicationjsonschema1boxedlist), +[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedVoid +public record ApplicationjsonSchema1BoxedVoid
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedBoolean +public record ApplicationjsonSchema1BoxedBoolean
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedNumber +public record ApplicationjsonSchema1BoxedNumber
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedList +public record ApplicationjsonSchema1BoxedList
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends AnyTypeJsonSchema.AnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema.AnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/foo/FooGet.md b/samples/client/petstore/java/docs/paths/foo/FooGet.md new file mode 100644 index 00000000000..da4a2fc69ce --- /dev/null +++ b/samples/client/petstore/java/docs/paths/foo/FooGet.md @@ -0,0 +1,143 @@ +# FooGet + +public class FooGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [FooGetOperation](#foogetoperation)
The interface that has a fooGet method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; +import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer0; +import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer1; +import org.openapijsonschematools.client.paths.foo.get.responses.FooGetCodedefaultResponse; +import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; +import org.openapijsonschematools.client.paths.foo.FooGet; +import org.openapijsonschematools.client.paths.foo.get.FooGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .fooGetServerInfo( + new FooGetServerInfo.FooGetServerInfoBuilder() + .fooGetServer0(new FooGetServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +FooGet.Get apiClient = new FooGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new FooGet.GetRequestBuilder().build(); + +FooGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +FooGetResponses.EndpointFooGetCodedefaultResponse castResponse = (FooGetResponses.EndpointFooGetCodedefaultResponse) response; +FooGetCodedefaultResponse.ApplicationjsonResponseBody deserializedBody = (FooGetCodedefaultResponse.ApplicationjsonResponseBody) castResponse.body; +// handle deserialized body here +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## FooGetOperation +public interface FooGetOperation
+ +an interface that allows one to call the endpoint using a method named fooGet by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FooGetResponses.EndpointResponse](../../paths/foo/get/FooGetResponses.md#endpointresponse) | fooGet([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FooGetServerInfo.@Nullable ServerIndex](../../paths/foo/get/FooGetServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([FooGetServerInfo.ServerIndex](../../paths/foo/get/FooGetServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md b/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md new file mode 100644 index 00000000000..5bf9bb7e45b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/foo/get/FooGetResponses.md @@ -0,0 +1,29 @@ +# FooGetResponses + +public class FooGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointFooGetCodedefaultResponse](#endpointfoogetcodedefaultresponse)
the response for default | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointFooGetCodedefaultResponse](#endpointfoogetcodedefaultresponse) + +a sealed interface that stores endpoint responses + +## EndpointFooGetCodedefaultResponse +public record EndpointFooGetCodedefaultResponse( + HttpResponse response, + [FooGetCodedefaultResponse.SealedResponseBody](../../../paths/foo/get/responses/FooGetCodedefaultResponse.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md b/samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md new file mode 100644 index 00000000000..67aede6fd0e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md @@ -0,0 +1,62 @@ +# FooGetServerInfo +FooGetServerInfo.java + +public class FooGetServerInfo + +A class that provides a server, and any needed server info classes +- a class that is a ServerProvider +- a builder for the ServerProvider +- an enum class that stores server index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [FooGetServerInfo.FooGetServerInfo1](#foogetserverinfo1)
class that stores a server index | +| static class | [FooGetServerInfo.FooGetServerInfoBuilder](#foogetserverinfobuilder)
class that stores a server index | +| enum | [FooGetServerInfo.ServerIndex](#serverindex)
class that stores a server index | + +## FooGetServerInfo1 +implements ServerProvider<[ServerIndex](#serverindex)>
+ +A class that stores servers and allows one to be returned with a ServerIndex instance + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FooGetServerInfo1(@Nullable [FooGetServer0](../../../paths/foo/get/servers/FooGetServer0.md) server0,@Nullable [FooGetServer1](../../../paths/foo/get/servers/FooGetServer1.md) server1)
Creates an instance using passed in servers | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [FooGetServer0](../../../paths/foo/get/servers/FooGetServer0.md) | server0 | +| [FooGetServer1](../../../paths/foo/get/servers/FooGetServer1.md) | server1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Server | getServer([ServerIndex](#serverindex) serverIndex) | + +## FooGetServerInfoBuilder + +a builder for [FooGetServerInfo1](#foogetserverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FooGetServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FooGetServerInfoBuilder](#foogetserverinfobuilder) | fooGetServer0([FooGetServer0](../../../paths/foo/get/servers/FooGetServer0.md) server0)
sets the server | +| [FooGetServerInfoBuilder](#foogetserverinfobuilder) | fooGetServer1([FooGetServer1](../../../paths/foo/get/servers/FooGetServer1.md) server1)
sets the server | +| [FooGetServerInfo1](#foogetserverinfo1) | build() | + +## ServerIndex +enum ServerIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SERVER_0
server 0 | +| SERVER_1
server 1 | diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md new file mode 100644 index 00000000000..5a45e3ba6d9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/FooGetCodedefaultResponse.md @@ -0,0 +1,87 @@ +# FooGetCodedefaultResponse + +public class FooGetCodedefaultResponse + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [FooGetCodedefaultResponse.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [FooGetCodedefaultResponse.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [FooGetCodedefaultResponse.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [FooGetCodedefaultResponse.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [FooGetCodedefaultResponse.FooGetCodedefaultResponse1](#foogetcodedefaultresponse1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | + +## FooGetCodedefaultResponse1 +public static class FooGetCodedefaultResponse1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FooGetCodedefaultResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..e7695fd64d2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,134 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | +| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder)
builder for Map payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchemaMap](#applicationjsonschemamap)
output class for Map payloads | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedMap +public record ApplicationjsonSchema1BoxedMap
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedMap([ApplicationjsonSchemaMap](#applicationjsonschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.foo.get.responses.codedefaultresponse.content.applicationjson.ApplicationjsonSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = + ApplicationjsonSchema.ApplicationjsonSchema1.validate( + new ApplicationjsonSchema.ApplicationjsonSchemaMapBuilder() + .setString( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "bar", + "a" + ) + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("string", [Foo.Foo1.class](../../../../../../../components/schemas/Foo.md#foo1))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchemaMap](#applicationjsonschemamap) | validate([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1BoxedMap](#applicationjsonschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationjsonSchemaMapBuilder +public class ApplicationjsonSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | setString(Map value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Void value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, boolean value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, String value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, int value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, float value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, long value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, double value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, List value) | +| [ApplicationjsonSchemaMapBuilder](#applicationjsonschemamapbuilder) | additionalProperty(String key, Map value) | + +## ApplicationjsonSchemaMap +public static class ApplicationjsonSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [ApplicationjsonSchemaMap](#applicationjsonschemamap) | of([Map](#applicationjsonschemamapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["string"], | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer0.md b/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer0.md new file mode 100644 index 00000000000..31c72b6c42f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer0.md @@ -0,0 +1,14 @@ +# Server FooGetServer0 +public class FooGetServer0 + +A class that stores a server url + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FooGetServer0()
Creates a server | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "https://path-server-test.petstore.local/v2" | diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md b/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md new file mode 100644 index 00000000000..a993b2627e9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/foo/get/servers/FooGetServer1.md @@ -0,0 +1,16 @@ +# Server FooGetServer1 +public class FooGetServer1 + +A class that stores a server url + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FooGetServer1()
Creates a server using default values for variables | +| FooGetServer1([FooGetServer1Variables.VariablesMap](../../../../paths/foo/get/servers/server1/FooGetServer1Variables.md#variablesmap) variables)
Creates a server using input values for variables | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "https://petstore.swagger.io/{version}" | +| [FooGetServer1Variables.VariablesMap](../../../../paths/foo/get/servers/server1/FooGetServer1Variables.md#variablesmap) | variables | diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/server1/FooGetServer1Variables.md b/samples/client/petstore/java/docs/paths/foo/get/servers/server1/FooGetServer1Variables.md new file mode 100644 index 00000000000..4ce7ff26e50 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/foo/get/servers/server1/FooGetServer1Variables.md @@ -0,0 +1,355 @@ +# FooGetServer1Variables +public class FooGetServer1Variables
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [FooGetServer1Variables.FooGetServer1Variables1Boxed](#foogetserver1variables1boxed)
sealed interface for validated payloads | +| record | [FooGetServer1Variables.FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap)
boxed class to store validated Map payloads | +| static class | [FooGetServer1Variables.FooGetServer1Variables1](#foogetserver1variables1)
schema class | +| static class | [FooGetServer1Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | +| static class | [FooGetServer1Variables.VariablesMap](#variablesmap)
output class for Map payloads | +| sealed interface | [FooGetServer1Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | +| record | [FooGetServer1Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | +| static class | [FooGetServer1Variables.Version](#version)
schema class | +| enum | [FooGetServer1Variables.StringVersionEnums](#stringversionenums)
String enum | +| sealed interface | [FooGetServer1Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [FooGetServer1Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [FooGetServer1Variables.AdditionalProperties](#additionalproperties)
schema class | + +## FooGetServer1Variables1Boxed +public sealed interface FooGetServer1Variables1Boxed
+permits
+[FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## FooGetServer1Variables1BoxedMap +public record FooGetServer1Variables1BoxedMap
+implements [FooGetServer1Variables1Boxed](#foogetserver1variables1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FooGetServer1Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap](#variablesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## FooGetServer1Variables1 +public static class FooGetServer1Variables1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.foo.get.servers.server1.FooGetServer1Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +FooGetServer1Variables.VariablesMap validatedPayload = + FooGetServer1Variables.FooGetServer1Variables1.validate( + new FooGetServer1Variables.VariablesMapBuilder() + .version("v1") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| +| Set | required = Set.of(
    "version"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [FooGetServer1Variables1BoxedMap](#foogetserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [FooGetServer1Variables1Boxed](#foogetserver1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## VariablesMap0Builder +public class VariablesMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## VariablesMapBuilder +public class VariablesMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | +| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | + +## VariablesMap +public static class VariablesMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v1 | + +## VersionBoxed +public sealed interface VersionBoxed
+permits
+[VersionBoxedString](#versionboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## VersionBoxedString +public record VersionBoxedString
+implements [VersionBoxed](#versionboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VersionBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Version +public static class Version
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.foo.get.servers.server1.FooGetServer1Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = FooGetServer1Variables.Version.validate( + "v1", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "v1",
    "v2"
)
| +| @Nullable Object | defaultValue = "v1" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | +| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringVersionEnums +public enum StringVersionEnums
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| V1 | value = "v1" | +| V2 | value = "v2" | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/pet/PetPost.md b/samples/client/petstore/java/docs/paths/pet/PetPost.md new file mode 100644 index 00000000000..25e3707601c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/PetPost.md @@ -0,0 +1,238 @@ +# PetPost + +public class PetPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [AddPetOperation](#addpetoperation)
The interface that has a addPet method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; +import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; +import org.openapijsonschematools.client.components.schemas.Pet; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; +import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; +import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode200Response; +import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode405Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.pet.PetPost; +import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +securitySchemes.add( + new ApiKey("someApiKey"); +); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petPostSecurityRequirementObject0SecurityIndex(PetPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetPost.Post apiClient = new PetPost.Post(apiConfiguration, schemaConfiguration); + + +Pet1BoxedMap requestBodyPayload = + Pet.Pet1.validateAndBox( + new Pet.PetMapBuilder() + .name("a") + + .photoUrls( + Arrays.asList( + "a" + ) + ) + .id(1L) + + .category( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "name", + "a" + ), + new AbstractMap.SimpleEntry( + "id", + 1L + ) + ) + ) + .tags( + Arrays.asList( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "name", + "a" + ) + ) + ) + ) + .status("available") + + .build(), + schemaConfiguration +); +PetPostRequestBody.SealedRequestBody requestBody = new PetPostRequestBody.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new PetPost.PostRequestBuilder() + .requestBody(requestBody) + .build(); + +PetPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (PetPostCode405Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +PetPostResponses.EndpointPetPostCode200Response castResponse = (PetPostResponses.EndpointPetPostCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## AddPetOperation +public interface AddPetOperation
+ +an interface that allows one to call the endpoint using a method named addPet by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetPostResponses.EndpointResponse](../../paths/pet/post/PetPostResponses.md#endpointresponse) | addPet([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetPostRequestBody.SealedRequestBody](../../paths/pet/post/PetPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [PetPostSecurityInfo.@Nullable SecurityIndex](../../paths/pet/post/PetPostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetPostRequestBody.@Nullable SealedRequestBody](../../paths/pet/post/PetPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [PetPostSecurityInfo.@Nullable SecurityIndex](../../paths/pet/post/PetPostSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | securityIndex([PetPostSecurityInfo.SecurityIndex](../../paths/pet/post/PetPostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([PetPostRequestBody.SealedRequestBody](../../paths/pet/post/PetPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/pet/PetPut.md b/samples/client/petstore/java/docs/paths/pet/PetPut.md new file mode 100644 index 00000000000..d6acf172b27 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/PetPut.md @@ -0,0 +1,234 @@ +# PetPut + +public class PetPut + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Put](#put)
The class that has a put method to call the endpoint | +| interface | [UpdatePetOperation](#updatepetoperation)
The interface that has a updatePet method to call the endpoint | +| static class | [PutRequest](#putrequest)
The final request inputs class | +| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | +| static class | [Put0RequestBuilder](#put0requestbuilder)
A builder for the request input class | +| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | + +## Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
+ +a class that allows one to call the endpoint using a method named put + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; +import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; +import org.openapijsonschematools.client.components.schemas.Pet; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; +import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode400Response; +import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode404Response; +import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode405Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.pet.PetPut; +import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petPutSecurityRequirementObject0SecurityIndex(PetPutSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetPut.Put apiClient = new PetPut.Put(apiConfiguration, schemaConfiguration); + + +Pet1BoxedMap requestBodyPayload = + Pet.Pet1.validateAndBox( + new Pet.PetMapBuilder() + .name("a") + + .photoUrls( + Arrays.asList( + "a" + ) + ) + .id(1L) + + .category( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "name", + "a" + ), + new AbstractMap.SimpleEntry( + "id", + 1L + ) + ) + ) + .tags( + Arrays.asList( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "name", + "a" + ) + ) + ) + ) + .status("available") + + .build(), + schemaConfiguration +); +PetPutRequestBody.SealedRequestBody requestBody = new PetPutRequestBody.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new PetPut.PutRequestBuilder() + .requestBody(requestBody) + .build(); + +Void response; +try { + response = apiClient.put(request); +} catch (PetPutCode400Response.ResponseApiException | PetPutCode404Response.ResponseApiException | PetPutCode405Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | put([PutRequest](#putrequest) request) | + +## UpdatePetOperation +public interface UpdatePetOperation
+ +an interface that allows one to call the endpoint using a method named updatePet by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | updatePet([PutRequest](#putrequest) request) | + +## PutRequest +public static class PutRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetPutRequestBody.SealedRequestBody](../../paths/pet/put/PetPutRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [PetPutSecurityInfo.@Nullable SecurityIndex](../../paths/pet/put/PetPutSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PutNullableRequest +public static class PutNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetPutRequestBody.@Nullable SealedRequestBody](../../paths/pet/put/PetPutRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [PetPutSecurityInfo.@Nullable SecurityIndex](../../paths/pet/put/PetPutSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Put0RequestBuilder +public static class Put0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put0RequestBuilder(Put0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [Put0RequestBuilder](#put0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put0RequestBuilder](#put0requestbuilder) | securityIndex([PetPutSecurityInfo.SecurityIndex](../../paths/pet/put/PetPutSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put0RequestBuilder](#put0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PutRequestBuilder +public static class PutRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PutRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Put0RequestBuilder](#put0requestbuilder) | requestBody([PetPutRequestBody.SealedRequestBody](../../paths/pet/put/PetPutRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/pet/post/PetPostRequestBody.md b/samples/client/petstore/java/docs/paths/pet/post/PetPostRequestBody.md new file mode 100644 index 00000000000..bd9f8d276f1 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/post/PetPostRequestBody.md @@ -0,0 +1,17 @@ +# PetPostRequestBody + +public class PetPostRequestBody extends [Pet](../../../components/requestbodies/Pet.md) + +A class (extended from the $ref class) that contains necessary nested request body classes +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetPostRequestBody.PetPostRequestBody1](#petpostrequestbody1)
class that serializes request bodies | + +## PetPostRequestBody1 +public static class PetPostRequestBody1 extends [Pet1](../../../components/requestbodies/Pet.md#pet1)
+ +a class that serializes SealedRequestBody request bodies, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md b/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md new file mode 100644 index 00000000000..d44b66c86e5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/post/PetPostResponses.md @@ -0,0 +1,29 @@ +# PetPostResponses + +public class PetPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointPetPostCode200Response](#endpointpetpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointPetPostCode200Response](#endpointpetpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointPetPostCode200Response +public record EndpointPetPostCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md b/samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md new file mode 100644 index 00000000000..233fdd10e78 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md @@ -0,0 +1,44 @@ +# PetPostSecurityInfo +PetPostSecurityInfo.java + +public class PetPostSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetPostSecurityInfo.PetPostSecurityInfo1](#petpostsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [PetPostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## PetPostSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPostSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetPostSecurityRequirementObject0](../../../paths/pet/post/security/PetPostSecurityRequirementObject0.md) | security0 | +| [PetPostSecurityRequirementObject1](../../../paths/pet/post/security/PetPostSecurityRequirementObject1.md) | security1 | +| [PetPostSecurityRequirementObject2](../../../paths/pet/post/security/PetPostSecurityRequirementObject2.md) | security2 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | +| SECURITY_1
security 1 | +| SECURITY_2
security 2 | diff --git a/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode200Response.md b/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode200Response.md new file mode 100644 index 00000000000..3c59da4cc88 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode200Response.md @@ -0,0 +1,17 @@ +# PetPostCode200Response + +public class PetPostCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetPostCode200Response.PetPostCode200Response1](#petpostcode200response1)
class that deserializes responses | + +## PetPostCode200Response1 +public static class PetPostCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md b/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md new file mode 100644 index 00000000000..6125c5e2063 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/post/responses/PetPostCode405Response.md @@ -0,0 +1,32 @@ +# PetPostCode405Response + +public class PetPostCode405Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetPostCode405Response.PetPostCode405Response1](#petpostcode405response1)
class that deserializes responses | + +## PetPostCode405Response1 +public static class PetPostCode405Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPostCode405Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md new file mode 100644 index 00000000000..dc904ae9529 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# PetPostSecurityRequirementObject0 +PetPostSecurityRequirementObject0.java + +public class PetPostSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPostSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md new file mode 100644 index 00000000000..4ffc2e46b31 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md @@ -0,0 +1,15 @@ +# PetPostSecurityRequirementObject1 +PetPostSecurityRequirementObject1.java + +public class PetPostSecurityRequirementObject1 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPostSecurityRequirementObject1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md new file mode 100644 index 00000000000..88db581a2d6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md @@ -0,0 +1,15 @@ +# PetPostSecurityRequirementObject2 +PetPostSecurityRequirementObject2.java + +public class PetPostSecurityRequirementObject2 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPostSecurityRequirementObject2()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md b/samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md new file mode 100644 index 00000000000..e732123f8df --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/put/PetPutRequestBody.md @@ -0,0 +1,17 @@ +# PetPutRequestBody + +public class PetPutRequestBody extends [Pet](../../../components/requestbodies/Pet.md) + +A class (extended from the $ref class) that contains necessary nested request body classes +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetPutRequestBody.PetPutRequestBody1](#petputrequestbody1)
class that serializes request bodies | + +## PetPutRequestBody1 +public static class PetPutRequestBody1 extends [Pet1](../../../components/requestbodies/Pet.md#pet1)
+ +a class that serializes SealedRequestBody request bodies, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md b/samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md new file mode 100644 index 00000000000..fb9a8a6388a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/put/PetPutResponses.md @@ -0,0 +1,10 @@ +# PetPutResponses + +public class PetPutResponses + +A class that contains necessary responses classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | + diff --git a/samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md b/samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md new file mode 100644 index 00000000000..1136055dad2 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md @@ -0,0 +1,42 @@ +# PetPutSecurityInfo +PetPutSecurityInfo.java + +public class PetPutSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetPutSecurityInfo.PetPutSecurityInfo1](#petputsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [PetPutSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## PetPutSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPutSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetPutSecurityRequirementObject0](../../../paths/pet/put/security/PetPutSecurityRequirementObject0.md) | security0 | +| [PetPutSecurityRequirementObject1](../../../paths/pet/put/security/PetPutSecurityRequirementObject1.md) | security1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | +| SECURITY_1
security 1 | diff --git a/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md new file mode 100644 index 00000000000..d44abff6808 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode400Response.md @@ -0,0 +1,32 @@ +# PetPutCode400Response + +public class PetPutCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetPutCode400Response.PetPutCode400Response1](#petputcode400response1)
class that deserializes responses | + +## PetPutCode400Response1 +public static class PetPutCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPutCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md new file mode 100644 index 00000000000..9643229862a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode404Response.md @@ -0,0 +1,32 @@ +# PetPutCode404Response + +public class PetPutCode404Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetPutCode404Response.PetPutCode404Response1](#petputcode404response1)
class that deserializes responses | + +## PetPutCode404Response1 +public static class PetPutCode404Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPutCode404Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md new file mode 100644 index 00000000000..51dbe825682 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/put/responses/PetPutCode405Response.md @@ -0,0 +1,32 @@ +# PetPutCode405Response + +public class PetPutCode405Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetPutCode405Response.PetPutCode405Response1](#petputcode405response1)
class that deserializes responses | + +## PetPutCode405Response1 +public static class PetPutCode405Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPutCode405Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md new file mode 100644 index 00000000000..a0bb52235ba --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# PetPutSecurityRequirementObject0 +PetPutSecurityRequirementObject0.java + +public class PetPutSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPutSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md new file mode 100644 index 00000000000..9dd305982f5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md @@ -0,0 +1,15 @@ +# PetPutSecurityRequirementObject1 +PetPutSecurityRequirementObject1.java + +public class PetPutSecurityRequirementObject1 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetPutSecurityRequirementObject1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md new file mode 100644 index 00000000000..209dbc6912b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusGet.md @@ -0,0 +1,209 @@ +# PetfindbystatusGet + +public class PetfindbystatusGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [FindPetsByStatusOperation](#findpetsbystatusoperation)
The interface that has a findPetsByStatus method to call the endpoint | +| static class | [GetRequest](#getrequest)
The final request inputs class | +| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | +| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; +import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetSecurityInfo; +import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetQueryParameters; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.PetfindbystatusServer0; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.PetfindbystatusServer1; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; +import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; +import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.PetfindbystatusGetCode200Response; +import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.PetfindbystatusGetCode400Response; +import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; +import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusGet; +import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .petfindbystatusServerInfo( + new PetfindbystatusServerInfo.PetfindbystatusServerInfoBuilder() + .petfindbystatusServer0(new PetfindbystatusServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .petfindbystatusServerInfoServerIndex(PetfindbystatusServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +securitySchemes.add( + new ApiKey("someApiKey"); +); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petfindbystatusGetSecurityRequirementObject0SecurityIndex(PetfindbystatusGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetfindbystatusGet.Get apiClient = new PetfindbystatusGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters = + PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( + new PetfindbystatusGetQueryParameters.QueryParametersMapBuilder() + .status( + Arrays.asList( + "available" + ) + ) + .build(), + schemaConfiguration +); + +var request = new PetfindbystatusGet.GetRequestBuilder() + .queryParameters(queryParameters) + .build(); + +PetfindbystatusGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (PetfindbystatusGetCode400Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +PetfindbystatusGetResponses.EndpointPetfindbystatusGetCode200Response castResponse = (PetfindbystatusGetResponses.EndpointPetfindbystatusGetCode200Response) response; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## FindPetsByStatusOperation +public interface FindPetsByStatusOperation
+ +an interface that allows one to call the endpoint using a method named findPetsByStatus by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbystatusGetResponses.EndpointResponse](../../paths/petfindbystatus/get/PetfindbystatusGetResponses.md#endpointresponse) | findPetsByStatus([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetfindbystatusGetQueryParameters.QueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#queryparametersmap) | queryParameters | +| [PetfindbystatusServerInfo.@Nullable ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetNullableRequest +public static class GetNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetfindbystatusGetQueryParameters.@Nullable QueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#queryparametersmap) | queryParameters | +| [PetfindbystatusServerInfo.@Nullable ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) | serverIndex | +| [PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Get0RequestBuilder +public static class Get0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([PetfindbystatusServerInfo.ServerIndex](../../paths/petfindbystatus/PetfindbystatusServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | securityIndex([PetfindbystatusGetSecurityInfo.SecurityIndex](../../paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbystatusGetQueryParametersQueryParametersMap](../../paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md new file mode 100644 index 00000000000..fefcf6ae3de --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md @@ -0,0 +1,62 @@ +# PetfindbystatusServerInfo +PetfindbystatusServerInfo.java + +public class PetfindbystatusServerInfo + +A class that provides a server, and any needed server info classes +- a class that is a ServerProvider +- a builder for the ServerProvider +- an enum class that stores server index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetfindbystatusServerInfo.PetfindbystatusServerInfo1](#petfindbystatusserverinfo1)
class that stores a server index | +| static class | [PetfindbystatusServerInfo.PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder)
class that stores a server index | +| enum | [PetfindbystatusServerInfo.ServerIndex](#serverindex)
class that stores a server index | + +## PetfindbystatusServerInfo1 +implements ServerProvider<[ServerIndex](#serverindex)>
+ +A class that stores servers and allows one to be returned with a ServerIndex instance + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusServerInfo1(@Nullable [PetfindbystatusServer0](../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) server0,@Nullable [PetfindbystatusServer1](../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) server1)
Creates an instance using passed in servers | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetfindbystatusServer0](../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) | server0 | +| [PetfindbystatusServer1](../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) | server1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Server | getServer([ServerIndex](#serverindex) serverIndex) | + +## PetfindbystatusServerInfoBuilder + +a builder for [PetfindbystatusServerInfo1](#petfindbystatusserverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder) | petfindbystatusServer0([PetfindbystatusServer0](../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) server0)
sets the server | +| [PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder) | petfindbystatusServer1([PetfindbystatusServer1](../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) server1)
sets the server | +| [PetfindbystatusServerInfo1](#petfindbystatusserverinfo1) | build() | + +## ServerIndex +enum ServerIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SERVER_0
server 0 | +| SERVER_1
server 1 | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md new file mode 100644 index 00000000000..5e8081098ca --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.md @@ -0,0 +1,271 @@ +# PetfindbystatusGetQueryParameters +public class PetfindbystatusGetQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed)
sealed interface for validated payloads | +| record | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1](#petfindbystatusgetqueryparameters1)
schema class | +| static class | [PetfindbystatusGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [PetfindbystatusGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetfindbystatusGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbystatusGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## PetfindbystatusGetQueryParameters1Boxed +public sealed interface PetfindbystatusGetQueryParameters1Boxed
+permits
+[PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetfindbystatusGetQueryParameters1BoxedMap +public record PetfindbystatusGetQueryParameters1BoxedMap
+implements [PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbystatusGetQueryParameters1 +public static class PetfindbystatusGetQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +PetfindbystatusGetQueryParameters.QueryParametersMap validatedPayload = + PetfindbystatusGetQueryParameters.PetfindbystatusGetQueryParameters1.validate( + new PetfindbystatusGetQueryParameters.QueryParametersMapBuilder() + .status( + Arrays.asList( + "available" + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("status", [Schema0.Schema01.class](../../../paths/petfindbystatus/get/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "status"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbystatusGetQueryParameters1BoxedMap](#petfindbystatusgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbystatusGetQueryParameters1Boxed](#petfindbystatusgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMap0Builder +public class QueryParametersMap0Builder
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap0Builder(Map> instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map> | build()
Returns map input that should be used with Schema.validate | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | status(List value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Schema0.SchemaList0](../../../paths/petfindbystatus/get/parameters/parameter0/Schema0.md#schemalist0) | status()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md new file mode 100644 index 00000000000..79ad32a583c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetResponses.md @@ -0,0 +1,29 @@ +# PetfindbystatusGetResponses + +public class PetfindbystatusGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointPetfindbystatusGetCode200Response](#endpointpetfindbystatusgetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointPetfindbystatusGetCode200Response](#endpointpetfindbystatusgetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointPetfindbystatusGetCode200Response +public record EndpointPetfindbystatusGetCode200Response( + HttpResponse response, + [PetfindbystatusGetCode200Response.SealedResponseBody](../../../paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md new file mode 100644 index 00000000000..a0bc58eb967 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md @@ -0,0 +1,44 @@ +# PetfindbystatusGetSecurityInfo +PetfindbystatusGetSecurityInfo.java + +public class PetfindbystatusGetSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetfindbystatusGetSecurityInfo.PetfindbystatusGetSecurityInfo1](#petfindbystatusgetsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [PetfindbystatusGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## PetfindbystatusGetSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetfindbystatusGetSecurityRequirementObject0](../../../paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md) | security0 | +| [PetfindbystatusGetSecurityRequirementObject1](../../../paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md) | security1 | +| [PetfindbystatusGetSecurityRequirementObject2](../../../paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md) | security2 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | +| SECURITY_1
security 1 | +| SECURITY_2
security 2 | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..cbe534fe3c5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md @@ -0,0 +1,206 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | +| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | +| static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | +| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Items0](#items0)
schema class | +| enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedList](#schema01boxedlist) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedList +public record Schema01BoxedList
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedList([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList0](#schemalist0) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.parameter0.Schema0; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +Schema0.SchemaList0 validatedPayload = + Schema0.Schema01.validate( + new Schema0.SchemaListBuilder0() + .add("available") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [Items0.class](#items0) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaListBuilder0 +public class SchemaListBuilder0
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder0()
Creates an empty list | +| SchemaListBuilder0(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder0 | add(String item) | +| SchemaListBuilder0 | add([StringItemsEnums0](#stringitemsenums0) item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## SchemaList0 +public class SchemaList0
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | + +## Items0Boxed +public sealed interface Items0Boxed
+permits
+[Items0BoxedString](#items0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Items0BoxedString +public record Items0BoxedString
+implements [Items0Boxed](#items0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Items0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Items0 +public static class Items0
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.parameter0.Schema0; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = Schema0.Items0.validate( + "available", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "available",
    "pending",
    "sold"
)
| +| @Nullable Object | defaultValue = "available" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringItemsEnums0](#stringitemsenums0) arg, SchemaConfiguration configuration) | +| [Items0BoxedString](#items0boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [Items0Boxed](#items0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringItemsEnums0 +public enum StringItemsEnums0
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| AVAILABLE | value = "available" | +| PENDING | value = "pending" | +| SOLD | value = "sold" | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md new file mode 100644 index 00000000000..a6a3459b37a --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.md @@ -0,0 +1,17 @@ +# PetfindbystatusGetCode200Response + +public class PetfindbystatusGetCode200Response extends [SuccessfulXmlAndJsonArrayOfPet](../../components/responses/SuccessfulXmlAndJsonArrayOfPet.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetfindbystatusGetCode200Response.PetfindbystatusGetCode200Response1](#petfindbystatusgetcode200response1)
class that deserializes responses | + +## PetfindbystatusGetCode200Response1 +public static class PetfindbystatusGetCode200Response1 extends [SuccessfulXmlAndJsonArrayOfPet1](../../components/responses/SuccessfulXmlAndJsonArrayOfPet.md#successfulxmlandjsonarrayofpet1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.md new file mode 100644 index 00000000000..19c777ba542 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.md @@ -0,0 +1,32 @@ +# PetfindbystatusGetCode400Response + +public class PetfindbystatusGetCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetfindbystatusGetCode400Response.PetfindbystatusGetCode400Response1](#petfindbystatusgetcode400response1)
class that deserializes responses | + +## PetfindbystatusGetCode400Response1 +public static class PetfindbystatusGetCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md new file mode 100644 index 00000000000..608eb248028 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# PetfindbystatusGetSecurityRequirementObject0 +PetfindbystatusGetSecurityRequirementObject0.java + +public class PetfindbystatusGetSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md new file mode 100644 index 00000000000..6749160f760 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md @@ -0,0 +1,15 @@ +# PetfindbystatusGetSecurityRequirementObject1 +PetfindbystatusGetSecurityRequirementObject1.java + +public class PetfindbystatusGetSecurityRequirementObject1 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetSecurityRequirementObject1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md new file mode 100644 index 00000000000..7f0527ce9f7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md @@ -0,0 +1,15 @@ +# PetfindbystatusGetSecurityRequirementObject2 +PetfindbystatusGetSecurityRequirementObject2.java + +public class PetfindbystatusGetSecurityRequirementObject2 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusGetSecurityRequirementObject2()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md new file mode 100644 index 00000000000..475550269b3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer0.md @@ -0,0 +1,14 @@ +# Server PetfindbystatusServer0 +public class PetfindbystatusServer0 + +A class that stores a server url + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusServer0()
Creates a server | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "https://path-server-test.petstore.local/v2" | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md new file mode 100644 index 00000000000..66dbb2170be --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/PetfindbystatusServer1.md @@ -0,0 +1,16 @@ +# Server PetfindbystatusServer1 +public class PetfindbystatusServer1 + +A class that stores a server url + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusServer1()
Creates a server using default values for variables | +| PetfindbystatusServer1([PetfindbystatusServer1Variables.VariablesMap](../../../paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.md#variablesmap) variables)
Creates a server using input values for variables | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "https://petstore.swagger.io/{version}" | +| [PetfindbystatusServer1Variables.VariablesMap](../../../paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.md#variablesmap) | variables | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.md new file mode 100644 index 00000000000..b2df6fc9a8b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.md @@ -0,0 +1,355 @@ +# PetfindbystatusServer1Variables +public class PetfindbystatusServer1Variables
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed)
sealed interface for validated payloads | +| record | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1](#petfindbystatusserver1variables1)
schema class | +| static class | [PetfindbystatusServer1Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | +| static class | [PetfindbystatusServer1Variables.VariablesMap](#variablesmap)
output class for Map payloads | +| sealed interface | [PetfindbystatusServer1Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | +| record | [PetfindbystatusServer1Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | +| static class | [PetfindbystatusServer1Variables.Version](#version)
schema class | +| enum | [PetfindbystatusServer1Variables.StringVersionEnums](#stringversionenums)
String enum | +| sealed interface | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetfindbystatusServer1Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbystatusServer1Variables.AdditionalProperties](#additionalproperties)
schema class | + +## PetfindbystatusServer1Variables1Boxed +public sealed interface PetfindbystatusServer1Variables1Boxed
+permits
+[PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetfindbystatusServer1Variables1BoxedMap +public record PetfindbystatusServer1Variables1BoxedMap
+implements [PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusServer1Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap](#variablesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbystatusServer1Variables1 +public static class PetfindbystatusServer1Variables1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.PetfindbystatusServer1Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +PetfindbystatusServer1Variables.VariablesMap validatedPayload = + PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1.validate( + new PetfindbystatusServer1Variables.VariablesMapBuilder() + .version("v1") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| +| Set | required = Set.of(
    "version"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbystatusServer1Variables1BoxedMap](#petfindbystatusserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbystatusServer1Variables1Boxed](#petfindbystatusserver1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## VariablesMap0Builder +public class VariablesMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## VariablesMapBuilder +public class VariablesMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | +| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | + +## VariablesMap +public static class VariablesMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v1 | + +## VersionBoxed +public sealed interface VersionBoxed
+permits
+[VersionBoxedString](#versionboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## VersionBoxedString +public record VersionBoxedString
+implements [VersionBoxed](#versionboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VersionBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Version +public static class Version
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.PetfindbystatusServer1Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = PetfindbystatusServer1Variables.Version.validate( + "v1", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "v1",
    "v2"
)
| +| @Nullable Object | defaultValue = "v1" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | +| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringVersionEnums +public enum StringVersionEnums
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| V1 | value = "v1" | +| V2 | value = "v2" | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md new file mode 100644 index 00000000000..2053c4b2596 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbytags/PetfindbytagsGet.md @@ -0,0 +1,206 @@ +# PetfindbytagsGet + +public class PetfindbytagsGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [FindPetsByTagsOperation](#findpetsbytagsoperation)
The interface that has a findPetsByTags method to call the endpoint | +| static class | [GetRequest](#getrequest)
The final request inputs class | +| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | +| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; +import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; +import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode200Response; +import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode400Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.petfindbytags.PetfindbytagsGet; +import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petfindbytagsGetSecurityRequirementObject0SecurityIndex(PetfindbytagsGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetfindbytagsGet.Get apiClient = new PetfindbytagsGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters = + PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( + new PetfindbytagsGetQueryParameters.QueryParametersMapBuilder() + .tags( + Arrays.asList( + "a" + ) + ) + .build(), + schemaConfiguration +); + +var request = new PetfindbytagsGet.GetRequestBuilder() + .queryParameters(queryParameters) + .build(); + +PetfindbytagsGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (PetfindbytagsGetCode400Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +PetfindbytagsGetResponses.EndpointPetfindbytagsGetCode200Response castResponse = (PetfindbytagsGetResponses.EndpointPetfindbytagsGetCode200Response) response; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## FindPetsByTagsOperation +public interface FindPetsByTagsOperation
+ +an interface that allows one to call the endpoint using a method named findPetsByTags by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbytagsGetResponses.EndpointResponse](../../paths/petfindbytags/get/PetfindbytagsGetResponses.md#endpointresponse) | findPetsByTags([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetfindbytagsGetQueryParameters.QueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetNullableRequest +public static class GetNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetfindbytagsGetQueryParameters.@Nullable QueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Get0RequestBuilder +public static class Get0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | securityIndex([PetfindbytagsGetSecurityInfo.SecurityIndex](../../paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([PetfindbytagsGetQueryParametersQueryParametersMap](../../paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md new file mode 100644 index 00000000000..5560afd593c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.md @@ -0,0 +1,271 @@ +# PetfindbytagsGetQueryParameters +public class PetfindbytagsGetQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed)
sealed interface for validated payloads | +| record | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1](#petfindbytagsgetqueryparameters1)
schema class | +| static class | [PetfindbytagsGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [PetfindbytagsGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetfindbytagsGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetfindbytagsGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## PetfindbytagsGetQueryParameters1Boxed +public sealed interface PetfindbytagsGetQueryParameters1Boxed
+permits
+[PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetfindbytagsGetQueryParameters1BoxedMap +public record PetfindbytagsGetQueryParameters1BoxedMap
+implements [PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetfindbytagsGetQueryParameters1 +public static class PetfindbytagsGetQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +PetfindbytagsGetQueryParameters.QueryParametersMap validatedPayload = + PetfindbytagsGetQueryParameters.PetfindbytagsGetQueryParameters1.validate( + new PetfindbytagsGetQueryParameters.QueryParametersMapBuilder() + .tags( + Arrays.asList( + "a" + ) + ) + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("tags", [Schema0.Schema01.class](../../../paths/petfindbytags/get/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "tags"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbytagsGetQueryParameters1BoxedMap](#petfindbytagsgetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetfindbytagsGetQueryParameters1Boxed](#petfindbytagsgetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMap0Builder +public class QueryParametersMap0Builder
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap0Builder(Map> instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map> | build()
Returns map input that should be used with Schema.validate | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map>` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap0Builder](#queryparametersmap0builder) | tags(List value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [Schema0.SchemaList0](../../../paths/petfindbytags/get/parameters/parameter0/Schema0.md#schemalist0) | tags()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md new file mode 100644 index 00000000000..fcdbec4dfbe --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetResponses.md @@ -0,0 +1,29 @@ +# PetfindbytagsGetResponses + +public class PetfindbytagsGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointPetfindbytagsGetCode200Response](#endpointpetfindbytagsgetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointPetfindbytagsGetCode200Response](#endpointpetfindbytagsgetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointPetfindbytagsGetCode200Response +public record EndpointPetfindbytagsGetCode200Response( + HttpResponse response, + [PetfindbytagsGetCode200Response.SealedResponseBody](../../../paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md new file mode 100644 index 00000000000..ea6339e8f26 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md @@ -0,0 +1,42 @@ +# PetfindbytagsGetSecurityInfo +PetfindbytagsGetSecurityInfo.java + +public class PetfindbytagsGetSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetfindbytagsGetSecurityInfo.PetfindbytagsGetSecurityInfo1](#petfindbytagsgetsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [PetfindbytagsGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## PetfindbytagsGetSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetfindbytagsGetSecurityRequirementObject0](../../../paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md) | security0 | +| [PetfindbytagsGetSecurityRequirementObject1](../../../paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md) | security1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | +| SECURITY_1
security 1 | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..8c3322c09f9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md @@ -0,0 +1,156 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated list payloads, extends FrozenList +- classes to build inputs for list payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedList](#schema01boxedlist)
boxed class to store validated List payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | +| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | +| static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | +| sealed interface | [Schema0.Items0Boxed](#items0boxed)
sealed interface for validated payloads | +| record | [Schema0.Items0BoxedString](#items0boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Items0](#items0)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedList](#schema01boxedlist) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedList +public record Schema01BoxedList
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedList([SchemaList0](#schemalist0) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList0](#schemalist0) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petfindbytags.get.parameters.parameter0.Schema0; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// List validation +Schema0.SchemaList0 validatedPayload = + Schema0.Schema01.validate( + new Schema0.SchemaListBuilder0() + .add("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(List.class) | +| Class | items = [Items0.class](#items0) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01BoxedList](#schema01boxedlist) | validateAndBox([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## SchemaListBuilder0 +public class SchemaListBuilder0
+builder for `List` + +A class that builds the List input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder0()
Creates an empty list | +| SchemaListBuilder0(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder0 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | + +## SchemaList0 +public class SchemaList0
+extends `FrozenList` + +A class to store validated List payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | + +## Items0Boxed +public sealed interface Items0Boxed
+permits
+[Items0BoxedString](#items0boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Items0BoxedString +public record Items0BoxedString
+implements [Items0Boxed](#items0boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Items0BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Items0 +public static class Items0
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md new file mode 100644 index 00000000000..e2de5e1fab7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.md @@ -0,0 +1,17 @@ +# PetfindbytagsGetCode200Response + +public class PetfindbytagsGetCode200Response extends [RefSuccessfulXmlAndJsonArrayOfPet](../../components/responses/RefSuccessfulXmlAndJsonArrayOfPet.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetfindbytagsGetCode200Response.PetfindbytagsGetCode200Response1](#petfindbytagsgetcode200response1)
class that deserializes responses | + +## PetfindbytagsGetCode200Response1 +public static class PetfindbytagsGetCode200Response1 extends [RefSuccessfulXmlAndJsonArrayOfPet1](../../components/responses/RefSuccessfulXmlAndJsonArrayOfPet.md#refsuccessfulxmlandjsonarrayofpet1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.md new file mode 100644 index 00000000000..b542fd57299 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.md @@ -0,0 +1,32 @@ +# PetfindbytagsGetCode400Response + +public class PetfindbytagsGetCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetfindbytagsGetCode400Response.PetfindbytagsGetCode400Response1](#petfindbytagsgetcode400response1)
class that deserializes responses | + +## PetfindbytagsGetCode400Response1 +public static class PetfindbytagsGetCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md new file mode 100644 index 00000000000..256a672a40f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# PetfindbytagsGetSecurityRequirementObject0 +PetfindbytagsGetSecurityRequirementObject0.java + +public class PetfindbytagsGetSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md new file mode 100644 index 00000000000..39a130b834f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md @@ -0,0 +1,15 @@ +# PetfindbytagsGetSecurityRequirementObject1 +PetfindbytagsGetSecurityRequirementObject1.java + +public class PetfindbytagsGetSecurityRequirementObject1 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbytagsGetSecurityRequirementObject1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md new file mode 100644 index 00000000000..8a93e80ceca --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidDelete.md @@ -0,0 +1,207 @@ +# PetpetidDelete + +public class PetpetidDelete + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | +| interface | [DeletePetOperation](#deletepetoperation)
The interface that has a deletePet method to call the endpoint | +| static class | [DeleteRequest](#deleterequest)
The final request inputs class | +| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | +| static class | [Delete0RequestBuilder](#delete0requestbuilder)
A builder for the request input class | +| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | + +## Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
+ +a class that allows one to call the endpoint using a method named delete + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; +import org.openapijsonschematools.client.paths.petpetid.delete.responses.PetpetidDeleteCode400Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetid.PetpetidDelete; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +securitySchemes.add( + new ApiKey("someApiKey"); +); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petpetidDeleteSecurityRequirementObject0SecurityIndex(PetpetidDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetpetidDelete.Delete apiClient = new PetpetidDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetidDeletePathParameters.PathParametersMap pathParameters = + PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( + new PetpetidDeletePathParameters.PathParametersMapBuilder() + .petId(1L) + + .build(), + schemaConfiguration +); + +var request = new PetpetidDelete.DeleteRequestBuilder() + .pathParameters(pathParameters) + .build(); + +Void response; +try { + response = apiClient.delete(request); +} catch (PetpetidDeleteCode400Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | delete([DeleteRequest](#deleterequest) request) | + +## DeletePetOperation +public interface DeletePetOperation
+ +an interface that allows one to call the endpoint using a method named deletePet by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | deletePet([DeleteRequest](#deleterequest) request) | + +## DeleteRequest +public static class DeleteRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetidDeletePathParameters.PathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#pathparametersmap) | pathParameters | +| [PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#headerparametersmap) | headerParameters
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## DeleteNullableRequest +public static class DeleteNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetidDeletePathParameters.@Nullable PathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#pathparametersmap) | pathParameters | +| [PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#headerparametersmap) | headerParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [PetpetidDeleteSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Delete0RequestBuilder +public static class Delete0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete0RequestBuilder(Delete0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [Delete0RequestBuilder](#delete0requestbuilder) | headerParameters([PetpetidDeleteHeaderParametersHeaderParametersMap](../../paths/petpetid/delete/PetpetidDeleteHeaderParameters.md#headerparametersmap) headerParameters)
sets the optional property | +| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | securityIndex([PetpetidDeleteSecurityInfo.SecurityIndex](../../paths/petpetid/delete/PetpetidDeleteSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## DeleteRequestBuilder +public static class DeleteRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([PetpetidDeletePathParametersPathParametersMap](../../paths/petpetid/delete/PetpetidDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md new file mode 100644 index 00000000000..8ce13efbb4b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidGet.md @@ -0,0 +1,211 @@ +# PetpetidGet + +public class PetpetidGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [GetPetByIdOperation](#getpetbyidoperation)
The interface that has a getPetById method to call the endpoint | +| static class | [GetRequest](#getrequest)
The final request inputs class | +| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | +| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; +import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; +import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode200Response; +import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode400Response; +import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetid.PetpetidGet; +import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +securitySchemes.add( + new ApiKey("someApiKey"); +); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petpetidGetSecurityRequirementObject0SecurityIndex(PetpetidGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetpetidGet.Get apiClient = new PetpetidGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetidGetPathParameters.PathParametersMap pathParameters = + PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( + new PetpetidGetPathParameters.PathParametersMapBuilder() + .petId(1L) + + .build(), + schemaConfiguration +); + +var request = new PetpetidGet.GetRequestBuilder() + .pathParameters(pathParameters) + .build(); + +PetpetidGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (PetpetidGetCode400Response.ResponseApiException | PetpetidGetCode404Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +PetpetidGetResponses.EndpointPetpetidGetCode200Response castResponse = (PetpetidGetResponses.EndpointPetpetidGetCode200Response) response; +if (castResponse.body instanceof PetpetidGetCode200Response.ApplicationxmlResponseBody deserializedBody) { + // handle deserialized body here +} else { + PetpetidGetCode200Response.ApplicationjsonResponseBody deserializedBody = (PetpetidGetCode200Response.ApplicationjsonResponseBody) castResponse.body; + // handle deserialized body here +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## GetPetByIdOperation +public interface GetPetByIdOperation
+ +an interface that allows one to call the endpoint using a method named getPetById by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetidGetResponses.EndpointResponse](../../paths/petpetid/get/PetpetidGetResponses.md#endpointresponse) | getPetById([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetidGetPathParameters.PathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetNullableRequest +public static class GetNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetidGetPathParameters.@Nullable PathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [PetpetidGetSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Get0RequestBuilder +public static class Get0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | securityIndex([PetpetidGetSecurityInfo.SecurityIndex](../../paths/petpetid/get/PetpetidGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([PetpetidGetPathParametersPathParametersMap](../../paths/petpetid/get/PetpetidGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md new file mode 100644 index 00000000000..9bc4937ec0f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/PetpetidPost.md @@ -0,0 +1,207 @@ +# PetpetidPost + +public class PetpetidPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [UpdatePetWithFormOperation](#updatepetwithformoperation)
The interface that has a updatePetWithForm method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; +import org.openapijsonschematools.client.paths.petpetid.post.responses.PetpetidPostCode405Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetid.PetpetidPost; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +securitySchemes.add( + new ApiKey("someApiKey"); +); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petpetidPostSecurityRequirementObject0SecurityIndex(PetpetidPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetpetidPost.Post apiClient = new PetpetidPost.Post(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetidPostPathParameters.PathParametersMap pathParameters = + PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( + new PetpetidPostPathParameters.PathParametersMapBuilder() + .petId(1L) + + .build(), + schemaConfiguration +); + +var request = new PetpetidPost.PostRequestBuilder() + .pathParameters(pathParameters) + .build(); + +Void response; +try { + response = apiClient.post(request); +} catch (PetpetidPostCode405Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | post([PostRequest](#postrequest) request) | + +## UpdatePetWithFormOperation +public interface UpdatePetWithFormOperation
+ +an interface that allows one to call the endpoint using a method named updatePetWithForm by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | updatePetWithForm([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetidPostPathParameters.PathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#pathparametersmap) | pathParameters | +| [PetpetidPostRequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetidPostPathParameters.@Nullable PathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#pathparametersmap) | pathParameters | +| [PetpetidPostRequestBody.@Nullable SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [PetpetidPostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([PetpetidPostRequestBody.SealedRequestBody](../../paths/petpetid/post/PetpetidPostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | securityIndex([PetpetidPostSecurityInfo.SecurityIndex](../../paths/petpetid/post/PetpetidPostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetidPostPathParametersPathParametersMap](../../paths/petpetid/post/PetpetidPostPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md new file mode 100644 index 00000000000..15cf0486a40 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteHeaderParameters.md @@ -0,0 +1,252 @@ +# PetpetidDeleteHeaderParameters +public class PetpetidDeleteHeaderParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed)
sealed interface for validated payloads | +| record | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1](#petpetiddeleteheaderparameters1)
schema class | +| static class | [PetpetidDeleteHeaderParameters.HeaderParametersMapBuilder](#headerparametersmapbuilder)
builder for Map payloads | +| static class | [PetpetidDeleteHeaderParameters.HeaderParametersMap](#headerparametersmap)
output class for Map payloads | +| sealed interface | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetpetidDeleteHeaderParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidDeleteHeaderParameters.AdditionalProperties](#additionalproperties)
schema class | + +## PetpetidDeleteHeaderParameters1Boxed +public sealed interface PetpetidDeleteHeaderParameters1Boxed
+permits
+[PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetpetidDeleteHeaderParameters1BoxedMap +public record PetpetidDeleteHeaderParameters1BoxedMap
+implements [PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteHeaderParameters1BoxedMap([HeaderParametersMap](#headerparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidDeleteHeaderParameters1 +public static class PetpetidDeleteHeaderParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +PetpetidDeleteHeaderParameters.HeaderParametersMap validatedPayload = + PetpetidDeleteHeaderParameters.PetpetidDeleteHeaderParameters1.validate( + new PetpetidDeleteHeaderParameters.HeaderParametersMapBuilder() + .api_key("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("api_key", [Schema0.Schema01.class](../../../paths/petpetid/delete/parameters/parameter0/Schema0.md#schema01))
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [HeaderParametersMap](#headerparametersmap) | validate([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeleteHeaderParameters1BoxedMap](#petpetiddeleteheaderparameters1boxedmap) | validateAndBox([Map<?, ?>](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeleteHeaderParameters1Boxed](#petpetiddeleteheaderparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## HeaderParametersMapBuilder +public class HeaderParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| HeaderParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [HeaderParametersMapBuilder](#headerparametersmapbuilder) | api_key(String value) | + +## HeaderParametersMap +public static class HeaderParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [HeaderParametersMap](#headerparametersmap) | of([Map](#headerparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | api_key()
[optional] | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md new file mode 100644 index 00000000000..f5c5b699f52 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeletePathParameters.md @@ -0,0 +1,271 @@ +# PetpetidDeletePathParameters +public class PetpetidDeletePathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed)
sealed interface for validated payloads | +| record | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidDeletePathParameters.PetpetidDeletePathParameters1](#petpetiddeletepathparameters1)
schema class | +| static class | [PetpetidDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [PetpetidDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [PetpetidDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetpetidDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## PetpetidDeletePathParameters1Boxed +public sealed interface PetpetidDeletePathParameters1Boxed
+permits
+[PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetpetidDeletePathParameters1BoxedMap +public record PetpetidDeletePathParameters1BoxedMap
+implements [PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidDeletePathParameters1 +public static class PetpetidDeletePathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +PetpetidDeletePathParameters.PathParametersMap validatedPayload = + PetpetidDeletePathParameters.PetpetidDeletePathParameters1.validate( + new PetpetidDeletePathParameters.PathParametersMapBuilder() + .petId(1L) + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema1.Schema11.class](../../../paths/petpetid/delete/parameters/parameter1/Schema1.md#schema11))
)
| +| Set | required = Set.of(
    "petId"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeletePathParameters1BoxedMap](#petpetiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidDeletePathParameters1Boxed](#petpetiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | petId()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md new file mode 100644 index 00000000000..393d3ca7126 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteResponses.md @@ -0,0 +1,10 @@ +# PetpetidDeleteResponses + +public class PetpetidDeleteResponses + +A class that contains necessary responses classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | + diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md new file mode 100644 index 00000000000..0a71b0d01f1 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md @@ -0,0 +1,42 @@ +# PetpetidDeleteSecurityInfo +PetpetidDeleteSecurityInfo.java + +public class PetpetidDeleteSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetpetidDeleteSecurityInfo.PetpetidDeleteSecurityInfo1](#petpetiddeletesecurityinfo1)
SecurityRequirementObjectProvider +| enum | [PetpetidDeleteSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## PetpetidDeleteSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetidDeleteSecurityRequirementObject0](../../../paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md) | security0 | +| [PetpetidDeleteSecurityRequirementObject1](../../../paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md) | security1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | +| SECURITY_1
security 1 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md new file mode 100644 index 00000000000..d8a770d95a5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/parameters/parameter1/Schema1.md @@ -0,0 +1,49 @@ +# Schema1 +public class Schema1
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | +| record | [Schema1.Schema11BoxedNumber](#schema11boxednumber)
boxed class to store validated Number payloads | +| static class | [Schema1.Schema11](#schema11)
schema class | + +## Schema11Boxed +public sealed interface Schema11Boxed
+permits
+[Schema11BoxedNumber](#schema11boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## Schema11BoxedNumber +public record Schema11BoxedNumber
+implements [Schema11Boxed](#schema11boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema11BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema11 +public static class Schema11
+extends Int64JsonSchema.Int64JsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.md b/samples/client/petstore/java/docs/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.md new file mode 100644 index 00000000000..0f2dd979eaa --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.md @@ -0,0 +1,32 @@ +# PetpetidDeleteCode400Response + +public class PetpetidDeleteCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetpetidDeleteCode400Response.PetpetidDeleteCode400Response1](#petpetiddeletecode400response1)
class that deserializes responses | + +## PetpetidDeleteCode400Response1 +public static class PetpetidDeleteCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md new file mode 100644 index 00000000000..f80b6f15b40 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# PetpetidDeleteSecurityRequirementObject0 +PetpetidDeleteSecurityRequirementObject0.java + +public class PetpetidDeleteSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md new file mode 100644 index 00000000000..8877bdea9a3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md @@ -0,0 +1,15 @@ +# PetpetidDeleteSecurityRequirementObject1 +PetpetidDeleteSecurityRequirementObject1.java + +public class PetpetidDeleteSecurityRequirementObject1 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidDeleteSecurityRequirementObject1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md new file mode 100644 index 00000000000..fd600b22cd4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetPathParameters.md @@ -0,0 +1,271 @@ +# PetpetidGetPathParameters +public class PetpetidGetPathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [PetpetidGetPathParameters.PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed)
sealed interface for validated payloads | +| record | [PetpetidGetPathParameters.PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidGetPathParameters.PetpetidGetPathParameters1](#petpetidgetpathparameters1)
schema class | +| static class | [PetpetidGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [PetpetidGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [PetpetidGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetpetidGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## PetpetidGetPathParameters1Boxed +public sealed interface PetpetidGetPathParameters1Boxed
+permits
+[PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetpetidGetPathParameters1BoxedMap +public record PetpetidGetPathParameters1BoxedMap
+implements [PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidGetPathParameters1 +public static class PetpetidGetPathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +PetpetidGetPathParameters.PathParametersMap validatedPayload = + PetpetidGetPathParameters.PetpetidGetPathParameters1.validate( + new PetpetidGetPathParameters.PathParametersMapBuilder() + .petId(1L) + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetid/get/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "petId"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidGetPathParameters1BoxedMap](#petpetidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidGetPathParameters1Boxed](#petpetidgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | petId()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md new file mode 100644 index 00000000000..12cc6f49fef --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetResponses.md @@ -0,0 +1,29 @@ +# PetpetidGetResponses + +public class PetpetidGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointPetpetidGetCode200Response](#endpointpetpetidgetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointPetpetidGetCode200Response](#endpointpetpetidgetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointPetpetidGetCode200Response +public record EndpointPetpetidGetCode200Response( + HttpResponse response, + [PetpetidGetCode200Response.SealedResponseBody](../../../paths/petpetid/get/responses/PetpetidGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md new file mode 100644 index 00000000000..c6615ea3fa9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md @@ -0,0 +1,40 @@ +# PetpetidGetSecurityInfo +PetpetidGetSecurityInfo.java + +public class PetpetidGetSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetpetidGetSecurityInfo.PetpetidGetSecurityInfo1](#petpetidgetsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [PetpetidGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## PetpetidGetSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetidGetSecurityRequirementObject0](../../../paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md) | security0 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..55e4e5cb238 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedNumber](#schema01boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedNumber +public record Schema01BoxedNumber
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends Int64JsonSchema.Int64JsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md new file mode 100644 index 00000000000..45e02b46ba7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode200Response.md @@ -0,0 +1,123 @@ +# PetpetidGetCode200Response + +public class PetpetidGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [PetpetidGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [PetpetidGetCode200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | +| record | [PetpetidGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [PetpetidGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [PetpetidGetCode200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | +| record | [PetpetidGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [PetpetidGetCode200Response.PetpetidGetCode200Response1](#petpetidgetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxmlMediaType](#applicationxmlmediatype), +[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationxmlMediaType +public record ApplicationxmlMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationxmlResponseBody](#applicationxmlresponsebody), +[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationxmlResponseBody +public record ApplicationxmlResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/xml" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlResponseBody(ApplicationxmlSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationxmlSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) | body()
returns the body passed in in the constructor | +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) | body()
returns the body passed in in the constructor | + +## PetpetidGetCode200Response1 +public static class PetpetidGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode400Response.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode400Response.md new file mode 100644 index 00000000000..34f0d6ab74e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode400Response.md @@ -0,0 +1,32 @@ +# PetpetidGetCode400Response + +public class PetpetidGetCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetpetidGetCode400Response.PetpetidGetCode400Response1](#petpetidgetcode400response1)
class that deserializes responses | + +## PetpetidGetCode400Response1 +public static class PetpetidGetCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode404Response.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode404Response.md new file mode 100644 index 00000000000..c1e0bfd8b7e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/PetpetidGetCode404Response.md @@ -0,0 +1,32 @@ +# PetpetidGetCode404Response + +public class PetpetidGetCode404Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetpetidGetCode404Response.PetpetidGetCode404Response1](#petpetidgetcode404response1)
class that deserializes responses | + +## PetpetidGetCode404Response1 +public static class PetpetidGetCode404Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetCode404Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..d5c13efb07f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [RefPet1](../../../../../../../components/schemas/RefPet.md#refpet) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [RefPet.RefPet1](../../../../../../../components/schemas/RefPet.md#refpet1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..be8b3ac53c8 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [Pet1](../../../../../../../components/schemas/Pet.md#pet) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [Pet.Pet1](../../../../../../../components/schemas/Pet.md#pet1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md new file mode 100644 index 00000000000..77bfdbe2448 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# PetpetidGetSecurityRequirementObject0 +PetpetidGetSecurityRequirementObject0.java + +public class PetpetidGetSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidGetSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md new file mode 100644 index 00000000000..8a12a161b7f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostPathParameters.md @@ -0,0 +1,271 @@ +# PetpetidPostPathParameters +public class PetpetidPostPathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [PetpetidPostPathParameters.PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed)
sealed interface for validated payloads | +| record | [PetpetidPostPathParameters.PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidPostPathParameters.PetpetidPostPathParameters1](#petpetidpostpathparameters1)
schema class | +| static class | [PetpetidPostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [PetpetidPostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [PetpetidPostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetpetidPostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetidPostPathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## PetpetidPostPathParameters1Boxed +public sealed interface PetpetidPostPathParameters1Boxed
+permits
+[PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetpetidPostPathParameters1BoxedMap +public record PetpetidPostPathParameters1BoxedMap
+implements [PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetidPostPathParameters1 +public static class PetpetidPostPathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +PetpetidPostPathParameters.PathParametersMap validatedPayload = + PetpetidPostPathParameters.PetpetidPostPathParameters1.validate( + new PetpetidPostPathParameters.PathParametersMapBuilder() + .petId(1L) + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetid/post/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "petId"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidPostPathParameters1BoxedMap](#petpetidpostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetidPostPathParameters1Boxed](#petpetidpostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | petId()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostRequestBody.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostRequestBody.md new file mode 100644 index 00000000000..c69e673f340 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostRequestBody.md @@ -0,0 +1,90 @@ +# PetpetidPostRequestBody + +public class PetpetidPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [PetpetidPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [PetpetidPostRequestBody.ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)
record storing schema + encoding for a specific contentType | +| static class | [PetpetidPostRequestBody.PetpetidPostRequestBody1](#petpetidpostrequestbody1)
class that serializes request bodies | +| sealed interface | [PetpetidPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [PetpetidPostRequestBody.ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationxwwwformurlencodedMediaType +public record ApplicationxwwwformurlencodedMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](../../../paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## PetpetidPostRequestBody1 +public static class PetpetidPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new [ApplicationxwwwformurlencodedMediaType](#applicationxwwwformurlencodedmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationxwwwformurlencodedRequestBody](#applicationxwwwformurlencodedrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationxwwwformurlencodedRequestBody +public record ApplicationxwwwformurlencodedRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/x-www-form-urlencoded" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/x-www-form-urlencoded" | +| ApplicationxwwwformurlencodedSchema.[ApplicationxwwwformurlencodedSchema1Boxed](../../../paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md#applicationxwwwformurlencodedschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md new file mode 100644 index 00000000000..1372e9116b3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostResponses.md @@ -0,0 +1,10 @@ +# PetpetidPostResponses + +public class PetpetidPostResponses + +A class that contains necessary responses classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | + diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md new file mode 100644 index 00000000000..915b9ce6f7c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md @@ -0,0 +1,42 @@ +# PetpetidPostSecurityInfo +PetpetidPostSecurityInfo.java + +public class PetpetidPostSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetpetidPostSecurityInfo.PetpetidPostSecurityInfo1](#petpetidpostsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [PetpetidPostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## PetpetidPostSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetidPostSecurityRequirementObject0](../../../paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md) | security0 | +| [PetpetidPostSecurityRequirementObject1](../../../paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md) | security1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | +| SECURITY_1
security 1 | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..55e4e5cb238 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/post/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedNumber](#schema01boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedNumber +public record Schema01BoxedNumber
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends Int64JsonSchema.Int64JsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md new file mode 100644 index 00000000000..7995fc75166 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -0,0 +1,214 @@ +# ApplicationxwwwformurlencodedSchema +public class ApplicationxwwwformurlencodedSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1](#applicationxwwwformurlencodedschema1)
schema class | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder)
builder for Map payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap)
output class for Map payloads | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatusBoxedString](#applicationxwwwformurlencodedstatusboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedStatus](#applicationxwwwformurlencodedstatus)
schema class | +| sealed interface | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed)
sealed interface for validated payloads | +| record | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNameBoxedString](#applicationxwwwformurlencodednameboxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedName](#applicationxwwwformurlencodedname)
schema class | + +## ApplicationxwwwformurlencodedSchema1Boxed +public sealed interface ApplicationxwwwformurlencodedSchema1Boxed
+permits
+[ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedSchema1BoxedMap +public record ApplicationxwwwformurlencodedSchema1BoxedMap
+implements [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchema1BoxedMap([ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedSchema1 +public static class ApplicationxwwwformurlencodedSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petpetid.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = + ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.validate( + new ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMapBuilder() + .name("a") + + .status("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("name", [ApplicationxwwwformurlencodedName.class](#applicationxwwwformurlencodedname))),
    new PropertyEntry("status", [ApplicationxwwwformurlencodedStatus.class](#applicationxwwwformurlencodedstatus)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | validate([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1BoxedMap](#applicationxwwwformurlencodedschema1boxedmap) | validateAndBox([Map<?, ?>](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| [ApplicationxwwwformurlencodedSchema1Boxed](#applicationxwwwformurlencodedschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## ApplicationxwwwformurlencodedSchemaMapBuilder +public class ApplicationxwwwformurlencodedSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | name(String value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | status(String value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, Void value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, boolean value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, String value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, int value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, float value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, long value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, double value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, List value) | +| [ApplicationxwwwformurlencodedSchemaMapBuilder](#applicationxwwwformurlencodedschemamapbuilder) | additionalProperty(String key, Map value) | + +## ApplicationxwwwformurlencodedSchemaMap +public static class ApplicationxwwwformurlencodedSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [ApplicationxwwwformurlencodedSchemaMap](#applicationxwwwformurlencodedschemamap) | of([Map](#applicationxwwwformurlencodedschemamapbuilder) arg, SchemaConfiguration configuration) | +| String | name()
[optional] | +| String | status()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## ApplicationxwwwformurlencodedStatusBoxed +public sealed interface ApplicationxwwwformurlencodedStatusBoxed
+permits
+[ApplicationxwwwformurlencodedStatusBoxedString](#applicationxwwwformurlencodedstatusboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedStatusBoxedString +public record ApplicationxwwwformurlencodedStatusBoxedString
+implements [ApplicationxwwwformurlencodedStatusBoxed](#applicationxwwwformurlencodedstatusboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedStatusBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedStatus +public static class ApplicationxwwwformurlencodedStatus
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +## Description +Updated status of the pet + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | + +## ApplicationxwwwformurlencodedNameBoxed +public sealed interface ApplicationxwwwformurlencodedNameBoxed
+permits
+[ApplicationxwwwformurlencodedNameBoxedString](#applicationxwwwformurlencodednameboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxwwwformurlencodedNameBoxedString +public record ApplicationxwwwformurlencodedNameBoxedString
+implements [ApplicationxwwwformurlencodedNameBoxed](#applicationxwwwformurlencodednameboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxwwwformurlencodedNameBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxwwwformurlencodedName +public static class ApplicationxwwwformurlencodedName
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +## Description +Updated name of the pet + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/responses/PetpetidPostCode405Response.md b/samples/client/petstore/java/docs/paths/petpetid/post/responses/PetpetidPostCode405Response.md new file mode 100644 index 00000000000..12fc2c4aa04 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/post/responses/PetpetidPostCode405Response.md @@ -0,0 +1,32 @@ +# PetpetidPostCode405Response + +public class PetpetidPostCode405Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetpetidPostCode405Response.PetpetidPostCode405Response1](#petpetidpostcode405response1)
class that deserializes responses | + +## PetpetidPostCode405Response1 +public static class PetpetidPostCode405Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostCode405Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md new file mode 100644 index 00000000000..0e8d3540345 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# PetpetidPostSecurityRequirementObject0 +PetpetidPostSecurityRequirementObject0.java + +public class PetpetidPostSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md new file mode 100644 index 00000000000..fb9621d4c1e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md @@ -0,0 +1,15 @@ +# PetpetidPostSecurityRequirementObject1 +PetpetidPostSecurityRequirementObject1.java + +public class PetpetidPostSecurityRequirementObject1 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetidPostSecurityRequirementObject1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md new file mode 100644 index 00000000000..53d0aedf3a0 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/PetpetiduploadimagePost.md @@ -0,0 +1,203 @@ +# PetpetiduploadimagePost + +public class PetpetiduploadimagePost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [UploadImageOperation](#uploadimageoperation)
The interface that has a uploadImage method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.PetpetiduploadimagePostCode200Response; +import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetiduploadimage.PetpetiduploadimagePost; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petpetiduploadimagePostSecurityRequirementObject0SecurityIndex(PetpetiduploadimagePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +PetpetiduploadimagePost.Post apiClient = new PetpetiduploadimagePost.Post(apiConfiguration, schemaConfiguration); + + +// Map validation +PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters = + PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( + new PetpetiduploadimagePostPathParameters.PathParametersMapBuilder() + .petId(1L) + + .build(), + schemaConfiguration +); + +var request = new PetpetiduploadimagePost.PostRequestBuilder() + .pathParameters(pathParameters) + .build(); + +PetpetiduploadimagePostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +PetpetiduploadimagePostResponses.EndpointPetpetiduploadimagePostCode200Response castResponse = (PetpetiduploadimagePostResponses.EndpointPetpetiduploadimagePostCode200Response) response; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## UploadImageOperation +public interface UploadImageOperation
+ +an interface that allows one to call the endpoint using a method named uploadImage by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetpetiduploadimagePostResponses.EndpointResponse](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md#endpointresponse) | uploadImage([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetiduploadimagePostPathParameters.PathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#pathparametersmap) | pathParameters | +| [PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) | requestBody
optional | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetiduploadimagePostPathParameters.@Nullable PathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#pathparametersmap) | pathParameters | +| [PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| [PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) | securityIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([PetpetiduploadimagePostRequestBody.SealedRequestBody](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md#sealedrequestbody) requestBody)
sets the optional property | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | securityIndex([PetpetiduploadimagePostSecurityInfo.SecurityIndex](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | pathParameters([PetpetiduploadimagePostPathParametersPathParametersMap](../../paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md new file mode 100644 index 00000000000..fa49543e3e7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.md @@ -0,0 +1,271 @@ +# PetpetiduploadimagePostPathParameters +public class PetpetiduploadimagePostPathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed)
sealed interface for validated payloads | +| record | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1](#petpetiduploadimagepostpathparameters1)
schema class | +| static class | [PetpetiduploadimagePostPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [PetpetiduploadimagePostPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [PetpetiduploadimagePostPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [PetpetiduploadimagePostPathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## PetpetiduploadimagePostPathParameters1Boxed +public sealed interface PetpetiduploadimagePostPathParameters1Boxed
+permits
+[PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## PetpetiduploadimagePostPathParameters1BoxedMap +public record PetpetiduploadimagePostPathParameters1BoxedMap
+implements [PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## PetpetiduploadimagePostPathParameters1 +public static class PetpetiduploadimagePostPathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +PetpetiduploadimagePostPathParameters.PathParametersMap validatedPayload = + PetpetiduploadimagePostPathParameters.PetpetiduploadimagePostPathParameters1.validate( + new PetpetiduploadimagePostPathParameters.PathParametersMapBuilder() + .petId(1L) + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("petId", [Schema0.Schema01.class](../../../paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "petId"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetiduploadimagePostPathParameters1BoxedMap](#petpetiduploadimagepostpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [PetpetiduploadimagePostPathParameters1Boxed](#petpetiduploadimagepostpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | petId(double value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | petId()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md new file mode 100644 index 00000000000..d85fbbb4f85 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.md @@ -0,0 +1,90 @@ +# PetpetiduploadimagePostRequestBody + +public class PetpetiduploadimagePostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [PetpetiduploadimagePostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [PetpetiduploadimagePostRequestBody.MultipartformdataMediaType](#multipartformdatamediatype)
record storing schema + encoding for a specific contentType | +| static class | [PetpetiduploadimagePostRequestBody.PetpetiduploadimagePostRequestBody1](#petpetiduploadimagepostrequestbody1)
class that serializes request bodies | +| sealed interface | [PetpetiduploadimagePostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [PetpetiduploadimagePostRequestBody.MultipartformdataRequestBody](#multipartformdatarequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[MultipartformdataMediaType](#multipartformdatamediatype) + +sealed interface that stores schema and encoding info + + +## MultipartformdataMediaType +public record MultipartformdataMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchema.MultipartformdataSchema1](../../../paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## PetpetiduploadimagePostRequestBody1 +public static class PetpetiduploadimagePostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = false
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("multipart/form-data", new [MultipartformdataMediaType](#multipartformdatamediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[MultipartformdataRequestBody](#multipartformdatarequestbody) + +sealed interface that stores request contentType + validated schema data + +## MultipartformdataRequestBody +public record MultipartformdataRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="multipart/form-data" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataRequestBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "multipart/form-data" | +| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md new file mode 100644 index 00000000000..b961dc0e86b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.md @@ -0,0 +1,29 @@ +# PetpetiduploadimagePostResponses + +public class PetpetiduploadimagePostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointPetpetiduploadimagePostCode200Response](#endpointpetpetiduploadimagepostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointPetpetiduploadimagePostCode200Response](#endpointpetpetiduploadimagepostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointPetpetiduploadimagePostCode200Response +public record EndpointPetpetiduploadimagePostCode200Response( + HttpResponse response, + [PetpetiduploadimagePostCode200Response.SealedResponseBody](../../../paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md#sealedresponsebody) body, + [SuccessWithJsonApiResponseHeadersSchema.SuccessWithJsonApiResponseHeadersSchemaMap](../../../components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.md#successwithjsonapiresponseheadersschemamap) headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md new file mode 100644 index 00000000000..a6c84397204 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md @@ -0,0 +1,40 @@ +# PetpetiduploadimagePostSecurityInfo +PetpetiduploadimagePostSecurityInfo.java + +public class PetpetiduploadimagePostSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetpetiduploadimagePostSecurityInfo.PetpetiduploadimagePostSecurityInfo1](#petpetiduploadimagepostsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [PetpetiduploadimagePostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## PetpetiduploadimagePostSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetpetiduploadimagePostSecurityRequirementObject0](../../../paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md) | security0 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..55e4e5cb238 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedNumber](#schema01boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedNumber +public record Schema01BoxedNumber
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends Int64JsonSchema.Int64JsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int64JsonSchema.Int64JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md new file mode 100644 index 00000000000..fc5b38bda26 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -0,0 +1,190 @@ +# MultipartformdataSchema +public class MultipartformdataSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [MultipartformdataSchema.MultipartformdataSchema1Boxed](#multipartformdataschema1boxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchema1](#multipartformdataschema1)
schema class | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder)
builder for Map payloads | +| static class | [MultipartformdataSchema.MultipartformdataSchemaMap](#multipartformdataschemamap)
output class for Map payloads | +| sealed interface | [MultipartformdataSchema.MultipartformdataFileBoxed](#multipartformdatafileboxed)
sealed interface for validated payloads | +| static class | [MultipartformdataSchema.MultipartformdataFile](#multipartformdatafile)
schema class | +| sealed interface | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed)
sealed interface for validated payloads | +| record | [MultipartformdataSchema.MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring)
boxed class to store validated String payloads | +| static class | [MultipartformdataSchema.MultipartformdataAdditionalMetadata](#multipartformdataadditionalmetadata)
schema class | + +## MultipartformdataSchema1Boxed +public sealed interface MultipartformdataSchema1Boxed
+permits
+[MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataSchema1BoxedMap +public record MultipartformdataSchema1BoxedMap
+implements [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchema1BoxedMap([MultipartformdataSchemaMap](#multipartformdataschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataSchema1 +public static class MultipartformdataSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = + MultipartformdataSchema.MultipartformdataSchema1.validate( + new MultipartformdataSchema.MultipartformdataSchemaMapBuilder() + .additionalMetadata("a") + + .file("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("additionalMetadata", [MultipartformdataAdditionalMetadata.class](#multipartformdataadditionalmetadata))),
    new PropertyEntry("file", [MultipartformdataFile.class](#multipartformdatafile)))
)
| + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [MultipartformdataSchemaMap](#multipartformdataschemamap) | validate([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1BoxedMap](#multipartformdataschema1boxedmap) | validateAndBox([Map<?, ?>](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| [MultipartformdataSchema1Boxed](#multipartformdataschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## MultipartformdataSchemaMapBuilder +public class MultipartformdataSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalMetadata(String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | file(String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Void value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, boolean value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, String value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, int value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, float value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, long value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, double value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, List value) | +| [MultipartformdataSchemaMapBuilder](#multipartformdataschemamapbuilder) | additionalProperty(String key, Map value) | + +## MultipartformdataSchemaMap +public static class MultipartformdataSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [MultipartformdataSchemaMap](#multipartformdataschemamap) | of([Map](#multipartformdataschemamapbuilder) arg, SchemaConfiguration configuration) | +| String | additionalMetadata()
[optional] | +| String | file()
[optional] | +| @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | + +## MultipartformdataFileBoxed +public sealed interface MultipartformdataFileBoxed
+permits
+ +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataFile +public static class MultipartformdataFile
+extends JsonSchema + +A schema class that validates payloads + +## Description +file to upload + +## MultipartformdataAdditionalMetadataBoxed +public sealed interface MultipartformdataAdditionalMetadataBoxed
+permits
+[MultipartformdataAdditionalMetadataBoxedString](#multipartformdataadditionalmetadataboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## MultipartformdataAdditionalMetadataBoxedString +public record MultipartformdataAdditionalMetadataBoxedString
+implements [MultipartformdataAdditionalMetadataBoxed](#multipartformdataadditionalmetadataboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| MultipartformdataAdditionalMetadataBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## MultipartformdataAdditionalMetadata +public static class MultipartformdataAdditionalMetadata
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +## Description +Additional data to pass to server + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md new file mode 100644 index 00000000000..0be7cd47d32 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.md @@ -0,0 +1,17 @@ +# PetpetiduploadimagePostCode200Response + +public class PetpetiduploadimagePostCode200Response extends [SuccessWithJsonApiResponse](../../components/responses/SuccessWithJsonApiResponse.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetpetiduploadimagePostCode200Response.PetpetiduploadimagePostCode200Response1](#petpetiduploadimagepostcode200response1)
class that deserializes responses | + +## PetpetiduploadimagePostCode200Response1 +public static class PetpetiduploadimagePostCode200Response1 extends [SuccessWithJsonApiResponse1](../../components/responses/SuccessWithJsonApiResponse.md#successwithjsonapiresponse1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md new file mode 100644 index 00000000000..adb3502a449 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# PetpetiduploadimagePostSecurityRequirementObject0 +PetpetiduploadimagePostSecurityRequirementObject0.java + +public class PetpetiduploadimagePostSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetpetiduploadimagePostSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md),
        List.of("write:pets", "read:pets")
    )) | diff --git a/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md new file mode 100644 index 00000000000..3d689bca199 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/solidus/SolidusGet.md @@ -0,0 +1,142 @@ +# SolidusGet + +public class SolidusGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [SlashRouteOperation](#slashrouteoperation)
The interface that has a slashRoute method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.solidus.SolidusGet; +import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +SolidusGet.Get apiClient = new SolidusGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new SolidusGet.GetRequestBuilder().build(); + +SolidusGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +SolidusGetResponses.EndpointSolidusGetCode200Response castResponse = (SolidusGetResponses.EndpointSolidusGetCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## SlashRouteOperation +public interface SlashRouteOperation
+ +an interface that allows one to call the endpoint using a method named slashRoute by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [SolidusGetResponses.EndpointResponse](../../paths/solidus/get/SolidusGetResponses.md#endpointresponse) | slashRoute([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md b/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md new file mode 100644 index 00000000000..70dc55d02a0 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/solidus/get/SolidusGetResponses.md @@ -0,0 +1,29 @@ +# SolidusGetResponses + +public class SolidusGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointSolidusGetCode200Response](#endpointsolidusgetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointSolidusGetCode200Response](#endpointsolidusgetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointSolidusGetCode200Response +public record EndpointSolidusGetCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/solidus/get/responses/SolidusGetCode200Response.md b/samples/client/petstore/java/docs/paths/solidus/get/responses/SolidusGetCode200Response.md new file mode 100644 index 00000000000..e00fe1ece0e --- /dev/null +++ b/samples/client/petstore/java/docs/paths/solidus/get/responses/SolidusGetCode200Response.md @@ -0,0 +1,17 @@ +# SolidusGetCode200Response + +public class SolidusGetCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [SolidusGetCode200Response.SolidusGetCode200Response1](#solidusgetcode200response1)
class that deserializes responses | + +## SolidusGetCode200Response1 +public static class SolidusGetCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md new file mode 100644 index 00000000000..3ae46788229 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeinventory/StoreinventoryGet.md @@ -0,0 +1,158 @@ +# StoreinventoryGet + +public class StoreinventoryGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [GetInventoryOperation](#getinventoryoperation)
The interface that has a getInventory method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; +import org.openapijsonschematools.client.paths.storeinventory.get.responses.StoreinventoryGetCode200Response; +import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.storeinventory.StoreinventoryGet; +import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +List securitySchemes = new ArrayList(); +securitySchemes.add( + new ApiKey("someApiKey"); +); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .storeinventoryGetSecurityRequirementObject0SecurityIndex(StoreinventoryGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + securitySchemes, + securityIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +StoreinventoryGet.Get apiClient = new StoreinventoryGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new StoreinventoryGet.GetRequestBuilder().build(); + +StoreinventoryGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +StoreinventoryGetResponses.EndpointStoreinventoryGetCode200Response castResponse = (StoreinventoryGetResponses.EndpointStoreinventoryGetCode200Response) response; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## GetInventoryOperation +public interface GetInventoryOperation
+ +an interface that allows one to call the endpoint using a method named getInventory by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreinventoryGetResponses.EndpointResponse](../../paths/storeinventory/get/StoreinventoryGetResponses.md#endpointresponse) | getInventory([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| [StoreinventoryGetSecurityInfo.@Nullable SecurityIndex](../../paths/storeinventory/get/StoreinventoryGetSecurityInfo.md#securityindex) | securityIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | securityIndex([StoreinventoryGetSecurityInfo.SecurityIndex](../../paths/storeinventory/get/StoreinventoryGetSecurityInfo.md#securityindex) securityIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md new file mode 100644 index 00000000000..9f064be5958 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetResponses.md @@ -0,0 +1,29 @@ +# StoreinventoryGetResponses + +public class StoreinventoryGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointStoreinventoryGetCode200Response](#endpointstoreinventorygetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointStoreinventoryGetCode200Response](#endpointstoreinventorygetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointStoreinventoryGetCode200Response +public record EndpointStoreinventoryGetCode200Response( + HttpResponse response, + [StoreinventoryGetCode200Response.SealedResponseBody](../../../paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md#sealedresponsebody) body, + [SuccessInlineContentAndHeaderHeadersSchema.SuccessInlineContentAndHeaderHeadersSchemaMap](../../../components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.md#successinlinecontentandheaderheadersschemamap) headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md new file mode 100644 index 00000000000..2f5f07f0f26 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md @@ -0,0 +1,40 @@ +# StoreinventoryGetSecurityInfo +StoreinventoryGetSecurityInfo.java + +public class StoreinventoryGetSecurityInfo + +A class that provides a security requirement object, and any needed security info classes +- a class that is a SecurityRequirementObjectProvider +- an enum class that describes security index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [StoreinventoryGetSecurityInfo.StoreinventoryGetSecurityInfo1](#storeinventorygetsecurityinfo1)
SecurityRequirementObjectProvider +| enum | [StoreinventoryGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index | + +## StoreinventoryGetSecurityInfo1 +implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)> + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreinventoryGetSecurityInfo1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [StoreinventoryGetSecurityRequirementObject0](../../../paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md) | security0 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used | + +## SecurityIndex +enum SecurityIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SECURITY_0
security 0 | diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md b/samples/client/petstore/java/docs/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md new file mode 100644 index 00000000000..969b8dc35f3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.md @@ -0,0 +1,17 @@ +# StoreinventoryGetCode200Response + +public class StoreinventoryGetCode200Response extends [SuccessInlineContentAndHeader](../../components/responses/SuccessInlineContentAndHeader.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [StoreinventoryGetCode200Response.StoreinventoryGetCode200Response1](#storeinventorygetcode200response1)
class that deserializes responses | + +## StoreinventoryGetCode200Response1 +public static class StoreinventoryGetCode200Response1 extends [SuccessInlineContentAndHeader1](../../components/responses/SuccessInlineContentAndHeader.md#successinlinecontentandheader1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md new file mode 100644 index 00000000000..d979d8cb08c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md @@ -0,0 +1,15 @@ +# StoreinventoryGetSecurityRequirementObject0 +StoreinventoryGetSecurityRequirementObject0.java + +public class StoreinventoryGetSecurityRequirementObject0 +extends SecurityRequirementObject + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreinventoryGetSecurityRequirementObject0()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map, List> | securitySchemeToScopes = Map.ofEntries(
    new AbstractMap.SimpleEntry, List>(
        [ApiKey.class](../../../../components/securityschemes/ApiKey.md),
        List.of()
    )) | diff --git a/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md new file mode 100644 index 00000000000..220d4837c94 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/StoreorderPost.md @@ -0,0 +1,206 @@ +# StoreorderPost + +public class StoreorderPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [PlaceOrderOperation](#placeorderoperation)
The interface that has a placeOrder method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; +import org.openapijsonschematools.client.components.schemas.Order; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode200Response; +import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode400Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.storeorder.StoreorderPost; +import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +StoreorderPost.Post apiClient = new StoreorderPost.Post(apiConfiguration, schemaConfiguration); + + +Order1BoxedMap requestBodyPayload = + Order.Order1.validateAndBox( + new Order.OrderMapBuilder() + .id(1L) + + .petId(1L) + + .quantity(1) + + .shipDate("1970-01-01T00:00:00.00Z") + + .status("placed") + + .complete(true) + + .build(), + schemaConfiguration +); +StoreorderPost.SealedRequestBody requestBody = new StoreorderPost.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new StoreorderPost.PostRequestBuilder() + .requestBody(requestBody) + .build(); + +StoreorderPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (StoreorderPostCode400Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +StoreorderPostResponses.EndpointStoreorderPostCode200Response castResponse = (StoreorderPostResponses.EndpointStoreorderPostCode200Response) response; +if (castResponse.body instanceof StoreorderPostCode200Response.ApplicationxmlResponseBody deserializedBody) { + // handle deserialized body here +} else { + StoreorderPostCode200Response.ApplicationjsonResponseBody deserializedBody = (StoreorderPostCode200Response.ApplicationjsonResponseBody) castResponse.body; + // handle deserialized body here +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## PlaceOrderOperation +public interface PlaceOrderOperation
+ +an interface that allows one to call the endpoint using a method named placeOrder by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreorderPostResponses.EndpointResponse](../../paths/storeorder/post/StoreorderPostResponses.md#endpointresponse) | placeOrder([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [StoreorderPostRequestBody.SealedRequestBody](../../paths/storeorder/post/StoreorderPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [StoreorderPostRequestBody.@Nullable SealedRequestBody](../../paths/storeorder/post/StoreorderPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([StoreorderPostRequestBody.SealedRequestBody](../../paths/storeorder/post/StoreorderPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostRequestBody.md b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostRequestBody.md new file mode 100644 index 00000000000..84b67ae8225 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostRequestBody.md @@ -0,0 +1,90 @@ +# StoreorderPostRequestBody + +public class StoreorderPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [StoreorderPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [StoreorderPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [StoreorderPostRequestBody.StoreorderPostRequestBody1](#storeorderpostrequestbody1)
class that serializes request bodies | +| sealed interface | [StoreorderPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [StoreorderPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## StoreorderPostRequestBody1 +public static class StoreorderPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = true
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[Order1Boxed](../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[Order1Boxed](../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md new file mode 100644 index 00000000000..48c83e88df4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/StoreorderPostResponses.md @@ -0,0 +1,29 @@ +# StoreorderPostResponses + +public class StoreorderPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointStoreorderPostCode200Response](#endpointstoreorderpostcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointStoreorderPostCode200Response](#endpointstoreorderpostcode200response) + +a sealed interface that stores endpoint responses + +## EndpointStoreorderPostCode200Response +public record EndpointStoreorderPostCode200Response( + HttpResponse response, + [StoreorderPostCode200Response.SealedResponseBody](../../../paths/storeorder/post/responses/StoreorderPostCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..25524457185 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Order1](../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Order.Order1](../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md new file mode 100644 index 00000000000..0f5af758ef6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode200Response.md @@ -0,0 +1,123 @@ +# StoreorderPostCode200Response + +public class StoreorderPostCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [StoreorderPostCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [StoreorderPostCode200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | +| record | [StoreorderPostCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [StoreorderPostCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [StoreorderPostCode200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | +| record | [StoreorderPostCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [StoreorderPostCode200Response.StoreorderPostCode200Response1](#storeorderpostcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxmlMediaType](#applicationxmlmediatype), +[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationxmlMediaType +public record ApplicationxmlMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationxmlResponseBody](#applicationxmlresponsebody), +[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationxmlResponseBody +public record ApplicationxmlResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/xml" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlResponseBody(ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | + +## StoreorderPostCode200Response1 +public static class StoreorderPostCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderPostCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode400Response.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode400Response.md new file mode 100644 index 00000000000..d108179be92 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/StoreorderPostCode400Response.md @@ -0,0 +1,32 @@ +# StoreorderPostCode400Response + +public class StoreorderPostCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [StoreorderPostCode400Response.StoreorderPostCode400Response1](#storeorderpostcode400response1)
class that deserializes responses | + +## StoreorderPostCode400Response1 +public static class StoreorderPostCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderPostCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..e069f9c21c8 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Order1](../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..751649039e1 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [Order1](../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md new file mode 100644 index 00000000000..b28370c9e63 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidDelete.md @@ -0,0 +1,188 @@ +# StoreorderorderidDelete + +public class StoreorderorderidDelete + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | +| interface | [DeleteOrderOperation](#deleteorderoperation)
The interface that has a deleteOrder method to call the endpoint | +| static class | [DeleteRequest](#deleterequest)
The final request inputs class | +| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | +| static class | [Delete0RequestBuilder](#delete0requestbuilder)
A builder for the request input class | +| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | + +## Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
+ +a class that allows one to call the endpoint using a method named delete + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode400Response; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidDelete; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +StoreorderorderidDelete.Delete apiClient = new StoreorderorderidDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +StoreorderorderidDeletePathParameters.PathParametersMap pathParameters = + StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( + new StoreorderorderidDeletePathParameters.PathParametersMapBuilder() + .order_id("a") + + .build(), + schemaConfiguration +); + +var request = new StoreorderorderidDelete.DeleteRequestBuilder() + .pathParameters(pathParameters) + .build(); + +Void response; +try { + response = apiClient.delete(request); +} catch (StoreorderorderidDeleteCode400Response.ResponseApiException | StoreorderorderidDeleteCode404Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | delete([DeleteRequest](#deleterequest) request) | + +## DeleteOrderOperation +public interface DeleteOrderOperation
+ +an interface that allows one to call the endpoint using a method named deleteOrder by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | deleteOrder([DeleteRequest](#deleterequest) request) | + +## DeleteRequest +public static class DeleteRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [StoreorderorderidDeletePathParameters.PathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## DeleteNullableRequest +public static class DeleteNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [StoreorderorderidDeletePathParameters.@Nullable PathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Delete0RequestBuilder +public static class Delete0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete0RequestBuilder(Delete0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## DeleteRequestBuilder +public static class DeleteRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([StoreorderorderidDeletePathParametersPathParametersMap](../../paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md new file mode 100644 index 00000000000..2605c3ef410 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/StoreorderorderidGet.md @@ -0,0 +1,196 @@ +# StoreorderorderidGet + +public class StoreorderorderidGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [GetOrderByIdOperation](#getorderbyidoperation)
The interface that has a getOrderById method to call the endpoint | +| static class | [GetRequest](#getrequest)
The final request inputs class | +| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | +| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode200Response; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode400Response; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.storeorderorderid.StoreorderorderidGet; +import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +StoreorderorderidGet.Get apiClient = new StoreorderorderidGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +StoreorderorderidGetPathParameters.PathParametersMap pathParameters = + StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( + new StoreorderorderidGetPathParameters.PathParametersMapBuilder() + .order_id(1L) + + .build(), + schemaConfiguration +); + +var request = new StoreorderorderidGet.GetRequestBuilder() + .pathParameters(pathParameters) + .build(); + +StoreorderorderidGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (StoreorderorderidGetCode400Response.ResponseApiException | StoreorderorderidGetCode404Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +StoreorderorderidGetResponses.EndpointStoreorderorderidGetCode200Response castResponse = (StoreorderorderidGetResponses.EndpointStoreorderorderidGetCode200Response) response; +if (castResponse.body instanceof StoreorderorderidGetCode200Response.ApplicationxmlResponseBody deserializedBody) { + // handle deserialized body here +} else { + StoreorderorderidGetCode200Response.ApplicationjsonResponseBody deserializedBody = (StoreorderorderidGetCode200Response.ApplicationjsonResponseBody) castResponse.body; + // handle deserialized body here +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## GetOrderByIdOperation +public interface GetOrderByIdOperation
+ +an interface that allows one to call the endpoint using a method named getOrderById by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [StoreorderorderidGetResponses.EndpointResponse](../../paths/storeorderorderid/get/StoreorderorderidGetResponses.md#endpointresponse) | getOrderById([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [StoreorderorderidGetPathParameters.PathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetNullableRequest +public static class GetNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [StoreorderorderidGetPathParameters.@Nullable PathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Get0RequestBuilder +public static class Get0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([StoreorderorderidGetPathParametersPathParametersMap](../../paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md new file mode 100644 index 00000000000..9add70eca1d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.md @@ -0,0 +1,268 @@ +# StoreorderorderidDeletePathParameters +public class StoreorderorderidDeletePathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed)
sealed interface for validated payloads | +| record | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1](#storeorderorderiddeletepathparameters1)
schema class | +| static class | [StoreorderorderidDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [StoreorderorderidDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [StoreorderorderidDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [StoreorderorderidDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## StoreorderorderidDeletePathParameters1Boxed +public sealed interface StoreorderorderidDeletePathParameters1Boxed
+permits
+[StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## StoreorderorderidDeletePathParameters1BoxedMap +public record StoreorderorderidDeletePathParameters1BoxedMap
+implements [StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## StoreorderorderidDeletePathParameters1 +public static class StoreorderorderidDeletePathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +StoreorderorderidDeletePathParameters.PathParametersMap validatedPayload = + StoreorderorderidDeletePathParameters.StoreorderorderidDeletePathParameters1.validate( + new StoreorderorderidDeletePathParameters.PathParametersMapBuilder() + .order_id("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("order_id", [Schema0.Schema01.class](../../../paths/storeorderorderid/delete/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "order_id"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidDeletePathParameters1BoxedMap](#storeorderorderiddeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidDeletePathParameters1Boxed](#storeorderorderiddeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(String value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | order_id()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md new file mode 100644 index 00000000000..e4447a09189 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.md @@ -0,0 +1,10 @@ +# StoreorderorderidDeleteResponses + +public class StoreorderorderidDeleteResponses + +A class that contains necessary responses classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | + diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.md new file mode 100644 index 00000000000..75463df967c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.md @@ -0,0 +1,32 @@ +# StoreorderorderidDeleteCode400Response + +public class StoreorderorderidDeleteCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [StoreorderorderidDeleteCode400Response.StoreorderorderidDeleteCode400Response1](#storeorderorderiddeletecode400response1)
class that deserializes responses | + +## StoreorderorderidDeleteCode400Response1 +public static class StoreorderorderidDeleteCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeleteCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.md new file mode 100644 index 00000000000..2f0b5d4407c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.md @@ -0,0 +1,32 @@ +# StoreorderorderidDeleteCode404Response + +public class StoreorderorderidDeleteCode404Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [StoreorderorderidDeleteCode404Response.StoreorderorderidDeleteCode404Response1](#storeorderorderiddeletecode404response1)
class that deserializes responses | + +## StoreorderorderidDeleteCode404Response1 +public static class StoreorderorderidDeleteCode404Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidDeleteCode404Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md new file mode 100644 index 00000000000..e5c288385e7 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.md @@ -0,0 +1,271 @@ +# StoreorderorderidGetPathParameters +public class StoreorderorderidGetPathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed)
sealed interface for validated payloads | +| record | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1](#storeorderorderidgetpathparameters1)
schema class | +| static class | [StoreorderorderidGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [StoreorderorderidGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [StoreorderorderidGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [StoreorderorderidGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## StoreorderorderidGetPathParameters1Boxed +public sealed interface StoreorderorderidGetPathParameters1Boxed
+permits
+[StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## StoreorderorderidGetPathParameters1BoxedMap +public record StoreorderorderidGetPathParameters1BoxedMap
+implements [StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## StoreorderorderidGetPathParameters1 +public static class StoreorderorderidGetPathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +StoreorderorderidGetPathParameters.PathParametersMap validatedPayload = + StoreorderorderidGetPathParameters.StoreorderorderidGetPathParameters1.validate( + new StoreorderorderidGetPathParameters.PathParametersMapBuilder() + .order_id(1L) + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("order_id", [Schema0.Schema01.class](../../../paths/storeorderorderid/get/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "order_id"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidGetPathParameters1BoxedMap](#storeorderorderidgetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [StoreorderorderidGetPathParameters1Boxed](#storeorderorderidgetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(int value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(float value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(long value) | +| [PathParametersMap0Builder](#pathparametersmap0builder) | order_id(double value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| Number | order_id()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md new file mode 100644 index 00000000000..307f363c7c5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/StoreorderorderidGetResponses.md @@ -0,0 +1,29 @@ +# StoreorderorderidGetResponses + +public class StoreorderorderidGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointStoreorderorderidGetCode200Response](#endpointstoreorderorderidgetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointStoreorderorderidGetCode200Response](#endpointstoreorderorderidgetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointStoreorderorderidGetCode200Response +public record EndpointStoreorderorderidGetCode200Response( + HttpResponse response, + [StoreorderorderidGetCode200Response.SealedResponseBody](../../../paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..d6ff718bbf9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md @@ -0,0 +1,83 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedNumber](#schema01boxednumber)
boxed class to store validated Number payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedNumber](#schema01boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedNumber +public record Schema01BoxedNumber
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.storeorderorderid.get.parameters.parameter0.Schema0; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// long validation +long validatedPayload = Schema0.Schema01.validate( + 1L, + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    Integer.class,
    Long.class,
    Float.class,
    Double.class
)
| +| String | type = "int64"; | +| Number | maximum = 5 | +| Number | minimum = 1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| long | validate(long arg, SchemaConfiguration configuration) | +| [Schema01BoxedNumber](#schema01boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) | +| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md new file mode 100644 index 00000000000..fe8b3a5b61d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.md @@ -0,0 +1,123 @@ +# StoreorderorderidGetCode200Response + +public class StoreorderorderidGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [StoreorderorderidGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [StoreorderorderidGetCode200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | +| record | [StoreorderorderidGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [StoreorderorderidGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [StoreorderorderidGetCode200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | +| record | [StoreorderorderidGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [StoreorderorderidGetCode200Response.StoreorderorderidGetCode200Response1](#storeorderorderidgetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxmlMediaType](#applicationxmlmediatype), +[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationxmlMediaType +public record ApplicationxmlMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationxmlResponseBody](#applicationxmlresponsebody), +[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationxmlResponseBody +public record ApplicationxmlResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/xml" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlResponseBody(ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | + +## StoreorderorderidGetCode200Response1 +public static class StoreorderorderidGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.md new file mode 100644 index 00000000000..9abfdee4f94 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.md @@ -0,0 +1,32 @@ +# StoreorderorderidGetCode400Response + +public class StoreorderorderidGetCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [StoreorderorderidGetCode400Response.StoreorderorderidGetCode400Response1](#storeorderorderidgetcode400response1)
class that deserializes responses | + +## StoreorderorderidGetCode400Response1 +public static class StoreorderorderidGetCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.md new file mode 100644 index 00000000000..65dd947e134 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.md @@ -0,0 +1,32 @@ +# StoreorderorderidGetCode404Response + +public class StoreorderorderidGetCode404Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [StoreorderorderidGetCode404Response.StoreorderorderidGetCode404Response1](#storeorderorderidgetcode404response1)
class that deserializes responses | + +## StoreorderorderidGetCode404Response1 +public static class StoreorderorderidGetCode404Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| StoreorderorderidGetCode404Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..e069f9c21c8 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [Order1](../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..751649039e1 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [Order1](../../../../../../../components/schemas/Order.md#order) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/user/UserPost.md b/samples/client/petstore/java/docs/paths/user/UserPost.md new file mode 100644 index 00000000000..956ce5f8ba3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/user/UserPost.md @@ -0,0 +1,202 @@ +# UserPost + +public class UserPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [CreateUserOperation](#createuseroperation)
The interface that has a createUser method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; +import org.openapijsonschematools.client.components.schemas.User; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.user.post.responses.UserPostCodedefaultResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.user.UserPost; +import org.openapijsonschematools.client.paths.user.post.UserPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UserPost.Post apiClient = new UserPost.Post(apiConfiguration, schemaConfiguration); + + +User1BoxedMap requestBodyPayload = + User.User1.validateAndBox( + new User.UserMapBuilder() + .id(1L) + + .username("a") + + .firstName("a") + + .lastName("a") + + .email("a") + + .password("a") + + .phone("a") + + .userStatus(1) + + .objectWithNoDeclaredPropsNullable(null) + + .build(), + schemaConfiguration +); +UserPost.SealedRequestBody requestBody = new UserPost.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new UserPost.PostRequestBuilder() + .requestBody(requestBody) + .build(); + +UserPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +UserPostResponses.EndpointUserPostCodedefaultResponse castResponse = (UserPostResponses.EndpointUserPostCodedefaultResponse) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## CreateUserOperation +public interface CreateUserOperation
+ +an interface that allows one to call the endpoint using a method named createUser by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserPostResponses.EndpointResponse](../../paths/user/post/UserPostResponses.md#endpointresponse) | createUser([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UserPostRequestBody.SealedRequestBody](../../paths/user/post/UserPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UserPostRequestBody.@Nullable SealedRequestBody](../../paths/user/post/UserPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([UserPostRequestBody.SealedRequestBody](../../paths/user/post/UserPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/user/post/UserPostRequestBody.md b/samples/client/petstore/java/docs/paths/user/post/UserPostRequestBody.md new file mode 100644 index 00000000000..9d8ea2c758c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/user/post/UserPostRequestBody.md @@ -0,0 +1,90 @@ +# UserPostRequestBody + +public class UserPostRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [UserPostRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [UserPostRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [UserPostRequestBody.UserPostRequestBody1](#userpostrequestbody1)
class that serializes request bodies | +| sealed interface | [UserPostRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [UserPostRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## UserPostRequestBody1 +public static class UserPostRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserPostRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = true
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md b/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md new file mode 100644 index 00000000000..50ad602e72f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/user/post/UserPostResponses.md @@ -0,0 +1,29 @@ +# UserPostResponses + +public class UserPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointUserPostCodedefaultResponse](#endpointuserpostcodedefaultresponse)
the response for default | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointUserPostCodedefaultResponse](#endpointuserpostcodedefaultresponse) + +a sealed interface that stores endpoint responses + +## EndpointUserPostCodedefaultResponse +public record EndpointUserPostCodedefaultResponse( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..87ec51870cc --- /dev/null +++ b/samples/client/petstore/java/docs/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [User1](../../../../../../components/schemas/User.md#user) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [User.User1](../../../../../../components/schemas/User.md#user1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/user/post/responses/UserPostCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/user/post/responses/UserPostCodedefaultResponse.md new file mode 100644 index 00000000000..54d8a2d8398 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/user/post/responses/UserPostCodedefaultResponse.md @@ -0,0 +1,32 @@ +# UserPostCodedefaultResponse + +public class UserPostCodedefaultResponse + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UserPostCodedefaultResponse.UserPostCodedefaultResponse1](#userpostcodedefaultresponse1)
class that deserializes responses | + +## UserPostCodedefaultResponse1 +public static class UserPostCodedefaultResponse1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserPostCodedefaultResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md new file mode 100644 index 00000000000..d9c648dfa57 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/UsercreatewitharrayPost.md @@ -0,0 +1,224 @@ +# UsercreatewitharrayPost + +public class UsercreatewitharrayPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [CreateUsersWithArrayInputOperation](#createuserswitharrayinputoperation)
The interface that has a createUsersWithArrayInput method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; +import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.UsercreatewitharrayPostCodedefaultResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.usercreatewitharray.UsercreatewitharrayPost; +import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UsercreatewitharrayPost.Post apiClient = new UsercreatewitharrayPost.Post(apiConfiguration, schemaConfiguration); + + +ApplicationjsonSchema1BoxedList requestBodyPayload = + ApplicationjsonSchema.ApplicationjsonSchema1.validateAndBox( + new ApplicationjsonSchema.ApplicationjsonSchemaListBuilder() + .add( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "id", + 1L + ), + new AbstractMap.SimpleEntry( + "username", + "a" + ), + new AbstractMap.SimpleEntry( + "firstName", + "a" + ), + new AbstractMap.SimpleEntry( + "lastName", + "a" + ), + new AbstractMap.SimpleEntry( + "email", + "a" + ), + new AbstractMap.SimpleEntry( + "password", + "a" + ), + new AbstractMap.SimpleEntry( + "phone", + "a" + ), + new AbstractMap.SimpleEntry( + "userStatus", + 1 + ), + new AbstractMap.SimpleEntry( + "objectWithNoDeclaredPropsNullable", + null + ) + ) + ) + .build(), + schemaConfiguration +); +UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody = new UsercreatewitharrayPostRequestBody.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new UsercreatewitharrayPost.PostRequestBuilder() + .requestBody(requestBody) + .build(); + +UsercreatewitharrayPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultResponse castResponse = (UsercreatewitharrayPostResponses.EndpointUsercreatewitharrayPostCodedefaultResponse) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## CreateUsersWithArrayInputOperation +public interface CreateUsersWithArrayInputOperation
+ +an interface that allows one to call the endpoint using a method named createUsersWithArrayInput by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UsercreatewitharrayPostResponses.EndpointResponse](../../paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md#endpointresponse) | createUsersWithArrayInput([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UsercreatewitharrayPostRequestBody.SealedRequestBody](../../paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UsercreatewitharrayPostRequestBody.@Nullable SealedRequestBody](../../paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([UsercreatewitharrayPostRequestBody.SealedRequestBody](../../paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md new file mode 100644 index 00000000000..b96ec049cfe --- /dev/null +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.md @@ -0,0 +1,17 @@ +# UsercreatewitharrayPostRequestBody + +public class UsercreatewitharrayPostRequestBody extends [UserArray](../../../components/requestbodies/UserArray.md) + +A class (extended from the $ref class) that contains necessary nested request body classes +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UsercreatewitharrayPostRequestBody.UsercreatewitharrayPostRequestBody1](#usercreatewitharraypostrequestbody1)
class that serializes request bodies | + +## UsercreatewitharrayPostRequestBody1 +public static class UsercreatewitharrayPostRequestBody1 extends [UserArray1](../../../components/requestbodies/UserArray.md#userarray1)
+ +a class that serializes SealedRequestBody request bodies, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md new file mode 100644 index 00000000000..c50e9f127c5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.md @@ -0,0 +1,29 @@ +# UsercreatewitharrayPostResponses + +public class UsercreatewitharrayPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointUsercreatewitharrayPostCodedefaultResponse](#endpointusercreatewitharraypostcodedefaultresponse)
the response for default | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointUsercreatewitharrayPostCodedefaultResponse](#endpointusercreatewitharraypostcodedefaultresponse) + +a sealed interface that stores endpoint responses + +## EndpointUsercreatewitharrayPostCodedefaultResponse +public record EndpointUsercreatewitharrayPostCodedefaultResponse( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.md new file mode 100644 index 00000000000..163464d78b5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.md @@ -0,0 +1,32 @@ +# UsercreatewitharrayPostCodedefaultResponse + +public class UsercreatewitharrayPostCodedefaultResponse + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UsercreatewitharrayPostCodedefaultResponse.UsercreatewitharrayPostCodedefaultResponse1](#usercreatewitharraypostcodedefaultresponse1)
class that deserializes responses | + +## UsercreatewitharrayPostCodedefaultResponse1 +public static class UsercreatewitharrayPostCodedefaultResponse1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UsercreatewitharrayPostCodedefaultResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md new file mode 100644 index 00000000000..856224740e5 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/UsercreatewithlistPost.md @@ -0,0 +1,224 @@ +# UsercreatewithlistPost + +public class UsercreatewithlistPost + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Post](#post)
The class that has a post method to call the endpoint | +| interface | [CreateUsersWithListInputOperation](#createuserswithlistinputoperation)
The interface that has a createUsersWithListInput method to call the endpoint | +| static class | [PostRequest](#postrequest)
The final request inputs class | +| static class | [PostNullableRequest](#postnullablerequest)
The initial request inputs class | +| static class | [Post0RequestBuilder](#post0requestbuilder)
A builder for the request input class | +| static class | [PostRequestBuilder](#postrequestbuilder)
A builder for the request input class | + +## Post +public static class Post extends ApiClient.ApiClient1 implements PostOperation
+ +a class that allows one to call the endpoint using a method named post + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; +import org.openapijsonschematools.client.components.requestbodies.userarray.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.UsercreatewithlistPostCodedefaultResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.usercreatewithlist.UsercreatewithlistPost; +import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UsercreatewithlistPost.Post apiClient = new UsercreatewithlistPost.Post(apiConfiguration, schemaConfiguration); + + +ApplicationjsonSchema1BoxedList requestBodyPayload = + ApplicationjsonSchema.ApplicationjsonSchema1.validateAndBox( + new ApplicationjsonSchema.ApplicationjsonSchemaListBuilder() + .add( + MapUtils.makeMap( + new AbstractMap.SimpleEntry( + "id", + 1L + ), + new AbstractMap.SimpleEntry( + "username", + "a" + ), + new AbstractMap.SimpleEntry( + "firstName", + "a" + ), + new AbstractMap.SimpleEntry( + "lastName", + "a" + ), + new AbstractMap.SimpleEntry( + "email", + "a" + ), + new AbstractMap.SimpleEntry( + "password", + "a" + ), + new AbstractMap.SimpleEntry( + "phone", + "a" + ), + new AbstractMap.SimpleEntry( + "userStatus", + 1 + ), + new AbstractMap.SimpleEntry( + "objectWithNoDeclaredPropsNullable", + null + ) + ) + ) + .build(), + schemaConfiguration +); +UsercreatewithlistPostRequestBody.SealedRequestBody requestBody = new UsercreatewithlistPostRequestBody.ApplicationjsonRequestBody(requestBodyPayload); + +var request = new UsercreatewithlistPost.PostRequestBuilder() + .requestBody(requestBody) + .build(); + +UsercreatewithlistPostResponses.EndpointResponse response; +try { + response = apiClient.post(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +UsercreatewithlistPostResponses.EndpointUsercreatewithlistPostCodedefaultResponse castResponse = (UsercreatewithlistPostResponses.EndpointUsercreatewithlistPostCodedefaultResponse) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | post([PostRequest](#postrequest) request) | + +## CreateUsersWithListInputOperation +public interface CreateUsersWithListInputOperation
+ +an interface that allows one to call the endpoint using a method named createUsersWithListInput by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UsercreatewithlistPostResponses.EndpointResponse](../../paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md#endpointresponse) | createUsersWithListInput([PostRequest](#postrequest) request) | + +## PostRequest +public static class PostRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UsercreatewithlistPostRequestBody.SealedRequestBody](../../paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PostNullableRequest +public static class PostNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UsercreatewithlistPostRequestBody.@Nullable SealedRequestBody](../../paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md#sealedrequestbody) | requestBody | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Post0RequestBuilder +public static class Post0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Post0RequestBuilder(Post0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PostRequest](#postrequest) | build()
Returns the request input used to call an endpoint method | +| [Post0RequestBuilder](#post0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Post0RequestBuilder](#post0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## PostRequestBuilder +public static class PostRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PostRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Post0RequestBuilder](#post0requestbuilder) | requestBody([UsercreatewithlistPostRequestBody.SealedRequestBody](../../paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md new file mode 100644 index 00000000000..872f7a38709 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.md @@ -0,0 +1,17 @@ +# UsercreatewithlistPostRequestBody + +public class UsercreatewithlistPostRequestBody extends [RefUserArray](../../../components/requestbodies/RefUserArray.md) + +A class (extended from the $ref class) that contains necessary nested request body classes +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UsercreatewithlistPostRequestBody.UsercreatewithlistPostRequestBody1](#usercreatewithlistpostrequestbody1)
class that serializes request bodies | + +## UsercreatewithlistPostRequestBody1 +public static class UsercreatewithlistPostRequestBody1 extends [RefUserArray1](../../../components/requestbodies/RefUserArray.md#refuserarray1)
+ +a class that serializes SealedRequestBody request bodies, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md new file mode 100644 index 00000000000..05dc4b47005 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.md @@ -0,0 +1,29 @@ +# UsercreatewithlistPostResponses + +public class UsercreatewithlistPostResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointUsercreatewithlistPostCodedefaultResponse](#endpointusercreatewithlistpostcodedefaultresponse)
the response for default | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointUsercreatewithlistPostCodedefaultResponse](#endpointusercreatewithlistpostcodedefaultresponse) + +a sealed interface that stores endpoint responses + +## EndpointUsercreatewithlistPostCodedefaultResponse +public record EndpointUsercreatewithlistPostCodedefaultResponse( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.md new file mode 100644 index 00000000000..35bfb7ff687 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.md @@ -0,0 +1,32 @@ +# UsercreatewithlistPostCodedefaultResponse + +public class UsercreatewithlistPostCodedefaultResponse + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UsercreatewithlistPostCodedefaultResponse.UsercreatewithlistPostCodedefaultResponse1](#usercreatewithlistpostcodedefaultresponse1)
class that deserializes responses | + +## UsercreatewithlistPostCodedefaultResponse1 +public static class UsercreatewithlistPostCodedefaultResponse1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UsercreatewithlistPostCodedefaultResponse1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md new file mode 100644 index 00000000000..97e30c4cba6 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/UserloginGet.md @@ -0,0 +1,198 @@ +# UserloginGet + +public class UserloginGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [LoginUserOperation](#loginuseroperation)
The interface that has a loginUser method to call the endpoint | +| static class | [GetRequest](#getrequest)
The final request inputs class | +| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | +| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode200Response; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode400Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.userlogin.UserloginGet; +import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UserloginGet.Get apiClient = new UserloginGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +UserloginGetQueryParameters.QueryParametersMap queryParameters = + UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( + new UserloginGetQueryParameters.QueryParametersMapBuilder() + .password("a") + + .username("a") + + .build(), + schemaConfiguration +); + +var request = new UserloginGet.GetRequestBuilder() + .queryParameters(queryParameters) + .build(); + +UserloginGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (UserloginGetCode400Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +UserloginGetResponses.EndpointUserloginGetCode200Response castResponse = (UserloginGetResponses.EndpointUserloginGetCode200Response) response; +if (castResponse.body instanceof UserloginGetCode200Response.ApplicationxmlResponseBody deserializedBody) { + // handle deserialized body here +} else { + UserloginGetCode200Response.ApplicationjsonResponseBody deserializedBody = (UserloginGetCode200Response.ApplicationjsonResponseBody) castResponse.body; + // handle deserialized body here +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## LoginUserOperation +public interface LoginUserOperation
+ +an interface that allows one to call the endpoint using a method named loginUser by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetResponses.EndpointResponse](../../paths/userlogin/get/UserloginGetResponses.md#endpointresponse) | loginUser([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UserloginGetQueryParameters.QueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetNullableRequest +public static class GetNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UserloginGetQueryParameters.@Nullable QueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#queryparametersmap) | queryParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Get0RequestBuilder +public static class Get0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Get0RequestBuilder](#get0requestbuilder) | queryParameters([UserloginGetQueryParametersQueryParametersMap](../../paths/userlogin/get/UserloginGetQueryParameters.md#queryparametersmap) queryParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md new file mode 100644 index 00000000000..4dbd0a7bd89 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetQueryParameters.md @@ -0,0 +1,304 @@ +# UserloginGetQueryParameters +public class UserloginGetQueryParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [UserloginGetQueryParameters.UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed)
sealed interface for validated payloads | +| record | [UserloginGetQueryParameters.UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [UserloginGetQueryParameters.UserloginGetQueryParameters1](#userlogingetqueryparameters1)
schema class | +| static class | [UserloginGetQueryParameters.QueryParametersMapBuilder](#queryparametersmapbuilder)
builder for Map payloads | +| static class | [UserloginGetQueryParameters.QueryParametersMap](#queryparametersmap)
output class for Map payloads | +| sealed interface | [UserloginGetQueryParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UserloginGetQueryParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [UserloginGetQueryParameters.AdditionalProperties](#additionalproperties)
schema class | + +## UserloginGetQueryParameters1Boxed +public sealed interface UserloginGetQueryParameters1Boxed
+permits
+[UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## UserloginGetQueryParameters1BoxedMap +public record UserloginGetQueryParameters1BoxedMap
+implements [UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetQueryParameters1BoxedMap([QueryParametersMap](#queryparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetQueryParameters1 +public static class UserloginGetQueryParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +UserloginGetQueryParameters.QueryParametersMap validatedPayload = + UserloginGetQueryParameters.UserloginGetQueryParameters1.validate( + new UserloginGetQueryParameters.QueryParametersMapBuilder() + .password("a") + + .username("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("password", [Schema1.Schema11.class](../../../paths/userlogin/get/parameters/parameter1/Schema1.md#schema11)),
    new PropertyEntry("username", [Schema0.Schema01.class](../../../paths/userlogin/get/parameters/parameter0/Schema0.md#schema01))
)
| +| Set | required = Set.of(
    "password",
    "username"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap](#queryparametersmap) | validate([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserloginGetQueryParameters1BoxedMap](#userlogingetqueryparameters1boxedmap) | validateAndBox([Map<?, ?>](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserloginGetQueryParameters1Boxed](#userlogingetqueryparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## QueryParametersMap00Builder +public class QueryParametersMap00Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap00Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## QueryParametersMap01Builder +public class QueryParametersMap01Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap01Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | username(String value) | + +## QueryParametersMap10Builder +public class QueryParametersMap10Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMap10Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap00Builder](#queryparametersmap00builder) | password(String value) | + +## QueryParametersMapBuilder +public class QueryParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| QueryParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [QueryParametersMap01Builder](#queryparametersmap01builder) | password(String value) | +| [QueryParametersMap10Builder](#queryparametersmap10builder) | username(String value) | + +## QueryParametersMap +public static class QueryParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [QueryParametersMap](#queryparametersmap) | of([Map](#queryparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | password()
| +| String | username()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md new file mode 100644 index 00000000000..2bec55a9491 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/UserloginGetResponses.md @@ -0,0 +1,29 @@ +# UserloginGetResponses + +public class UserloginGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointUserloginGetCode200Response](#endpointuserlogingetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointUserloginGetCode200Response](#endpointuserlogingetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointUserloginGetCode200Response +public record EndpointUserloginGetCode200Response( + HttpResponse response, + [UserloginGetCode200Response.SealedResponseBody](../../../paths/userlogin/get/responses/UserloginGetCode200Response.md#sealedresponsebody) body, + [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap](../../../paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md#userlogingetcode200responseheadersschemamap) headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md new file mode 100644 index 00000000000..9ff90e0bc35 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter0/Schema0.md @@ -0,0 +1,49 @@ +# Schema0 +public class Schema0
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema0.Schema01Boxed](#schema01boxed)
sealed interface for validated payloads | +| record | [Schema0.Schema01BoxedString](#schema01boxedstring)
boxed class to store validated String payloads | +| static class | [Schema0.Schema01](#schema01)
schema class | + +## Schema01Boxed +public sealed interface Schema01Boxed
+permits
+[Schema01BoxedString](#schema01boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema01BoxedString +public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema01BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema01 +public static class Schema01
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md new file mode 100644 index 00000000000..63ec3a884fc --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/parameters/parameter1/Schema1.md @@ -0,0 +1,49 @@ +# Schema1 +public class Schema1
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Schema1.Schema11Boxed](#schema11boxed)
sealed interface for validated payloads | +| record | [Schema1.Schema11BoxedString](#schema11boxedstring)
boxed class to store validated String payloads | +| static class | [Schema1.Schema11](#schema11)
schema class | + +## Schema11Boxed +public sealed interface Schema11Boxed
+permits
+[Schema11BoxedString](#schema11boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## Schema11BoxedString +public record Schema11BoxedString
+implements [Schema11Boxed](#schema11boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema11BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Schema11 +public static class Schema11
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md new file mode 100644 index 00000000000..14b2b09ab89 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode200Response.md @@ -0,0 +1,123 @@ +# UserloginGetCode200Response + +public class UserloginGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [UserloginGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [UserloginGetCode200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | +| record | [UserloginGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [UserloginGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [UserloginGetCode200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | +| record | [UserloginGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [UserloginGetCode200Response.UserloginGetCode200Response1](#userlogingetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxmlMediaType](#applicationxmlmediatype), +[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationxmlMediaType +public record ApplicationxmlMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationxmlResponseBody](#applicationxmlresponsebody), +[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationxmlResponseBody +public record ApplicationxmlResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/xml" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlResponseBody(ApplicationxmlSchema.StringJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationxmlSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.StringJsonSchema1Boxed | body()
returns the body passed in in the constructor | + +## UserloginGetCode200Response1 +public static class UserloginGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap](../../../../paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md#userlogingetcode200responseheadersschemamap), [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap](../../../../paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md#userlogingetcode200responseheadersschemamap)> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode400Response.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode400Response.md new file mode 100644 index 00000000000..6e8fcff275c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/UserloginGetCode400Response.md @@ -0,0 +1,32 @@ +# UserloginGetCode400Response + +public class UserloginGetCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UserloginGetCode400Response.UserloginGetCode400Response1](#userlogingetcode400response1)
class that deserializes responses | + +## UserloginGetCode400Response1 +public static class UserloginGetCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md new file mode 100644 index 00000000000..e97c60a1e57 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.md @@ -0,0 +1,389 @@ +# UserloginGetCode200ResponseHeadersSchema +public class UserloginGetCode200ResponseHeadersSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchema1Boxed](#userlogingetcode200responseheadersschema1boxed)
sealed interface for validated payloads | +| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchema1BoxedMap](#userlogingetcode200responseheadersschema1boxedmap)
boxed class to store validated Map payloads | +| static class | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchema1](#userlogingetcode200responseheadersschema1)
schema class | +| static class | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMapBuilder](#userlogingetcode200responseheadersschemamapbuilder)
builder for Map payloads | +| static class | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap](#userlogingetcode200responseheadersschemamap)
output class for Map payloads | +| sealed interface | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed)
sealed interface for validated payloads | +| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedVoid](#userlogingetcode200responseadditionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedBoolean](#userlogingetcode200responseadditionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedNumber](#userlogingetcode200responseadditionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedString](#userlogingetcode200responseadditionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedList](#userlogingetcode200responseadditionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalPropertiesBoxedMap](#userlogingetcode200responseadditionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseAdditionalProperties](#userlogingetcode200responseadditionalproperties)
schema class | + +## UserloginGetCode200ResponseHeadersSchema1Boxed +public sealed interface UserloginGetCode200ResponseHeadersSchema1Boxed
+permits
+[UserloginGetCode200ResponseHeadersSchema1BoxedMap](#userlogingetcode200responseheadersschema1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## UserloginGetCode200ResponseHeadersSchema1BoxedMap +public record UserloginGetCode200ResponseHeadersSchema1BoxedMap
+implements [UserloginGetCode200ResponseHeadersSchema1Boxed](#userlogingetcode200responseheadersschema1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseHeadersSchema1BoxedMap([UserloginGetCode200ResponseHeadersSchemaMap](#userlogingetcode200responseheadersschemamap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetCode200ResponseHeadersSchemaMap](#userlogingetcode200responseheadersschemamap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetCode200ResponseHeadersSchema1 +public static class UserloginGetCode200ResponseHeadersSchema1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap validatedPayload = + UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchema1.validate( + new UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMapBuilder() + .xHyphenMinusRateHyphenMinusLimit(1) + + .int32(1) + + .refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader("a") + + .xHyphenMinusExpiresHyphenMinusAfter("1970-01-01T00:00:00.00Z") + + .numberHeader("3.14") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("X-Rate-Limit", [XRateLimitSchema.XRateLimitSchema1.class](../../../../../paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md#xratelimitschema1)),
    new PropertyEntry("int32", [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1.class](../../../../../components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md#int32jsoncontenttypeheaderschema1)),
    new PropertyEntry("X-Expires-After", [XExpiresAfterSchema.XExpiresAfterSchema1.class](../../../../../paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md#xexpiresafterschema1)),
    new PropertyEntry("ref-content-schema-header", [StringWithValidation.StringWithValidation1.class](../../../../../components/schemas/StringWithValidation.md#stringwithvalidation1)),
    new PropertyEntry("numberHeader", [NumberHeaderSchema.NumberHeaderSchema1.class](../../../../../components/headers/numberheader/NumberHeaderSchema.md#numberheaderschema1))
)
| +| Set | required = Set.of(
    "X-Rate-Limit",
    "int32",
    "ref-content-schema-header"
)
| +| Class | additionalProperties = [UserloginGetCode200ResponseAdditionalProperties.class](#userlogingetcode200responseadditionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetCode200ResponseHeadersSchemaMap](#userlogingetcode200responseheadersschemamap) | validate([Map<?, ?>](#userlogingetcode200responseheadersschemamapbuilder) arg, SchemaConfiguration configuration) | +| [UserloginGetCode200ResponseHeadersSchema1BoxedMap](#userlogingetcode200responseheadersschema1boxedmap) | validateAndBox([Map<?, ?>](#userlogingetcode200responseheadersschemamapbuilder) arg, SchemaConfiguration configuration) | +| [UserloginGetCode200ResponseHeadersSchema1Boxed](#userlogingetcode200responseheadersschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## UserloginGetCode200ResponseHeadersSchemaMap000Builder +public class UserloginGetCode200ResponseHeadersSchemaMap000Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseHeadersSchemaMap000Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | +| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | xHyphenMinusExpiresHyphenMinusAfter(String value) | +| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | numberHeader(String value) | + +## UserloginGetCode200ResponseHeadersSchemaMap001Builder +public class UserloginGetCode200ResponseHeadersSchemaMap001Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseHeadersSchemaMap001Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | + +## UserloginGetCode200ResponseHeadersSchemaMap010Builder +public class UserloginGetCode200ResponseHeadersSchemaMap010Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseHeadersSchemaMap010Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | int32(int value) | +| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | int32(float value) | + +## UserloginGetCode200ResponseHeadersSchemaMap011Builder +public class UserloginGetCode200ResponseHeadersSchemaMap011Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseHeadersSchemaMap011Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetCode200ResponseHeadersSchemaMap001Builder](#userlogingetcode200responseheadersschemamap001builder) | int32(int value) | +| [UserloginGetCode200ResponseHeadersSchemaMap001Builder](#userlogingetcode200responseheadersschemamap001builder) | int32(float value) | +| [UserloginGetCode200ResponseHeadersSchemaMap010Builder](#userlogingetcode200responseheadersschemamap010builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | + +## UserloginGetCode200ResponseHeadersSchemaMap100Builder +public class UserloginGetCode200ResponseHeadersSchemaMap100Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseHeadersSchemaMap100Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | xHyphenMinusRateHyphenMinusLimit(int value) | +| [UserloginGetCode200ResponseHeadersSchemaMap000Builder](#userlogingetcode200responseheadersschemamap000builder) | xHyphenMinusRateHyphenMinusLimit(float value) | + +## UserloginGetCode200ResponseHeadersSchemaMap101Builder +public class UserloginGetCode200ResponseHeadersSchemaMap101Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseHeadersSchemaMap101Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetCode200ResponseHeadersSchemaMap001Builder](#userlogingetcode200responseheadersschemamap001builder) | xHyphenMinusRateHyphenMinusLimit(int value) | +| [UserloginGetCode200ResponseHeadersSchemaMap001Builder](#userlogingetcode200responseheadersschemamap001builder) | xHyphenMinusRateHyphenMinusLimit(float value) | +| [UserloginGetCode200ResponseHeadersSchemaMap100Builder](#userlogingetcode200responseheadersschemamap100builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | + +## UserloginGetCode200ResponseHeadersSchemaMap110Builder +public class UserloginGetCode200ResponseHeadersSchemaMap110Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseHeadersSchemaMap110Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetCode200ResponseHeadersSchemaMap010Builder](#userlogingetcode200responseheadersschemamap010builder) | xHyphenMinusRateHyphenMinusLimit(int value) | +| [UserloginGetCode200ResponseHeadersSchemaMap010Builder](#userlogingetcode200responseheadersschemamap010builder) | xHyphenMinusRateHyphenMinusLimit(float value) | +| [UserloginGetCode200ResponseHeadersSchemaMap100Builder](#userlogingetcode200responseheadersschemamap100builder) | int32(int value) | +| [UserloginGetCode200ResponseHeadersSchemaMap100Builder](#userlogingetcode200responseheadersschemamap100builder) | int32(float value) | + +## UserloginGetCode200ResponseHeadersSchemaMapBuilder +public class UserloginGetCode200ResponseHeadersSchemaMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseHeadersSchemaMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserloginGetCode200ResponseHeadersSchemaMap011Builder](#userlogingetcode200responseheadersschemamap011builder) | xHyphenMinusRateHyphenMinusLimit(int value) | +| [UserloginGetCode200ResponseHeadersSchemaMap011Builder](#userlogingetcode200responseheadersschemamap011builder) | xHyphenMinusRateHyphenMinusLimit(float value) | +| [UserloginGetCode200ResponseHeadersSchemaMap101Builder](#userlogingetcode200responseheadersschemamap101builder) | int32(int value) | +| [UserloginGetCode200ResponseHeadersSchemaMap101Builder](#userlogingetcode200responseheadersschemamap101builder) | int32(float value) | +| [UserloginGetCode200ResponseHeadersSchemaMap110Builder](#userlogingetcode200responseheadersschemamap110builder) | refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) | + +## UserloginGetCode200ResponseHeadersSchemaMap +public static class UserloginGetCode200ResponseHeadersSchemaMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [UserloginGetCode200ResponseHeadersSchemaMap](#userlogingetcode200responseheadersschemamap) | of([Map](#userlogingetcode200responseheadersschemamapbuilder) arg, SchemaConfiguration configuration) | +| Number | int32()
| +| String | numberHeader()
[optional] | +| @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["X-Rate-Limit"], instance["ref-content-schema-header"], instance["X-Expires-After"], | + +## UserloginGetCode200ResponseAdditionalPropertiesBoxed +public sealed interface UserloginGetCode200ResponseAdditionalPropertiesBoxed
+permits
+[UserloginGetCode200ResponseAdditionalPropertiesBoxedVoid](#userlogingetcode200responseadditionalpropertiesboxedvoid), +[UserloginGetCode200ResponseAdditionalPropertiesBoxedBoolean](#userlogingetcode200responseadditionalpropertiesboxedboolean), +[UserloginGetCode200ResponseAdditionalPropertiesBoxedNumber](#userlogingetcode200responseadditionalpropertiesboxednumber), +[UserloginGetCode200ResponseAdditionalPropertiesBoxedString](#userlogingetcode200responseadditionalpropertiesboxedstring), +[UserloginGetCode200ResponseAdditionalPropertiesBoxedList](#userlogingetcode200responseadditionalpropertiesboxedlist), +[UserloginGetCode200ResponseAdditionalPropertiesBoxedMap](#userlogingetcode200responseadditionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## UserloginGetCode200ResponseAdditionalPropertiesBoxedVoid +public record UserloginGetCode200ResponseAdditionalPropertiesBoxedVoid
+implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseAdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetCode200ResponseAdditionalPropertiesBoxedBoolean +public record UserloginGetCode200ResponseAdditionalPropertiesBoxedBoolean
+implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseAdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetCode200ResponseAdditionalPropertiesBoxedNumber +public record UserloginGetCode200ResponseAdditionalPropertiesBoxedNumber
+implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseAdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetCode200ResponseAdditionalPropertiesBoxedString +public record UserloginGetCode200ResponseAdditionalPropertiesBoxedString
+implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseAdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetCode200ResponseAdditionalPropertiesBoxedList +public record UserloginGetCode200ResponseAdditionalPropertiesBoxedList
+implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseAdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetCode200ResponseAdditionalPropertiesBoxedMap +public record UserloginGetCode200ResponseAdditionalPropertiesBoxedMap
+implements [UserloginGetCode200ResponseAdditionalPropertiesBoxed](#userlogingetcode200responseadditionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserloginGetCode200ResponseAdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserloginGetCode200ResponseAdditionalProperties +public static class UserloginGetCode200ResponseAdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..fe0b32c3b81 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,49 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationjsonSchema.ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationjsonSchema.ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1Boxed +public sealed interface ApplicationjsonSchema1Boxed
+permits
+[ApplicationjsonSchema1BoxedString](#applicationjsonschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationjsonSchema1BoxedString +public record ApplicationjsonSchema1BoxedString
+implements [ApplicationjsonSchema1Boxed](#applicationjsonschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..81b5c1d6689 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,49 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [ApplicationxmlSchema.ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed)
sealed interface for validated payloads | +| record | [ApplicationxmlSchema.ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring)
boxed class to store validated String payloads | +| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1Boxed +public sealed interface ApplicationxmlSchema1Boxed
+permits
+[ApplicationxmlSchema1BoxedString](#applicationxmlschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ApplicationxmlSchema1BoxedString +public record ApplicationxmlSchema1BoxedString
+implements [ApplicationxmlSchema1Boxed](#applicationxmlschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends StringJsonSchema.StringJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md new file mode 100644 index 00000000000..20c88d889d0 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md @@ -0,0 +1,49 @@ +# XExpiresAfterSchema +public class XExpiresAfterSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [XExpiresAfterSchema.XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed)
sealed interface for validated payloads | +| record | [XExpiresAfterSchema.XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring)
boxed class to store validated String payloads | +| static class | [XExpiresAfterSchema.XExpiresAfterSchema1](#xexpiresafterschema1)
schema class | + +## XExpiresAfterSchema1Boxed +public sealed interface XExpiresAfterSchema1Boxed
+permits
+[XExpiresAfterSchema1BoxedString](#xexpiresafterschema1boxedstring) + +sealed interface that stores validated payloads using boxed classes + +## XExpiresAfterSchema1BoxedString +public record XExpiresAfterSchema1BoxedString
+implements [XExpiresAfterSchema1Boxed](#xexpiresafterschema1boxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| XExpiresAfterSchema1BoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## XExpiresAfterSchema1 +public static class XExpiresAfterSchema1
+extends DateTimeJsonSchema.DateTimeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.DateTimeJsonSchema.DateTimeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md new file mode 100644 index 00000000000..76dfd4f33af --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md @@ -0,0 +1,49 @@ +# XRateLimitSchema +public class XRateLimitSchema
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [XRateLimitSchema.XRateLimitSchema1Boxed](#xratelimitschema1boxed)
sealed interface for validated payloads | +| record | [XRateLimitSchema.XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber)
boxed class to store validated Number payloads | +| static class | [XRateLimitSchema.XRateLimitSchema1](#xratelimitschema1)
schema class | + +## XRateLimitSchema1Boxed +public sealed interface XRateLimitSchema1Boxed
+permits
+[XRateLimitSchema1BoxedNumber](#xratelimitschema1boxednumber) + +sealed interface that stores validated payloads using boxed classes + +## XRateLimitSchema1BoxedNumber +public record XRateLimitSchema1BoxedNumber
+implements [XRateLimitSchema1Boxed](#xratelimitschema1boxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| XRateLimitSchema1BoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## XRateLimitSchema1 +public static class XRateLimitSchema1
+extends Int32JsonSchema.Int32JsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.Int32JsonSchema.Int32JsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md new file mode 100644 index 00000000000..6329d5a2ccd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogout/UserlogoutGet.md @@ -0,0 +1,142 @@ +# UserlogoutGet + +public class UserlogoutGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [LogoutUserOperation](#logoutuseroperation)
The interface that has a logoutUser method to call the endpoint | +| static class | [GetRequest](#getrequest)
The request inputs class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.userlogout.get.responses.UserlogoutGetCodedefaultResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.userlogout.UserlogoutGet; +import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UserlogoutGet.Get apiClient = new UserlogoutGet.Get(apiConfiguration, schemaConfiguration); + + +var request = new UserlogoutGet.GetRequestBuilder().build(); + +UserlogoutGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse castResponse = (UserlogoutGetResponses.EndpointUserlogoutGetCodedefaultResponse) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## LogoutUserOperation +public interface LogoutUserOperation
+ +an interface that allows one to call the endpoint using a method named logoutUser by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserlogoutGetResponses.EndpointResponse](../../paths/userlogout/get/UserlogoutGetResponses.md#endpointresponse) | logoutUser([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [GetRequestBuilder](#getrequestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [GetRequestBuilder](#getrequestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md b/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md new file mode 100644 index 00000000000..794cda537cb --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogout/get/UserlogoutGetResponses.md @@ -0,0 +1,29 @@ +# UserlogoutGetResponses + +public class UserlogoutGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointUserlogoutGetCodedefaultResponse](#endpointuserlogoutgetcodedefaultresponse)
the response for default | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointUserlogoutGetCodedefaultResponse](#endpointuserlogoutgetcodedefaultresponse) + +a sealed interface that stores endpoint responses + +## EndpointUserlogoutGetCodedefaultResponse +public record EndpointUserlogoutGetCodedefaultResponse( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.md b/samples/client/petstore/java/docs/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.md new file mode 100644 index 00000000000..7f34ffefe37 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.md @@ -0,0 +1,17 @@ +# UserlogoutGetCodedefaultResponse + +public class UserlogoutGetCodedefaultResponse extends [RefSuccessDescriptionOnly](../../components/responses/RefSuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UserlogoutGetCodedefaultResponse.UserlogoutGetCodedefaultResponse1](#userlogoutgetcodedefaultresponse1)
class that deserializes responses | + +## UserlogoutGetCodedefaultResponse1 +public static class UserlogoutGetCodedefaultResponse1 extends [RefSuccessDescriptionOnly1](../../components/responses/RefSuccessDescriptionOnly.md#refsuccessdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md new file mode 100644 index 00000000000..6215a06f511 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameDelete.md @@ -0,0 +1,189 @@ +# UserusernameDelete + +public class UserusernameDelete + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Delete](#delete)
The class that has a delete method to call the endpoint | +| interface | [DeleteUserOperation](#deleteuseroperation)
The interface that has a deleteUser method to call the endpoint | +| static class | [DeleteRequest](#deleterequest)
The final request inputs class | +| static class | [DeleteNullableRequest](#deletenullablerequest)
The initial request inputs class | +| static class | [Delete0RequestBuilder](#delete0requestbuilder)
A builder for the request input class | +| static class | [DeleteRequestBuilder](#deleterequestbuilder)
A builder for the request input class | + +## Delete +public static class Delete extends ApiClient.ApiClient1 implements DeleteOperation
+ +a class that allows one to call the endpoint using a method named delete + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode200Response; +import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.userusername.UserusernameDelete; +import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UserusernameDelete.Delete apiClient = new UserusernameDelete.Delete(apiConfiguration, schemaConfiguration); + + +// Map validation +UserusernameDeletePathParameters.PathParametersMap pathParameters = + UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( + new UserusernameDeletePathParameters.PathParametersMapBuilder() + .username("a") + + .build(), + schemaConfiguration +); + +var request = new UserusernameDelete.DeleteRequestBuilder() + .pathParameters(pathParameters) + .build(); + +UserusernameDeleteResponses.EndpointResponse response; +try { + response = apiClient.delete(request); +} catch (UserusernameDeleteCode404Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response castResponse = (UserusernameDeleteResponses.EndpointUserusernameDeleteCode200Response) response; +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | delete([DeleteRequest](#deleterequest) request) | + +## DeleteUserOperation +public interface DeleteUserOperation
+ +an interface that allows one to call the endpoint using a method named deleteUser by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameDeleteResponses.EndpointResponse](../../paths/userusername/delete/UserusernameDeleteResponses.md#endpointresponse) | deleteUser([DeleteRequest](#deleterequest) request) | + +## DeleteRequest +public static class DeleteRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UserusernameDeletePathParameters.PathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## DeleteNullableRequest +public static class DeleteNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UserusernameDeletePathParameters.@Nullable PathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Delete0RequestBuilder +public static class Delete0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Delete0RequestBuilder(Delete0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [DeleteRequest](#deleterequest) | build()
Returns the request input used to call an endpoint method | +| [Delete0RequestBuilder](#delete0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Delete0RequestBuilder](#delete0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## DeleteRequestBuilder +public static class DeleteRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| DeleteRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Delete0RequestBuilder](#delete0requestbuilder) | pathParameters([UserusernameDeletePathParametersPathParametersMap](../../paths/userusername/delete/UserusernameDeletePathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md new file mode 100644 index 00000000000..b0313b2f26f --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernameGet.md @@ -0,0 +1,196 @@ +# UserusernameGet + +public class UserusernameGet + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Get](#get)
The class that has a get method to call the endpoint | +| interface | [GetUserByNameOperation](#getuserbynameoperation)
The interface that has a getUserByName method to call the endpoint | +| static class | [GetRequest](#getrequest)
The final request inputs class | +| static class | [GetNullableRequest](#getnullablerequest)
The initial request inputs class | +| static class | [Get0RequestBuilder](#get0requestbuilder)
A builder for the request input class | +| static class | [GetRequestBuilder](#getrequestbuilder)
A builder for the request input class | + +## Get +public static class Get extends ApiClient.ApiClient1 implements GetOperation
+ +a class that allows one to call the endpoint using a method named get + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode200Response; +import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode400Response; +import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.userusername.UserusernameGet; +import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UserusernameGet.Get apiClient = new UserusernameGet.Get(apiConfiguration, schemaConfiguration); + + +// Map validation +UserusernameGetPathParameters.PathParametersMap pathParameters = + UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( + new UserusernameGetPathParameters.PathParametersMapBuilder() + .username("a") + + .build(), + schemaConfiguration +); + +var request = new UserusernameGet.GetRequestBuilder() + .pathParameters(pathParameters) + .build(); + +UserusernameGetResponses.EndpointResponse response; +try { + response = apiClient.get(request); +} catch (UserusernameGetCode400Response.ResponseApiException | UserusernameGetCode404Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +UserusernameGetResponses.EndpointUserusernameGetCode200Response castResponse = (UserusernameGetResponses.EndpointUserusernameGetCode200Response) response; +if (castResponse.body instanceof UserusernameGetCode200Response.ApplicationxmlResponseBody deserializedBody) { + // handle deserialized body here +} else { + UserusernameGetCode200Response.ApplicationjsonResponseBody deserializedBody = (UserusernameGetCode200Response.ApplicationjsonResponseBody) castResponse.body; + // handle deserialized body here +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | get([GetRequest](#getrequest) request) | + +## GetUserByNameOperation +public interface GetUserByNameOperation
+ +an interface that allows one to call the endpoint using a method named getUserByName by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [UserusernameGetResponses.EndpointResponse](../../paths/userusername/get/UserusernameGetResponses.md#endpointresponse) | getUserByName([GetRequest](#getrequest) request) | + +## GetRequest +public static class GetRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UserusernameGetPathParameters.PathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## GetNullableRequest +public static class GetNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UserusernameGetPathParameters.@Nullable PathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Get0RequestBuilder +public static class Get0RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Get0RequestBuilder(Get0RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [GetRequest](#getrequest) | build()
Returns the request input used to call an endpoint method | +| [Get0RequestBuilder](#get0requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Get0RequestBuilder](#get0requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## GetRequestBuilder +public static class GetRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| GetRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Get0RequestBuilder](#get0requestbuilder) | pathParameters([UserusernameGetPathParametersPathParametersMap](../../paths/userusername/get/UserusernameGetPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md new file mode 100644 index 00000000000..3b149ff1d24 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/UserusernamePut.md @@ -0,0 +1,252 @@ +# UserusernamePut + +public class UserusernamePut + +A class that contains necessary endpoint classes +- a class that calls the endpoint method using the http verb +- a class that calls the endpoint method using the operationId name +- class(es) to store the request inputs +- builder(s) to set the request input data + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [Put](#put)
The class that has a put method to call the endpoint | +| interface | [UpdateUserOperation](#updateuseroperation)
The interface that has a updateUser method to call the endpoint | +| static class | [PutRequest](#putrequest)
The final request inputs class | +| static class | [PutNullableRequest](#putnullablerequest)
The initial request inputs class | +| static class | [Put00RequestBuilder](#put00requestbuilder)
A builder for the request input class | +| static class | [Put01RequestBuilder](#put01requestbuilder)
A builder for the request input class | +| static class | [Put10RequestBuilder](#put10requestbuilder)
A builder for the request input class | +| static class | [PutRequestBuilder](#putrequestbuilder)
A builder for the request input class | + +## Put +public static class Put extends ApiClient.ApiClient1 implements PutOperation
+ +a class that allows one to call the endpoint using a method named put + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; +import org.openapijsonschematools.client.components.schemas.User; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode400Response; +import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; +import org.openapijsonschematools.client.paths.userusername.UserusernamePut; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .rootServer0(new RootServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); +Duration timeout = Duration.ofSeconds(1L); +Map> defaultHeaders = Map.of("User-Agent", List.of("OpenAPI-JSON-Schema-Generator/1.0.0/java")); +ApiConfiguration apiConfiguration = new ApiConfiguration( + serverInfo + serverIndexInfo, + timeout, + defaultHeaders +); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); +UserusernamePut.Put apiClient = new UserusernamePut.Put(apiConfiguration, schemaConfiguration); + + +User1BoxedMap requestBodyPayload = + User.User1.validateAndBox( + new User.UserMapBuilder() + .id(1L) + + .username("a") + + .firstName("a") + + .lastName("a") + + .email("a") + + .password("a") + + .phone("a") + + .userStatus(1) + + .objectWithNoDeclaredPropsNullable(null) + + .build(), + schemaConfiguration +); +UserusernamePut.SealedRequestBody requestBody = new UserusernamePut.ApplicationjsonRequestBody(requestBodyPayload); + +// Map validation +UserusernamePutPathParameters.PathParametersMap pathParameters = + UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( + new UserusernamePutPathParameters.PathParametersMapBuilder() + .username("a") + + .build(), + schemaConfiguration +); + +var request = new UserusernamePut.PutRequestBuilder() + .requestBody(requestBody) + .pathParameters(pathParameters) + .build(); + +Void response; +try { + response = apiClient.put(request); +} catch (UserusernamePutCode400Response.ResponseApiException | UserusernamePutCode404Response.ResponseApiException e) { + // server returned an error response defined in the openapi document + throw e; +} catch (ApiException e) { + // server returned a response/contentType not defined in the openapi document + throw e; +} catch (ValidationException e) { + // the returned response body or header values do not conform the the schema validation requirements + throw e; +} catch (IOException | InterruptedException e) { + // an exception happened when making the request + throw e; +} catch (NotImplementedException e) { + // the request body serialization or deserialization has not yet been implemented + // or the header content type deserialization has not yet been implemented for this contentType + throw e; +} +``` +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | put([PutRequest](#putrequest) request) | + +## UpdateUserOperation +public interface UpdateUserOperation
+ +an interface that allows one to call the endpoint using a method named updateUser by the operationId + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | updateUser([PutRequest](#putrequest) request) | + +## PutRequest +public static class PutRequest
+ +a class that stores the final request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | +| [UserusernamePutPathParameters.PathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex
optional. Note: this will override the value in apiConfiguration | +| @Nullable Duration | timeout
optional. Note: this will override the value in apiConfiguration | + +## PutNullableRequest +public static class PutNullableRequest
+ +a class that stores the initial request inputs + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [UserusernamePutRequestBody.@Nullable SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) | requestBody | +| [UserusernamePutPathParameters.@Nullable PathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) | pathParameters | +| [RootServerInfo.@Nullable ServerIndex](../../RootServerInfo.md#serverindex) | serverIndex | +| @Nullable Duration | timeout | + +## Put00RequestBuilder +public static class Put00RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put00RequestBuilder(Put00RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PutRequest](#putrequest) | build()
Returns the request input used to call an endpoint method | +| [Put00RequestBuilder](#put00requestbuilder) | serverIndex([RootServerInfo.ServerIndex](../../RootServerInfo.md#serverindex) serverIndex)
sets the optional property. Note: this will override the value in apiConfiguration | +| [Put00RequestBuilder](#put00requestbuilder) | timeout(Duration timeout)
sets the optional property. Note: this will override the value in apiConfiguration | + +## Put01RequestBuilder +public static class Put01RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put01RequestBuilder(Put01RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Put00RequestBuilder](#put00requestbuilder) | pathParameters([UserusernamePutPathParametersPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +## Put10RequestBuilder +public static class Put10RequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Put10RequestBuilder(Put10RequestBuilder instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Put00RequestBuilder](#put00requestbuilder) | requestBody([UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) requestBody)
sets the property | + +## PutRequestBuilder +public static class PutRequestBuilder
+ +a builder for request inputs + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PutRequestBuilder()
Creates a builder that contains null for all parameters | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [Put01RequestBuilder](#put01requestbuilder) | requestBody([UserusernamePutRequestBody.SealedRequestBody](../../paths/userusername/put/UserusernamePutRequestBody.md#sealedrequestbody) requestBody)
sets the property | +| [Put10RequestBuilder](#put10requestbuilder) | pathParameters([UserusernamePutPathParametersPathParametersMap](../../paths/userusername/put/UserusernamePutPathParameters.md#pathparametersmap) pathParameters)
sets the property | + +[[Back to top]](#top) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md new file mode 100644 index 00000000000..bc778942750 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeletePathParameters.md @@ -0,0 +1,268 @@ +# UserusernameDeletePathParameters +public class UserusernameDeletePathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed)
sealed interface for validated payloads | +| record | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernameDeletePathParameters.UserusernameDeletePathParameters1](#userusernamedeletepathparameters1)
schema class | +| static class | [UserusernameDeletePathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [UserusernameDeletePathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [UserusernameDeletePathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UserusernameDeletePathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernameDeletePathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## UserusernameDeletePathParameters1Boxed +public sealed interface UserusernameDeletePathParameters1Boxed
+permits
+[UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## UserusernameDeletePathParameters1BoxedMap +public record UserusernameDeletePathParameters1BoxedMap
+implements [UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameDeletePathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernameDeletePathParameters1 +public static class UserusernameDeletePathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +UserusernameDeletePathParameters.PathParametersMap validatedPayload = + UserusernameDeletePathParameters.UserusernameDeletePathParameters1.validate( + new UserusernameDeletePathParameters.PathParametersMapBuilder() + .username("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| +| Set | required = Set.of(
    "username"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameDeletePathParameters1BoxedMap](#userusernamedeletepathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameDeletePathParameters1Boxed](#userusernamedeletepathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | username(String value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | username()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md new file mode 100644 index 00000000000..b753c79b8d9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/delete/UserusernameDeleteResponses.md @@ -0,0 +1,29 @@ +# UserusernameDeleteResponses + +public class UserusernameDeleteResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointUserusernameDeleteCode200Response](#endpointuserusernamedeletecode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointUserusernameDeleteCode200Response](#endpointuserusernamedeletecode200response) + +a sealed interface that stores endpoint responses + +## EndpointUserusernameDeleteCode200Response +public record EndpointUserusernameDeleteCode200Response( + HttpResponse response, + Void body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode200Response.md b/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode200Response.md new file mode 100644 index 00000000000..bf7c6aee09d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode200Response.md @@ -0,0 +1,17 @@ +# UserusernameDeleteCode200Response + +public class UserusernameDeleteCode200Response extends [SuccessDescriptionOnly](../../components/responses/SuccessDescriptionOnly.md) + +A class (extended from the $ref class) that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UserusernameDeleteCode200Response.UserusernameDeleteCode200Response1](#userusernamedeletecode200response1)
class that deserializes responses | + +## UserusernameDeleteCode200Response1 +public static class UserusernameDeleteCode200Response1 extends [SuccessDescriptionOnly1](../../components/responses/SuccessDescriptionOnly.md#successdescriptiononly1)
+ +a class that deserializes responses, extended from the $ref class + diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode404Response.md b/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode404Response.md new file mode 100644 index 00000000000..971ff60ecb9 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/delete/responses/UserusernameDeleteCode404Response.md @@ -0,0 +1,32 @@ +# UserusernameDeleteCode404Response + +public class UserusernameDeleteCode404Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UserusernameDeleteCode404Response.UserusernameDeleteCode404Response1](#userusernamedeletecode404response1)
class that deserializes responses | + +## UserusernameDeleteCode404Response1 +public static class UserusernameDeleteCode404Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameDeleteCode404Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md new file mode 100644 index 00000000000..ffc84b77fe4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetPathParameters.md @@ -0,0 +1,268 @@ +# UserusernameGetPathParameters +public class UserusernameGetPathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [UserusernameGetPathParameters.UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed)
sealed interface for validated payloads | +| record | [UserusernameGetPathParameters.UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernameGetPathParameters.UserusernameGetPathParameters1](#userusernamegetpathparameters1)
schema class | +| static class | [UserusernameGetPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [UserusernameGetPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [UserusernameGetPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UserusernameGetPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernameGetPathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## UserusernameGetPathParameters1Boxed +public sealed interface UserusernameGetPathParameters1Boxed
+permits
+[UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## UserusernameGetPathParameters1BoxedMap +public record UserusernameGetPathParameters1BoxedMap
+implements [UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernameGetPathParameters1 +public static class UserusernameGetPathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +UserusernameGetPathParameters.PathParametersMap validatedPayload = + UserusernameGetPathParameters.UserusernameGetPathParameters1.validate( + new UserusernameGetPathParameters.PathParametersMapBuilder() + .username("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| +| Set | required = Set.of(
    "username"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameGetPathParameters1BoxedMap](#userusernamegetpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernameGetPathParameters1Boxed](#userusernamegetpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | username(String value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | username()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md new file mode 100644 index 00000000000..25ade8993d1 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/UserusernameGetResponses.md @@ -0,0 +1,29 @@ +# UserusernameGetResponses + +public class UserusernameGetResponses + +A class that contains necessary responses classes +- a sealed interface, EndpointResponse, that stores endpoint responses +- records for each endpoint response + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [EndpointResponse](#endpointresponse)
stores the endpoint responses | +| record | [EndpointUserusernameGetCode200Response](#endpointuserusernamegetcode200response)
the response for 200 | + +## EndpointResponse +public sealed interface EndpointResponse permits
+[EndpointUserusernameGetCode200Response](#endpointuserusernamegetcode200response) + +a sealed interface that stores endpoint responses + +## EndpointUserusernameGetCode200Response +public record EndpointUserusernameGetCode200Response( + HttpResponse response, + [UserusernameGetCode200Response.SealedResponseBody](../../../paths/userusername/get/responses/UserusernameGetCode200Response.md#sealedresponsebody) body, + Void headers +) implements EndpointResponse, ApiResponse
+ +a class that stores an endpoint response + diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md new file mode 100644 index 00000000000..cb23ae18478 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode200Response.md @@ -0,0 +1,123 @@ +# UserusernameGetCode200Response + +public class UserusernameGetCode200Response + +A class that contains necessary nested response classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- SealedResponseBody, a sealed interface which contains all the contentType/schema types +- records which implement SealedResponseBody, the concrete response body types +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [UserusernameGetCode200Response.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [UserusernameGetCode200Response.ApplicationxmlMediaType](#applicationxmlmediatype)
record storing schema + encoding for a specific contentType | +| record | [UserusernameGetCode200Response.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| sealed interface | [UserusernameGetCode200Response.SealedResponseBody](#sealedresponsebody)
response body sealed interface | +| record | [UserusernameGetCode200Response.ApplicationxmlResponseBody](#applicationxmlresponsebody)
implements sealed interface to store response body | +| record | [UserusernameGetCode200Response.ApplicationjsonResponseBody](#applicationjsonresponsebody)
implements sealed interface to store response body | +| static class | [UserusernameGetCode200Response.UserusernameGetCode200Response1](#userusernamegetcode200response1)
class that deserializes responses | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationxmlMediaType](#applicationxmlmediatype), +[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + +## ApplicationxmlMediaType +public record ApplicationxmlMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## SealedResponseBody +public sealed interface SealedResponseBody
+permits
+[ApplicationxmlResponseBody](#applicationxmlresponsebody), +[ApplicationjsonResponseBody](#applicationjsonresponsebody) + +sealed interface that stores response body + +## ApplicationxmlResponseBody +public record ApplicationxmlResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/xml" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationxmlResponseBody(ApplicationxmlSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationxmlSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | +## ApplicationjsonResponseBody +public record ApplicationjsonResponseBody
+implements [SealedResponseBody](#sealedresponsebody) + +A record class to store response body for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApplicationjsonSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | + +## UserusernameGetCode200Response1 +public static class UserusernameGetCode200Response1
+extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), Void, [SealedMediaType](#sealedmediatype)> + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetCode200Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/xml", new [ApplicationxmlMediaType](#applicationxmlmediatype)()),
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), Void> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode400Response.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode400Response.md new file mode 100644 index 00000000000..9e94f8cf6cd --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode400Response.md @@ -0,0 +1,32 @@ +# UserusernameGetCode400Response + +public class UserusernameGetCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UserusernameGetCode400Response.UserusernameGetCode400Response1](#userusernamegetcode400response1)
class that deserializes responses | + +## UserusernameGetCode400Response1 +public static class UserusernameGetCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode404Response.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode404Response.md new file mode 100644 index 00000000000..8701478bc14 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/UserusernameGetCode404Response.md @@ -0,0 +1,32 @@ +# UserusernameGetCode404Response + +public class UserusernameGetCode404Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UserusernameGetCode404Response.UserusernameGetCode404Response1](#userusernamegetcode404response1)
class that deserializes responses | + +## UserusernameGetCode404Response1 +public static class UserusernameGetCode404Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernameGetCode404Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..3433b43b8a4 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [User1](../../../../../../../components/schemas/User.md#user) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [User.User1](../../../../../../../components/schemas/User.md#user1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md new file mode 100644 index 00000000000..b5aa20f221c --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md @@ -0,0 +1,19 @@ +# ApplicationxmlSchema +public class ApplicationxmlSchema
+extends [User1](../../../../../../../components/schemas/User.md#user) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationxmlSchema.ApplicationxmlSchema1](#applicationxmlschema1)
schema class | + +## ApplicationxmlSchema1 +public static class ApplicationxmlSchema1
+extends [User.User1](../../../../../../../components/schemas/User.md#user1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md new file mode 100644 index 00000000000..fbfd5bccc9b --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutPathParameters.md @@ -0,0 +1,268 @@ +# UserusernamePutPathParameters +public class UserusernamePutPathParameters
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [UserusernamePutPathParameters.UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed)
sealed interface for validated payloads | +| record | [UserusernamePutPathParameters.UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernamePutPathParameters.UserusernamePutPathParameters1](#userusernameputpathparameters1)
schema class | +| static class | [UserusernamePutPathParameters.PathParametersMapBuilder](#pathparametersmapbuilder)
builder for Map payloads | +| static class | [UserusernamePutPathParameters.PathParametersMap](#pathparametersmap)
output class for Map payloads | +| sealed interface | [UserusernamePutPathParameters.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [UserusernamePutPathParameters.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [UserusernamePutPathParameters.AdditionalProperties](#additionalproperties)
schema class | + +## UserusernamePutPathParameters1Boxed +public sealed interface UserusernamePutPathParameters1Boxed
+permits
+[UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## UserusernamePutPathParameters1BoxedMap +public record UserusernamePutPathParameters1BoxedMap
+implements [UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutPathParameters1BoxedMap([PathParametersMap](#pathparametersmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## UserusernamePutPathParameters1 +public static class UserusernamePutPathParameters1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +UserusernamePutPathParameters.PathParametersMap validatedPayload = + UserusernamePutPathParameters.UserusernamePutPathParameters1.validate( + new UserusernamePutPathParameters.PathParametersMapBuilder() + .username("a") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("username", [Schema.Schema1.class](../../../components/parameters/pathusername/Schema.md#schema1))
)
| +| Set | required = Set.of(
    "username"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap](#pathparametersmap) | validate([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernamePutPathParameters1BoxedMap](#userusernameputpathparameters1boxedmap) | validateAndBox([Map<?, ?>](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| [UserusernamePutPathParameters1Boxed](#userusernameputpathparameters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## PathParametersMap0Builder +public class PathParametersMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## PathParametersMapBuilder +public class PathParametersMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PathParametersMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PathParametersMap0Builder](#pathparametersmap0builder) | username(String value) | + +## PathParametersMap +public static class PathParametersMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [PathParametersMap](#pathparametersmap) | of([Map](#pathparametersmapbuilder) arg, SchemaConfiguration configuration) | +| String | username()
| + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutRequestBody.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutRequestBody.md new file mode 100644 index 00000000000..c0854704243 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutRequestBody.md @@ -0,0 +1,90 @@ +# UserusernamePutRequestBody + +public class UserusernamePutRequestBody + +A class that contains necessary nested request body classes +- SealedMediaType, a sealed interface which contains all the schema/encoding info for each contentType +- records which implement SealedMediaType, the concrete media types +- a class that extends RequestBodySerializer and is used to serialize input SealedRequestBody instances +- SealedRequestBody, a sealed interface which contains all the contentType/schema input types +- records which implement SealedRequestBody, the concrete request body types + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| sealed interface | [UserusernamePutRequestBody.SealedMediaType](#sealedmediatype)
media type sealed interface | +| record | [UserusernamePutRequestBody.ApplicationjsonMediaType](#applicationjsonmediatype)
record storing schema + encoding for a specific contentType | +| static class | [UserusernamePutRequestBody.UserusernamePutRequestBody1](#userusernameputrequestbody1)
class that serializes request bodies | +| sealed interface | [UserusernamePutRequestBody.SealedRequestBody](#sealedrequestbody)
request body sealed interface | +| record | [UserusernamePutRequestBody.ApplicationjsonRequestBody](#applicationjsonrequestbody)
implements sealed interface to store request body input | + +## SealedMediaType +public sealed interface SealedMediaType
+permits
+[ApplicationjsonMediaType](#applicationjsonmediatype) + +sealed interface that stores schema and encoding info + + +## ApplicationjsonMediaType +public record ApplicationjsonMediaType
+implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> + +class storing schema info for a specific contentType + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonMediaType()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| Void | encoding()
the encoding info | + +## UserusernamePutRequestBody1 +public static class UserusernamePutRequestBody1
+ +a class that serializes SealedRequestBody request bodies + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutRequestBody1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| boolean | required = true
whether the request body is required | +| Map | content = Map.ofEntries(
    new AbstractMap.SimpleEntry<>("application/json", new [ApplicationjsonMediaType](#applicationjsonmediatype)())
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SerializedRequestBody | serialize([SealedRequestBody](#sealedrequestbody) requestBody)
called by endpoint when creating request body bytes | + +## SealedRequestBody +public sealed interface SealedRequestBody
+permits
+[ApplicationjsonRequestBody](#applicationjsonrequestbody) + +sealed interface that stores request contentType + validated schema data + +## ApplicationjsonRequestBody +public record ApplicationjsonRequestBody
+implements [SealedRequestBody](#sealedrequestbody),
+GenericRequestBody
+ +A record class to store request body input for contentType="application/json" + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ApplicationjsonRequestBody(ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) body)
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | contentType()
always returns "application/json" | +| ApplicationjsonSchema.[User1Boxed](../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | diff --git a/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md new file mode 100644 index 00000000000..13a79a9fefe --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/put/UserusernamePutResponses.md @@ -0,0 +1,10 @@ +# UserusernamePutResponses + +public class UserusernamePutResponses + +A class that contains necessary responses classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | + diff --git a/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md new file mode 100644 index 00000000000..87ec51870cc --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -0,0 +1,19 @@ +# ApplicationjsonSchema +public class ApplicationjsonSchema
+extends [User1](../../../../../../components/schemas/User.md#user) + +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| static class | [ApplicationjsonSchema.ApplicationjsonSchema1](#applicationjsonschema1)
schema class | + +## ApplicationjsonSchema1 +public static class ApplicationjsonSchema1
+extends [User.User1](../../../../../../components/schemas/User.md#user1) + +A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode400Response.md b/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode400Response.md new file mode 100644 index 00000000000..6512b98b518 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode400Response.md @@ -0,0 +1,32 @@ +# UserusernamePutCode400Response + +public class UserusernamePutCode400Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UserusernamePutCode400Response.UserusernamePutCode400Response1](#userusernameputcode400response1)
class that deserializes responses | + +## UserusernamePutCode400Response1 +public static class UserusernamePutCode400Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutCode400Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode404Response.md b/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode404Response.md new file mode 100644 index 00000000000..7a175514d70 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/userusername/put/responses/UserusernamePutCode404Response.md @@ -0,0 +1,32 @@ +# UserusernamePutCode404Response + +public class UserusernamePutCode404Response + +A class that contains necessary nested response classes +- a class that extends ResponseDeserializer and is used to deserialize responses + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [UserusernamePutCode404Response.UserusernamePutCode404Response1](#userusernameputcode404response1)
class that deserializes responses | + +## UserusernamePutCode404Response1 +public static class UserusernamePutCode404Response1
+extends ResponseDeserializer + +a class that deserializes responses + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| UserusernamePutCode404Response1()
Creates an instance | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| Map | content = MapUtils.makeMap(
)
the contentType to schema info | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ApiResponse | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/servers/RootServer0.md b/samples/client/petstore/java/docs/servers/RootServer0.md new file mode 100644 index 00000000000..d7bce71f647 --- /dev/null +++ b/samples/client/petstore/java/docs/servers/RootServer0.md @@ -0,0 +1,22 @@ +org.openapijsonschematools.client.servers.RootServer0 +# Server RootServer0 +public class RootServer0 + +A class that stores a server url + +## Description +petstore server + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServer0()
Creates a server using default values for variables | +| RootServer0([RootServer0Variables.VariablesMap](../servers/rootserver0/RootServer0Variables.md#variablesmap) variables)
Creates a server using input values for variables | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "http://{server}.swagger.io:{port}/v2" | +| [RootServer0Variables.VariablesMap](../servers/rootserver0/RootServer0Variables.md#variablesmap) | variables | + +[[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/RootServer1.md b/samples/client/petstore/java/docs/servers/RootServer1.md new file mode 100644 index 00000000000..4f78ced374a --- /dev/null +++ b/samples/client/petstore/java/docs/servers/RootServer1.md @@ -0,0 +1,22 @@ +org.openapijsonschematools.client.servers.RootServer1 +# Server RootServer1 +public class RootServer1 + +A class that stores a server url + +## Description +The local server + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServer1()
Creates a server using default values for variables | +| RootServer1([RootServer1Variables.VariablesMap](../servers/rootserver1/RootServer1Variables.md#variablesmap) variables)
Creates a server using input values for variables | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "https://localhost:8080/{version}" | +| [RootServer1Variables.VariablesMap](../servers/rootserver1/RootServer1Variables.md#variablesmap) | variables | + +[[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/RootServer2.md b/samples/client/petstore/java/docs/servers/RootServer2.md new file mode 100644 index 00000000000..e220476499a --- /dev/null +++ b/samples/client/petstore/java/docs/servers/RootServer2.md @@ -0,0 +1,20 @@ +org.openapijsonschematools.client.servers.RootServer2 +# Server RootServer2 +public class RootServer2 + +A class that stores a server url + +## Description +staging server with no variables + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServer2()
Creates a server | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "https://localhost:8080" | + +[[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/java/docs/servers/rootserver0/RootServer0Variables.md b/samples/client/petstore/java/docs/servers/rootserver0/RootServer0Variables.md new file mode 100644 index 00000000000..e8800e76eea --- /dev/null +++ b/samples/client/petstore/java/docs/servers/rootserver0/RootServer0Variables.md @@ -0,0 +1,486 @@ +# RootServer0Variables +public class RootServer0Variables
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [RootServer0Variables.RootServer0Variables1Boxed](#rootserver0variables1boxed)
sealed interface for validated payloads | +| record | [RootServer0Variables.RootServer0Variables1BoxedMap](#rootserver0variables1boxedmap)
boxed class to store validated Map payloads | +| static class | [RootServer0Variables.RootServer0Variables1](#rootserver0variables1)
schema class | +| static class | [RootServer0Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | +| static class | [RootServer0Variables.VariablesMap](#variablesmap)
output class for Map payloads | +| sealed interface | [RootServer0Variables.PortBoxed](#portboxed)
sealed interface for validated payloads | +| record | [RootServer0Variables.PortBoxedString](#portboxedstring)
boxed class to store validated String payloads | +| static class | [RootServer0Variables.Port](#port)
schema class | +| enum | [RootServer0Variables.StringPortEnums](#stringportenums)
String enum | +| sealed interface | [RootServer0Variables.ServerBoxed](#serverboxed)
sealed interface for validated payloads | +| record | [RootServer0Variables.ServerBoxedString](#serverboxedstring)
boxed class to store validated String payloads | +| static class | [RootServer0Variables.Server](#server)
schema class | +| enum | [RootServer0Variables.StringServerEnums](#stringserverenums)
String enum | +| sealed interface | [RootServer0Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [RootServer0Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [RootServer0Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [RootServer0Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [RootServer0Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [RootServer0Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [RootServer0Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [RootServer0Variables.AdditionalProperties](#additionalproperties)
schema class | + +## RootServer0Variables1Boxed +public sealed interface RootServer0Variables1Boxed
+permits
+[RootServer0Variables1BoxedMap](#rootserver0variables1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## RootServer0Variables1BoxedMap +public record RootServer0Variables1BoxedMap
+implements [RootServer0Variables1Boxed](#rootserver0variables1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServer0Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap](#variablesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## RootServer0Variables1 +public static class RootServer0Variables1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.servers.rootserver0.RootServer0Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +RootServer0Variables.VariablesMap validatedPayload = + RootServer0Variables.RootServer0Variables1.validate( + new RootServer0Variables.VariablesMapBuilder() + .port("80") + + .server("petstore") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("server", [Server.class](#server))),
    new PropertyEntry("port", [Port.class](#port)))
)
| +| Set | required = Set.of(
    "port",
    "server"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [RootServer0Variables1BoxedMap](#rootserver0variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [RootServer0Variables1Boxed](#rootserver0variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## VariablesMap00Builder +public class VariablesMap00Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMap00Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## VariablesMap01Builder +public class VariablesMap01Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMap01Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap00Builder](#variablesmap00builder) | server(String value) | +| [VariablesMap00Builder](#variablesmap00builder) | server([StringServerEnums](#stringserverenums) value) | + +## VariablesMap10Builder +public class VariablesMap10Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMap10Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap00Builder](#variablesmap00builder) | port(String value) | +| [VariablesMap00Builder](#variablesmap00builder) | port([StringPortEnums](#stringportenums) value) | + +## VariablesMapBuilder +public class VariablesMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap01Builder](#variablesmap01builder) | port(String value) | +| [VariablesMap01Builder](#variablesmap01builder) | port([StringPortEnums](#stringportenums) value) | +| [VariablesMap10Builder](#variablesmap10builder) | server(String value) | +| [VariablesMap10Builder](#variablesmap10builder) | server([StringServerEnums](#stringserverenums) value) | + +## VariablesMap +public static class VariablesMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| String | port()
must be one of ["80", "8080"] if omitted the server will use the default value of 80 | +| String | server()
must be one of ["petstore", "qa-petstore", "dev-petstore"] if omitted the server will use the default value of petstore | + +## PortBoxed +public sealed interface PortBoxed
+permits
+[PortBoxedString](#portboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## PortBoxedString +public record PortBoxedString
+implements [PortBoxed](#portboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PortBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Port +public static class Port
+extends JsonSchema + +A schema class that validates payloads + +## Description +the port + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.servers.rootserver0.RootServer0Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = RootServer0Variables.Port.validate( + "80", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "80",
    "8080"
)
| +| @Nullable Object | defaultValue = "80" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringPortEnums](#stringportenums) arg, SchemaConfiguration configuration) | +| [PortBoxedString](#portboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [PortBoxed](#portboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringPortEnums +public enum StringPortEnums
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| POSITIVE_80 | value = "80" | +| POSITIVE_8080 | value = "8080" | + +## ServerBoxed +public sealed interface ServerBoxed
+permits
+[ServerBoxedString](#serverboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## ServerBoxedString +public record ServerBoxedString
+implements [ServerBoxed](#serverboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| ServerBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Server +public static class Server
+extends JsonSchema + +A schema class that validates payloads + +## Description +server host prefix + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.servers.rootserver0.RootServer0Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = RootServer0Variables.Server.validate( + "petstore", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "petstore",
    "qa-petstore",
    "dev-petstore"
)
| +| @Nullable Object | defaultValue = "petstore" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringServerEnums](#stringserverenums) arg, SchemaConfiguration configuration) | +| [ServerBoxedString](#serverboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [ServerBoxed](#serverboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringServerEnums +public enum StringServerEnums
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| PETSTORE | value = "petstore" | +| QA_HYPHEN_MINUS_PETSTORE | value = "qa-petstore" | +| DEV_HYPHEN_MINUS_PETSTORE | value = "dev-petstore" | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/servers/rootserver1/RootServer1Variables.md b/samples/client/petstore/java/docs/servers/rootserver1/RootServer1Variables.md new file mode 100644 index 00000000000..b1b3f7294db --- /dev/null +++ b/samples/client/petstore/java/docs/servers/rootserver1/RootServer1Variables.md @@ -0,0 +1,355 @@ +# RootServer1Variables +public class RootServer1Variables
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [RootServer1Variables.RootServer1Variables1Boxed](#rootserver1variables1boxed)
sealed interface for validated payloads | +| record | [RootServer1Variables.RootServer1Variables1BoxedMap](#rootserver1variables1boxedmap)
boxed class to store validated Map payloads | +| static class | [RootServer1Variables.RootServer1Variables1](#rootserver1variables1)
schema class | +| static class | [RootServer1Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | +| static class | [RootServer1Variables.VariablesMap](#variablesmap)
output class for Map payloads | +| sealed interface | [RootServer1Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | +| record | [RootServer1Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | +| static class | [RootServer1Variables.Version](#version)
schema class | +| enum | [RootServer1Variables.StringVersionEnums](#stringversionenums)
String enum | +| sealed interface | [RootServer1Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [RootServer1Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [RootServer1Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [RootServer1Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [RootServer1Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [RootServer1Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [RootServer1Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [RootServer1Variables.AdditionalProperties](#additionalproperties)
schema class | + +## RootServer1Variables1Boxed +public sealed interface RootServer1Variables1Boxed
+permits
+[RootServer1Variables1BoxedMap](#rootserver1variables1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## RootServer1Variables1BoxedMap +public record RootServer1Variables1BoxedMap
+implements [RootServer1Variables1Boxed](#rootserver1variables1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServer1Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap](#variablesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## RootServer1Variables1 +public static class RootServer1Variables1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.servers.rootserver1.RootServer1Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// Map validation +RootServer1Variables.VariablesMap validatedPayload = + RootServer1Variables.RootServer1Variables1.validate( + new RootServer1Variables.VariablesMapBuilder() + .version("v1") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| +| Set | required = Set.of(
    "version"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [RootServer1Variables1BoxedMap](#rootserver1variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [RootServer1Variables1Boxed](#rootserver1variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## VariablesMap0Builder +public class VariablesMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## VariablesMapBuilder +public class VariablesMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | +| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | + +## VariablesMap +public static class VariablesMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v2 | + +## VersionBoxed +public sealed interface VersionBoxed
+permits
+[VersionBoxedString](#versionboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## VersionBoxedString +public record VersionBoxedString
+implements [VersionBoxed](#versionboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VersionBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Version +public static class Version
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.servers.rootserver1.RootServer1Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); + +// String validation +String validatedPayload = RootServer1Variables.Version.validate( + "v1", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "v1",
    "v2"
)
| +| @Nullable Object | defaultValue = "v2" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | +| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringVersionEnums +public enum StringVersionEnums
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| V1 | value = "v1" | +| V2 | value = "v2" | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java new file mode 100644 index 00000000000..2f47da779f1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java @@ -0,0 +1,77 @@ +package org.openapijsonschematools.client; + +import org.openapijsonschematools.client.servers.RootServer0; +import org.openapijsonschematools.client.servers.RootServer1; +import org.openapijsonschematools.client.servers.RootServer2; +import org.openapijsonschematools.client.servers.Server; +import org.openapijsonschematools.client.servers.ServerProvider; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.util.Objects; + +public class RootServerInfo { + public static class RootServerInfo1 implements ServerProvider { + private final RootServer0 server0; + private final RootServer1 server1; + private final RootServer2 server2; + + RootServerInfo1( + @Nullable RootServer0 server0, + @Nullable RootServer1 server1, + @Nullable RootServer2 server2 + ) { + this.server0 = Objects.requireNonNullElseGet(server0, RootServer0::new); + this.server1 = Objects.requireNonNullElseGet(server1, RootServer1::new); + this.server2 = Objects.requireNonNullElseGet(server2, RootServer2::new); + } + + @Override + public Server getServer(ServerIndex serverIndex) { + switch (serverIndex) { + case SERVER_0: + return server0; + case SERVER_1: + return server1; + default: + return server2; + } + } + } + + public static class RootServerInfoBuilder { + private @Nullable RootServer0 server0; + private @Nullable RootServer1 server1; + private @Nullable RootServer2 server2; + + public RootServerInfoBuilder() {} + + public RootServerInfoBuilder rootServer0(RootServer0 server0) { + this.server0 = server0; + return this; + } + + public RootServerInfoBuilder rootServer1(RootServer1 server1) { + this.server1 = server1; + return this; + } + + public RootServerInfoBuilder rootServer2(RootServer2 server2) { + this.server2 = server2; + return this; + } + + public RootServerInfo1 build() { + return new RootServerInfo1( + server0, + server1, + server2 + ); + } + } + + public enum ServerIndex { + SERVER_0, + SERVER_1, + SERVER_2 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java index 90c3beccbc9..30ee3f8d415 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java @@ -4,7 +4,7 @@ import org.openapijsonschematools.client.servers.Server; import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; @@ -63,23 +63,23 @@ public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, public static class ServerInfo { final FooGetServerInfo.FooGetServerInfo1 fooGetServerInfo; final PetfindbystatusServerInfo.PetfindbystatusServerInfo1 petfindbystatusServerInfo; - final ServerInfo.ServerInfo1 serverInfo; + final RootServerInfo.RootServerInfo1 rootServerInfo; ServerInfo( FooGetServerInfo. @Nullable FooGetServerInfo1 fooGetServerInfo, PetfindbystatusServerInfo. @Nullable PetfindbystatusServerInfo1 petfindbystatusServerInfo, - ServerInfo. @Nullable ServerInfo1 serverInfo + RootServerInfo. @Nullable RootServerInfo1 rootServerInfo ) { this.fooGetServerInfo = Objects.requireNonNullElse(fooGetServerInfo, new FooGetServerInfo.FooGetServerInfoBuilder().build()); this.petfindbystatusServerInfo = Objects.requireNonNullElse(petfindbystatusServerInfo, new PetfindbystatusServerInfo.PetfindbystatusServerInfoBuilder().build()); - this.serverInfo = Objects.requireNonNullElse(serverInfo, new ServerInfo.ServerInfoBuilder().build()); + this.rootServerInfo = Objects.requireNonNullElse(rootServerInfo, new RootServerInfo.RootServerInfoBuilder().build()); } } public static class ServerInfoBuilder { private FooGetServerInfo. @Nullable FooGetServerInfo1 fooGetServerInfo; private PetfindbystatusServerInfo. @Nullable PetfindbystatusServerInfo1 petfindbystatusServerInfo; - private ServerInfo. @Nullable ServerInfo1 serverInfo; + private RootServerInfo. @Nullable RootServerInfo1 rootServerInfo; public ServerInfoBuilder() {} public ServerInfoBuilder fooGetServerInfo(FooGetServerInfo.FooGetServerInfo1 fooGetServerInfo) { @@ -92,8 +92,8 @@ public ServerInfoBuilder petfindbystatusServerInfo(PetfindbystatusServerInfo.Pet return this; } - public ServerInfoBuilder serverInfo(ServerInfo.ServerInfo1 serverInfo) { - this.serverInfo = serverInfo; + public ServerInfoBuilder rootServerInfo(RootServerInfo.RootServerInfo1 rootServerInfo) { + this.rootServerInfo = rootServerInfo; return this; } @@ -101,7 +101,7 @@ public ServerInfo build() { return new ServerInfo( fooGetServerInfo, petfindbystatusServerInfo, - serverInfo + rootServerInfo ); } } @@ -109,23 +109,23 @@ public ServerInfo build() { public static class ServerIndexInfo { final FooGetServerInfo.ServerIndex fooGetServerInfoServerIndex; final PetfindbystatusServerInfo.ServerIndex petfindbystatusServerInfoServerIndex; - final ServerInfo.ServerIndex serverInfoServerIndex; + final RootServerInfo.ServerIndex rootServerInfoServerIndex; ServerIndexInfo( FooGetServerInfo. @Nullable ServerIndex fooGetServerInfoServerIndex, PetfindbystatusServerInfo. @Nullable ServerIndex petfindbystatusServerInfoServerIndex, - ServerInfo. @Nullable ServerIndex serverInfoServerIndex + RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex ) { this.fooGetServerInfoServerIndex = Objects.requireNonNullElse(fooGetServerInfoServerIndex, FooGetServerInfo.ServerIndex.SERVER_0); this.petfindbystatusServerInfoServerIndex = Objects.requireNonNullElse(petfindbystatusServerInfoServerIndex, PetfindbystatusServerInfo.ServerIndex.SERVER_0); - this.serverInfoServerIndex = Objects.requireNonNullElse(serverInfoServerIndex, ServerInfo.ServerIndex.SERVER_0); + this.rootServerInfoServerIndex = Objects.requireNonNullElse(rootServerInfoServerIndex, RootServerInfo.ServerIndex.SERVER_0); } } public static class ServerIndexInfoBuilder { private FooGetServerInfo. @Nullable ServerIndex fooGetServerInfoServerIndex; private PetfindbystatusServerInfo. @Nullable ServerIndex petfindbystatusServerInfoServerIndex; - private ServerInfo. @Nullable ServerIndex serverInfoServerIndex; + private RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; public ServerIndexInfoBuilder() {} public ServerIndexInfoBuilder fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex serverIndex) { @@ -138,8 +138,8 @@ public ServerIndexInfoBuilder petfindbystatusServerInfoServerIndex(Petfindbystat return this; } - public ServerIndexInfoBuilder serverInfoServerIndex(ServerInfo.ServerIndex serverIndex) { - this.serverInfoServerIndex = serverIndex; + public ServerIndexInfoBuilder rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { + this.rootServerInfoServerIndex = serverIndex; return this; } @@ -147,7 +147,7 @@ public ServerIndexInfo build() { return new ServerIndexInfo( fooGetServerInfoServerIndex, petfindbystatusServerInfoServerIndex, - serverInfoServerIndex + rootServerInfoServerIndex ); } } @@ -170,10 +170,10 @@ public Server getServer(PetfindbystatusServerInfo. @Nullable ServerIndex serverI return serverProvider.getServer(serverIndex); } - public Server getServer(ServerInfo. @Nullable ServerIndex serverIndex) { - var serverProvider = serverInfo.serverInfo; + public Server getServer(RootServerInfo. @Nullable ServerIndex serverIndex) { + var serverProvider = serverInfo.rootServerInfo; if (serverIndex == null) { - ServerInfo.ServerIndex configServerIndex = serverIndexInfo.serverInfoServerIndex; + RootServerInfo.ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); @@ -491,7 +491,7 @@ public SecurityScheme getSecurityScheme(Class security } public Map> getDefaultHeaders() { - return new HashMap<>(); + return defaultHeaders; } public @Nullable Duration getTimeout() { diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Anotherfakedummy.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Anotherfakedummy.java new file mode 100644 index 00000000000..f89bfb988ac --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Anotherfakedummy.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Anotherfakedummy { + public static final String path = "/another-fake/dummy"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Commonparamsubdir.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Commonparamsubdir.java new file mode 100644 index 00000000000..56057955e78 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Commonparamsubdir.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Commonparamsubdir { + public static final String path = "/commonParam/{subDir}/"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fake.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fake.java new file mode 100644 index 00000000000..46cde76f450 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fake.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fake { + public static final String path = "/fake"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeadditionalpropertieswitharrayofenums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeadditionalpropertieswitharrayofenums.java new file mode 100644 index 00000000000..43effb28488 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeadditionalpropertieswitharrayofenums.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeadditionalpropertieswitharrayofenums { + public static final String path = "/fake/additional-properties-with-array-of-enums"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithfileschema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithfileschema.java new file mode 100644 index 00000000000..ce66c23f4f0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithfileschema.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakebodywithfileschema { + public static final String path = "/fake/body-with-file-schema"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithqueryparams.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithqueryparams.java new file mode 100644 index 00000000000..8a4d20a641a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakebodywithqueryparams.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakebodywithqueryparams { + public static final String path = "/fake/body-with-query-params"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakecasesensitiveparams.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakecasesensitiveparams.java new file mode 100644 index 00000000000..c82acc6d50b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakecasesensitiveparams.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakecasesensitiveparams { + public static final String path = "/fake/case-sensitive-params"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeclassnametest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeclassnametest.java new file mode 100644 index 00000000000..2ad877f4897 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeclassnametest.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeclassnametest { + public static final String path = "/fake_classname_test"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakedeletecoffeeid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakedeletecoffeeid.java new file mode 100644 index 00000000000..30eebc6d353 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakedeletecoffeeid.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakedeletecoffeeid { + public static final String path = "/fake/deleteCoffee/{id}"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakehealth.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakehealth.java new file mode 100644 index 00000000000..73fc63a1954 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakehealth.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakehealth { + public static final String path = "/fake/health"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlineadditionalproperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlineadditionalproperties.java new file mode 100644 index 00000000000..26347f6ed75 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlineadditionalproperties.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeinlineadditionalproperties { + public static final String path = "/fake/inline-additionalProperties"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlinecomposition.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlinecomposition.java new file mode 100644 index 00000000000..4c39d95f065 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeinlinecomposition.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeinlinecomposition { + public static final String path = "/fake/inlineComposition/"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonformdata.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonformdata.java new file mode 100644 index 00000000000..f2c24afc0ef --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonformdata.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakejsonformdata { + public static final String path = "/fake/jsonFormData"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonpatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonpatch.java new file mode 100644 index 00000000000..2dfcbc73d55 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonpatch.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakejsonpatch { + public static final String path = "/fake/jsonPatch"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonwithcharset.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonwithcharset.java new file mode 100644 index 00000000000..63ba857f0a0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakejsonwithcharset.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakejsonwithcharset { + public static final String path = "/fake/jsonWithCharset"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplerequestbodycontenttypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplerequestbodycontenttypes.java new file mode 100644 index 00000000000..85fbe08971a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplerequestbodycontenttypes.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakemultiplerequestbodycontenttypes { + public static final String path = "/fake/multipleRequestBodyContentTypes/"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultipleresponsebodies.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultipleresponsebodies.java new file mode 100644 index 00000000000..47bbeb0dbbf --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultipleresponsebodies.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakemultipleresponsebodies { + public static final String path = "/fake/multipleResponseBodies"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplesecurities.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplesecurities.java new file mode 100644 index 00000000000..4052ed98bd0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakemultiplesecurities.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakemultiplesecurities { + public static final String path = "/fake/multipleSecurities"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeobjinquery.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeobjinquery.java new file mode 100644 index 00000000000..a4a39ca83b9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeobjinquery.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeobjinquery { + public static final String path = "/fake/objInQuery"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeparametercollisions1ababselfab.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeparametercollisions1ababselfab.java new file mode 100644 index 00000000000..abcc4667520 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeparametercollisions1ababselfab.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeparametercollisions1ababselfab { + public static final String path = "/fake/parameterCollisions/{1}/{aB}/{Ab}/{self}/{A-B}/"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepemcontenttype.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepemcontenttype.java new file mode 100644 index 00000000000..b48b1522786 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepemcontenttype.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakepemcontenttype { + public static final String path = "/fake/pemContentType"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepetiduploadimagewithrequiredfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepetiduploadimagewithrequiredfile.java new file mode 100644 index 00000000000..fe1c8da62ed --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakepetiduploadimagewithrequiredfile.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakepetiduploadimagewithrequiredfile { + public static final String path = "/fake/{petId}/uploadImageWithRequiredFile"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakequeryparamwithjsoncontenttype.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakequeryparamwithjsoncontenttype.java new file mode 100644 index 00000000000..adc814cd4e1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakequeryparamwithjsoncontenttype.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakequeryparamwithjsoncontenttype { + public static final String path = "/fake/queryParamWithJsonContentType"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeredirection.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeredirection.java new file mode 100644 index 00000000000..96ced57ff91 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeredirection.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeredirection { + public static final String path = "/fake/redirection"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefobjinquery.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefobjinquery.java new file mode 100644 index 00000000000..96194250be7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefobjinquery.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakerefobjinquery { + public static final String path = "/fake/refObjInQuery"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarraymodel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarraymodel.java new file mode 100644 index 00000000000..c4e1f2d71ba --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarraymodel.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakerefsarraymodel { + public static final String path = "/fake/refs/arraymodel"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarrayofenums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarrayofenums.java new file mode 100644 index 00000000000..2479d833c60 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsarrayofenums.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakerefsarrayofenums { + public static final String path = "/fake/refs/array-of-enums"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsboolean.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsboolean.java new file mode 100644 index 00000000000..b795df7fe6b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsboolean.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakerefsboolean { + public static final String path = "/fake/refs/boolean"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefscomposedoneofnumberwithvalidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefscomposedoneofnumberwithvalidations.java new file mode 100644 index 00000000000..9146b51293f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefscomposedoneofnumberwithvalidations.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakerefscomposedoneofnumberwithvalidations { + public static final String path = "/fake/refs/composed_one_of_number_with_validations"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsenum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsenum.java new file mode 100644 index 00000000000..5eeb04f8d37 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsenum.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakerefsenum { + public static final String path = "/fake/refs/enum"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsmammal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsmammal.java new file mode 100644 index 00000000000..b6271a3061f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsmammal.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakerefsmammal { + public static final String path = "/fake/refs/mammal"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsnumber.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsnumber.java new file mode 100644 index 00000000000..7dd2b5ace64 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsnumber.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakerefsnumber { + public static final String path = "/fake/refs/number"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsobjectmodelwithrefprops.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsobjectmodelwithrefprops.java new file mode 100644 index 00000000000..64dd88b6a6a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsobjectmodelwithrefprops.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakerefsobjectmodelwithrefprops { + public static final String path = "/fake/refs/object_model_with_ref_props"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsstring.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsstring.java new file mode 100644 index 00000000000..08aa4a9afaa --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakerefsstring.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakerefsstring { + public static final String path = "/fake/refs/string"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeresponsewithoutschema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeresponsewithoutschema.java new file mode 100644 index 00000000000..78ae099c8a1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeresponsewithoutschema.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeresponsewithoutschema { + public static final String path = "/fake/responseWithoutSchema"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Faketestqueryparamters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Faketestqueryparamters.java new file mode 100644 index 00000000000..487d92b4122 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Faketestqueryparamters.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Faketestqueryparamters { + public static final String path = "/fake/test-query-paramters"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploaddownloadfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploaddownloadfile.java new file mode 100644 index 00000000000..06871695fc4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploaddownloadfile.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeuploaddownloadfile { + public static final String path = "/fake/uploadDownloadFile"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfile.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfile.java new file mode 100644 index 00000000000..4f754cd5d46 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfile.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeuploadfile { + public static final String path = "/fake/uploadFile"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfiles.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfiles.java new file mode 100644 index 00000000000..4c2ba0ab9a5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakeuploadfiles.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakeuploadfiles { + public static final String path = "/fake/uploadFiles"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakewildcardresponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakewildcardresponses.java new file mode 100644 index 00000000000..991d78912aa --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Fakewildcardresponses.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Fakewildcardresponses { + public static final String path = "/fake/wildCardResponses"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Foo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Foo.java new file mode 100644 index 00000000000..42d8262a389 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Foo.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Foo { + public static final String path = "/foo"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Pet.java new file mode 100644 index 00000000000..96fb5bcdaf9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Pet.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Pet { + public static final String path = "/pet"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbystatus.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbystatus.java new file mode 100644 index 00000000000..7fe26528c22 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbystatus.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Petfindbystatus { + public static final String path = "/pet/findByStatus"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbytags.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbytags.java new file mode 100644 index 00000000000..634991ab867 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petfindbytags.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Petfindbytags { + public static final String path = "/pet/findByTags"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetid.java new file mode 100644 index 00000000000..e376b2b5531 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetid.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Petpetid { + public static final String path = "/pet/{petId}"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetiduploadimage.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetiduploadimage.java new file mode 100644 index 00000000000..0c266715daf --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Petpetiduploadimage.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Petpetiduploadimage { + public static final String path = "/pet/{petId}/uploadImage"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Solidus.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Solidus.java new file mode 100644 index 00000000000..b378bf8aa10 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Solidus.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Solidus { + public static final String path = "/"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeinventory.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeinventory.java new file mode 100644 index 00000000000..38824a730f6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeinventory.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Storeinventory { + public static final String path = "/store/inventory"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorder.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorder.java new file mode 100644 index 00000000000..7e037639b4d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorder.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Storeorder { + public static final String path = "/store/order"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorderorderid.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorderorderid.java new file mode 100644 index 00000000000..b3d78f384d7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Storeorderorderid.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Storeorderorderid { + public static final String path = "/store/order/{order_id}"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/User.java new file mode 100644 index 00000000000..c39366684bd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/User.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class User { + public static final String path = "/user"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewitharray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewitharray.java new file mode 100644 index 00000000000..999508b3d42 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewitharray.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Usercreatewitharray { + public static final String path = "/user/createWithArray"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewithlist.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewithlist.java new file mode 100644 index 00000000000..a59a7d908a9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Usercreatewithlist.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Usercreatewithlist { + public static final String path = "/user/createWithList"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogin.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogin.java new file mode 100644 index 00000000000..b0d7e4c93f8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogin.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Userlogin { + public static final String path = "/user/login"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogout.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogout.java new file mode 100644 index 00000000000..f98e8b3231b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userlogout.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Userlogout { + public static final String path = "/user/logout"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userusername.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userusername.java new file mode 100644 index 00000000000..4a78ea16ff8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/Userusername.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths; + +public class Userusername { + public static final String path = "/user/{username}"; +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java new file mode 100644 index 00000000000..3351c5abf40 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/AnotherfakedummyPatch.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.anotherfakedummy; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchRequestBody; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.AnotherfakedummyPatchResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Anotherfakedummy; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class AnotherfakedummyPatch { + private static class PatchProvider { + private static final String method = "patch"; + + public static AnotherfakedummyPatchResponses.EndpointResponse patch( + PatchRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new AnotherfakedummyPatchRequestBody.AnotherfakedummyPatchRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Anotherfakedummy.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new AnotherfakedummyPatchResponses.AnotherfakedummyPatchResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PatchOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default AnotherfakedummyPatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface Model123TestSpecialTagsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default AnotherfakedummyPatchResponses.EndpointResponse model123TestSpecialTags(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Patch extends ApiClient implements PatchOperation { + public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PatchRequest { + public AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PatchRequest( + AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PatchNullableRequest { + public AnotherfakedummyPatchRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PatchNullableRequest getInstance(); + T getBuilderAfterServerIndex(PatchNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PatchNullableRequest getInstance(); + T getBuilderAfterTimeout(PatchNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PatchNullableRequest getInstance(); + T getBuilderAfterRequestBody(PatchNullableRequest instance); + default T requestBody(AnotherfakedummyPatchRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PatchNullableRequest instance; + + public Patch0RequestBuilder(PatchNullableRequest instance) { + this.instance = instance; + } + + public PatchRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PatchRequest( + requestBody, + instance.serverIndex, + instance.timeout + ); + } + + public PatchNullableRequest getInstance() { + return instance; + } + + public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { + return this; + } + + public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { + return this; + } + } + public static class PatchRequestBuilder implements SetterForRequestBody { + private final PatchNullableRequest instance; + + public PatchRequestBuilder() { + this.instance = new PatchNullableRequest(); + } + + public PatchNullableRequest getInstance() { + return instance; + } + + public Patch0RequestBuilder getBuilderAfterRequestBody(PatchNullableRequest instance) { + return new Patch0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java new file mode 100644 index 00000000000..cc759c48ee1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchRequestBody.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.anotherfakedummy.patch; + +import org.openapijsonschematools.client.components.requestbodies.Client; + +public class AnotherfakedummyPatchRequestBody extends Client { + public static class AnotherfakedummyPatchRequestBody1 extends Client1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java new file mode 100644 index 00000000000..a5f6eda3357 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/AnotherfakedummyPatchResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.anotherfakedummy.patch; + +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.AnotherfakedummyPatchCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class AnotherfakedummyPatchResponses { + public sealed interface EndpointResponse permits EndpointAnotherfakedummyPatchCode200Response {} + + public record EndpointAnotherfakedummyPatchCode200Response( + HttpResponse response, + AnotherfakedummyPatchCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusAnotherfakedummyPatchCode200ResponseDeserializer {} + + public static final class StatusAnotherfakedummyPatchCode200ResponseDeserializer extends AnotherfakedummyPatchCode200Response.AnotherfakedummyPatchCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class AnotherfakedummyPatchResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public AnotherfakedummyPatchResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusAnotherfakedummyPatchCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusAnotherfakedummyPatchCode200ResponseDeserializer castDeserializer = (StatusAnotherfakedummyPatchCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointAnotherfakedummyPatchCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java new file mode 100644 index 00000000000..41c15430532 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/AnotherfakedummyPatchCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class AnotherfakedummyPatchCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } + + public static class AnotherfakedummyPatchCode200Response1 extends ResponseDeserializer { + public AnotherfakedummyPatchCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..8e0f8a56f68 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Client; + +public class ApplicationjsonSchema extends Client { + // $refed class + + + public static class ApplicationjsonSchema1 extends Client1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java new file mode 100644 index 00000000000..082ed31af1a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirDelete.java @@ -0,0 +1,205 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteHeaderParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeletePathParameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Parameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.CommonparamsubdirDeleteResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Commonparamsubdir; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class CommonparamsubdirDelete { + private static class DeleteProvider { + private static final String method = "delete"; + + public static CommonparamsubdirDeleteResponses.EndpointResponse delete( + DeleteRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + if (request.headerParameters != null) { + var headersSerializer = new Parameters.HeaderParametersSerializer(); + Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); + headers.putAll(serializedHeaders); + } + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Commonparamsubdir.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new CommonparamsubdirDeleteResponses.CommonparamsubdirDeleteResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface DeleteOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default CommonparamsubdirDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface DeleteCommonParamOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default CommonparamsubdirDeleteResponses.EndpointResponse deleteCommonParam(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Delete extends ApiClient implements DeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class DeleteRequest { + public CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters; + public CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public DeleteRequest( + CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters, + CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.headerParameters = headerParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class DeleteNullableRequest { + public CommonparamsubdirDeletePathParameters.@Nullable PathParametersMap pathParameters; + public CommonparamsubdirDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForHeaderParameters { + DeleteNullableRequest getInstance(); + T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); + default T headerParameters(CommonparamsubdirDeleteHeaderParameters.HeaderParametersMap headerParameters) { + var instance = getInstance(); + instance.headerParameters = headerParameters; + return getBuilderAfterHeaderParameters(instance); + } + } + + public interface SetterForServerIndex { + DeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + DeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(DeleteNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + DeleteNullableRequest getInstance(); + T getBuilderAfterPathParameters(DeleteNullableRequest instance); + default T pathParameters(CommonparamsubdirDeletePathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Delete0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForTimeout { + private final DeleteNullableRequest instance; + + public Delete0RequestBuilder(DeleteNullableRequest instance) { + this.instance = instance; + } + + public DeleteRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new DeleteRequest( + pathParameters, + instance.headerParameters, + instance.serverIndex, + instance.timeout + ); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete0RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { + return this; + } + + public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + return this; + } + + public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + return this; + } + } + public static class DeleteRequestBuilder implements SetterForPathParameters { + private final DeleteNullableRequest instance; + + public DeleteRequestBuilder() { + this.instance = new DeleteNullableRequest(); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { + return new Delete0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java new file mode 100644 index 00000000000..87ac84e93c4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirGet.java @@ -0,0 +1,206 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetQueryParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetPathParameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.Parameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.CommonparamsubdirGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Commonparamsubdir; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class CommonparamsubdirGet { + private static class GetProvider { + private static final String method = "get"; + + public static CommonparamsubdirGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Commonparamsubdir.path); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = null; + if (request.queryParameters != null) { + queryMap = querySerializer.getQueryMap(request.queryParameters); + } + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + updatedPath; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new CommonparamsubdirGetResponses.CommonparamsubdirGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default CommonparamsubdirGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface GetCommonParamOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default CommonparamsubdirGetResponses.EndpointResponse getCommonParam(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public CommonparamsubdirGetPathParameters.PathParametersMap pathParameters; + public CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public GetRequest( + CommonparamsubdirGetPathParameters.PathParametersMap pathParameters, + CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap queryParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.queryParameters = queryParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class GetNullableRequest { + public CommonparamsubdirGetPathParameters.@Nullable PathParametersMap pathParameters; + public CommonparamsubdirGetQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForQueryParameters { + GetNullableRequest getInstance(); + T getBuilderAfterQueryParameters(GetNullableRequest instance); + default T queryParameters(CommonparamsubdirGetQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public interface SetterForServerIndex { + GetNullableRequest getInstance(); + T getBuilderAfterServerIndex(GetNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetNullableRequest getInstance(); + T getBuilderAfterTimeout(GetNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + GetNullableRequest getInstance(); + T getBuilderAfterPathParameters(GetNullableRequest instance); + default T pathParameters(CommonparamsubdirGetPathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Get0RequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { + private final GetNullableRequest instance; + + public Get0RequestBuilder(GetNullableRequest instance) { + this.instance = instance; + } + + public GetRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new GetRequest( + pathParameters, + instance.queryParameters, + instance.serverIndex, + instance.timeout + ); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + return this; + } + } + public static class GetRequestBuilder implements SetterForPathParameters { + private final GetNullableRequest instance; + + public GetRequestBuilder() { + this.instance = new GetNullableRequest(); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { + return new Get0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java new file mode 100644 index 00000000000..82954fa4a74 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/CommonparamsubdirPost.java @@ -0,0 +1,205 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostHeaderParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostPathParameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.Parameters; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.CommonparamsubdirPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Commonparamsubdir; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class CommonparamsubdirPost { + private static class PostProvider { + private static final String method = "post"; + + public static CommonparamsubdirPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + if (request.headerParameters != null) { + var headersSerializer = new Parameters.HeaderParametersSerializer(); + Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); + headers.putAll(serializedHeaders); + } + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Commonparamsubdir.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new CommonparamsubdirPostResponses.CommonparamsubdirPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default CommonparamsubdirPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface PostCommonParamOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default CommonparamsubdirPostResponses.EndpointResponse postCommonParam(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public CommonparamsubdirPostPathParameters.PathParametersMap pathParameters; + public CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PostRequest( + CommonparamsubdirPostPathParameters.PathParametersMap pathParameters, + CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap headerParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.headerParameters = headerParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public CommonparamsubdirPostPathParameters.@Nullable PathParametersMap pathParameters; + public CommonparamsubdirPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForHeaderParameters { + PostNullableRequest getInstance(); + T getBuilderAfterHeaderParameters(PostNullableRequest instance); + default T headerParameters(CommonparamsubdirPostHeaderParameters.HeaderParametersMap headerParameters) { + var instance = getInstance(); + instance.headerParameters = headerParameters; + return getBuilderAfterHeaderParameters(instance); + } + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + PostNullableRequest getInstance(); + T getBuilderAfterPathParameters(PostNullableRequest instance); + default T pathParameters(CommonparamsubdirPostPathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Post0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + pathParameters, + instance.headerParameters, + instance.serverIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterHeaderParameters(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForPathParameters { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java new file mode 100644 index 00000000000..c54c33bc4bb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteHeaderParameters.java @@ -0,0 +1,191 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.delete; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class CommonparamsubdirDeleteHeaderParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class HeaderParametersMap extends FrozenMap { + protected HeaderParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "someHeader" + ); + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirDeleteHeaderParameters1.getInstance().validate(arg, configuration); + } + + public String someHeader() throws UnsetPropertyException { + return getOrThrow("someHeader"); + } + } + + public interface SetterForSomeHeader { + Map getInstance(); + T getBuilderAfterSomeHeader(Map instance); + + default T someHeader(String value) { + var instance = getInstance(); + instance.put("someHeader", value); + return getBuilderAfterSomeHeader(instance); + } + } + + public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSomeHeader { + private final Map instance; + private static final Set knownKeys = Set.of( + "someHeader" + ); + public Set getKnownKeys() { + return knownKeys; + } + public HeaderParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map instance) { + return this; + } + } + + + public sealed interface CommonparamsubdirDeleteHeaderParameters1Boxed permits CommonparamsubdirDeleteHeaderParameters1BoxedMap { + @Nullable Object getData(); + } + + public record CommonparamsubdirDeleteHeaderParameters1BoxedMap(HeaderParametersMap data) implements CommonparamsubdirDeleteHeaderParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class CommonparamsubdirDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirDeleteHeaderParameters1 instance = null; + + protected CommonparamsubdirDeleteHeaderParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("someHeader", Schema0.Schema01.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static CommonparamsubdirDeleteHeaderParameters1 getInstance() { + if (instance == null) { + instance = new CommonparamsubdirDeleteHeaderParameters1(); + } + return instance; + } + + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new HeaderParametersMap(castProperties); + } + + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public CommonparamsubdirDeleteHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirDeleteHeaderParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public CommonparamsubdirDeleteHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java new file mode 100644 index 00000000000..e45331271e1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeletePathParameters.java @@ -0,0 +1,211 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.delete; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter1.Schema1; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class CommonparamsubdirDeletePathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "subDir" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirDeletePathParameters1.getInstance().validate(arg, configuration); + } + + public String subDir() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForSubDir { + Map getInstance(); + T getBuilderAfterSubDir(Map instance); + + default T subDir(String value) { + var instance = getInstance(); + instance.put("subDir", value); + return getBuilderAfterSubDir(instance); + } + + default T subDir(Schema1.StringSchemaEnums1 value) { + var instance = getInstance(); + instance.put("subDir", value.value()); + return getBuilderAfterSubDir(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "subDir" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForSubDir { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface CommonparamsubdirDeletePathParameters1Boxed permits CommonparamsubdirDeletePathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record CommonparamsubdirDeletePathParameters1BoxedMap(PathParametersMap data) implements CommonparamsubdirDeletePathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class CommonparamsubdirDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirDeletePathParameters1 instance = null; + + protected CommonparamsubdirDeletePathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("subDir", Schema1.Schema11.class) + )) + .required(Set.of( + "subDir" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static CommonparamsubdirDeletePathParameters1 getInstance() { + if (instance == null) { + instance = new CommonparamsubdirDeletePathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public CommonparamsubdirDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirDeletePathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public CommonparamsubdirDeletePathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java new file mode 100644 index 00000000000..f5f9155ead2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/CommonparamsubdirDeleteResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.delete; + +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.CommonparamsubdirDeleteCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class CommonparamsubdirDeleteResponses { + public sealed interface EndpointResponse permits EndpointCommonparamsubdirDeleteCode200Response {} + + public record EndpointCommonparamsubdirDeleteCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusCommonparamsubdirDeleteCode200ResponseDeserializer {} + + public static final class StatusCommonparamsubdirDeleteCode200ResponseDeserializer extends CommonparamsubdirDeleteCode200Response.CommonparamsubdirDeleteCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class CommonparamsubdirDeleteResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public CommonparamsubdirDeleteResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusCommonparamsubdirDeleteCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusCommonparamsubdirDeleteCode200ResponseDeserializer castDeserializer = (StatusCommonparamsubdirDeleteCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointCommonparamsubdirDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java new file mode 100644 index 00000000000..361ce042d3a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/Parameters.java @@ -0,0 +1,32 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.delete; + +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.Parameter0; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.Parameter1; +import org.openapijsonschematools.client.parameter.PathSerializer; +import org.openapijsonschematools.client.parameter.HeadersSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("subDir", new Parameter1.Parameter11()) + ) + ); + } + } + + public static class HeaderParametersSerializer extends HeadersSerializer { + public HeaderParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("someHeader", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter0.java new file mode 100644 index 00000000000..1385ce8e488 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "someHeader", + ParameterInType.HEADER, + false, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java new file mode 100644 index 00000000000..13efa3b6c1d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/Parameter1.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter1.Schema1; + +public class Parameter1 { + + public static class Parameter11 extends SchemaParameter { + public Parameter11() { + super( + "subDir", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema1.Schema11.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..a3f940b6e0e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java new file mode 100644 index 00000000000..5e27e6693ae --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java @@ -0,0 +1,114 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.delete.parameters.parameter1; +import java.util.HashSet; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema1 { + // nest classes so all schemas and input/output classes can be public + + public enum StringSchemaEnums1 implements StringValueMethod { + C("c"), + D("d"); + private final String value; + + StringSchemaEnums1(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface Schema11Boxed permits Schema11BoxedString { + @Nullable Object getData(); + } + + public record Schema11BoxedString(String data) implements Schema11Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + private static @Nullable Schema11 instance = null; + + protected Schema11() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "c", + "d" + )) + ); + } + + public static Schema11 getInstance() { + if (instance == null) { + instance = new Schema11(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringSchemaEnums1 arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema11BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema11BoxedString(validate(arg, configuration)); + } + @Override + public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.java new file mode 100644 index 00000000000..ed6bcceb216 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/responses/CommonparamsubdirDeleteCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class CommonparamsubdirDeleteCode200Response extends SuccessDescriptionOnly { + public static class CommonparamsubdirDeleteCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java new file mode 100644 index 00000000000..6f36aeb9763 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetPathParameters.java @@ -0,0 +1,211 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.routeparameter0.RouteParamSchema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class CommonparamsubdirGetPathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "subDir" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirGetPathParameters1.getInstance().validate(arg, configuration); + } + + public String subDir() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForSubDir { + Map getInstance(); + T getBuilderAfterSubDir(Map instance); + + default T subDir(String value) { + var instance = getInstance(); + instance.put("subDir", value); + return getBuilderAfterSubDir(instance); + } + + default T subDir(RouteParamSchema0.StringRouteParamSchemaEnums0 value) { + var instance = getInstance(); + instance.put("subDir", value.value()); + return getBuilderAfterSubDir(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "subDir" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForSubDir { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface CommonparamsubdirGetPathParameters1Boxed permits CommonparamsubdirGetPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record CommonparamsubdirGetPathParameters1BoxedMap(PathParametersMap data) implements CommonparamsubdirGetPathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class CommonparamsubdirGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirGetPathParameters1 instance = null; + + protected CommonparamsubdirGetPathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("subDir", RouteParamSchema0.RouteParamSchema01.class) + )) + .required(Set.of( + "subDir" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static CommonparamsubdirGetPathParameters1 getInstance() { + if (instance == null) { + instance = new CommonparamsubdirGetPathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public CommonparamsubdirGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirGetPathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public CommonparamsubdirGetPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java new file mode 100644 index 00000000000..23c81934321 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetQueryParameters.java @@ -0,0 +1,191 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class CommonparamsubdirGetQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "searchStr" + ); + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirGetQueryParameters1.getInstance().validate(arg, configuration); + } + + public String searchStr() throws UnsetPropertyException { + return getOrThrow("searchStr"); + } + } + + public interface SetterForSearchStr { + Map getInstance(); + T getBuilderAfterSearchStr(Map instance); + + default T searchStr(String value) { + var instance = getInstance(); + instance.put("searchStr", value); + return getBuilderAfterSearchStr(instance); + } + } + + public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForSearchStr { + private final Map instance; + private static final Set knownKeys = Set.of( + "searchStr" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMapBuilder getBuilderAfterSearchStr(Map instance) { + return this; + } + } + + + public sealed interface CommonparamsubdirGetQueryParameters1Boxed permits CommonparamsubdirGetQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record CommonparamsubdirGetQueryParameters1BoxedMap(QueryParametersMap data) implements CommonparamsubdirGetQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class CommonparamsubdirGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirGetQueryParameters1 instance = null; + + protected CommonparamsubdirGetQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("searchStr", Schema0.Schema01.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static CommonparamsubdirGetQueryParameters1 getInstance() { + if (instance == null) { + instance = new CommonparamsubdirGetQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public CommonparamsubdirGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirGetQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public CommonparamsubdirGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java new file mode 100644 index 00000000000..ec3fa0f14d3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/CommonparamsubdirGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.get; + +import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.CommonparamsubdirGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class CommonparamsubdirGetResponses { + public sealed interface EndpointResponse permits EndpointCommonparamsubdirGetCode200Response {} + + public record EndpointCommonparamsubdirGetCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusCommonparamsubdirGetCode200ResponseDeserializer {} + + public static final class StatusCommonparamsubdirGetCode200ResponseDeserializer extends CommonparamsubdirGetCode200Response.CommonparamsubdirGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class CommonparamsubdirGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public CommonparamsubdirGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusCommonparamsubdirGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusCommonparamsubdirGetCode200ResponseDeserializer castDeserializer = (StatusCommonparamsubdirGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointCommonparamsubdirGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java new file mode 100644 index 00000000000..a06b3e8445a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/Parameters.java @@ -0,0 +1,32 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.get; + +import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.RouteParameter0; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("subDir", new RouteParameter0.RouteParameter01()) + ) + ); + } + } + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("searchStr", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java new file mode 100644 index 00000000000..0559a9deb6e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "searchStr", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..cd9df3f6b63 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.get.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.java new file mode 100644 index 00000000000..87e8201489f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/responses/CommonparamsubdirGetCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class CommonparamsubdirGetCode200Response extends SuccessDescriptionOnly { + public static class CommonparamsubdirGetCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java new file mode 100644 index 00000000000..ad645a82164 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/RouteParameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.routeparameter0.RouteParamSchema0; + +public class RouteParameter0 { + + public static class RouteParameter01 extends SchemaParameter { + public RouteParameter01() { + super( + "subDir", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + RouteParamSchema0.RouteParamSchema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java new file mode 100644 index 00000000000..bd8854610b9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java @@ -0,0 +1,114 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.parameters.routeparameter0; +import java.util.HashSet; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class RouteParamSchema0 { + // nest classes so all schemas and input/output classes can be public + + public enum StringRouteParamSchemaEnums0 implements StringValueMethod { + A("a"), + B("b"); + private final String value; + + StringRouteParamSchemaEnums0(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface RouteParamSchema01Boxed permits RouteParamSchema01BoxedString { + @Nullable Object getData(); + } + + public record RouteParamSchema01BoxedString(String data) implements RouteParamSchema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class RouteParamSchema01 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + private static @Nullable RouteParamSchema01 instance = null; + + protected RouteParamSchema01() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "a", + "b" + )) + ); + } + + public static RouteParamSchema01 getInstance() { + if (instance == null) { + instance = new RouteParamSchema01(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringRouteParamSchemaEnums0 arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public RouteParamSchema01BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new RouteParamSchema01BoxedString(validate(arg, configuration)); + } + @Override + public RouteParamSchema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java new file mode 100644 index 00000000000..d800414c7de --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostHeaderParameters.java @@ -0,0 +1,191 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.post; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class CommonparamsubdirPostHeaderParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class HeaderParametersMap extends FrozenMap { + protected HeaderParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "someHeader" + ); + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirPostHeaderParameters1.getInstance().validate(arg, configuration); + } + + public String someHeader() throws UnsetPropertyException { + return getOrThrow("someHeader"); + } + } + + public interface SetterForSomeHeader { + Map getInstance(); + T getBuilderAfterSomeHeader(Map instance); + + default T someHeader(String value) { + var instance = getInstance(); + instance.put("someHeader", value); + return getBuilderAfterSomeHeader(instance); + } + } + + public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSomeHeader { + private final Map instance; + private static final Set knownKeys = Set.of( + "someHeader" + ); + public Set getKnownKeys() { + return knownKeys; + } + public HeaderParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public HeaderParametersMapBuilder getBuilderAfterSomeHeader(Map instance) { + return this; + } + } + + + public sealed interface CommonparamsubdirPostHeaderParameters1Boxed permits CommonparamsubdirPostHeaderParameters1BoxedMap { + @Nullable Object getData(); + } + + public record CommonparamsubdirPostHeaderParameters1BoxedMap(HeaderParametersMap data) implements CommonparamsubdirPostHeaderParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class CommonparamsubdirPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirPostHeaderParameters1 instance = null; + + protected CommonparamsubdirPostHeaderParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("someHeader", Schema0.Schema01.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static CommonparamsubdirPostHeaderParameters1 getInstance() { + if (instance == null) { + instance = new CommonparamsubdirPostHeaderParameters1(); + } + return instance; + } + + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new HeaderParametersMap(castProperties); + } + + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public CommonparamsubdirPostHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirPostHeaderParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public CommonparamsubdirPostHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java new file mode 100644 index 00000000000..def8072055c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostPathParameters.java @@ -0,0 +1,211 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.post; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.routeparameter0.RouteParamSchema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class CommonparamsubdirPostPathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "subDir" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return CommonparamsubdirPostPathParameters1.getInstance().validate(arg, configuration); + } + + public String subDir() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForSubDir { + Map getInstance(); + T getBuilderAfterSubDir(Map instance); + + default T subDir(String value) { + var instance = getInstance(); + instance.put("subDir", value); + return getBuilderAfterSubDir(instance); + } + + default T subDir(RouteParamSchema0.StringRouteParamSchemaEnums0 value) { + var instance = getInstance(); + instance.put("subDir", value.value()); + return getBuilderAfterSubDir(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "subDir" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForSubDir { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterSubDir(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface CommonparamsubdirPostPathParameters1Boxed permits CommonparamsubdirPostPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record CommonparamsubdirPostPathParameters1BoxedMap(PathParametersMap data) implements CommonparamsubdirPostPathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class CommonparamsubdirPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable CommonparamsubdirPostPathParameters1 instance = null; + + protected CommonparamsubdirPostPathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("subDir", RouteParamSchema0.RouteParamSchema01.class) + )) + .required(Set.of( + "subDir" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static CommonparamsubdirPostPathParameters1 getInstance() { + if (instance == null) { + instance = new CommonparamsubdirPostPathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public CommonparamsubdirPostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new CommonparamsubdirPostPathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public CommonparamsubdirPostPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java new file mode 100644 index 00000000000..b0290f6651b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/CommonparamsubdirPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.post; + +import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.CommonparamsubdirPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class CommonparamsubdirPostResponses { + public sealed interface EndpointResponse permits EndpointCommonparamsubdirPostCode200Response {} + + public record EndpointCommonparamsubdirPostCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusCommonparamsubdirPostCode200ResponseDeserializer {} + + public static final class StatusCommonparamsubdirPostCode200ResponseDeserializer extends CommonparamsubdirPostCode200Response.CommonparamsubdirPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class CommonparamsubdirPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public CommonparamsubdirPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusCommonparamsubdirPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusCommonparamsubdirPostCode200ResponseDeserializer castDeserializer = (StatusCommonparamsubdirPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointCommonparamsubdirPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java new file mode 100644 index 00000000000..22e2acd3b26 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/Parameters.java @@ -0,0 +1,32 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.post; + +import org.openapijsonschematools.client.paths.commonparamsubdir.parameters.RouteParameter0; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; +import org.openapijsonschematools.client.parameter.HeadersSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("subDir", new RouteParameter0.RouteParameter01()) + ) + ); + } + } + + public static class HeaderParametersSerializer extends HeadersSerializer { + public HeaderParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("someHeader", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java new file mode 100644 index 00000000000..48a0d5b37bb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "someHeader", + ParameterInType.HEADER, + false, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..ff8948ab37f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.post.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.java new file mode 100644 index 00000000000..85eac21263a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/responses/CommonparamsubdirPostCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.commonparamsubdir.post.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class CommonparamsubdirPostCode200Response extends SuccessDescriptionOnly { + public static class CommonparamsubdirPostCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java new file mode 100644 index 00000000000..1e9699662da --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeDelete.java @@ -0,0 +1,270 @@ +package org.openapijsonschematools.client.paths.fake; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteHeaderParameters; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteQueryParameters; +import org.openapijsonschematools.client.paths.fake.delete.Parameters; +import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fake; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeDelete { + private static class DeleteProvider extends AuthApplier { + private static final String method = "delete"; + + public static FakeDeleteResponses.EndpointResponse delete( + DeleteRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var headersSerializer = new Parameters.HeaderParametersSerializer(); + Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); + headers.putAll(serializedHeaders); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + Fake.path, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + Fake.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeDeleteResponses.FakeDeleteResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface DeleteOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface GroupParametersOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeDeleteResponses.EndpointResponse groupParameters(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Delete extends ApiClient implements DeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class DeleteRequest { + public FakeDeleteHeaderParameters.HeaderParametersMap headerParameters; + public FakeDeleteQueryParameters.QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public DeleteRequest( + FakeDeleteHeaderParameters.HeaderParametersMap headerParameters, + FakeDeleteQueryParameters.QueryParametersMap queryParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.headerParameters = headerParameters; + this.queryParameters = queryParameters; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class DeleteNullableRequest { + public FakeDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public FakeDeleteQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public FakeDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + DeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + DeleteNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(DeleteNullableRequest instance); + default T securityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + DeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(DeleteNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForHeaderParameters { + DeleteNullableRequest getInstance(); + T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); + default T headerParameters(FakeDeleteHeaderParameters.HeaderParametersMap headerParameters) { + var instance = getInstance(); + instance.headerParameters = headerParameters; + return getBuilderAfterHeaderParameters(instance); + } + } + + public interface SetterForQueryParameters { + DeleteNullableRequest getInstance(); + T getBuilderAfterQueryParameters(DeleteNullableRequest instance); + default T queryParameters(FakeDeleteQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public static class Delete00RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final DeleteNullableRequest instance; + + public Delete00RequestBuilder(DeleteNullableRequest instance) { + this.instance = instance; + } + + public DeleteRequest build() { + var headerParameters = instance.headerParameters; + if (headerParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + var queryParameters = instance.queryParameters; + if (queryParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new DeleteRequest( + headerParameters, + queryParameters, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete00RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + return this; + } + + public Delete00RequestBuilder getBuilderAfterSecurityIndex(DeleteNullableRequest instance) { + return this; + } + + public Delete00RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + return this; + } + } + public static class Delete01RequestBuilder implements SetterForQueryParameters { + private final DeleteNullableRequest instance; + + public Delete01RequestBuilder(DeleteNullableRequest instance) { + this.instance = instance; + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete00RequestBuilder getBuilderAfterQueryParameters(DeleteNullableRequest instance) { + return new Delete00RequestBuilder(instance); + } + } + public static class Delete10RequestBuilder implements SetterForHeaderParameters { + private final DeleteNullableRequest instance; + + public Delete10RequestBuilder(DeleteNullableRequest instance) { + this.instance = instance; + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete00RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { + return new Delete00RequestBuilder(instance); + } + } + public static class DeleteRequestBuilder implements SetterForHeaderParameters, SetterForQueryParameters { + private final DeleteNullableRequest instance; + + public DeleteRequestBuilder() { + this.instance = new DeleteNullableRequest(); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete01RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { + return new Delete01RequestBuilder(instance); + } + + public Delete10RequestBuilder getBuilderAfterQueryParameters(DeleteNullableRequest instance) { + return new Delete10RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java new file mode 100644 index 00000000000..9239b256da7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakeGet.java @@ -0,0 +1,198 @@ +package org.openapijsonschematools.client.paths.fake; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fake.get.FakeGetRequestBody; +import org.openapijsonschematools.client.paths.fake.get.FakeGetHeaderParameters; +import org.openapijsonschematools.client.paths.fake.get.FakeGetQueryParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.get.Parameters; +import org.openapijsonschematools.client.paths.fake.get.FakeGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fake; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakeGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakeGetRequestBody.FakeGetRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + + if (request.headerParameters != null) { + var headersSerializer = new Parameters.HeaderParametersSerializer(); + Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); + headers.putAll(serializedHeaders); + } + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = null; + if (request.queryParameters != null) { + queryMap = querySerializer.getQueryMap(request.queryParameters); + } + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fake.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeGetResponses.FakeGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface EnumParametersOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeGetResponses.EndpointResponse enumParameters(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public FakeGetRequestBody.@Nullable SealedRequestBody requestBody; + public FakeGetHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public FakeGetQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + GetRequest getInstance(); + T getBuilderAfterRequestBody(GetRequest instance); + default T requestBody(FakeGetRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForHeaderParameters { + GetRequest getInstance(); + T getBuilderAfterHeaderParameters(GetRequest instance); + default T headerParameters(FakeGetHeaderParameters.HeaderParametersMap headerParameters) { + var instance = getInstance(); + instance.headerParameters = headerParameters; + return getBuilderAfterHeaderParameters(instance); + } + } + + public interface SetterForQueryParameters { + GetRequest getInstance(); + T getBuilderAfterQueryParameters(GetRequest instance); + default T queryParameters(FakeGetQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForRequestBody, SetterForHeaderParameters, SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterHeaderParameters(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java new file mode 100644 index 00000000000..e723af46b95 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePatch.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.fake; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.patch.FakePatchRequestBody; +import org.openapijsonschematools.client.paths.fake.patch.FakePatchResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fake; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakePatch { + private static class PatchProvider { + private static final String method = "patch"; + + public static FakePatchResponses.EndpointResponse patch( + PatchRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new FakePatchRequestBody.FakePatchRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fake.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakePatchResponses.FakePatchResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PatchOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakePatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ClientModelOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakePatchResponses.EndpointResponse clientModel(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Patch extends ApiClient implements PatchOperation { + public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PatchRequest { + public FakePatchRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PatchRequest( + FakePatchRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PatchNullableRequest { + public FakePatchRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PatchNullableRequest getInstance(); + T getBuilderAfterServerIndex(PatchNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PatchNullableRequest getInstance(); + T getBuilderAfterTimeout(PatchNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PatchNullableRequest getInstance(); + T getBuilderAfterRequestBody(PatchNullableRequest instance); + default T requestBody(FakePatchRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PatchNullableRequest instance; + + public Patch0RequestBuilder(PatchNullableRequest instance) { + this.instance = instance; + } + + public PatchRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PatchRequest( + requestBody, + instance.serverIndex, + instance.timeout + ); + } + + public PatchNullableRequest getInstance() { + return instance; + } + + public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { + return this; + } + + public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { + return this; + } + } + public static class PatchRequestBuilder implements SetterForRequestBody { + private final PatchNullableRequest instance; + + public PatchRequestBuilder() { + this.instance = new PatchNullableRequest(); + } + + public PatchNullableRequest getInstance() { + return instance; + } + + public Patch0RequestBuilder getBuilderAfterRequestBody(PatchNullableRequest instance) { + return new Patch0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java new file mode 100644 index 00000000000..7772656bdfe --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/FakePost.java @@ -0,0 +1,180 @@ +package org.openapijsonschematools.client.paths.fake; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fake.post.FakePostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; +import org.openapijsonschematools.client.paths.fake.post.FakePostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fake; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakePost { + private static class PostProvider extends AuthApplier { + private static final String method = "post"; + + public static FakePostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakePostRequestBody.FakePostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + Fake.path, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + Fake.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakePostResponses.FakePostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface EndpointParametersOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakePostResponses.EndpointResponse endpointParameters(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakePostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public FakePostSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakePostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + PostRequest getInstance(); + T getBuilderAfterSecurityIndex(PostRequest instance); + default T securityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterSecurityIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java new file mode 100644 index 00000000000..e9bde480d1f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteHeaderParameters.java @@ -0,0 +1,246 @@ +package org.openapijsonschematools.client.paths.fake.delete; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter1.Schema1; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter4.Schema4; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakeDeleteHeaderParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { + protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "required_boolean_group" + ); + public static final Set optionalKeys = Set.of( + "boolean_group" + ); + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakeDeleteHeaderParameters1.getInstance().validate(arg, configuration); + } + + public String required_boolean_group() { + @Nullable Object value = get("required_boolean_group"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for required_boolean_group"); + } + return (String) value; + } + + public String boolean_group() throws UnsetPropertyException { + String key = "boolean_group"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for boolean_group"); + } + return (String) value; + } + } + + public interface SetterForRequiredBooleanGroup { + Map getInstance(); + T getBuilderAfterRequiredBooleanGroup(Map instance); + + default T required_boolean_group(String value) { + var instance = getInstance(); + instance.put("required_boolean_group", value); + return getBuilderAfterRequiredBooleanGroup(instance); + } + + default T required_boolean_group(Schema1.StringSchemaEnums1 value) { + var instance = getInstance(); + instance.put("required_boolean_group", value.value()); + return getBuilderAfterRequiredBooleanGroup(instance); + } + } + + public interface SetterForBooleanGroup { + Map getInstance(); + T getBuilderAfterBooleanGroup(Map instance); + + default T boolean_group(String value) { + var instance = getInstance(); + instance.put("boolean_group", value); + return getBuilderAfterBooleanGroup(instance); + } + + default T boolean_group(Schema4.StringSchemaEnums4 value) { + var instance = getInstance(); + instance.put("boolean_group", value.value()); + return getBuilderAfterBooleanGroup(instance); + } + } + + public static class HeaderParametersMap0Builder implements GenericBuilder>, SetterForBooleanGroup { + private final Map instance; + private static final Set knownKeys = Set.of( + "required_boolean_group", + "boolean_group" + ); + public Set getKnownKeys() { + return knownKeys; + } + public HeaderParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public HeaderParametersMap0Builder getBuilderAfterBooleanGroup(Map instance) { + return this; + } + } + + public static class HeaderParametersMapBuilder implements SetterForRequiredBooleanGroup { + private final Map instance; + public HeaderParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public HeaderParametersMap0Builder getBuilderAfterRequiredBooleanGroup(Map instance) { + return new HeaderParametersMap0Builder(instance); + } + } + + + public sealed interface FakeDeleteHeaderParameters1Boxed permits FakeDeleteHeaderParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakeDeleteHeaderParameters1BoxedMap(HeaderParametersMap data) implements FakeDeleteHeaderParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakeDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeDeleteHeaderParameters1 instance = null; + + protected FakeDeleteHeaderParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("required_boolean_group", Schema1.Schema11.class), + new PropertyEntry("boolean_group", Schema4.Schema41.class) + )) + .required(Set.of( + "required_boolean_group" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakeDeleteHeaderParameters1 getInstance() { + if (instance == null) { + instance = new FakeDeleteHeaderParameters1(); + } + return instance; + } + + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new HeaderParametersMap(castProperties); + } + + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakeDeleteHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeDeleteHeaderParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakeDeleteHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java new file mode 100644 index 00000000000..f5036456013 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteQueryParameters.java @@ -0,0 +1,351 @@ +package org.openapijsonschematools.client.paths.fake.delete; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter2.Schema2; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter3.Schema3; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter5.Schema5; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakeDeleteQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "required_int64_group", + "required_string_group" + ); + public static final Set optionalKeys = Set.of( + "int64_group", + "string_group" + ); + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakeDeleteQueryParameters1.getInstance().validate(arg, configuration); + } + + public Number required_int64_group() { + @Nullable Object value = get("required_int64_group"); + if (!(value instanceof Number)) { + throw new RuntimeException("Invalid value stored for required_int64_group"); + } + return (Number) value; + } + + public String required_string_group() { + @Nullable Object value = get("required_string_group"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for required_string_group"); + } + return (String) value; + } + + public Number int64_group() throws UnsetPropertyException { + String key = "int64_group"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof Number)) { + throw new RuntimeException("Invalid value stored for int64_group"); + } + return (Number) value; + } + + public String string_group() throws UnsetPropertyException { + String key = "string_group"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for string_group"); + } + return (String) value; + } + } + + public interface SetterForRequiredInt64Group { + Map getInstance(); + T getBuilderAfterRequiredInt64Group(Map instance); + + default T required_int64_group(int value) { + var instance = getInstance(); + instance.put("required_int64_group", value); + return getBuilderAfterRequiredInt64Group(instance); + } + + default T required_int64_group(float value) { + var instance = getInstance(); + instance.put("required_int64_group", value); + return getBuilderAfterRequiredInt64Group(instance); + } + + default T required_int64_group(long value) { + var instance = getInstance(); + instance.put("required_int64_group", value); + return getBuilderAfterRequiredInt64Group(instance); + } + + default T required_int64_group(double value) { + var instance = getInstance(); + instance.put("required_int64_group", value); + return getBuilderAfterRequiredInt64Group(instance); + } + } + + public interface SetterForRequiredStringGroup { + Map getInstance(); + T getBuilderAfterRequiredStringGroup(Map instance); + + default T required_string_group(String value) { + var instance = getInstance(); + instance.put("required_string_group", value); + return getBuilderAfterRequiredStringGroup(instance); + } + } + + public interface SetterForInt64Group { + Map getInstance(); + T getBuilderAfterInt64Group(Map instance); + + default T int64_group(int value) { + var instance = getInstance(); + instance.put("int64_group", value); + return getBuilderAfterInt64Group(instance); + } + + default T int64_group(float value) { + var instance = getInstance(); + instance.put("int64_group", value); + return getBuilderAfterInt64Group(instance); + } + + default T int64_group(long value) { + var instance = getInstance(); + instance.put("int64_group", value); + return getBuilderAfterInt64Group(instance); + } + + default T int64_group(double value) { + var instance = getInstance(); + instance.put("int64_group", value); + return getBuilderAfterInt64Group(instance); + } + } + + public interface SetterForStringGroup { + Map getInstance(); + T getBuilderAfterStringGroup(Map instance); + + default T string_group(String value) { + var instance = getInstance(); + instance.put("string_group", value); + return getBuilderAfterStringGroup(instance); + } + } + + public static class QueryParametersMap00Builder implements GenericBuilder>, SetterForInt64Group, SetterForStringGroup { + private final Map instance; + private static final Set knownKeys = Set.of( + "required_int64_group", + "required_string_group", + "int64_group", + "string_group" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMap00Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap00Builder getBuilderAfterInt64Group(Map instance) { + return this; + } + public QueryParametersMap00Builder getBuilderAfterStringGroup(Map instance) { + return this; + } + } + + public static class QueryParametersMap01Builder implements SetterForRequiredStringGroup { + private final Map instance; + public QueryParametersMap01Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap00Builder getBuilderAfterRequiredStringGroup(Map instance) { + return new QueryParametersMap00Builder(instance); + } + } + + public static class QueryParametersMap10Builder implements SetterForRequiredInt64Group { + private final Map instance; + public QueryParametersMap10Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap00Builder getBuilderAfterRequiredInt64Group(Map instance) { + return new QueryParametersMap00Builder(instance); + } + } + + public static class QueryParametersMapBuilder implements SetterForRequiredInt64Group, SetterForRequiredStringGroup { + private final Map instance; + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public QueryParametersMap01Builder getBuilderAfterRequiredInt64Group(Map instance) { + return new QueryParametersMap01Builder(instance); + } + public QueryParametersMap10Builder getBuilderAfterRequiredStringGroup(Map instance) { + return new QueryParametersMap10Builder(instance); + } + } + + + public sealed interface FakeDeleteQueryParameters1Boxed permits FakeDeleteQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakeDeleteQueryParameters1BoxedMap(QueryParametersMap data) implements FakeDeleteQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakeDeleteQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeDeleteQueryParameters1 instance = null; + + protected FakeDeleteQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("required_string_group", Schema0.Schema01.class), + new PropertyEntry("int64_group", Schema5.Schema51.class), + new PropertyEntry("string_group", Schema3.Schema31.class), + new PropertyEntry("required_int64_group", Schema2.Schema21.class) + )) + .required(Set.of( + "required_int64_group", + "required_string_group" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakeDeleteQueryParameters1 getInstance() { + if (instance == null) { + instance = new FakeDeleteQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakeDeleteQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeDeleteQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakeDeleteQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java new file mode 100644 index 00000000000..6482372de63 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fake.delete; + +import org.openapijsonschematools.client.paths.fake.delete.responses.FakeDeleteCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeDeleteResponses { + public sealed interface EndpointResponse permits EndpointFakeDeleteCode200Response {} + + public record EndpointFakeDeleteCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeDeleteCode200ResponseDeserializer {} + + public static final class StatusFakeDeleteCode200ResponseDeserializer extends FakeDeleteCode200Response.FakeDeleteCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeDeleteResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeDeleteResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeDeleteCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeDeleteCode200ResponseDeserializer castDeserializer = (StatusFakeDeleteCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java new file mode 100644 index 00000000000..1d8502b4091 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.fake.delete; + +import org.openapijsonschematools.client.paths.fake.delete.security.FakeDeleteSecurityRequirementObject0; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class FakeDeleteSecurityInfo { + public static class FakeDeleteSecurityInfo1 implements SecurityRequirementObjectProvider { + public final FakeDeleteSecurityRequirementObject0 security0; + + public FakeDeleteSecurityInfo1() { + security0 = new FakeDeleteSecurityRequirementObject0(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + return security0; + } + } + + public enum SecurityIndex { + SECURITY_0 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java new file mode 100644 index 00000000000..ba70280cca5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/Parameters.java @@ -0,0 +1,40 @@ +package org.openapijsonschematools.client.paths.fake.delete; + +import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter0; +import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter1; +import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter2; +import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter3; +import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter4; +import org.openapijsonschematools.client.paths.fake.delete.parameters.Parameter5; +import org.openapijsonschematools.client.parameter.HeadersSerializer; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("required_string_group", new Parameter0.Parameter01()), + new AbstractMap.SimpleEntry<>("required_int64_group", new Parameter2.Parameter21()), + new AbstractMap.SimpleEntry<>("string_group", new Parameter3.Parameter31()), + new AbstractMap.SimpleEntry<>("int64_group", new Parameter5.Parameter51()) + ) + ); + } + } + + public static class HeaderParametersSerializer extends HeadersSerializer { + public HeaderParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("required_boolean_group", new Parameter1.Parameter11()), + new AbstractMap.SimpleEntry<>("boolean_group", new Parameter4.Parameter41()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter0.java new file mode 100644 index 00000000000..5872e87f523 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "required_string_group", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter1.java new file mode 100644 index 00000000000..d74937b4fc9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter1.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter1.Schema1; + +public class Parameter1 { + + public static class Parameter11 extends SchemaParameter { + public Parameter11() { + super( + "required_boolean_group", + ParameterInType.HEADER, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema1.Schema11.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter2.java new file mode 100644 index 00000000000..9453ce7bcb3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter2.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter2.Schema2; + +public class Parameter2 { + + public static class Parameter21 extends SchemaParameter { + public Parameter21() { + super( + "required_int64_group", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema2.Schema21.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter3.java new file mode 100644 index 00000000000..c2121467a18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter3.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter3.Schema3; + +public class Parameter3 { + + public static class Parameter31 extends SchemaParameter { + public Parameter31() { + super( + "string_group", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema3.Schema31.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter4.java new file mode 100644 index 00000000000..c755206ddac --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter4.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter4.Schema4; + +public class Parameter4 { + + public static class Parameter41 extends SchemaParameter { + public Parameter41() { + super( + "boolean_group", + ParameterInType.HEADER, + false, + ParameterStyle.SIMPLE, + false, + false, + Schema4.Schema41.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter5.java new file mode 100644 index 00000000000..91ea65b5be7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/Parameter5.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.delete.parameters.parameter5.Schema5; + +public class Parameter5 { + + public static class Parameter51 extends SchemaParameter { + public Parameter51() { + super( + "int64_group", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema5.Schema51.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..85b207cd05f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java new file mode 100644 index 00000000000..ec9ab334ddc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java @@ -0,0 +1,114 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter1; +import java.util.HashSet; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema1 { + // nest classes so all schemas and input/output classes can be public + + public enum StringSchemaEnums1 implements StringValueMethod { + TRUE("true"), + FALSE("false"); + private final String value; + + StringSchemaEnums1(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface Schema11Boxed permits Schema11BoxedString { + @Nullable Object getData(); + } + + public record Schema11BoxedString(String data) implements Schema11Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + private static @Nullable Schema11 instance = null; + + protected Schema11() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "true", + "false" + )) + ); + } + + public static Schema11 getInstance() { + if (instance == null) { + instance = new Schema11(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringSchemaEnums1 arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema11BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema11BoxedString(validate(arg, configuration)); + } + @Override + public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter2/Schema2.java new file mode 100644 index 00000000000..93cb91de837 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter2/Schema2.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter2; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.Int64JsonSchema; + +public class Schema2 extends Int64JsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema21 extends Int64JsonSchema.Int64JsonSchema1 { + private static @Nullable Schema21 instance = null; + public static Schema21 getInstance() { + if (instance == null) { + instance = new Schema21(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java new file mode 100644 index 00000000000..4ec69a80fc9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter3/Schema3.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter3; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema3 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema31 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema31 instance = null; + public static Schema31 getInstance() { + if (instance == null) { + instance = new Schema31(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java new file mode 100644 index 00000000000..023f18175d6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java @@ -0,0 +1,114 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter4; +import java.util.HashSet; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema4 { + // nest classes so all schemas and input/output classes can be public + + public enum StringSchemaEnums4 implements StringValueMethod { + TRUE("true"), + FALSE("false"); + private final String value; + + StringSchemaEnums4(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface Schema41Boxed permits Schema41BoxedString { + @Nullable Object getData(); + } + + public record Schema41BoxedString(String data) implements Schema41Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema41 extends JsonSchema implements StringSchemaValidator, StringEnumValidator { + private static @Nullable Schema41 instance = null; + + protected Schema41() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "true", + "false" + )) + ); + } + + public static Schema41 getInstance() { + if (instance == null) { + instance = new Schema41(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringSchemaEnums4 arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema41BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema41BoxedString(validate(arg, configuration)); + } + @Override + public Schema41Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java new file mode 100644 index 00000000000..a15a29b9222 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter5/Schema5.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fake.delete.parameters.parameter5; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.Int64JsonSchema; + +public class Schema5 extends Int64JsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema51 extends Int64JsonSchema.Int64JsonSchema1 { + private static @Nullable Schema51 instance = null; + public static Schema51 getInstance() { + if (instance == null) { + instance = new Schema51(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java new file mode 100644 index 00000000000..a9caf9729de --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/responses/FakeDeleteCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fake.delete.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakeDeleteCode200Response extends SuccessDescriptionOnly { + public static class FakeDeleteCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java new file mode 100644 index 00000000000..a615af7f968 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.fake.delete.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.BearerTest; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeDeleteSecurityRequirementObject0 extends SecurityRequirementObject { + + public FakeDeleteSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + BearerTest.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java new file mode 100644 index 00000000000..4ac48925b27 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetHeaderParameters.java @@ -0,0 +1,228 @@ +package org.openapijsonschematools.client.paths.fake.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter1.Schema1; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakeGetHeaderParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { + protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "enum_header_string", + "enum_header_string_array" + ); + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakeGetHeaderParameters1.getInstance().validate(arg, configuration); + } + + public String enum_header_string() throws UnsetPropertyException { + String key = "enum_header_string"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for enum_header_string"); + } + return (String) value; + } + + public Schema0.SchemaList0 enum_header_string_array() throws UnsetPropertyException { + String key = "enum_header_string_array"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof Schema0.SchemaList0)) { + throw new RuntimeException("Invalid value stored for enum_header_string_array"); + } + return (Schema0.SchemaList0) value; + } + } + + public interface SetterForEnumHeaderString { + Map getInstance(); + T getBuilderAfterEnumHeaderString(Map instance); + + default T enum_header_string(String value) { + var instance = getInstance(); + instance.put("enum_header_string", value); + return getBuilderAfterEnumHeaderString(instance); + } + + default T enum_header_string(Schema1.StringSchemaEnums1 value) { + var instance = getInstance(); + instance.put("enum_header_string", value.value()); + return getBuilderAfterEnumHeaderString(instance); + } + } + + public interface SetterForEnumHeaderStringArray { + Map getInstance(); + T getBuilderAfterEnumHeaderStringArray(Map instance); + + default T enum_header_string_array(List value) { + var instance = getInstance(); + instance.put("enum_header_string_array", value); + return getBuilderAfterEnumHeaderStringArray(instance); + } + } + + public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForEnumHeaderString, SetterForEnumHeaderStringArray { + private final Map instance; + private static final Set knownKeys = Set.of( + "enum_header_string", + "enum_header_string_array" + ); + public Set getKnownKeys() { + return knownKeys; + } + public HeaderParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public HeaderParametersMapBuilder getBuilderAfterEnumHeaderString(Map instance) { + return this; + } + public HeaderParametersMapBuilder getBuilderAfterEnumHeaderStringArray(Map instance) { + return this; + } + } + + + public sealed interface FakeGetHeaderParameters1Boxed permits FakeGetHeaderParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakeGetHeaderParameters1BoxedMap(HeaderParametersMap data) implements FakeGetHeaderParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakeGetHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeGetHeaderParameters1 instance = null; + + protected FakeGetHeaderParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("enum_header_string", Schema1.Schema11.class), + new PropertyEntry("enum_header_string_array", Schema0.Schema01.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakeGetHeaderParameters1 getInstance() { + if (instance == null) { + instance = new FakeGetHeaderParameters1(); + } + return instance; + } + + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new HeaderParametersMap(castProperties); + } + + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakeGetHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeGetHeaderParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakeGetHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java new file mode 100644 index 00000000000..90bb2fbb2a0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetQueryParameters.java @@ -0,0 +1,344 @@ +package org.openapijsonschematools.client.paths.fake.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter2.Schema2; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter3.Schema3; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter4.Schema4; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter5.Schema5; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakeGetQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "enum_query_double", + "enum_query_string", + "enum_query_integer", + "enum_query_string_array" + ); + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakeGetQueryParameters1.getInstance().validate(arg, configuration); + } + + public Number enum_query_double() throws UnsetPropertyException { + String key = "enum_query_double"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof Number)) { + throw new RuntimeException("Invalid value stored for enum_query_double"); + } + return (Number) value; + } + + public String enum_query_string() throws UnsetPropertyException { + String key = "enum_query_string"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for enum_query_string"); + } + return (String) value; + } + + public Number enum_query_integer() throws UnsetPropertyException { + String key = "enum_query_integer"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof Number)) { + throw new RuntimeException("Invalid value stored for enum_query_integer"); + } + return (Number) value; + } + + public Schema2.SchemaList2 enum_query_string_array() throws UnsetPropertyException { + String key = "enum_query_string_array"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof Schema2.SchemaList2)) { + throw new RuntimeException("Invalid value stored for enum_query_string_array"); + } + return (Schema2.SchemaList2) value; + } + } + + public interface SetterForEnumQueryDouble { + Map getInstance(); + T getBuilderAfterEnumQueryDouble(Map instance); + + default T enum_query_double(int value) { + var instance = getInstance(); + instance.put("enum_query_double", value); + return getBuilderAfterEnumQueryDouble(instance); + } + + default T enum_query_double(float value) { + var instance = getInstance(); + instance.put("enum_query_double", value); + return getBuilderAfterEnumQueryDouble(instance); + } + + default T enum_query_double(long value) { + var instance = getInstance(); + instance.put("enum_query_double", value); + return getBuilderAfterEnumQueryDouble(instance); + } + + default T enum_query_double(double value) { + var instance = getInstance(); + instance.put("enum_query_double", value); + return getBuilderAfterEnumQueryDouble(instance); + } + + default T enum_query_double(Schema5.DoubleSchemaEnums5 value) { + var instance = getInstance(); + instance.put("enum_query_double", value.value()); + return getBuilderAfterEnumQueryDouble(instance); + } + + default T enum_query_double(Schema5.FloatSchemaEnums5 value) { + var instance = getInstance(); + instance.put("enum_query_double", value.value()); + return getBuilderAfterEnumQueryDouble(instance); + } + } + + public interface SetterForEnumQueryString { + Map getInstance(); + T getBuilderAfterEnumQueryString(Map instance); + + default T enum_query_string(String value) { + var instance = getInstance(); + instance.put("enum_query_string", value); + return getBuilderAfterEnumQueryString(instance); + } + + default T enum_query_string(Schema3.StringSchemaEnums3 value) { + var instance = getInstance(); + instance.put("enum_query_string", value.value()); + return getBuilderAfterEnumQueryString(instance); + } + } + + public interface SetterForEnumQueryInteger { + Map getInstance(); + T getBuilderAfterEnumQueryInteger(Map instance); + + default T enum_query_integer(int value) { + var instance = getInstance(); + instance.put("enum_query_integer", value); + return getBuilderAfterEnumQueryInteger(instance); + } + + default T enum_query_integer(float value) { + var instance = getInstance(); + instance.put("enum_query_integer", value); + return getBuilderAfterEnumQueryInteger(instance); + } + + default T enum_query_integer(Schema4.IntegerSchemaEnums4 value) { + var instance = getInstance(); + instance.put("enum_query_integer", value.value()); + return getBuilderAfterEnumQueryInteger(instance); + } + + default T enum_query_integer(Schema4.LongSchemaEnums4 value) { + var instance = getInstance(); + instance.put("enum_query_integer", value.value()); + return getBuilderAfterEnumQueryInteger(instance); + } + + default T enum_query_integer(Schema4.FloatSchemaEnums4 value) { + var instance = getInstance(); + instance.put("enum_query_integer", value.value()); + return getBuilderAfterEnumQueryInteger(instance); + } + + default T enum_query_integer(Schema4.DoubleSchemaEnums4 value) { + var instance = getInstance(); + instance.put("enum_query_integer", value.value()); + return getBuilderAfterEnumQueryInteger(instance); + } + } + + public interface SetterForEnumQueryStringArray { + Map getInstance(); + T getBuilderAfterEnumQueryStringArray(Map instance); + + default T enum_query_string_array(List value) { + var instance = getInstance(); + instance.put("enum_query_string_array", value); + return getBuilderAfterEnumQueryStringArray(instance); + } + } + + public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForEnumQueryDouble, SetterForEnumQueryString, SetterForEnumQueryInteger, SetterForEnumQueryStringArray { + private final Map instance; + private static final Set knownKeys = Set.of( + "enum_query_double", + "enum_query_string", + "enum_query_integer", + "enum_query_string_array" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMapBuilder getBuilderAfterEnumQueryDouble(Map instance) { + return this; + } + public QueryParametersMapBuilder getBuilderAfterEnumQueryString(Map instance) { + return this; + } + public QueryParametersMapBuilder getBuilderAfterEnumQueryInteger(Map instance) { + return this; + } + public QueryParametersMapBuilder getBuilderAfterEnumQueryStringArray(Map instance) { + return this; + } + } + + + public sealed interface FakeGetQueryParameters1Boxed permits FakeGetQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakeGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakeGetQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeGetQueryParameters1 instance = null; + + protected FakeGetQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("enum_query_double", Schema5.Schema51.class), + new PropertyEntry("enum_query_string", Schema3.Schema31.class), + new PropertyEntry("enum_query_integer", Schema4.Schema41.class), + new PropertyEntry("enum_query_string_array", Schema2.Schema21.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakeGetQueryParameters1 getInstance() { + if (instance == null) { + instance = new FakeGetQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakeGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeGetQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakeGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java new file mode 100644 index 00000000000..71470cf4465 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fake.get; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakeGetRequestBody { + public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} + + public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxwwwformurlencodedMediaType() { + this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakeGetRequestBody1 extends RequestBodySerializer { + public FakeGetRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationxwwwformurlencodedRequestBody requestBody0 = (ApplicationxwwwformurlencodedRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} + public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/x-www-form-urlencoded"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java new file mode 100644 index 00000000000..ff46bc65ce0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/FakeGetResponses.java @@ -0,0 +1,66 @@ +package org.openapijsonschematools.client.paths.fake.get; + +import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode200Response; +import org.openapijsonschematools.client.paths.fake.get.responses.FakeGetCode404Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeGetResponses { + public sealed interface EndpointResponse permits EndpointFakeGetCode200Response {} + + public record EndpointFakeGetCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeGetCode200ResponseDeserializer, StatusFakeGetCode404ResponseDeserializer {} + + public static final class StatusFakeGetCode200ResponseDeserializer extends FakeGetCode200Response.FakeGetCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusFakeGetCode404ResponseDeserializer extends FakeGetCode404Response.FakeGetCode404Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusFakeGetCode404ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusFakeGetCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else { + StatusFakeGetCode404ResponseDeserializer castDeserializer = (StatusFakeGetCode404ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new FakeGetCode404Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java new file mode 100644 index 00000000000..c5b3e142015 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/Parameters.java @@ -0,0 +1,40 @@ +package org.openapijsonschematools.client.paths.fake.get; + +import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter0; +import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter1; +import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter2; +import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter3; +import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter4; +import org.openapijsonschematools.client.paths.fake.get.parameters.Parameter5; +import org.openapijsonschematools.client.parameter.HeadersSerializer; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("enum_query_string_array", new Parameter2.Parameter21()), + new AbstractMap.SimpleEntry<>("enum_query_string", new Parameter3.Parameter31()), + new AbstractMap.SimpleEntry<>("enum_query_integer", new Parameter4.Parameter41()), + new AbstractMap.SimpleEntry<>("enum_query_double", new Parameter5.Parameter51()) + ) + ); + } + } + + public static class HeaderParametersSerializer extends HeadersSerializer { + public HeaderParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("enum_header_string_array", new Parameter0.Parameter01()), + new AbstractMap.SimpleEntry<>("enum_header_string", new Parameter1.Parameter11()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java new file mode 100644 index 00000000000..3a8537f7fd1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "enum_header_string_array", + ParameterInType.HEADER, + false, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java new file mode 100644 index 00000000000..49e947d6399 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter1.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter1.Schema1; + +public class Parameter1 { + + public static class Parameter11 extends SchemaParameter { + public Parameter11() { + super( + "enum_header_string", + ParameterInType.HEADER, + false, + ParameterStyle.SIMPLE, + false, + false, + Schema1.Schema11.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter2.java new file mode 100644 index 00000000000..71e3f589257 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter2.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter2.Schema2; + +public class Parameter2 { + + public static class Parameter21 extends SchemaParameter { + public Parameter21() { + super( + "enum_query_string_array", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema2.Schema21.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter3.java new file mode 100644 index 00000000000..9903092e80d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter3.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter3.Schema3; + +public class Parameter3 { + + public static class Parameter31 extends SchemaParameter { + public Parameter31() { + super( + "enum_query_string", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema3.Schema31.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter4.java new file mode 100644 index 00000000000..21bf1787d8a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter4.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter4.Schema4; + +public class Parameter4 { + + public static class Parameter41 extends SchemaParameter { + public Parameter41() { + super( + "enum_query_integer", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema4.Schema41.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter5.java new file mode 100644 index 00000000000..7fb91fb88f0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/Parameter5.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fake.get.parameters.parameter5.Schema5; + +public class Parameter5 { + + public static class Parameter51 extends SchemaParameter { + public Parameter51() { + super( + "enum_query_double", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema5.Schema51.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..0656e20511a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java @@ -0,0 +1,253 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters.parameter0; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema0 { + // nest classes so all schemas and input/output classes can be public + + public enum StringItemsEnums0 implements StringValueMethod { + GREATER_THAN_SIGN(">"), + DOLLAR_SIGN("$"); + private final String value; + + StringItemsEnums0(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface Items0Boxed permits Items0BoxedString { + @Nullable Object getData(); + } + + public record Items0BoxedString(String data) implements Items0Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Items0 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Items0 instance = null; + + protected Items0() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + ">", + "$" + )) + .defaultValue("$") + ); + } + + public static Items0 getInstance() { + if (instance == null) { + instance = new Items0(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringItemsEnums0 arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public Items0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Items0BoxedString(validate(arg, configuration)); + } + @Override + public Items0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class SchemaList0 extends FrozenList { + protected SchemaList0(FrozenList m) { + super(m); + } + public static SchemaList0 of(List arg, SchemaConfiguration configuration) throws ValidationException { + return Schema01.getInstance().validate(arg, configuration); + } + } + + public static class SchemaListBuilder0 { + // class to build List + private final List list; + + public SchemaListBuilder0() { + list = new ArrayList<>(); + } + + public SchemaListBuilder0(List list) { + this.list = list; + } + + public SchemaListBuilder0 add(String item) { + list.add(item); + return this; + } + + public SchemaListBuilder0 add(StringItemsEnums0 item) { + list.add(item.value()); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface Schema01Boxed permits Schema01BoxedList { + @Nullable Object getData(); + } + + public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema01 extends JsonSchema implements ListSchemaValidator { + private static @Nullable Schema01 instance = null; + + protected Schema01() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(Items0.class) + ); + } + + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + + @Override + public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new SchemaList0(newInstanceItems); + } + + public SchemaList0 validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedList(validate(arg, configuration)); + } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java new file mode 100644 index 00000000000..c11fb1b0bf8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java @@ -0,0 +1,124 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters.parameter1; +import java.util.HashSet; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema1 { + // nest classes so all schemas and input/output classes can be public + + public enum StringSchemaEnums1 implements StringValueMethod { + LOW_LINE_ABC("_abc"), + HYPHEN_MINUS_EFG("-efg"), + LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS("(xyz)"); + private final String value; + + StringSchemaEnums1(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface Schema11Boxed permits Schema11BoxedString { + @Nullable Object getData(); + } + + public record Schema11BoxedString(String data) implements Schema11Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema11 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Schema11 instance = null; + + protected Schema11() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "_abc", + "-efg", + "(xyz)" + )) + .defaultValue("-efg") + ); + } + + public static Schema11 getInstance() { + if (instance == null) { + instance = new Schema11(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringSchemaEnums1 arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public Schema11BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema11BoxedString(validate(arg, configuration)); + } + @Override + public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java new file mode 100644 index 00000000000..ac7290881ca --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java @@ -0,0 +1,253 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters.parameter2; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema2 { + // nest classes so all schemas and input/output classes can be public + + public enum StringItemsEnums2 implements StringValueMethod { + GREATER_THAN_SIGN(">"), + DOLLAR_SIGN("$"); + private final String value; + + StringItemsEnums2(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface Items2Boxed permits Items2BoxedString { + @Nullable Object getData(); + } + + public record Items2BoxedString(String data) implements Items2Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Items2 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Items2 instance = null; + + protected Items2() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + ">", + "$" + )) + .defaultValue("$") + ); + } + + public static Items2 getInstance() { + if (instance == null) { + instance = new Items2(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringItemsEnums2 arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public Items2BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Items2BoxedString(validate(arg, configuration)); + } + @Override + public Items2Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class SchemaList2 extends FrozenList { + protected SchemaList2(FrozenList m) { + super(m); + } + public static SchemaList2 of(List arg, SchemaConfiguration configuration) throws ValidationException { + return Schema21.getInstance().validate(arg, configuration); + } + } + + public static class SchemaListBuilder2 { + // class to build List + private final List list; + + public SchemaListBuilder2() { + list = new ArrayList<>(); + } + + public SchemaListBuilder2(List list) { + this.list = list; + } + + public SchemaListBuilder2 add(String item) { + list.add(item); + return this; + } + + public SchemaListBuilder2 add(StringItemsEnums2 item) { + list.add(item.value()); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface Schema21Boxed permits Schema21BoxedList { + @Nullable Object getData(); + } + + public record Schema21BoxedList(SchemaList2 data) implements Schema21Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema21 extends JsonSchema implements ListSchemaValidator { + private static @Nullable Schema21 instance = null; + + protected Schema21() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(Items2.class) + ); + } + + public static Schema21 getInstance() { + if (instance == null) { + instance = new Schema21(); + } + return instance; + } + + @Override + public SchemaList2 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new SchemaList2(newInstanceItems); + } + + public SchemaList2 validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema21BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema21BoxedList(validate(arg, configuration)); + } + @Override + public Schema21Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java new file mode 100644 index 00000000000..10b29f05566 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java @@ -0,0 +1,124 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters.parameter3; +import java.util.HashSet; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema3 { + // nest classes so all schemas and input/output classes can be public + + public enum StringSchemaEnums3 implements StringValueMethod { + LOW_LINE_ABC("_abc"), + HYPHEN_MINUS_EFG("-efg"), + LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS("(xyz)"); + private final String value; + + StringSchemaEnums3(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface Schema31Boxed permits Schema31BoxedString { + @Nullable Object getData(); + } + + public record Schema31BoxedString(String data) implements Schema31Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema31 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Schema31 instance = null; + + protected Schema31() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "_abc", + "-efg", + "(xyz)" + )) + .defaultValue("-efg") + ); + } + + public static Schema31 getInstance() { + if (instance == null) { + instance = new Schema31(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringSchemaEnums3 arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public Schema31BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema31BoxedString(validate(arg, configuration)); + } + @Override + public Schema31Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java new file mode 100644 index 00000000000..31ffdbc7fef --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java @@ -0,0 +1,187 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters.parameter4; +import java.math.BigDecimal; +import java.util.HashSet; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DoubleEnumValidator; +import org.openapijsonschematools.client.schemas.validation.DoubleValueMethod; +import org.openapijsonschematools.client.schemas.validation.FloatEnumValidator; +import org.openapijsonschematools.client.schemas.validation.FloatValueMethod; +import org.openapijsonschematools.client.schemas.validation.IntegerEnumValidator; +import org.openapijsonschematools.client.schemas.validation.IntegerValueMethod; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.LongEnumValidator; +import org.openapijsonschematools.client.schemas.validation.LongValueMethod; +import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema4 { + // nest classes so all schemas and input/output classes can be public + + public enum IntegerSchemaEnums4 implements IntegerValueMethod { + POSITIVE_1(1), + NEGATIVE_2(-2); + private final int value; + + IntegerSchemaEnums4(int value) { + this.value = value; + } + public int value() { + return this.value; + } + } + + public enum LongSchemaEnums4 implements LongValueMethod { + POSITIVE_1(1L), + NEGATIVE_2(-2L); + private final long value; + + LongSchemaEnums4(long value) { + this.value = value; + } + public long value() { + return this.value; + } + } + + public enum FloatSchemaEnums4 implements FloatValueMethod { + POSITIVE_1(1.0f), + NEGATIVE_2(-2.0f); + private final float value; + + FloatSchemaEnums4(float value) { + this.value = value; + } + public float value() { + return this.value; + } + } + + public enum DoubleSchemaEnums4 implements DoubleValueMethod { + POSITIVE_1(1.0d), + NEGATIVE_2(-2.0d); + private final double value; + + DoubleSchemaEnums4(double value) { + this.value = value; + } + public double value() { + return this.value; + } + } + + + public sealed interface Schema41Boxed permits Schema41BoxedNumber { + @Nullable Object getData(); + } + + public record Schema41BoxedNumber(Number data) implements Schema41Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema41 extends JsonSchema implements IntegerEnumValidator, LongEnumValidator, FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + private static @Nullable Schema41 instance = null; + + protected Schema41() { + super(new JsonSchemaInfo() + .type(Set.of( + Integer.class, + Long.class, + Float.class, + Double.class + )) + .format("int32") + .enumValues(SetMaker.makeSet( + new BigDecimal("1"), + new BigDecimal("-2") + )) + ); + } + + public static Schema41 getInstance() { + if (instance == null) { + instance = new Schema41(); + } + return instance; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + @Override + public int validate(IntegerSchemaEnums4 arg,SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg.value(), configuration); + } + + @Override + public long validate(LongSchemaEnums4 arg,SchemaConfiguration configuration) throws ValidationException { + return (long) validate((Number) arg.value(), configuration); + } + + @Override + public float validate(FloatSchemaEnums4 arg,SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg.value(), configuration); + } + + @Override + public double validate(DoubleSchemaEnums4 arg,SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number) { + return validate((Number) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema41BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema41BoxedNumber(validate(arg, configuration)); + } + @Override + public Schema41Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java new file mode 100644 index 00000000000..061a755133a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java @@ -0,0 +1,142 @@ +package org.openapijsonschematools.client.paths.fake.get.parameters.parameter5; +import java.math.BigDecimal; +import java.util.HashSet; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DoubleEnumValidator; +import org.openapijsonschematools.client.schemas.validation.DoubleValueMethod; +import org.openapijsonschematools.client.schemas.validation.FloatEnumValidator; +import org.openapijsonschematools.client.schemas.validation.FloatValueMethod; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema5 { + // nest classes so all schemas and input/output classes can be public + + public enum DoubleSchemaEnums5 implements DoubleValueMethod { + POSITIVE_1_PT_1(1.1d), + NEGATIVE_1_PT_2(-1.2d); + private final double value; + + DoubleSchemaEnums5(double value) { + this.value = value; + } + public double value() { + return this.value; + } + } + + public enum FloatSchemaEnums5 implements FloatValueMethod { + POSITIVE_1_PT_1(1.1f), + NEGATIVE_1_PT_2(-1.2f); + private final float value; + + FloatSchemaEnums5(float value) { + this.value = value; + } + public float value() { + return this.value; + } + } + + + public sealed interface Schema51Boxed permits Schema51BoxedNumber { + @Nullable Object getData(); + } + + public record Schema51BoxedNumber(Number data) implements Schema51Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema51 extends JsonSchema implements FloatEnumValidator, DoubleEnumValidator, NumberSchemaValidator { + private static @Nullable Schema51 instance = null; + + protected Schema51() { + super(new JsonSchemaInfo() + .type(Set.of( + Integer.class, + Long.class, + Float.class, + Double.class + )) + .format("double") + .enumValues(SetMaker.makeSet( + new BigDecimal("1.1"), + new BigDecimal("-1.2") + )) + ); + } + + public static Schema51 getInstance() { + if (instance == null) { + instance = new Schema51(); + } + return instance; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public float validate(FloatSchemaEnums5 arg,SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg.value(), configuration); + } + + @Override + public double validate(DoubleSchemaEnums5 arg,SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number) { + return validate((Number) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema51BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema51BoxedNumber(validate(arg, configuration)); + } + @Override + public Schema51Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java new file mode 100644 index 00000000000..481e0b1b057 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -0,0 +1,553 @@ +package org.openapijsonschematools.client.paths.fake.get.requestbody.content.applicationxwwwformurlencoded; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class ApplicationxwwwformurlencodedSchema { + // nest classes so all schemas and input/output classes can be public + + public enum StringApplicationxwwwformurlencodedItemsEnums implements StringValueMethod { + GREATER_THAN_SIGN(">"), + DOLLAR_SIGN("$"); + private final String value; + + StringApplicationxwwwformurlencodedItemsEnums(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface ApplicationxwwwformurlencodedItemsBoxed permits ApplicationxwwwformurlencodedItemsBoxedString { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedItemsBoxedString(String data) implements ApplicationxwwwformurlencodedItemsBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedItems extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable ApplicationxwwwformurlencodedItems instance = null; + + protected ApplicationxwwwformurlencodedItems() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + ">", + "$" + )) + .defaultValue("$") + ); + } + + public static ApplicationxwwwformurlencodedItems getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedItems(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringApplicationxwwwformurlencodedItemsEnums arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public ApplicationxwwwformurlencodedItemsBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedItemsBoxedString(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedItemsBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class ApplicationxwwwformurlencodedEnumFormStringArrayList extends FrozenList { + protected ApplicationxwwwformurlencodedEnumFormStringArrayList(FrozenList m) { + super(m); + } + public static ApplicationxwwwformurlencodedEnumFormStringArrayList of(List arg, SchemaConfiguration configuration) throws ValidationException { + return ApplicationxwwwformurlencodedEnumFormStringArray.getInstance().validate(arg, configuration); + } + } + + public static class ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder { + // class to build List + private final List list; + + public ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder() { + list = new ArrayList<>(); + } + + public ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder(List list) { + this.list = list; + } + + public ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder add(String item) { + list.add(item); + return this; + } + + public ApplicationxwwwformurlencodedEnumFormStringArrayListBuilder add(StringApplicationxwwwformurlencodedItemsEnums item) { + list.add(item.value()); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface ApplicationxwwwformurlencodedEnumFormStringArrayBoxed permits ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList(ApplicationxwwwformurlencodedEnumFormStringArrayList data) implements ApplicationxwwwformurlencodedEnumFormStringArrayBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedEnumFormStringArray extends JsonSchema implements ListSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedEnumFormStringArray instance = null; + + protected ApplicationxwwwformurlencodedEnumFormStringArray() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(ApplicationxwwwformurlencodedItems.class) + ); + } + + public static ApplicationxwwwformurlencodedEnumFormStringArray getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedEnumFormStringArray(); + } + return instance; + } + + @Override + public ApplicationxwwwformurlencodedEnumFormStringArrayList getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new ApplicationxwwwformurlencodedEnumFormStringArrayList(newInstanceItems); + } + + public ApplicationxwwwformurlencodedEnumFormStringArrayList validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedEnumFormStringArrayBoxedList(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedEnumFormStringArrayBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + public enum StringApplicationxwwwformurlencodedEnumFormStringEnums implements StringValueMethod { + LOW_LINE_ABC("_abc"), + HYPHEN_MINUS_EFG("-efg"), + LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS("(xyz)"); + private final String value; + + StringApplicationxwwwformurlencodedEnumFormStringEnums(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface ApplicationxwwwformurlencodedEnumFormStringBoxed permits ApplicationxwwwformurlencodedEnumFormStringBoxedString { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedEnumFormStringBoxedString(String data) implements ApplicationxwwwformurlencodedEnumFormStringBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedEnumFormString extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable ApplicationxwwwformurlencodedEnumFormString instance = null; + + protected ApplicationxwwwformurlencodedEnumFormString() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "_abc", + "-efg", + "(xyz)" + )) + .defaultValue("-efg") + ); + } + + public static ApplicationxwwwformurlencodedEnumFormString getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedEnumFormString(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringApplicationxwwwformurlencodedEnumFormStringEnums arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public ApplicationxwwwformurlencodedEnumFormStringBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedEnumFormStringBoxedString(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedEnumFormStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap extends FrozenMap<@Nullable Object> { + protected ApplicationxwwwformurlencodedSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "enum_form_string_array", + "enum_form_string" + ); + public static ApplicationxwwwformurlencodedSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return ApplicationxwwwformurlencodedSchema1.getInstance().validate(arg, configuration); + } + + public ApplicationxwwwformurlencodedEnumFormStringArrayList enum_form_string_array() throws UnsetPropertyException { + String key = "enum_form_string_array"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof ApplicationxwwwformurlencodedEnumFormStringArrayList)) { + throw new RuntimeException("Invalid value stored for enum_form_string_array"); + } + return (ApplicationxwwwformurlencodedEnumFormStringArrayList) value; + } + + public String enum_form_string() throws UnsetPropertyException { + String key = "enum_form_string"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for enum_form_string"); + } + return (String) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForApplicationxwwwformurlencodedEnumFormStringArray { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedEnumFormStringArray(Map instance); + + default T enum_form_string_array(List value) { + var instance = getInstance(); + instance.put("enum_form_string_array", value); + return getBuilderAfterApplicationxwwwformurlencodedEnumFormStringArray(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedEnumFormString { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedEnumFormString(Map instance); + + default T enum_form_string(String value) { + var instance = getInstance(); + instance.put("enum_form_string", value); + return getBuilderAfterApplicationxwwwformurlencodedEnumFormString(instance); + } + + default T enum_form_string(StringApplicationxwwwformurlencodedEnumFormStringEnums value) { + var instance = getInstance(); + instance.put("enum_form_string", value.value()); + return getBuilderAfterApplicationxwwwformurlencodedEnumFormString(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForApplicationxwwwformurlencodedEnumFormStringArray, SetterForApplicationxwwwformurlencodedEnumFormString { + private final Map instance; + private static final Set knownKeys = Set.of( + "enum_form_string_array", + "enum_form_string" + ); + public Set getKnownKeys() { + return knownKeys; + } + public ApplicationxwwwformurlencodedSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterApplicationxwwwformurlencodedEnumFormStringArray(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterApplicationxwwwformurlencodedEnumFormString(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; + + protected ApplicationxwwwformurlencodedSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("enum_form_string_array", ApplicationxwwwformurlencodedEnumFormStringArray.class), + new PropertyEntry("enum_form_string", ApplicationxwwwformurlencodedEnumFormString.class) + )) + ); + } + + public static ApplicationxwwwformurlencodedSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedSchema1(); + } + return instance; + } + + public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new ApplicationxwwwformurlencodedSchemaMap(castProperties); + } + + public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java new file mode 100644 index 00000000000..5787a626bfc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fake.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakeGetCode200Response extends SuccessDescriptionOnly { + public static class FakeGetCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java new file mode 100644 index 00000000000..7ed1e9138ab --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/FakeGetCode404Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fake.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fake.get.responses.code404response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakeGetCode404Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.MapJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakeGetCode404Response1 extends ResponseDeserializer { + public FakeGetCode404Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..b9a4b76bd20 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.fake.get.responses.code404response.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.MapJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; + +public class ApplicationjsonSchema extends MapJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends MapJsonSchema.MapJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java new file mode 100644 index 00000000000..a31bc3e33c1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchRequestBody.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fake.patch; + +import org.openapijsonschematools.client.components.requestbodies.Client; + +public class FakePatchRequestBody extends Client { + public static class FakePatchRequestBody1 extends Client1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java new file mode 100644 index 00000000000..bdd4f5eaf64 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/FakePatchResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fake.patch; + +import org.openapijsonschematools.client.paths.fake.patch.responses.FakePatchCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakePatchResponses { + public sealed interface EndpointResponse permits EndpointFakePatchCode200Response {} + + public record EndpointFakePatchCode200Response( + HttpResponse response, + FakePatchCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakePatchCode200ResponseDeserializer {} + + public static final class StatusFakePatchCode200ResponseDeserializer extends FakePatchCode200Response.FakePatchCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakePatchResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakePatchResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakePatchCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakePatchCode200ResponseDeserializer castDeserializer = (StatusFakePatchCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakePatchCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java new file mode 100644 index 00000000000..8e41f415025 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/FakePatchCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fake.patch.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fake.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakePatchCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } + + public static class FakePatchCode200Response1 extends ResponseDeserializer { + public FakePatchCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..f61bbf1fe44 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fake.patch.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Client; + +public class ApplicationjsonSchema extends Client { + // $refed class + + + public static class ApplicationjsonSchema1 extends Client1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java new file mode 100644 index 00000000000..77ff9662be2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fake.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakePostRequestBody { + public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} + + public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxwwwformurlencodedMediaType() { + this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakePostRequestBody1 extends RequestBodySerializer { + public FakePostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationxwwwformurlencodedRequestBody requestBody0 = (ApplicationxwwwformurlencodedRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} + public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/x-www-form-urlencoded"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java new file mode 100644 index 00000000000..407615511d5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostResponses.java @@ -0,0 +1,66 @@ +package org.openapijsonschematools.client.paths.fake.post; + +import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode200Response; +import org.openapijsonschematools.client.paths.fake.post.responses.FakePostCode404Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakePostResponses { + public sealed interface EndpointResponse permits EndpointFakePostCode200Response {} + + public record EndpointFakePostCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakePostCode200ResponseDeserializer, StatusFakePostCode404ResponseDeserializer {} + + public static final class StatusFakePostCode200ResponseDeserializer extends FakePostCode200Response.FakePostCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusFakePostCode404ResponseDeserializer extends FakePostCode404Response.FakePostCode404Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakePostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakePostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakePostCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusFakePostCode404ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusFakePostCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else { + StatusFakePostCode404ResponseDeserializer castDeserializer = (StatusFakePostCode404ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new FakePostCode404Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java new file mode 100644 index 00000000000..013b581a6d4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.fake.post; + +import org.openapijsonschematools.client.paths.fake.post.security.FakePostSecurityRequirementObject0; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class FakePostSecurityInfo { + public static class FakePostSecurityInfo1 implements SecurityRequirementObjectProvider { + public final FakePostSecurityRequirementObject0 security0; + + public FakePostSecurityInfo1() { + security0 = new FakePostSecurityRequirementObject0(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + return security0; + } + } + + public enum SecurityIndex { + SECURITY_0 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java new file mode 100644 index 00000000000..06108b5c1e0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -0,0 +1,1591 @@ +package org.openapijsonschematools.client.paths.fake.post.requestbody.content.applicationxwwwformurlencoded; +import java.time.ZonedDateTime; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.regex.Pattern; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.DateJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.Int64JsonSchema; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class ApplicationxwwwformurlencodedSchema { + // nest classes so all schemas and input/output classes can be public + + + public sealed interface ApplicationxwwwformurlencodedIntegerBoxed permits ApplicationxwwwformurlencodedIntegerBoxedNumber { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedIntegerBoxedNumber(Number data) implements ApplicationxwwwformurlencodedIntegerBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedInteger extends JsonSchema implements NumberSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedInteger instance = null; + + protected ApplicationxwwwformurlencodedInteger() { + super(new JsonSchemaInfo() + .type(Set.of( + Integer.class, + Long.class, + Float.class, + Double.class + )) + .format("int") + .maximum(100) + .minimum(10) + ); + } + + public static ApplicationxwwwformurlencodedInteger getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedInteger(); + } + return instance; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { + return (long) validate((Number) arg, configuration); + } + + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number) { + return validate((Number) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedIntegerBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedIntegerBoxedNumber(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedIntegerBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface ApplicationxwwwformurlencodedInt32Boxed permits ApplicationxwwwformurlencodedInt32BoxedNumber { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedInt32BoxedNumber(Number data) implements ApplicationxwwwformurlencodedInt32Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedInt32 extends JsonSchema implements NumberSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedInt32 instance = null; + + protected ApplicationxwwwformurlencodedInt32() { + super(new JsonSchemaInfo() + .type(Set.of( + Integer.class, + Long.class, + Float.class, + Double.class + )) + .format("int32") + .maximum(200) + .minimum(20) + ); + } + + public static ApplicationxwwwformurlencodedInt32 getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedInt32(); + } + return instance; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number) { + return validate((Number) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedInt32BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedInt32BoxedNumber(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedInt32Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class ApplicationxwwwformurlencodedInt64 extends Int64JsonSchema.Int64JsonSchema1 { + private static @Nullable ApplicationxwwwformurlencodedInt64 instance = null; + public static ApplicationxwwwformurlencodedInt64 getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedInt64(); + } + return instance; + } + } + + + public sealed interface ApplicationxwwwformurlencodedNumberBoxed permits ApplicationxwwwformurlencodedNumberBoxedNumber { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedNumberBoxedNumber(Number data) implements ApplicationxwwwformurlencodedNumberBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedNumber extends JsonSchema implements NumberSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedNumber instance = null; + + protected ApplicationxwwwformurlencodedNumber() { + super(new JsonSchemaInfo() + .type(Set.of( + Integer.class, + Long.class, + Float.class, + Double.class + )) + .maximum(543.2) + .minimum(32.1) + ); + } + + public static ApplicationxwwwformurlencodedNumber getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedNumber(); + } + return instance; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { + return (long) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number) { + return validate((Number) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedNumberBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedNumberBoxedNumber(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedNumberBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface ApplicationxwwwformurlencodedFloatBoxed permits ApplicationxwwwformurlencodedFloatBoxedNumber { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedFloatBoxedNumber(Number data) implements ApplicationxwwwformurlencodedFloatBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedFloat extends JsonSchema implements NumberSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedFloat instance = null; + + protected ApplicationxwwwformurlencodedFloat() { + super(new JsonSchemaInfo() + .type(Set.of( + Integer.class, + Long.class, + Float.class, + Double.class + )) + .format("float") + .maximum(987.6) + ); + } + + public static ApplicationxwwwformurlencodedFloat getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedFloat(); + } + return instance; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number) { + return validate((Number) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedFloatBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedFloatBoxedNumber(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedFloatBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface ApplicationxwwwformurlencodedDoubleBoxed permits ApplicationxwwwformurlencodedDoubleBoxedNumber { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedDoubleBoxedNumber(Number data) implements ApplicationxwwwformurlencodedDoubleBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedDouble extends JsonSchema implements NumberSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedDouble instance = null; + + protected ApplicationxwwwformurlencodedDouble() { + super(new JsonSchemaInfo() + .type(Set.of( + Integer.class, + Long.class, + Float.class, + Double.class + )) + .format("double") + .maximum(123.4) + .minimum(67.8) + ); + } + + public static ApplicationxwwwformurlencodedDouble getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedDouble(); + } + return instance; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number) { + return validate((Number) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedDoubleBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedDoubleBoxedNumber(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedDoubleBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface ApplicationxwwwformurlencodedStringBoxed permits ApplicationxwwwformurlencodedStringBoxedString { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedStringBoxedString(String data) implements ApplicationxwwwformurlencodedStringBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedString extends JsonSchema implements StringSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedString instance = null; + + protected ApplicationxwwwformurlencodedString() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .pattern(Pattern.compile( + "[a-z]", + Pattern.CASE_INSENSITIVE + )) + ); + } + + public static ApplicationxwwwformurlencodedString getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedString(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedStringBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedStringBoxedString(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedStringBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed permits ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(String data) implements ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedPatternWithoutDelimiter extends JsonSchema implements StringSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedPatternWithoutDelimiter instance = null; + + protected ApplicationxwwwformurlencodedPatternWithoutDelimiter() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .pattern(Pattern.compile( + "^[A-Z].*" + )) + ); + } + + public static ApplicationxwwwformurlencodedPatternWithoutDelimiter getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedPatternWithoutDelimiter(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxedString(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedPatternWithoutDelimiterBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class ApplicationxwwwformurlencodedByte extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationxwwwformurlencodedByte instance = null; + public static ApplicationxwwwformurlencodedByte getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedByte(); + } + return instance; + } + } + + + public static class ApplicationxwwwformurlencodedBinary extends StringJsonSchema.StringJsonSchema1 { + // BinarySchema + private static @Nullable ApplicationxwwwformurlencodedBinary instance = null; + public static ApplicationxwwwformurlencodedBinary getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedBinary(); + } + return instance; + } + } + + + public static class ApplicationxwwwformurlencodedDate extends DateJsonSchema.DateJsonSchema1 { + private static @Nullable ApplicationxwwwformurlencodedDate instance = null; + public static ApplicationxwwwformurlencodedDate getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedDate(); + } + return instance; + } + } + + + public sealed interface ApplicationxwwwformurlencodedDateTimeBoxed permits ApplicationxwwwformurlencodedDateTimeBoxedString { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedDateTimeBoxedString(String data) implements ApplicationxwwwformurlencodedDateTimeBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedDateTime extends JsonSchema implements StringSchemaValidator, DefaultValueMethod { + private static @Nullable ApplicationxwwwformurlencodedDateTime instance = null; + + protected ApplicationxwwwformurlencodedDateTime() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .format("date-time") + .defaultValue("2010-02-01T10:20:10.111110+01:00") + ); + } + + public static ApplicationxwwwformurlencodedDateTime getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedDateTime(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public ApplicationxwwwformurlencodedDateTimeBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedDateTimeBoxedString(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedDateTimeBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface ApplicationxwwwformurlencodedPasswordBoxed permits ApplicationxwwwformurlencodedPasswordBoxedString { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedPasswordBoxedString(String data) implements ApplicationxwwwformurlencodedPasswordBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class ApplicationxwwwformurlencodedPassword extends JsonSchema implements StringSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedPassword instance = null; + + protected ApplicationxwwwformurlencodedPassword() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .format("password") + .maxLength(64) + .minLength(10) + ); + } + + public static ApplicationxwwwformurlencodedPassword getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedPassword(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedPasswordBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedPasswordBoxedString(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedPasswordBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class ApplicationxwwwformurlencodedCallback extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationxwwwformurlencodedCallback instance = null; + public static ApplicationxwwwformurlencodedCallback getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedCallback(); + } + return instance; + } + } + + + public static class ApplicationxwwwformurlencodedSchemaMap extends FrozenMap<@Nullable Object> { + protected ApplicationxwwwformurlencodedSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "byte", + "double", + "number", + "pattern_without_delimiter" + ); + public static final Set optionalKeys = Set.of( + "integer", + "int32", + "int64", + "float", + "string", + "binary", + "date", + "dateTime", + "password", + "callback" + ); + public static ApplicationxwwwformurlencodedSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return ApplicationxwwwformurlencodedSchema1.getInstance().validate(arg, configuration); + } + + public String pattern_without_delimiter() { + @Nullable Object value = get("pattern_without_delimiter"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for pattern_without_delimiter"); + } + return (String) value; + } + + public Number int32() throws UnsetPropertyException { + String key = "int32"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof Number)) { + throw new RuntimeException("Invalid value stored for int32"); + } + return (Number) value; + } + + public Number int64() throws UnsetPropertyException { + String key = "int64"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof Number)) { + throw new RuntimeException("Invalid value stored for int64"); + } + return (Number) value; + } + + public String binary() throws UnsetPropertyException { + String key = "binary"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for binary"); + } + return (String) value; + } + + public String date() throws UnsetPropertyException { + String key = "date"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for date"); + } + return (String) value; + } + + public String dateTime() throws UnsetPropertyException { + String key = "dateTime"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for dateTime"); + } + return (String) value; + } + + public String password() throws UnsetPropertyException { + String key = "password"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for password"); + } + return (String) value; + } + + public String callback() throws UnsetPropertyException { + String key = "callback"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for callback"); + } + return (String) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForApplicationxwwwformurlencodedByte { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedByte(Map instance); + + default T setByte(String value) { + var instance = getInstance(); + instance.put("byte", value); + return getBuilderAfterApplicationxwwwformurlencodedByte(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedDouble { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance); + + default T setDouble(int value) { + var instance = getInstance(); + instance.put("double", value); + return getBuilderAfterApplicationxwwwformurlencodedDouble(instance); + } + + default T setDouble(float value) { + var instance = getInstance(); + instance.put("double", value); + return getBuilderAfterApplicationxwwwformurlencodedDouble(instance); + } + + default T setDouble(long value) { + var instance = getInstance(); + instance.put("double", value); + return getBuilderAfterApplicationxwwwformurlencodedDouble(instance); + } + + default T setDouble(double value) { + var instance = getInstance(); + instance.put("double", value); + return getBuilderAfterApplicationxwwwformurlencodedDouble(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedNumber { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance); + + default T setNumber(int value) { + var instance = getInstance(); + instance.put("number", value); + return getBuilderAfterApplicationxwwwformurlencodedNumber(instance); + } + + default T setNumber(float value) { + var instance = getInstance(); + instance.put("number", value); + return getBuilderAfterApplicationxwwwformurlencodedNumber(instance); + } + + default T setNumber(long value) { + var instance = getInstance(); + instance.put("number", value); + return getBuilderAfterApplicationxwwwformurlencodedNumber(instance); + } + + default T setNumber(double value) { + var instance = getInstance(); + instance.put("number", value); + return getBuilderAfterApplicationxwwwformurlencodedNumber(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance); + + default T pattern_without_delimiter(String value) { + var instance = getInstance(); + instance.put("pattern_without_delimiter", value); + return getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedInteger { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedInteger(Map instance); + + default T setInteger(int value) { + var instance = getInstance(); + instance.put("integer", value); + return getBuilderAfterApplicationxwwwformurlencodedInteger(instance); + } + + default T setInteger(float value) { + var instance = getInstance(); + instance.put("integer", value); + return getBuilderAfterApplicationxwwwformurlencodedInteger(instance); + } + + default T setInteger(long value) { + var instance = getInstance(); + instance.put("integer", value); + return getBuilderAfterApplicationxwwwformurlencodedInteger(instance); + } + + default T setInteger(double value) { + var instance = getInstance(); + instance.put("integer", value); + return getBuilderAfterApplicationxwwwformurlencodedInteger(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedInt32 { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedInt32(Map instance); + + default T int32(int value) { + var instance = getInstance(); + instance.put("int32", value); + return getBuilderAfterApplicationxwwwformurlencodedInt32(instance); + } + + default T int32(float value) { + var instance = getInstance(); + instance.put("int32", value); + return getBuilderAfterApplicationxwwwformurlencodedInt32(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedInt64 { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedInt64(Map instance); + + default T int64(int value) { + var instance = getInstance(); + instance.put("int64", value); + return getBuilderAfterApplicationxwwwformurlencodedInt64(instance); + } + + default T int64(float value) { + var instance = getInstance(); + instance.put("int64", value); + return getBuilderAfterApplicationxwwwformurlencodedInt64(instance); + } + + default T int64(long value) { + var instance = getInstance(); + instance.put("int64", value); + return getBuilderAfterApplicationxwwwformurlencodedInt64(instance); + } + + default T int64(double value) { + var instance = getInstance(); + instance.put("int64", value); + return getBuilderAfterApplicationxwwwformurlencodedInt64(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedFloat { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedFloat(Map instance); + + default T setFloat(int value) { + var instance = getInstance(); + instance.put("float", value); + return getBuilderAfterApplicationxwwwformurlencodedFloat(instance); + } + + default T setFloat(float value) { + var instance = getInstance(); + instance.put("float", value); + return getBuilderAfterApplicationxwwwformurlencodedFloat(instance); + } + + default T setFloat(long value) { + var instance = getInstance(); + instance.put("float", value); + return getBuilderAfterApplicationxwwwformurlencodedFloat(instance); + } + + default T setFloat(double value) { + var instance = getInstance(); + instance.put("float", value); + return getBuilderAfterApplicationxwwwformurlencodedFloat(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedString { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedString(Map instance); + + default T setString(String value) { + var instance = getInstance(); + instance.put("string", value); + return getBuilderAfterApplicationxwwwformurlencodedString(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedBinary { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedBinary(Map instance); + + default T binary(String value) { + var instance = getInstance(); + instance.put("binary", value); + return getBuilderAfterApplicationxwwwformurlencodedBinary(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedDate { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedDate(Map instance); + + default T date(String value) { + var instance = getInstance(); + instance.put("date", value); + return getBuilderAfterApplicationxwwwformurlencodedDate(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedDateTime { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedDateTime(Map instance); + + default T dateTime(String value) { + var instance = getInstance(); + instance.put("dateTime", value); + return getBuilderAfterApplicationxwwwformurlencodedDateTime(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedPassword { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedPassword(Map instance); + + default T password(String value) { + var instance = getInstance(); + instance.put("password", value); + return getBuilderAfterApplicationxwwwformurlencodedPassword(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedCallback { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedCallback(Map instance); + + default T callback(String value) { + var instance = getInstance(); + instance.put("callback", value); + return getBuilderAfterApplicationxwwwformurlencodedCallback(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap0000Builder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForApplicationxwwwformurlencodedInteger, SetterForApplicationxwwwformurlencodedInt32, SetterForApplicationxwwwformurlencodedInt64, SetterForApplicationxwwwformurlencodedFloat, SetterForApplicationxwwwformurlencodedString, SetterForApplicationxwwwformurlencodedBinary, SetterForApplicationxwwwformurlencodedDate, SetterForApplicationxwwwformurlencodedDateTime, SetterForApplicationxwwwformurlencodedPassword, SetterForApplicationxwwwformurlencodedCallback { + private final Map instance; + private static final Set knownKeys = Set.of( + "byte", + "double", + "number", + "pattern_without_delimiter", + "integer", + "int32", + "int64", + "float", + "string", + "binary", + "date", + "dateTime", + "password", + "callback" + ); + public Set getKnownKeys() { + return knownKeys; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedInteger(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedInt32(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedInt64(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedFloat(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedString(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedBinary(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedDate(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedDateTime(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedPassword(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedCallback(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap0001Builder implements SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap0001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0000Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap0010Builder implements SetterForApplicationxwwwformurlencodedNumber { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap0010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0000Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap0011Builder implements SetterForApplicationxwwwformurlencodedNumber, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap0011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0001Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0001Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap0010Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0010Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap0100Builder implements SetterForApplicationxwwwformurlencodedDouble { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap0100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0000Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap0101Builder implements SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap0101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0001Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0001Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap0100Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0100Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap0110Builder implements SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedNumber { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap0110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0010Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0010Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap0100Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0100Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap0111Builder implements SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedNumber, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap0111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0011Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0011Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap0101Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0101Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap0110Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0110Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap1000Builder implements SetterForApplicationxwwwformurlencodedByte { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap1000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0000Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0000Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap1001Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap1001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0001Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0001Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1000Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1000Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap1010Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedNumber { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap1010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0010Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0010Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1000Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1000Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap1011Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedNumber, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap1011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0011Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0011Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1001Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1001Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1010Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1010Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap1100Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedDouble { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap1100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0100Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0100Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1000Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1000Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap1101Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap1101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0101Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0101Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1001Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1001Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1100Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1100Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap1110Builder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedNumber { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap1110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0110Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0110Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1010Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1010Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1100Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1100Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMapBuilder implements SetterForApplicationxwwwformurlencodedByte, SetterForApplicationxwwwformurlencodedDouble, SetterForApplicationxwwwformurlencodedNumber, SetterForApplicationxwwwformurlencodedPatternWithoutDelimiter { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap0111Builder getBuilderAfterApplicationxwwwformurlencodedByte(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap0111Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1011Builder getBuilderAfterApplicationxwwwformurlencodedDouble(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1011Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1101Builder getBuilderAfterApplicationxwwwformurlencodedNumber(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1101Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap1110Builder getBuilderAfterApplicationxwwwformurlencodedPatternWithoutDelimiter(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap1110Builder(instance); + } + } + + + public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; + + protected ApplicationxwwwformurlencodedSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("integer", ApplicationxwwwformurlencodedInteger.class), + new PropertyEntry("int32", ApplicationxwwwformurlencodedInt32.class), + new PropertyEntry("int64", ApplicationxwwwformurlencodedInt64.class), + new PropertyEntry("number", ApplicationxwwwformurlencodedNumber.class), + new PropertyEntry("float", ApplicationxwwwformurlencodedFloat.class), + new PropertyEntry("double", ApplicationxwwwformurlencodedDouble.class), + new PropertyEntry("string", ApplicationxwwwformurlencodedString.class), + new PropertyEntry("pattern_without_delimiter", ApplicationxwwwformurlencodedPatternWithoutDelimiter.class), + new PropertyEntry("byte", ApplicationxwwwformurlencodedByte.class), + new PropertyEntry("binary", ApplicationxwwwformurlencodedBinary.class), + new PropertyEntry("date", ApplicationxwwwformurlencodedDate.class), + new PropertyEntry("dateTime", ApplicationxwwwformurlencodedDateTime.class), + new PropertyEntry("password", ApplicationxwwwformurlencodedPassword.class), + new PropertyEntry("callback", ApplicationxwwwformurlencodedCallback.class) + )) + .required(Set.of( + "byte", + "double", + "number", + "pattern_without_delimiter" + )) + ); + } + + public static ApplicationxwwwformurlencodedSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedSchema1(); + } + return instance; + } + + public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new ApplicationxwwwformurlencodedSchemaMap(castProperties); + } + + public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java new file mode 100644 index 00000000000..1806211707c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fake.post.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakePostCode200Response extends SuccessDescriptionOnly { + public static class FakePostCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java new file mode 100644 index 00000000000..7da6740e34e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/responses/FakePostCode404Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.fake.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakePostCode404Response { + + public static class FakePostCode404Response1 extends ResponseDeserializer { + public FakePostCode404Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java new file mode 100644 index 00000000000..b1305742ad4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.fake.post.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class FakePostSecurityRequirementObject0 extends SecurityRequirementObject { + + public FakePostSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + HttpBasicTest.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java new file mode 100644 index 00000000000..7cf5a80ec37 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/FakeadditionalpropertieswitharrayofenumsGet.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.FakeadditionalpropertieswitharrayofenumsGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakeadditionalpropertieswitharrayofenums; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeadditionalpropertieswitharrayofenumsGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakeadditionalpropertieswitharrayofenumsGetRequestBody.FakeadditionalpropertieswitharrayofenumsGetRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakeadditionalpropertieswitharrayofenums.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeadditionalpropertieswitharrayofenumsGetResponses.FakeadditionalpropertieswitharrayofenumsGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface AdditionalPropertiesWithArrayOfEnumsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeadditionalpropertieswitharrayofenumsGetResponses.EndpointResponse additionalPropertiesWithArrayOfEnums(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public FakeadditionalpropertieswitharrayofenumsGetRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + GetRequest getInstance(); + T getBuilderAfterRequestBody(GetRequest instance); + default T requestBody(FakeadditionalpropertieswitharrayofenumsGetRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java new file mode 100644 index 00000000000..c8c59d931be --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakeadditionalpropertieswitharrayofenumsGetRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakeadditionalpropertieswitharrayofenumsGetRequestBody1 extends RequestBodySerializer { + public FakeadditionalpropertieswitharrayofenumsGetRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java new file mode 100644 index 00000000000..072cf25c108 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/FakeadditionalpropertieswitharrayofenumsGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get; + +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.FakeadditionalpropertieswitharrayofenumsGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeadditionalpropertieswitharrayofenumsGetResponses { + public sealed interface EndpointResponse permits EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response {} + + public record EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response( + HttpResponse response, + FakeadditionalpropertieswitharrayofenumsGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer {} + + public static final class StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer extends FakeadditionalpropertieswitharrayofenumsGetCode200Response.FakeadditionalpropertieswitharrayofenumsGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeadditionalpropertieswitharrayofenumsGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeadditionalpropertieswitharrayofenumsGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer castDeserializer = (StatusFakeadditionalpropertieswitharrayofenumsGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeadditionalpropertieswitharrayofenumsGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..23661b2fb49 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; + +public class ApplicationjsonSchema extends AdditionalPropertiesWithArrayOfEnums { + // $refed class + + + public static class ApplicationjsonSchema1 extends AdditionalPropertiesWithArrayOfEnums1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java new file mode 100644 index 00000000000..1e32b3e20ca --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/FakeadditionalpropertieswitharrayofenumsGetCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakeadditionalpropertieswitharrayofenumsGetCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AdditionalPropertiesWithArrayOfEnums1Boxed body) implements SealedResponseBody { } + + public static class FakeadditionalpropertieswitharrayofenumsGetCode200Response1 extends ResponseDeserializer { + public FakeadditionalpropertieswitharrayofenumsGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..365fe1691e1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.AdditionalPropertiesWithArrayOfEnums; + +public class ApplicationjsonSchema extends AdditionalPropertiesWithArrayOfEnums { + // $refed class + + + public static class ApplicationjsonSchema1 extends AdditionalPropertiesWithArrayOfEnums1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java new file mode 100644 index 00000000000..7c9a7ce3ef7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/FakebodywithfileschemaPut.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.fakebodywithfileschema; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutRequestBody; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.FakebodywithfileschemaPutResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakebodywithfileschema; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakebodywithfileschemaPut { + private static class PutProvider { + private static final String method = "put"; + + public static FakebodywithfileschemaPutResponses.EndpointResponse put( + PutRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new FakebodywithfileschemaPutRequestBody.FakebodywithfileschemaPutRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakebodywithfileschema.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakebodywithfileschemaPutResponses.FakebodywithfileschemaPutResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PutOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakebodywithfileschemaPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface BodyWithFileSchemaOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakebodywithfileschemaPutResponses.EndpointResponse bodyWithFileSchema(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Put extends ApiClient implements PutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PutRequest { + public FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PutRequest( + FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PutNullableRequest { + public FakebodywithfileschemaPutRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PutNullableRequest getInstance(); + T getBuilderAfterServerIndex(PutNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PutNullableRequest getInstance(); + T getBuilderAfterTimeout(PutNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PutNullableRequest getInstance(); + T getBuilderAfterRequestBody(PutNullableRequest instance); + default T requestBody(FakebodywithfileschemaPutRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PutNullableRequest instance; + + public Put0RequestBuilder(PutNullableRequest instance) { + this.instance = instance; + } + + public PutRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PutRequest( + requestBody, + instance.serverIndex, + instance.timeout + ); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + return this; + } + + public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + return this; + } + } + public static class PutRequestBuilder implements SetterForRequestBody { + private final PutNullableRequest instance; + + public PutRequestBuilder() { + this.instance = new PutNullableRequest(); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put0RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + return new Put0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java new file mode 100644 index 00000000000..3d130906dc0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakebodywithfileschema.put; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakebodywithfileschemaPutRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakebodywithfileschemaPutRequestBody1 extends RequestBodySerializer { + public FakebodywithfileschemaPutRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + true + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.FileSchemaTestClass1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java new file mode 100644 index 00000000000..afcdcd2bd1a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/FakebodywithfileschemaPutResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakebodywithfileschema.put; + +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.FakebodywithfileschemaPutCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakebodywithfileschemaPutResponses { + public sealed interface EndpointResponse permits EndpointFakebodywithfileschemaPutCode200Response {} + + public record EndpointFakebodywithfileschemaPutCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakebodywithfileschemaPutCode200ResponseDeserializer {} + + public static final class StatusFakebodywithfileschemaPutCode200ResponseDeserializer extends FakebodywithfileschemaPutCode200Response.FakebodywithfileschemaPutCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakebodywithfileschemaPutResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakebodywithfileschemaPutResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakebodywithfileschemaPutCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakebodywithfileschemaPutCode200ResponseDeserializer castDeserializer = (StatusFakebodywithfileschemaPutCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakebodywithfileschemaPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..0bf7ab945f1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakebodywithfileschema.put.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.FileSchemaTestClass; + +public class ApplicationjsonSchema extends FileSchemaTestClass { + // $refed class + + + public static class ApplicationjsonSchema1 extends FileSchemaTestClass1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.java new file mode 100644 index 00000000000..83a4cc26665 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithfileschema/put/responses/FakebodywithfileschemaPutCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakebodywithfileschemaPutCode200Response extends SuccessDescriptionOnly { + public static class FakebodywithfileschemaPutCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java new file mode 100644 index 00000000000..1fd7a628436 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/FakebodywithqueryparamsPut.java @@ -0,0 +1,242 @@ +package org.openapijsonschematools.client.paths.fakebodywithqueryparams; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutRequestBody; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutQueryParameters; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Parameters; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.FakebodywithqueryparamsPutResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakebodywithqueryparams; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakebodywithqueryparamsPut { + private static class PutProvider { + private static final String method = "put"; + + public static FakebodywithqueryparamsPutResponses.EndpointResponse put( + PutRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new FakebodywithqueryparamsPutRequestBody.FakebodywithqueryparamsPutRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakebodywithqueryparams.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakebodywithqueryparamsPutResponses.FakebodywithqueryparamsPutResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PutOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakebodywithqueryparamsPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface BodyWithQueryParamsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakebodywithqueryparamsPutResponses.EndpointResponse bodyWithQueryParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Put extends ApiClient implements PutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PutRequest { + public FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody; + public FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PutRequest( + FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody, + FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.queryParameters = queryParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PutNullableRequest { + public FakebodywithqueryparamsPutRequestBody.@Nullable SealedRequestBody requestBody; + public FakebodywithqueryparamsPutQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PutNullableRequest getInstance(); + T getBuilderAfterServerIndex(PutNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PutNullableRequest getInstance(); + T getBuilderAfterTimeout(PutNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PutNullableRequest getInstance(); + T getBuilderAfterRequestBody(PutNullableRequest instance); + default T requestBody(FakebodywithqueryparamsPutRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForQueryParameters { + PutNullableRequest getInstance(); + T getBuilderAfterQueryParameters(PutNullableRequest instance); + default T queryParameters(FakebodywithqueryparamsPutQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public static class Put00RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PutNullableRequest instance; + + public Put00RequestBuilder(PutNullableRequest instance) { + this.instance = instance; + } + + public PutRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + var queryParameters = instance.queryParameters; + if (queryParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PutRequest( + requestBody, + queryParameters, + instance.serverIndex, + instance.timeout + ); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put00RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + return this; + } + + public Put00RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + return this; + } + } + public static class Put01RequestBuilder implements SetterForQueryParameters { + private final PutNullableRequest instance; + + public Put01RequestBuilder(PutNullableRequest instance) { + this.instance = instance; + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put00RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { + return new Put00RequestBuilder(instance); + } + } + public static class Put10RequestBuilder implements SetterForRequestBody { + private final PutNullableRequest instance; + + public Put10RequestBuilder(PutNullableRequest instance) { + this.instance = instance; + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put00RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + return new Put00RequestBuilder(instance); + } + } + public static class PutRequestBuilder implements SetterForRequestBody, SetterForQueryParameters { + private final PutNullableRequest instance; + + public PutRequestBuilder() { + this.instance = new PutNullableRequest(); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put01RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + return new Put01RequestBuilder(instance); + } + + public Put10RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { + return new Put10RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java new file mode 100644 index 00000000000..e2e28ed10d7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutQueryParameters.java @@ -0,0 +1,205 @@ +package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakebodywithqueryparamsPutQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "query" + ); + public static final Set optionalKeys = Set.of(); + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakebodywithqueryparamsPutQueryParameters1.getInstance().validate(arg, configuration); + } + + public String query() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForQuery { + Map getInstance(); + T getBuilderAfterQuery(Map instance); + + default T query(String value) { + var instance = getInstance(); + instance.put("query", value); + return getBuilderAfterQuery(instance); + } + } + + public static class QueryParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "query" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class QueryParametersMapBuilder implements SetterForQuery { + private final Map instance; + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public QueryParametersMap0Builder getBuilderAfterQuery(Map instance) { + return new QueryParametersMap0Builder(instance); + } + } + + + public sealed interface FakebodywithqueryparamsPutQueryParameters1Boxed permits FakebodywithqueryparamsPutQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakebodywithqueryparamsPutQueryParameters1BoxedMap(QueryParametersMap data) implements FakebodywithqueryparamsPutQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakebodywithqueryparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakebodywithqueryparamsPutQueryParameters1 instance = null; + + protected FakebodywithqueryparamsPutQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("query", Schema0.Schema01.class) + )) + .required(Set.of( + "query" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakebodywithqueryparamsPutQueryParameters1 getInstance() { + if (instance == null) { + instance = new FakebodywithqueryparamsPutQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakebodywithqueryparamsPutQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakebodywithqueryparamsPutQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakebodywithqueryparamsPutQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java new file mode 100644 index 00000000000..f8660d61b4e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakebodywithqueryparamsPutRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakebodywithqueryparamsPutRequestBody1 extends RequestBodySerializer { + public FakebodywithqueryparamsPutRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + true + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java new file mode 100644 index 00000000000..ad26d9ceb92 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/FakebodywithqueryparamsPutResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put; + +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.FakebodywithqueryparamsPutCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakebodywithqueryparamsPutResponses { + public sealed interface EndpointResponse permits EndpointFakebodywithqueryparamsPutCode200Response {} + + public record EndpointFakebodywithqueryparamsPutCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakebodywithqueryparamsPutCode200ResponseDeserializer {} + + public static final class StatusFakebodywithqueryparamsPutCode200ResponseDeserializer extends FakebodywithqueryparamsPutCode200Response.FakebodywithqueryparamsPutCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakebodywithqueryparamsPutResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakebodywithqueryparamsPutResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakebodywithqueryparamsPutCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakebodywithqueryparamsPutCode200ResponseDeserializer castDeserializer = (StatusFakebodywithqueryparamsPutCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakebodywithqueryparamsPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java new file mode 100644 index 00000000000..d796a88eb1d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put; + +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("query", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java new file mode 100644 index 00000000000..b89f34112a4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "query", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..57b1bddf802 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..c3506f9a79a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.User; + +public class ApplicationjsonSchema extends User { + // $refed class + + + public static class ApplicationjsonSchema1 extends User1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.java new file mode 100644 index 00000000000..b193efb7bee --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/responses/FakebodywithqueryparamsPutCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakebodywithqueryparamsPutCode200Response extends SuccessDescriptionOnly { + public static class FakebodywithqueryparamsPutCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java new file mode 100644 index 00000000000..35d386df605 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/FakecasesensitiveparamsPut.java @@ -0,0 +1,180 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutQueryParameters; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Parameters; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.FakecasesensitiveparamsPutResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakecasesensitiveparams; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakecasesensitiveparamsPut { + private static class PutProvider { + private static final String method = "put"; + + public static FakecasesensitiveparamsPutResponses.EndpointResponse put( + PutRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakecasesensitiveparams.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakecasesensitiveparamsPutResponses.FakecasesensitiveparamsPutResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PutOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakecasesensitiveparamsPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface CaseSensitiveParamsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakecasesensitiveparamsPutResponses.EndpointResponse caseSensitiveParams(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Put extends ApiClient implements PutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PutRequest { + public FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PutRequest( + FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.queryParameters = queryParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PutNullableRequest { + public FakecasesensitiveparamsPutQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PutNullableRequest getInstance(); + T getBuilderAfterServerIndex(PutNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PutNullableRequest getInstance(); + T getBuilderAfterTimeout(PutNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForQueryParameters { + PutNullableRequest getInstance(); + T getBuilderAfterQueryParameters(PutNullableRequest instance); + default T queryParameters(FakecasesensitiveparamsPutQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PutNullableRequest instance; + + public Put0RequestBuilder(PutNullableRequest instance) { + this.instance = instance; + } + + public PutRequest build() { + var queryParameters = instance.queryParameters; + if (queryParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PutRequest( + queryParameters, + instance.serverIndex, + instance.timeout + ); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + return this; + } + + public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + return this; + } + } + public static class PutRequestBuilder implements SetterForQueryParameters { + private final PutNullableRequest instance; + + public PutRequestBuilder() { + this.instance = new PutNullableRequest(); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put0RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { + return new Put0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java new file mode 100644 index 00000000000..67958cf44dd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutQueryParameters.java @@ -0,0 +1,343 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter1.Schema1; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter2.Schema2; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakecasesensitiveparamsPutQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "SomeVar", + "someVar", + "some_var" + ); + public static final Set optionalKeys = Set.of(); + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakecasesensitiveparamsPutQueryParameters1.getInstance().validate(arg, configuration); + } + + public String SomeVar() { + @Nullable Object value = get("SomeVar"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for SomeVar"); + } + return (String) value; + } + + public String someVar() { + @Nullable Object value = get("someVar"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for someVar"); + } + return (String) value; + } + + public String some_var() { + @Nullable Object value = get("some_var"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for some_var"); + } + return (String) value; + } + } + + public interface SetterForSomeVar2 { + Map getInstance(); + T getBuilderAfterSomeVar2(Map instance); + + default T SomeVar(String value) { + var instance = getInstance(); + instance.put("SomeVar", value); + return getBuilderAfterSomeVar2(instance); + } + } + + public interface SetterForSomeVar { + Map getInstance(); + T getBuilderAfterSomeVar(Map instance); + + default T someVar(String value) { + var instance = getInstance(); + instance.put("someVar", value); + return getBuilderAfterSomeVar(instance); + } + } + + public interface SetterForSomeVar1 { + Map getInstance(); + T getBuilderAfterSomeVar1(Map instance); + + default T some_var(String value) { + var instance = getInstance(); + instance.put("some_var", value); + return getBuilderAfterSomeVar1(instance); + } + } + + public static class QueryParametersMap000Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "SomeVar", + "someVar", + "some_var" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMap000Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class QueryParametersMap001Builder implements SetterForSomeVar1 { + private final Map instance; + public QueryParametersMap001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000Builder getBuilderAfterSomeVar1(Map instance) { + return new QueryParametersMap000Builder(instance); + } + } + + public static class QueryParametersMap010Builder implements SetterForSomeVar { + private final Map instance; + public QueryParametersMap010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000Builder getBuilderAfterSomeVar(Map instance) { + return new QueryParametersMap000Builder(instance); + } + } + + public static class QueryParametersMap011Builder implements SetterForSomeVar, SetterForSomeVar1 { + private final Map instance; + public QueryParametersMap011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001Builder getBuilderAfterSomeVar(Map instance) { + return new QueryParametersMap001Builder(instance); + } + public QueryParametersMap010Builder getBuilderAfterSomeVar1(Map instance) { + return new QueryParametersMap010Builder(instance); + } + } + + public static class QueryParametersMap100Builder implements SetterForSomeVar2 { + private final Map instance; + public QueryParametersMap100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000Builder getBuilderAfterSomeVar2(Map instance) { + return new QueryParametersMap000Builder(instance); + } + } + + public static class QueryParametersMap101Builder implements SetterForSomeVar2, SetterForSomeVar1 { + private final Map instance; + public QueryParametersMap101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001Builder getBuilderAfterSomeVar2(Map instance) { + return new QueryParametersMap001Builder(instance); + } + public QueryParametersMap100Builder getBuilderAfterSomeVar1(Map instance) { + return new QueryParametersMap100Builder(instance); + } + } + + public static class QueryParametersMap110Builder implements SetterForSomeVar2, SetterForSomeVar { + private final Map instance; + public QueryParametersMap110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap010Builder getBuilderAfterSomeVar2(Map instance) { + return new QueryParametersMap010Builder(instance); + } + public QueryParametersMap100Builder getBuilderAfterSomeVar(Map instance) { + return new QueryParametersMap100Builder(instance); + } + } + + public static class QueryParametersMapBuilder implements SetterForSomeVar2, SetterForSomeVar, SetterForSomeVar1 { + private final Map instance; + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public QueryParametersMap011Builder getBuilderAfterSomeVar2(Map instance) { + return new QueryParametersMap011Builder(instance); + } + public QueryParametersMap101Builder getBuilderAfterSomeVar(Map instance) { + return new QueryParametersMap101Builder(instance); + } + public QueryParametersMap110Builder getBuilderAfterSomeVar1(Map instance) { + return new QueryParametersMap110Builder(instance); + } + } + + + public sealed interface FakecasesensitiveparamsPutQueryParameters1Boxed permits FakecasesensitiveparamsPutQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakecasesensitiveparamsPutQueryParameters1BoxedMap(QueryParametersMap data) implements FakecasesensitiveparamsPutQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakecasesensitiveparamsPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakecasesensitiveparamsPutQueryParameters1 instance = null; + + protected FakecasesensitiveparamsPutQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("someVar", Schema0.Schema01.class), + new PropertyEntry("some_var", Schema2.Schema21.class), + new PropertyEntry("SomeVar", Schema1.Schema11.class) + )) + .required(Set.of( + "SomeVar", + "someVar", + "some_var" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakecasesensitiveparamsPutQueryParameters1 getInstance() { + if (instance == null) { + instance = new FakecasesensitiveparamsPutQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakecasesensitiveparamsPutQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakecasesensitiveparamsPutQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakecasesensitiveparamsPutQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java new file mode 100644 index 00000000000..4c72b6a0a50 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/FakecasesensitiveparamsPutResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put; + +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.FakecasesensitiveparamsPutCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakecasesensitiveparamsPutResponses { + public sealed interface EndpointResponse permits EndpointFakecasesensitiveparamsPutCode200Response {} + + public record EndpointFakecasesensitiveparamsPutCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakecasesensitiveparamsPutCode200ResponseDeserializer {} + + public static final class StatusFakecasesensitiveparamsPutCode200ResponseDeserializer extends FakecasesensitiveparamsPutCode200Response.FakecasesensitiveparamsPutCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakecasesensitiveparamsPutResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakecasesensitiveparamsPutResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakecasesensitiveparamsPutCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakecasesensitiveparamsPutCode200ResponseDeserializer castDeserializer = (StatusFakecasesensitiveparamsPutCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakecasesensitiveparamsPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java new file mode 100644 index 00000000000..e153b47414a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/Parameters.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put; + +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.Parameter0; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.Parameter1; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.Parameter2; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("someVar", new Parameter0.Parameter01()), + new AbstractMap.SimpleEntry<>("SomeVar", new Parameter1.Parameter11()), + new AbstractMap.SimpleEntry<>("some_var", new Parameter2.Parameter21()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter0.java new file mode 100644 index 00000000000..96db6d8662c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "someVar", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter1.java new file mode 100644 index 00000000000..9923c6e1aee --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter1.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter1.Schema1; + +public class Parameter1 { + + public static class Parameter11 extends SchemaParameter { + public Parameter11() { + super( + "SomeVar", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema1.Schema11.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter2.java new file mode 100644 index 00000000000..c3b8320db0f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/Parameter2.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter2.Schema2; + +public class Parameter2 { + + public static class Parameter21 extends SchemaParameter { + public Parameter21() { + super( + "some_var", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema2.Schema21.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..82b36aec229 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java new file mode 100644 index 00000000000..8fe5c279258 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter1/Schema1.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter1; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema1 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema11 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema11 instance = null; + public static Schema11 getInstance() { + if (instance == null) { + instance = new Schema11(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java new file mode 100644 index 00000000000..ce17de1e932 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/parameters/parameter2/Schema2.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.parameters.parameter2; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema2 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema21 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema21 instance = null; + public static Schema21 getInstance() { + if (instance == null) { + instance = new Schema21(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.java new file mode 100644 index 00000000000..72eb0975e3a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/responses/FakecasesensitiveparamsPutCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakecasesensitiveparamsPutCode200Response extends SuccessDescriptionOnly { + public static class FakecasesensitiveparamsPutCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java new file mode 100644 index 00000000000..798f569e7ab --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/FakeclassnametestPatch.java @@ -0,0 +1,215 @@ +package org.openapijsonschematools.client.paths.fakeclassnametest; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchRequestBody; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakeclassnametest; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeclassnametestPatch { + private static class PatchProvider extends AuthApplier { + private static final String method = "patch"; + + public static FakeclassnametestPatchResponses.EndpointResponse patch( + PatchRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new FakeclassnametestPatchRequestBody.FakeclassnametestPatchRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + Fakeclassnametest.path, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + Fakeclassnametest.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeclassnametestPatchResponses.FakeclassnametestPatchResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PatchOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeclassnametestPatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ClassnameOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeclassnametestPatchResponses.EndpointResponse classname(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Patch extends ApiClient implements PatchOperation { + public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PatchRequest { + public FakeclassnametestPatchRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public PatchRequest( + FakeclassnametestPatchRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class PatchNullableRequest { + public FakeclassnametestPatchRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public FakeclassnametestPatchSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PatchNullableRequest getInstance(); + T getBuilderAfterServerIndex(PatchNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + PatchNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PatchNullableRequest instance); + default T securityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + PatchNullableRequest getInstance(); + T getBuilderAfterTimeout(PatchNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PatchNullableRequest getInstance(); + T getBuilderAfterRequestBody(PatchNullableRequest instance); + default T requestBody(FakeclassnametestPatchRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Patch0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final PatchNullableRequest instance; + + public Patch0RequestBuilder(PatchNullableRequest instance) { + this.instance = instance; + } + + public PatchRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PatchRequest( + requestBody, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public PatchNullableRequest getInstance() { + return instance; + } + + public Patch0RequestBuilder getBuilderAfterServerIndex(PatchNullableRequest instance) { + return this; + } + + public Patch0RequestBuilder getBuilderAfterSecurityIndex(PatchNullableRequest instance) { + return this; + } + + public Patch0RequestBuilder getBuilderAfterTimeout(PatchNullableRequest instance) { + return this; + } + } + public static class PatchRequestBuilder implements SetterForRequestBody { + private final PatchNullableRequest instance; + + public PatchRequestBuilder() { + this.instance = new PatchNullableRequest(); + } + + public PatchNullableRequest getInstance() { + return instance; + } + + public Patch0RequestBuilder getBuilderAfterRequestBody(PatchNullableRequest instance) { + return new Patch0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java new file mode 100644 index 00000000000..69e81d0f4bc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchRequestBody.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakeclassnametest.patch; + +import org.openapijsonschematools.client.components.requestbodies.Client; + +public class FakeclassnametestPatchRequestBody extends Client { + public static class FakeclassnametestPatchRequestBody1 extends Client1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java new file mode 100644 index 00000000000..4d9a18471e8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakeclassnametest.patch; + +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.FakeclassnametestPatchCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeclassnametestPatchResponses { + public sealed interface EndpointResponse permits EndpointFakeclassnametestPatchCode200Response {} + + public record EndpointFakeclassnametestPatchCode200Response( + HttpResponse response, + FakeclassnametestPatchCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeclassnametestPatchCode200ResponseDeserializer {} + + public static final class StatusFakeclassnametestPatchCode200ResponseDeserializer extends FakeclassnametestPatchCode200Response.FakeclassnametestPatchCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeclassnametestPatchResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeclassnametestPatchResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeclassnametestPatchCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeclassnametestPatchCode200ResponseDeserializer castDeserializer = (StatusFakeclassnametestPatchCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeclassnametestPatchCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java new file mode 100644 index 00000000000..a4a739aad43 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.fakeclassnametest.patch; + +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.security.FakeclassnametestPatchSecurityRequirementObject0; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class FakeclassnametestPatchSecurityInfo { + public static class FakeclassnametestPatchSecurityInfo1 implements SecurityRequirementObjectProvider { + public final FakeclassnametestPatchSecurityRequirementObject0 security0; + + public FakeclassnametestPatchSecurityInfo1() { + security0 = new FakeclassnametestPatchSecurityRequirementObject0(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + return security0; + } + } + + public enum SecurityIndex { + SECURITY_0 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java new file mode 100644 index 00000000000..93fdc3843da --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/FakeclassnametestPatchCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakeclassnametestPatchCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Client1Boxed body) implements SealedResponseBody { } + + public static class FakeclassnametestPatchCode200Response1 extends ResponseDeserializer { + public FakeclassnametestPatchCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..ba79861d2e9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Client; + +public class ApplicationjsonSchema extends Client { + // $refed class + + + public static class ApplicationjsonSchema1 extends Client1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java new file mode 100644 index 00000000000..6b61b1b9a00 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.fakeclassnametest.patch.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeclassnametestPatchSecurityRequirementObject0 extends SecurityRequirementObject { + + public FakeclassnametestPatchSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + ApiKeyQuery.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java new file mode 100644 index 00000000000..09b216880c7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/FakedeletecoffeeidDelete.java @@ -0,0 +1,179 @@ +package org.openapijsonschematools.client.paths.fakedeletecoffeeid; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeletePathParameters; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Parameters; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.FakedeletecoffeeidDeleteResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakedeletecoffeeid; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakedeletecoffeeidDelete { + private static class DeleteProvider { + private static final String method = "delete"; + + public static FakedeletecoffeeidDeleteResponses.EndpointResponse delete( + DeleteRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Fakedeletecoffeeid.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakedeletecoffeeidDeleteResponses.FakedeletecoffeeidDeleteResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface DeleteOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakedeletecoffeeidDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface DeleteCoffeeOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakedeletecoffeeidDeleteResponses.EndpointResponse deleteCoffee(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Delete extends ApiClient implements DeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class DeleteRequest { + public FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public DeleteRequest( + FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class DeleteNullableRequest { + public FakedeletecoffeeidDeletePathParameters.@Nullable PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + DeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + DeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(DeleteNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + DeleteNullableRequest getInstance(); + T getBuilderAfterPathParameters(DeleteNullableRequest instance); + default T pathParameters(FakedeletecoffeeidDeletePathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final DeleteNullableRequest instance; + + public Delete0RequestBuilder(DeleteNullableRequest instance) { + this.instance = instance; + } + + public DeleteRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new DeleteRequest( + pathParameters, + instance.serverIndex, + instance.timeout + ); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + return this; + } + + public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + return this; + } + } + public static class DeleteRequestBuilder implements SetterForPathParameters { + private final DeleteNullableRequest instance; + + public DeleteRequestBuilder() { + this.instance = new DeleteNullableRequest(); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { + return new Delete0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java new file mode 100644 index 00000000000..b2171bdfaf0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeletePathParameters.java @@ -0,0 +1,205 @@ +package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakedeletecoffeeidDeletePathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "id" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakedeletecoffeeidDeletePathParameters1.getInstance().validate(arg, configuration); + } + + public String id() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForId { + Map getInstance(); + T getBuilderAfterId(Map instance); + + default T id(String value) { + var instance = getInstance(); + instance.put("id", value); + return getBuilderAfterId(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "id" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForId { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterId(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface FakedeletecoffeeidDeletePathParameters1Boxed permits FakedeletecoffeeidDeletePathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakedeletecoffeeidDeletePathParameters1BoxedMap(PathParametersMap data) implements FakedeletecoffeeidDeletePathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakedeletecoffeeidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakedeletecoffeeidDeletePathParameters1 instance = null; + + protected FakedeletecoffeeidDeletePathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("id", Schema0.Schema01.class) + )) + .required(Set.of( + "id" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakedeletecoffeeidDeletePathParameters1 getInstance() { + if (instance == null) { + instance = new FakedeletecoffeeidDeletePathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakedeletecoffeeidDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakedeletecoffeeidDeletePathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakedeletecoffeeidDeletePathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java new file mode 100644 index 00000000000..d58495afcb2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/FakedeletecoffeeidDeleteResponses.java @@ -0,0 +1,61 @@ +package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete; + +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCode200Response; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.FakedeletecoffeeidDeleteCodedefaultResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakedeletecoffeeidDeleteResponses { + public sealed interface EndpointResponse permits EndpointFakedeletecoffeeidDeleteCode200Response, EndpointFakedeletecoffeeidDeleteCodedefaultResponse {} + + public record EndpointFakedeletecoffeeidDeleteCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public record EndpointFakedeletecoffeeidDeleteCodedefaultResponse( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer {} + + public static final class StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer extends FakedeletecoffeeidDeleteCode200Response.FakedeletecoffeeidDeleteCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakedeletecoffeeidDeleteResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + private final FakedeletecoffeeidDeleteCodedefaultResponse.FakedeletecoffeeidDeleteCodedefaultResponse1 defaultResponseDeserializer; + public FakedeletecoffeeidDeleteResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer()) + ); + this.defaultResponseDeserializer = new FakedeletecoffeeidDeleteCodedefaultResponse.FakedeletecoffeeidDeleteCodedefaultResponse1(); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer != null) { + StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer castDeserializer = (StatusFakedeletecoffeeidDeleteCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakedeletecoffeeidDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); + return new EndpointFakedeletecoffeeidDeleteCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java new file mode 100644 index 00000000000..6e068eebfbc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete; + +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("id", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java new file mode 100644 index 00000000000..d16f6b00036 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "id", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..587228fa824 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.java new file mode 100644 index 00000000000..56f5f4b8774 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakedeletecoffeeidDeleteCode200Response extends SuccessDescriptionOnly { + public static class FakedeletecoffeeidDeleteCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java new file mode 100644 index 00000000000..2a5713c9f0d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/responses/FakedeletecoffeeidDeleteCodedefaultResponse.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakedeletecoffeeidDeleteCodedefaultResponse { + + public static class FakedeletecoffeeidDeleteCodedefaultResponse1 extends ResponseDeserializer { + public FakedeletecoffeeidDeleteCodedefaultResponse1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java new file mode 100644 index 00000000000..49b0d51d461 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/FakehealthGet.java @@ -0,0 +1,124 @@ +package org.openapijsonschematools.client.paths.fakehealth; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakehealth.get.FakehealthGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakehealth; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakehealthGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakehealthGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakehealth.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakehealthGetResponses.FakehealthGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakehealthGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface FakeHealthGetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakehealthGetResponses.EndpointResponse fakeHealthGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java new file mode 100644 index 00000000000..e926fe15b5a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/FakehealthGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakehealth.get; + +import org.openapijsonschematools.client.paths.fakehealth.get.responses.FakehealthGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakehealthGetResponses { + public sealed interface EndpointResponse permits EndpointFakehealthGetCode200Response {} + + public record EndpointFakehealthGetCode200Response( + HttpResponse response, + FakehealthGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakehealthGetCode200ResponseDeserializer {} + + public static final class StatusFakehealthGetCode200ResponseDeserializer extends FakehealthGetCode200Response.FakehealthGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakehealthGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakehealthGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakehealthGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakehealthGetCode200ResponseDeserializer castDeserializer = (StatusFakehealthGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakehealthGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java new file mode 100644 index 00000000000..1d60e2ef28d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/FakehealthGetCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakehealth.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakehealth.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakehealthGetCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.HealthCheckResult1Boxed body) implements SealedResponseBody { } + + public static class FakehealthGetCode200Response1 extends ResponseDeserializer { + public FakehealthGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..e9d84e9a57a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakehealth.get.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.HealthCheckResult; + +public class ApplicationjsonSchema extends HealthCheckResult { + // $refed class + + + public static class ApplicationjsonSchema1 extends HealthCheckResult1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java new file mode 100644 index 00000000000..9eaf3f07fe2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/FakeinlineadditionalpropertiesPost.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostRequestBody; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.FakeinlineadditionalpropertiesPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakeinlineadditionalproperties; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeinlineadditionalpropertiesPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakeinlineadditionalpropertiesPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new FakeinlineadditionalpropertiesPostRequestBody.FakeinlineadditionalpropertiesPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakeinlineadditionalproperties.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeinlineadditionalpropertiesPostResponses.FakeinlineadditionalpropertiesPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeinlineadditionalpropertiesPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface InlineAdditionalPropertiesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeinlineadditionalpropertiesPostResponses.EndpointResponse inlineAdditionalProperties(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PostRequest( + FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public FakeinlineadditionalpropertiesPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(FakeinlineadditionalpropertiesPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + requestBody, + instance.serverIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForRequestBody { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java new file mode 100644 index 00000000000..eb76fe2b4f4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakeinlineadditionalpropertiesPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakeinlineadditionalpropertiesPostRequestBody1 extends RequestBodySerializer { + public FakeinlineadditionalpropertiesPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + true + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java new file mode 100644 index 00000000000..2fa1bf18e40 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/FakeinlineadditionalpropertiesPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post; + +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.FakeinlineadditionalpropertiesPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeinlineadditionalpropertiesPostResponses { + public sealed interface EndpointResponse permits EndpointFakeinlineadditionalpropertiesPostCode200Response {} + + public record EndpointFakeinlineadditionalpropertiesPostCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer {} + + public static final class StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer extends FakeinlineadditionalpropertiesPostCode200Response.FakeinlineadditionalpropertiesPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeinlineadditionalpropertiesPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeinlineadditionalpropertiesPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer castDeserializer = (StatusFakeinlineadditionalpropertiesPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeinlineadditionalpropertiesPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..da39455be18 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.requestbody.content.applicationjson; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class ApplicationjsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonAdditionalProperties extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationjsonAdditionalProperties instance = null; + public static ApplicationjsonAdditionalProperties getInstance() { + if (instance == null) { + instance = new ApplicationjsonAdditionalProperties(); + } + return instance; + } + } + + + public static class ApplicationjsonSchemaMap extends FrozenMap { + protected ApplicationjsonSchemaMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of(); + public static ApplicationjsonSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return ApplicationjsonSchema1.getInstance().validate(arg, configuration); + } + + public String getAdditionalProperty(String name) throws UnsetPropertyException { + return getOrThrow(name); + } + } + + public interface SetterForApplicationjsonAdditionalProperties { + Set getKnownKeys(); + Map getInstance(); + T getBuilderAfterAdditionalProperty(Map instance); + + default T additionalProperty(String key, String value) throws InvalidAdditionalPropertyException { + MapUtils.throwIfKeyKnown(key, getKnownKeys(), true); + var instance = getInstance(); + instance.put(key, value); + return getBuilderAfterAdditionalProperty(instance); + } + } + + public static class ApplicationjsonSchemaMapBuilder implements GenericBuilder>, SetterForApplicationjsonAdditionalProperties { + private final Map instance; + private static final Set knownKeys = Set.of(); + public Set getKnownKeys() { + return knownKeys; + } + public ApplicationjsonSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public ApplicationjsonSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedMap { + @Nullable Object getData(); + } + + public record ApplicationjsonSchema1BoxedMap(ApplicationjsonSchemaMap data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable ApplicationjsonSchema1 instance = null; + + protected ApplicationjsonSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .additionalProperties(ApplicationjsonAdditionalProperties.class) + ); + } + + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + + public ApplicationjsonSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new ApplicationjsonSchemaMap(castProperties); + } + + public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.java new file mode 100644 index 00000000000..f3f0c8ae16c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/responses/FakeinlineadditionalpropertiesPostCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakeinlineadditionalpropertiesPostCode200Response extends SuccessDescriptionOnly { + public static class FakeinlineadditionalpropertiesPostCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java new file mode 100644 index 00000000000..0a51b2c0c01 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/FakeinlinecompositionPost.java @@ -0,0 +1,176 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostRequestBody; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostQueryParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Parameters; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.FakeinlinecompositionPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakeinlinecomposition; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeinlinecompositionPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakeinlinecompositionPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakeinlinecompositionPostRequestBody.FakeinlinecompositionPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = null; + if (request.queryParameters != null) { + queryMap = querySerializer.getQueryMap(request.queryParameters); + } + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakeinlinecomposition.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeinlinecompositionPostResponses.FakeinlinecompositionPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeinlinecompositionPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface InlineCompositionOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeinlinecompositionPostResponses.EndpointResponse inlineComposition(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakeinlinecompositionPostRequestBody.@Nullable SealedRequestBody requestBody; + public FakeinlinecompositionPostQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakeinlinecompositionPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForQueryParameters { + PostRequest getInstance(); + T getBuilderAfterQueryParameters(PostRequest instance); + default T queryParameters(FakeinlinecompositionPostQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterQueryParameters(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java new file mode 100644 index 00000000000..c4529070458 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostQueryParameters.java @@ -0,0 +1,270 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter1.Schema1; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakeinlinecompositionPostQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "compositionAtRoot", + "compositionInProperty" + ); + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakeinlinecompositionPostQueryParameters1.getInstance().validate(arg, configuration); + } + + public @Nullable Object compositionAtRoot() throws UnsetPropertyException { + String key = "compositionAtRoot"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof Object)) { + throw new RuntimeException("Invalid value stored for compositionAtRoot"); + } + return (@Nullable Object) value; + } + + public Schema1.SchemaMap1 compositionInProperty() throws UnsetPropertyException { + String key = "compositionInProperty"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof Schema1.SchemaMap1)) { + throw new RuntimeException("Invalid value stored for compositionInProperty"); + } + return (Schema1.SchemaMap1) value; + } + } + + public interface SetterForCompositionAtRoot { + Map getInstance(); + T getBuilderAfterCompositionAtRoot(Map instance); + + default T compositionAtRoot(Void value) { + var instance = getInstance(); + instance.put("compositionAtRoot", null); + return getBuilderAfterCompositionAtRoot(instance); + } + + default T compositionAtRoot(boolean value) { + var instance = getInstance(); + instance.put("compositionAtRoot", value); + return getBuilderAfterCompositionAtRoot(instance); + } + + default T compositionAtRoot(String value) { + var instance = getInstance(); + instance.put("compositionAtRoot", value); + return getBuilderAfterCompositionAtRoot(instance); + } + + default T compositionAtRoot(int value) { + var instance = getInstance(); + instance.put("compositionAtRoot", value); + return getBuilderAfterCompositionAtRoot(instance); + } + + default T compositionAtRoot(float value) { + var instance = getInstance(); + instance.put("compositionAtRoot", value); + return getBuilderAfterCompositionAtRoot(instance); + } + + default T compositionAtRoot(long value) { + var instance = getInstance(); + instance.put("compositionAtRoot", value); + return getBuilderAfterCompositionAtRoot(instance); + } + + default T compositionAtRoot(double value) { + var instance = getInstance(); + instance.put("compositionAtRoot", value); + return getBuilderAfterCompositionAtRoot(instance); + } + + default T compositionAtRoot(List value) { + var instance = getInstance(); + instance.put("compositionAtRoot", value); + return getBuilderAfterCompositionAtRoot(instance); + } + + default T compositionAtRoot(Map value) { + var instance = getInstance(); + instance.put("compositionAtRoot", value); + return getBuilderAfterCompositionAtRoot(instance); + } + } + + public interface SetterForCompositionInProperty { + Map getInstance(); + T getBuilderAfterCompositionInProperty(Map instance); + + default T compositionInProperty(Map value) { + var instance = getInstance(); + instance.put("compositionInProperty", value); + return getBuilderAfterCompositionInProperty(instance); + } + } + + public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForCompositionAtRoot, SetterForCompositionInProperty { + private final Map instance; + private static final Set knownKeys = Set.of( + "compositionAtRoot", + "compositionInProperty" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMapBuilder getBuilderAfterCompositionAtRoot(Map instance) { + return this; + } + public QueryParametersMapBuilder getBuilderAfterCompositionInProperty(Map instance) { + return this; + } + } + + + public sealed interface FakeinlinecompositionPostQueryParameters1Boxed permits FakeinlinecompositionPostQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakeinlinecompositionPostQueryParameters1BoxedMap(QueryParametersMap data) implements FakeinlinecompositionPostQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakeinlinecompositionPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeinlinecompositionPostQueryParameters1 instance = null; + + protected FakeinlinecompositionPostQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("compositionAtRoot", Schema0.Schema01.class), + new PropertyEntry("compositionInProperty", Schema1.Schema11.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakeinlinecompositionPostQueryParameters1 getInstance() { + if (instance == null) { + instance = new FakeinlinecompositionPostQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakeinlinecompositionPostQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeinlinecompositionPostQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakeinlinecompositionPostQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java new file mode 100644 index 00000000000..6d85bd751c6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostRequestBody.java @@ -0,0 +1,71 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakeinlinecompositionPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { + public MultipartformdataMediaType() { + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakeinlinecompositionPostRequestBody1 extends RequestBodySerializer { + public FakeinlinecompositionPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), + new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + if (requestBody instanceof ApplicationjsonRequestBody requestBody0) { + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } else { + MultipartformdataRequestBody requestBody1 = (MultipartformdataRequestBody) requestBody; + return serialize(requestBody1.contentType(), requestBody1.body().getData()); + } + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, MultipartformdataRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "multipart/form-data"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java new file mode 100644 index 00000000000..a1799f4cc66 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/FakeinlinecompositionPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post; + +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.FakeinlinecompositionPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeinlinecompositionPostResponses { + public sealed interface EndpointResponse permits EndpointFakeinlinecompositionPostCode200Response {} + + public record EndpointFakeinlinecompositionPostCode200Response( + HttpResponse response, + FakeinlinecompositionPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeinlinecompositionPostCode200ResponseDeserializer {} + + public static final class StatusFakeinlinecompositionPostCode200ResponseDeserializer extends FakeinlinecompositionPostCode200Response.FakeinlinecompositionPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeinlinecompositionPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeinlinecompositionPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeinlinecompositionPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeinlinecompositionPostCode200ResponseDeserializer castDeserializer = (StatusFakeinlinecompositionPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeinlinecompositionPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java new file mode 100644 index 00000000000..358e05fde21 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/Parameters.java @@ -0,0 +1,22 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post; + +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.Parameter0; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.Parameter1; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("compositionAtRoot", new Parameter0.Parameter01()), + new AbstractMap.SimpleEntry<>("compositionInProperty", new Parameter1.Parameter11()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java new file mode 100644 index 00000000000..020d186ab95 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "compositionAtRoot", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java new file mode 100644 index 00000000000..94e5c75ccf6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/Parameter1.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter1.Schema1; + +public class Parameter1 { + + public static class Parameter11 extends SchemaParameter { + public Parameter11() { + super( + "compositionInProperty", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema1.Schema11.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..b6bf99f49be --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java @@ -0,0 +1,393 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter0; +import java.time.LocalDate; +import java.time.ZonedDateTime; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.UUID; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema0 { + // nest classes so all schemas and input/output classes can be public + + + public sealed interface Schema00Boxed permits Schema00BoxedString { + @Nullable Object getData(); + } + + public record Schema00BoxedString(String data) implements Schema00Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema00 extends JsonSchema implements StringSchemaValidator { + private static @Nullable Schema00 instance = null; + + protected Schema00() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .minLength(1) + ); + } + + public static Schema00 getInstance() { + if (instance == null) { + instance = new Schema00(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema00BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema00BoxedString(validate(arg, configuration)); + } + @Override + public Schema00Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface Schema01Boxed permits Schema01BoxedVoid, Schema01BoxedBoolean, Schema01BoxedNumber, Schema01BoxedString, Schema01BoxedList, Schema01BoxedMap { + @Nullable Object getData(); + } + + public record Schema01BoxedVoid(Void data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record Schema01BoxedBoolean(boolean data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record Schema01BoxedNumber(Number data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record Schema01BoxedString(String data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record Schema01BoxedList(FrozenList<@Nullable Object> data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record Schema01BoxedMap(FrozenMap<@Nullable Object> data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class Schema01 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, Schema01BoxedList>, MapSchemaValidator, Schema01BoxedMap> { + private static @Nullable Schema01 instance = null; + + protected Schema01() { + super(new JsonSchemaInfo() + .allOf(List.of( + Schema00.class + )) + ); + } + + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + + @Override + public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { + return (long) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + @Override + public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List<@Nullable Object> items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + items.add(itemInstance); + i += 1; + } + FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); + return newInstanceItems; + } + + public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return castProperties; + } + + public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + return validate((Void) null, configuration); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return validate(boolArg, configuration); + } else if (arg instanceof Number) { + return validate((Number) arg, configuration); + } else if (arg instanceof String) { + return validate((String) arg, configuration); + } else if (arg instanceof List) { + return validate((List) arg, configuration); + } else if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg == null) { + return getNewInstance((Void) null, pathToItem, pathToSchemas); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return getNewInstance(boolArg, pathToItem, pathToSchemas); + } else if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } else if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } else if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } else if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema01BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedVoid(validate(arg, configuration)); + } + @Override + public Schema01BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedBoolean(validate(arg, configuration)); + } + @Override + public Schema01BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedNumber(validate(arg, configuration)); + } + @Override + public Schema01BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedString(validate(arg, configuration)); + } + @Override + public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedList(validate(arg, configuration)); + } + @Override + public Schema01BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedMap(validate(arg, configuration)); + } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java new file mode 100644 index 00000000000..360cbe62ac4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java @@ -0,0 +1,596 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.parameters.parameter1; +import java.time.LocalDate; +import java.time.ZonedDateTime; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.UUID; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema1 { + // nest classes so all schemas and input/output classes can be public + + + public sealed interface Schema01Boxed permits Schema01BoxedString { + @Nullable Object getData(); + } + + public record Schema01BoxedString(String data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema01 extends JsonSchema implements StringSchemaValidator { + private static @Nullable Schema01 instance = null; + + protected Schema01() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .minLength(1) + ); + } + + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema01BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedString(validate(arg, configuration)); + } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface SomeProp1Boxed permits SomeProp1BoxedVoid, SomeProp1BoxedBoolean, SomeProp1BoxedNumber, SomeProp1BoxedString, SomeProp1BoxedList, SomeProp1BoxedMap { + @Nullable Object getData(); + } + + public record SomeProp1BoxedVoid(Void data) implements SomeProp1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record SomeProp1BoxedBoolean(boolean data) implements SomeProp1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record SomeProp1BoxedNumber(Number data) implements SomeProp1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record SomeProp1BoxedString(String data) implements SomeProp1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record SomeProp1BoxedList(FrozenList<@Nullable Object> data) implements SomeProp1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record SomeProp1BoxedMap(FrozenMap<@Nullable Object> data) implements SomeProp1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class SomeProp1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, SomeProp1BoxedList>, MapSchemaValidator, SomeProp1BoxedMap> { + private static @Nullable SomeProp1 instance = null; + + protected SomeProp1() { + super(new JsonSchemaInfo() + .allOf(List.of( + Schema01.class + )) + ); + } + + public static SomeProp1 getInstance() { + if (instance == null) { + instance = new SomeProp1(); + } + return instance; + } + + @Override + public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { + return (long) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + @Override + public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List<@Nullable Object> items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + items.add(itemInstance); + i += 1; + } + FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); + return newInstanceItems; + } + + public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return castProperties; + } + + public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + return validate((Void) null, configuration); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return validate(boolArg, configuration); + } else if (arg instanceof Number) { + return validate((Number) arg, configuration); + } else if (arg instanceof String) { + return validate((String) arg, configuration); + } else if (arg instanceof List) { + return validate((List) arg, configuration); + } else if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg == null) { + return getNewInstance((Void) null, pathToItem, pathToSchemas); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return getNewInstance(boolArg, pathToItem, pathToSchemas); + } else if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } else if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } else if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } else if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public SomeProp1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { + return new SomeProp1BoxedVoid(validate(arg, configuration)); + } + @Override + public SomeProp1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { + return new SomeProp1BoxedBoolean(validate(arg, configuration)); + } + @Override + public SomeProp1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new SomeProp1BoxedNumber(validate(arg, configuration)); + } + @Override + public SomeProp1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new SomeProp1BoxedString(validate(arg, configuration)); + } + @Override + public SomeProp1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new SomeProp1BoxedList(validate(arg, configuration)); + } + @Override + public SomeProp1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new SomeProp1BoxedMap(validate(arg, configuration)); + } + @Override + public SomeProp1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class SchemaMap1 extends FrozenMap<@Nullable Object> { + protected SchemaMap1(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "someProp" + ); + public static SchemaMap1 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Schema11.getInstance().validate(arg, configuration); + } + + public @Nullable Object someProp() throws UnsetPropertyException { + return getOrThrow("someProp"); + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForSomeProp1 { + Map getInstance(); + T getBuilderAfterSomeProp1(Map instance); + + default T someProp(Void value) { + var instance = getInstance(); + instance.put("someProp", null); + return getBuilderAfterSomeProp1(instance); + } + + default T someProp(boolean value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterSomeProp1(instance); + } + + default T someProp(String value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterSomeProp1(instance); + } + + default T someProp(int value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterSomeProp1(instance); + } + + default T someProp(float value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterSomeProp1(instance); + } + + default T someProp(long value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterSomeProp1(instance); + } + + default T someProp(double value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterSomeProp1(instance); + } + + default T someProp(List value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterSomeProp1(instance); + } + + default T someProp(Map value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterSomeProp1(instance); + } + } + + public static class SchemaMapBuilder1 extends UnsetAddPropsSetter implements GenericBuilder>, SetterForSomeProp1 { + private final Map instance; + private static final Set knownKeys = Set.of( + "someProp" + ); + public Set getKnownKeys() { + return knownKeys; + } + public SchemaMapBuilder1() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public SchemaMapBuilder1 getBuilderAfterSomeProp1(Map instance) { + return this; + } + public SchemaMapBuilder1 getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface Schema11Boxed permits Schema11BoxedMap { + @Nullable Object getData(); + } + + public record Schema11BoxedMap(SchemaMap1 data) implements Schema11Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class Schema11 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Schema11 instance = null; + + protected Schema11() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("someProp", SomeProp1.class) + )) + ); + } + + public static Schema11 getInstance() { + if (instance == null) { + instance = new Schema11(); + } + return instance; + } + + public SchemaMap1 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new SchemaMap1(castProperties); + } + + public SchemaMap1 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema11BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema11BoxedMap(validate(arg, configuration)); + } + @Override + public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..0d5501bb071 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,393 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.applicationjson; +import java.time.LocalDate; +import java.time.ZonedDateTime; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.UUID; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class ApplicationjsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public sealed interface Applicationjson0Boxed permits Applicationjson0BoxedString { + @Nullable Object getData(); + } + + public record Applicationjson0BoxedString(String data) implements Applicationjson0Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Applicationjson0 extends JsonSchema implements StringSchemaValidator { + private static @Nullable Applicationjson0 instance = null; + + protected Applicationjson0() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .minLength(1) + ); + } + + public static Applicationjson0 getInstance() { + if (instance == null) { + instance = new Applicationjson0(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Applicationjson0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Applicationjson0BoxedString(validate(arg, configuration)); + } + @Override + public Applicationjson0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedVoid, ApplicationjsonSchema1BoxedBoolean, ApplicationjsonSchema1BoxedNumber, ApplicationjsonSchema1BoxedString, ApplicationjsonSchema1BoxedList, ApplicationjsonSchema1BoxedMap { + @Nullable Object getData(); + } + + public record ApplicationjsonSchema1BoxedVoid(Void data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record ApplicationjsonSchema1BoxedBoolean(boolean data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record ApplicationjsonSchema1BoxedNumber(Number data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record ApplicationjsonSchema1BoxedString(String data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class ApplicationjsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ApplicationjsonSchema1BoxedList>, MapSchemaValidator, ApplicationjsonSchema1BoxedMap> { + private static @Nullable ApplicationjsonSchema1 instance = null; + + protected ApplicationjsonSchema1() { + super(new JsonSchemaInfo() + .allOf(List.of( + Applicationjson0.class + )) + ); + } + + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + + @Override + public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { + return (long) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + @Override + public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List<@Nullable Object> items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + items.add(itemInstance); + i += 1; + } + FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); + return newInstanceItems; + } + + public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return castProperties; + } + + public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + return validate((Void) null, configuration); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return validate(boolArg, configuration); + } else if (arg instanceof Number) { + return validate((Number) arg, configuration); + } else if (arg instanceof String) { + return validate((String) arg, configuration); + } else if (arg instanceof List) { + return validate((List) arg, configuration); + } else if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg == null) { + return getNewInstance((Void) null, pathToItem, pathToSchemas); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return getNewInstance(boolArg, pathToItem, pathToSchemas); + } else if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } else if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } else if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } else if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationjsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedVoid(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedBoolean(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedNumber(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedString(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedList(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java new file mode 100644 index 00000000000..61278aa23d3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -0,0 +1,596 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.requestbody.content.multipartformdata; +import java.time.LocalDate; +import java.time.ZonedDateTime; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.UUID; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class MultipartformdataSchema { + // nest classes so all schemas and input/output classes can be public + + + public sealed interface Multipartformdata0Boxed permits Multipartformdata0BoxedString { + @Nullable Object getData(); + } + + public record Multipartformdata0BoxedString(String data) implements Multipartformdata0Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Multipartformdata0 extends JsonSchema implements StringSchemaValidator { + private static @Nullable Multipartformdata0 instance = null; + + protected Multipartformdata0() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .minLength(1) + ); + } + + public static Multipartformdata0 getInstance() { + if (instance == null) { + instance = new Multipartformdata0(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Multipartformdata0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Multipartformdata0BoxedString(validate(arg, configuration)); + } + @Override + public Multipartformdata0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { + @Nullable Object getData(); + } + + public record MultipartformdataSomePropBoxedVoid(Void data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record MultipartformdataSomePropBoxedBoolean(boolean data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record MultipartformdataSomePropBoxedNumber(Number data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record MultipartformdataSomePropBoxedString(String data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class MultipartformdataSomeProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipartformdataSomePropBoxedList>, MapSchemaValidator, MultipartformdataSomePropBoxedMap> { + private static @Nullable MultipartformdataSomeProp instance = null; + + protected MultipartformdataSomeProp() { + super(new JsonSchemaInfo() + .allOf(List.of( + Multipartformdata0.class + )) + ); + } + + public static MultipartformdataSomeProp getInstance() { + if (instance == null) { + instance = new MultipartformdataSomeProp(); + } + return instance; + } + + @Override + public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { + return (long) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + @Override + public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List<@Nullable Object> items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + items.add(itemInstance); + i += 1; + } + FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); + return newInstanceItems; + } + + public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return castProperties; + } + + public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + return validate((Void) null, configuration); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return validate(boolArg, configuration); + } else if (arg instanceof Number) { + return validate((Number) arg, configuration); + } else if (arg instanceof String) { + return validate((String) arg, configuration); + } else if (arg instanceof List) { + return validate((List) arg, configuration); + } else if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg == null) { + return getNewInstance((Void) null, pathToItem, pathToSchemas); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return getNewInstance(boolArg, pathToItem, pathToSchemas); + } else if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } else if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } else if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } else if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public MultipartformdataSomePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedVoid(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedBoolean(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedNumber(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedString(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedList(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedMap(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { + protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "someProp" + ); + public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return MultipartformdataSchema1.getInstance().validate(arg, configuration); + } + + public @Nullable Object someProp() throws UnsetPropertyException { + return getOrThrow("someProp"); + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForMultipartformdataSomeProp { + Map getInstance(); + T getBuilderAfterMultipartformdataSomeProp(Map instance); + + default T someProp(Void value) { + var instance = getInstance(); + instance.put("someProp", null); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(boolean value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(String value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(int value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(float value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(long value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(double value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(List value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(Map value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + } + + public static class MultipartformdataSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataSomeProp { + private final Map instance; + private static final Set knownKeys = Set.of( + "someProp" + ); + public Set getKnownKeys() { + return knownKeys; + } + public MultipartformdataSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataSomeProp(Map instance) { + return this; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { + @Nullable Object getData(); + } + + public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable MultipartformdataSchema1 instance = null; + + protected MultipartformdataSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("someProp", MultipartformdataSomeProp.class) + )) + ); + } + + public static MultipartformdataSchema1 getInstance() { + if (instance == null) { + instance = new MultipartformdataSchema1(); + } + return instance; + } + + public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new MultipartformdataSchemaMap(castProperties); + } + + public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java new file mode 100644 index 00000000000..11da1d76b4a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/FakeinlinecompositionPostCode200Response.java @@ -0,0 +1,81 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.multipartformdata.MultipartformdataSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakeinlinecompositionPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { + public MultipartformdataMediaType() { + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody, MultipartformdataResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } + public record MultipartformdataResponseBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedResponseBody { } + + public static class FakeinlinecompositionPostCode200Response1 extends ResponseDeserializer { + public FakeinlinecompositionPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), + new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + if (mediaType instanceof ApplicationjsonMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } else { + MultipartformdataMediaType thisMediaType = (MultipartformdataMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new MultipartformdataResponseBody(deserializedBody); + } + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..340a806c573 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,393 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.applicationjson; +import java.time.LocalDate; +import java.time.ZonedDateTime; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.UUID; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class ApplicationjsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public sealed interface Applicationjson0Boxed permits Applicationjson0BoxedString { + @Nullable Object getData(); + } + + public record Applicationjson0BoxedString(String data) implements Applicationjson0Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Applicationjson0 extends JsonSchema implements StringSchemaValidator { + private static @Nullable Applicationjson0 instance = null; + + protected Applicationjson0() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .minLength(1) + ); + } + + public static Applicationjson0 getInstance() { + if (instance == null) { + instance = new Applicationjson0(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Applicationjson0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Applicationjson0BoxedString(validate(arg, configuration)); + } + @Override + public Applicationjson0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedVoid, ApplicationjsonSchema1BoxedBoolean, ApplicationjsonSchema1BoxedNumber, ApplicationjsonSchema1BoxedString, ApplicationjsonSchema1BoxedList, ApplicationjsonSchema1BoxedMap { + @Nullable Object getData(); + } + + public record ApplicationjsonSchema1BoxedVoid(Void data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record ApplicationjsonSchema1BoxedBoolean(boolean data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record ApplicationjsonSchema1BoxedNumber(Number data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record ApplicationjsonSchema1BoxedString(String data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record ApplicationjsonSchema1BoxedList(FrozenList<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record ApplicationjsonSchema1BoxedMap(FrozenMap<@Nullable Object> data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class ApplicationjsonSchema1 extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, ApplicationjsonSchema1BoxedList>, MapSchemaValidator, ApplicationjsonSchema1BoxedMap> { + private static @Nullable ApplicationjsonSchema1 instance = null; + + protected ApplicationjsonSchema1() { + super(new JsonSchemaInfo() + .allOf(List.of( + Applicationjson0.class + )) + ); + } + + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + + @Override + public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { + return (long) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + @Override + public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List<@Nullable Object> items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + items.add(itemInstance); + i += 1; + } + FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); + return newInstanceItems; + } + + public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return castProperties; + } + + public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + return validate((Void) null, configuration); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return validate(boolArg, configuration); + } else if (arg instanceof Number) { + return validate((Number) arg, configuration); + } else if (arg instanceof String) { + return validate((String) arg, configuration); + } else if (arg instanceof List) { + return validate((List) arg, configuration); + } else if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg == null) { + return getNewInstance((Void) null, pathToItem, pathToSchemas); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return getNewInstance(boolArg, pathToItem, pathToSchemas); + } else if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } else if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } else if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } else if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationjsonSchema1BoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedVoid(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1BoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedBoolean(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedNumber(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedString(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedList(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java new file mode 100644 index 00000000000..8798968b17e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java @@ -0,0 +1,596 @@ +package org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.code200response.content.multipartformdata; +import java.time.LocalDate; +import java.time.ZonedDateTime; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.UUID; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.BooleanSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NullSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class MultipartformdataSchema { + // nest classes so all schemas and input/output classes can be public + + + public sealed interface Multipartformdata0Boxed permits Multipartformdata0BoxedString { + @Nullable Object getData(); + } + + public record Multipartformdata0BoxedString(String data) implements Multipartformdata0Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Multipartformdata0 extends JsonSchema implements StringSchemaValidator { + private static @Nullable Multipartformdata0 instance = null; + + protected Multipartformdata0() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .minLength(1) + ); + } + + public static Multipartformdata0 getInstance() { + if (instance == null) { + instance = new Multipartformdata0(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Multipartformdata0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Multipartformdata0BoxedString(validate(arg, configuration)); + } + @Override + public Multipartformdata0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public sealed interface MultipartformdataSomePropBoxed permits MultipartformdataSomePropBoxedVoid, MultipartformdataSomePropBoxedBoolean, MultipartformdataSomePropBoxedNumber, MultipartformdataSomePropBoxedString, MultipartformdataSomePropBoxedList, MultipartformdataSomePropBoxedMap { + @Nullable Object getData(); + } + + public record MultipartformdataSomePropBoxedVoid(Void data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record MultipartformdataSomePropBoxedBoolean(boolean data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record MultipartformdataSomePropBoxedNumber(Number data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record MultipartformdataSomePropBoxedString(String data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record MultipartformdataSomePropBoxedList(FrozenList<@Nullable Object> data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + public record MultipartformdataSomePropBoxedMap(FrozenMap<@Nullable Object> data) implements MultipartformdataSomePropBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class MultipartformdataSomeProp extends JsonSchema implements NullSchemaValidator, BooleanSchemaValidator, NumberSchemaValidator, StringSchemaValidator, ListSchemaValidator, MultipartformdataSomePropBoxedList>, MapSchemaValidator, MultipartformdataSomePropBoxedMap> { + private static @Nullable MultipartformdataSomeProp instance = null; + + protected MultipartformdataSomeProp() { + super(new JsonSchemaInfo() + .allOf(List.of( + Multipartformdata0.class + )) + ); + } + + public static MultipartformdataSomeProp getInstance() { + if (instance == null) { + instance = new MultipartformdataSomeProp(); + } + return instance; + } + + @Override + public Void validate(Void arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public boolean validate(boolean arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { + return (long) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public String validate(LocalDate arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(ZonedDateTime arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + public String validate(UUID arg, SchemaConfiguration configuration) throws ValidationException { + return validate(arg.toString(), configuration); + } + + @Override + public FrozenList<@Nullable Object> getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List<@Nullable Object> items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + items.add(itemInstance); + i += 1; + } + FrozenList<@Nullable Object> newInstanceItems = new FrozenList<>(items); + return newInstanceItems; + } + + public FrozenList<@Nullable Object> validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public FrozenMap<@Nullable Object> getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return castProperties; + } + + public FrozenMap<@Nullable Object> validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0]"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + return validate((Void) null, configuration); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return validate(boolArg, configuration); + } else if (arg instanceof Number) { + return validate((Number) arg, configuration); + } else if (arg instanceof String) { + return validate((String) arg, configuration); + } else if (arg instanceof List) { + return validate((List) arg, configuration); + } else if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg == null) { + return getNewInstance((Void) null, pathToItem, pathToSchemas); + } else if (arg instanceof Boolean) { + boolean boolArg = (Boolean) arg; + return getNewInstance(boolArg, pathToItem, pathToSchemas); + } else if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } else if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } else if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } else if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public MultipartformdataSomePropBoxedVoid validateAndBox(Void arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedVoid(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxedBoolean validateAndBox(boolean arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedBoolean(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedNumber(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedString(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedList(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSomePropBoxedMap(validate(arg, configuration)); + } + @Override + public MultipartformdataSomePropBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg == null) { + Void castArg = (Void) arg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof Boolean booleanArg) { + boolean castArg = booleanArg; + return validateAndBox(castArg, configuration); + } else if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } else if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { + protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "someProp" + ); + public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return MultipartformdataSchema1.getInstance().validate(arg, configuration); + } + + public @Nullable Object someProp() throws UnsetPropertyException { + return getOrThrow("someProp"); + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForMultipartformdataSomeProp { + Map getInstance(); + T getBuilderAfterMultipartformdataSomeProp(Map instance); + + default T someProp(Void value) { + var instance = getInstance(); + instance.put("someProp", null); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(boolean value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(String value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(int value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(float value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(long value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(double value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(List value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + + default T someProp(Map value) { + var instance = getInstance(); + instance.put("someProp", value); + return getBuilderAfterMultipartformdataSomeProp(instance); + } + } + + public static class MultipartformdataSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataSomeProp { + private final Map instance; + private static final Set knownKeys = Set.of( + "someProp" + ); + public Set getKnownKeys() { + return knownKeys; + } + public MultipartformdataSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataSomeProp(Map instance) { + return this; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { + @Nullable Object getData(); + } + + public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable MultipartformdataSchema1 instance = null; + + protected MultipartformdataSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("someProp", MultipartformdataSomeProp.class) + )) + ); + } + + public static MultipartformdataSchema1 getInstance() { + if (instance == null) { + instance = new MultipartformdataSchema1(); + } + return instance; + } + + public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new MultipartformdataSchemaMap(castProperties); + } + + public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java new file mode 100644 index 00000000000..d0ab6bd7642 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/FakejsonformdataGet.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakejsonformdata; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.FakejsonformdataGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakejsonformdata; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakejsonformdataGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakejsonformdataGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakejsonformdataGetRequestBody.FakejsonformdataGetRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakejsonformdata.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakejsonformdataGetResponses.FakejsonformdataGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakejsonformdataGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface JsonFormDataOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakejsonformdataGetResponses.EndpointResponse jsonFormData(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public FakejsonformdataGetRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + GetRequest getInstance(); + T getBuilderAfterRequestBody(GetRequest instance); + default T requestBody(FakejsonformdataGetRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java new file mode 100644 index 00000000000..db4fc9f757b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakejsonformdata.get; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakejsonformdataGetRequestBody { + public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} + + public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxwwwformurlencodedMediaType() { + this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakejsonformdataGetRequestBody1 extends RequestBodySerializer { + public FakejsonformdataGetRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationxwwwformurlencodedRequestBody requestBody0 = (ApplicationxwwwformurlencodedRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} + public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/x-www-form-urlencoded"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java new file mode 100644 index 00000000000..eb89e916396 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/FakejsonformdataGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakejsonformdata.get; + +import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.FakejsonformdataGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakejsonformdataGetResponses { + public sealed interface EndpointResponse permits EndpointFakejsonformdataGetCode200Response {} + + public record EndpointFakejsonformdataGetCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakejsonformdataGetCode200ResponseDeserializer {} + + public static final class StatusFakejsonformdataGetCode200ResponseDeserializer extends FakejsonformdataGetCode200Response.FakejsonformdataGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakejsonformdataGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakejsonformdataGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakejsonformdataGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakejsonformdataGetCode200ResponseDeserializer castDeserializer = (StatusFakejsonformdataGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakejsonformdataGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java new file mode 100644 index 00000000000..676abe08d29 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -0,0 +1,274 @@ +package org.openapijsonschematools.client.paths.fakejsonformdata.get.requestbody.content.applicationxwwwformurlencoded; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class ApplicationxwwwformurlencodedSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationxwwwformurlencodedParam extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationxwwwformurlencodedParam instance = null; + public static ApplicationxwwwformurlencodedParam getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedParam(); + } + return instance; + } + } + + + public static class ApplicationxwwwformurlencodedParam2 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationxwwwformurlencodedParam2 instance = null; + public static ApplicationxwwwformurlencodedParam2 getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedParam2(); + } + return instance; + } + } + + + public static class ApplicationxwwwformurlencodedSchemaMap extends FrozenMap<@Nullable Object> { + protected ApplicationxwwwformurlencodedSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "param", + "param2" + ); + public static final Set optionalKeys = Set.of(); + public static ApplicationxwwwformurlencodedSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return ApplicationxwwwformurlencodedSchema1.getInstance().validate(arg, configuration); + } + + public String param() { + @Nullable Object value = get("param"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for param"); + } + return (String) value; + } + + public String param2() { + @Nullable Object value = get("param2"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for param2"); + } + return (String) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForApplicationxwwwformurlencodedParam { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedParam(Map instance); + + default T param(String value) { + var instance = getInstance(); + instance.put("param", value); + return getBuilderAfterApplicationxwwwformurlencodedParam(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedParam2 { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedParam2(Map instance); + + default T param2(String value) { + var instance = getInstance(); + instance.put("param2", value); + return getBuilderAfterApplicationxwwwformurlencodedParam2(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap00Builder extends UnsetAddPropsSetter implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "param", + "param2" + ); + public Set getKnownKeys() { + return knownKeys; + } + public ApplicationxwwwformurlencodedSchemaMap00Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap00Builder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap01Builder implements SetterForApplicationxwwwformurlencodedParam2 { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap01Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap00Builder getBuilderAfterApplicationxwwwformurlencodedParam2(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap00Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMap10Builder implements SetterForApplicationxwwwformurlencodedParam { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMap10Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap00Builder getBuilderAfterApplicationxwwwformurlencodedParam(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap00Builder(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMapBuilder implements SetterForApplicationxwwwformurlencodedParam, SetterForApplicationxwwwformurlencodedParam2 { + private final Map instance; + public ApplicationxwwwformurlencodedSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMap01Builder getBuilderAfterApplicationxwwwformurlencodedParam(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap01Builder(instance); + } + public ApplicationxwwwformurlencodedSchemaMap10Builder getBuilderAfterApplicationxwwwformurlencodedParam2(Map instance) { + return new ApplicationxwwwformurlencodedSchemaMap10Builder(instance); + } + } + + + public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; + + protected ApplicationxwwwformurlencodedSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("param", ApplicationxwwwformurlencodedParam.class), + new PropertyEntry("param2", ApplicationxwwwformurlencodedParam2.class) + )) + .required(Set.of( + "param", + "param2" + )) + ); + } + + public static ApplicationxwwwformurlencodedSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedSchema1(); + } + return instance; + } + + public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new ApplicationxwwwformurlencodedSchemaMap(castProperties); + } + + public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.java new file mode 100644 index 00000000000..ea7665e2152 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/responses/FakejsonformdataGetCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakejsonformdata.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakejsonformdataGetCode200Response extends SuccessDescriptionOnly { + public static class FakejsonformdataGetCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java new file mode 100644 index 00000000000..a13ac896280 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/FakejsonpatchPatch.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakejsonpatch; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.FakejsonpatchPatchResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakejsonpatch; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakejsonpatchPatch { + private static class PatchProvider { + private static final String method = "patch"; + + public static FakejsonpatchPatchResponses.EndpointResponse patch( + PatchRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakejsonpatchPatchRequestBody.FakejsonpatchPatchRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakejsonpatch.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakejsonpatchPatchResponses.FakejsonpatchPatchResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PatchOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakejsonpatchPatchResponses.EndpointResponse patch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface JsonPatchOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakejsonpatchPatchResponses.EndpointResponse jsonPatch(PatchRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PatchProvider.patch(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Patch extends ApiClient implements PatchOperation { + public Patch(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PatchRequest { + public FakejsonpatchPatchRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PatchRequest getInstance(); + T getBuilderAfterRequestBody(PatchRequest instance); + default T requestBody(FakejsonpatchPatchRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PatchRequest getInstance(); + T getBuilderAfterServerIndex(PatchRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PatchRequest getInstance(); + T getBuilderAfterTimeout(PatchRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PatchRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PatchRequest instance; + + public PatchRequestBuilder() { + this.instance = new PatchRequest(); + } + + public PatchRequest build() { + return instance; + } + + public PatchRequest getInstance() { + return instance; + } + + public PatchRequestBuilder getBuilderAfterRequestBody(PatchRequest instance) { + return this; + } + + public PatchRequestBuilder getBuilderAfterServerIndex(PatchRequest instance) { + return this; + } + + public PatchRequestBuilder getBuilderAfterTimeout(PatchRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java new file mode 100644 index 00000000000..56bf4d5e8d5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakejsonpatch.patch; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.requestbody.content.applicationjsonpatchjson.ApplicationjsonpatchjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakejsonpatchPatchRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonpatchjsonMediaType {} + + public record ApplicationjsonpatchjsonMediaType(ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonpatchjsonMediaType() { + this(ApplicationjsonpatchjsonSchema.ApplicationjsonpatchjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakejsonpatchPatchRequestBody1 extends RequestBodySerializer { + public FakejsonpatchPatchRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json-patch+json", new ApplicationjsonpatchjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonpatchjsonRequestBody requestBody0 = (ApplicationjsonpatchjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonpatchjsonRequestBody {} + public record ApplicationjsonpatchjsonRequestBody(ApplicationjsonpatchjsonSchema.JSONPatchRequest1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json-patch+json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java new file mode 100644 index 00000000000..f1699dcc589 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/FakejsonpatchPatchResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakejsonpatch.patch; + +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.FakejsonpatchPatchCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakejsonpatchPatchResponses { + public sealed interface EndpointResponse permits EndpointFakejsonpatchPatchCode200Response {} + + public record EndpointFakejsonpatchPatchCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakejsonpatchPatchCode200ResponseDeserializer {} + + public static final class StatusFakejsonpatchPatchCode200ResponseDeserializer extends FakejsonpatchPatchCode200Response.FakejsonpatchPatchCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakejsonpatchPatchResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakejsonpatchPatchResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakejsonpatchPatchCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakejsonpatchPatchCode200ResponseDeserializer castDeserializer = (StatusFakejsonpatchPatchCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakejsonpatchPatchCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java new file mode 100644 index 00000000000..cd05f887749 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson/ApplicationjsonpatchjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakejsonpatch.patch.requestbody.content.applicationjsonpatchjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.JSONPatchRequest; + +public class ApplicationjsonpatchjsonSchema extends JSONPatchRequest { + // $refed class + + + public static class ApplicationjsonpatchjsonSchema1 extends JSONPatchRequest1 { + private static @Nullable ApplicationjsonpatchjsonSchema1 instance = null; + public static ApplicationjsonpatchjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonpatchjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.java new file mode 100644 index 00000000000..9c5391108b0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonpatch/patch/responses/FakejsonpatchPatchCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakejsonpatchPatchCode200Response extends SuccessDescriptionOnly { + public static class FakejsonpatchPatchCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java new file mode 100644 index 00000000000..480a7570011 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/FakejsonwithcharsetPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakejsonwithcharset; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.FakejsonwithcharsetPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakejsonwithcharset; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakejsonwithcharsetPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakejsonwithcharsetPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakejsonwithcharsetPostRequestBody.FakejsonwithcharsetPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakejsonwithcharset.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakejsonwithcharsetPostResponses.FakejsonwithcharsetPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakejsonwithcharsetPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface JsonWithCharsetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakejsonwithcharsetPostResponses.EndpointResponse jsonWithCharset(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakejsonwithcharsetPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakejsonwithcharsetPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java new file mode 100644 index 00000000000..86e3ba4f283 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakejsonwithcharset.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakejsonwithcharsetPostRequestBody { + public sealed interface SealedMediaType permits Applicationjsoncharsetutf8MediaType {} + + public record Applicationjsoncharsetutf8MediaType(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1 schema) implements SealedMediaType, MediaType { + public Applicationjsoncharsetutf8MediaType() { + this(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakejsonwithcharsetPostRequestBody1 extends RequestBodySerializer { + public FakejsonwithcharsetPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new Applicationjsoncharsetutf8MediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + Applicationjsoncharsetutf8RequestBody requestBody0 = (Applicationjsoncharsetutf8RequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits Applicationjsoncharsetutf8RequestBody {} + public record Applicationjsoncharsetutf8RequestBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json; charset=utf-8"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java new file mode 100644 index 00000000000..f695b513166 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/FakejsonwithcharsetPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakejsonwithcharset.post; + +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.FakejsonwithcharsetPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakejsonwithcharsetPostResponses { + public sealed interface EndpointResponse permits EndpointFakejsonwithcharsetPostCode200Response {} + + public record EndpointFakejsonwithcharsetPostCode200Response( + HttpResponse response, + FakejsonwithcharsetPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakejsonwithcharsetPostCode200ResponseDeserializer {} + + public static final class StatusFakejsonwithcharsetPostCode200ResponseDeserializer extends FakejsonwithcharsetPostCode200Response.FakejsonwithcharsetPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakejsonwithcharsetPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakejsonwithcharsetPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakejsonwithcharsetPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakejsonwithcharsetPostCode200ResponseDeserializer castDeserializer = (StatusFakejsonwithcharsetPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakejsonwithcharsetPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java new file mode 100644 index 00000000000..86ea755b112 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/requestbody/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakejsonwithcharset.post.requestbody.content.applicationjsoncharsetutf8; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class Applicationjsoncharsetutf8Schema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Applicationjsoncharsetutf8Schema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable Applicationjsoncharsetutf8Schema1 instance = null; + public static Applicationjsoncharsetutf8Schema1 getInstance() { + if (instance == null) { + instance = new Applicationjsoncharsetutf8Schema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java new file mode 100644 index 00000000000..71a35408633 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/FakejsonwithcharsetPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.code200response.content.applicationjsoncharsetutf8.Applicationjsoncharsetutf8Schema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakejsonwithcharsetPostCode200Response { + public sealed interface SealedMediaType permits Applicationjsoncharsetutf8MediaType {} + + public record Applicationjsoncharsetutf8MediaType(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1 schema) implements SealedMediaType, MediaType { + public Applicationjsoncharsetutf8MediaType() { + this(Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits Applicationjsoncharsetutf8ResponseBody {} + public record Applicationjsoncharsetutf8ResponseBody(Applicationjsoncharsetutf8Schema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakejsonwithcharsetPostCode200Response1 extends ResponseDeserializer { + public FakejsonwithcharsetPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json; charset=utf-8", new Applicationjsoncharsetutf8MediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + Applicationjsoncharsetutf8MediaType thisMediaType = (Applicationjsoncharsetutf8MediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new Applicationjsoncharsetutf8ResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java new file mode 100644 index 00000000000..8e4d5dbf902 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.code200response.content.applicationjsoncharsetutf8; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class Applicationjsoncharsetutf8Schema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Applicationjsoncharsetutf8Schema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable Applicationjsoncharsetutf8Schema1 instance = null; + public static Applicationjsoncharsetutf8Schema1 getInstance() { + if (instance == null) { + instance = new Applicationjsoncharsetutf8Schema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java new file mode 100644 index 00000000000..585ea8c5680 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/FakemultiplerequestbodycontenttypesPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.FakemultiplerequestbodycontenttypesPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakemultiplerequestbodycontenttypes; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakemultiplerequestbodycontenttypesPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakemultiplerequestbodycontenttypesPostRequestBody.FakemultiplerequestbodycontenttypesPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakemultiplerequestbodycontenttypes.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakemultiplerequestbodycontenttypesPostResponses.FakemultiplerequestbodycontenttypesPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface MultipleRequestBodyContentTypesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakemultiplerequestbodycontenttypesPostResponses.EndpointResponse multipleRequestBodyContentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakemultiplerequestbodycontenttypesPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakemultiplerequestbodycontenttypesPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java new file mode 100644 index 00000000000..537497a9cc9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostRequestBody.java @@ -0,0 +1,71 @@ +package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakemultiplerequestbodycontenttypesPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType, MultipartformdataMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { + public MultipartformdataMediaType() { + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakemultiplerequestbodycontenttypesPostRequestBody1 extends RequestBodySerializer { + public FakemultiplerequestbodycontenttypesPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()), + new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + if (requestBody instanceof ApplicationjsonRequestBody requestBody0) { + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } else { + MultipartformdataRequestBody requestBody1 = (MultipartformdataRequestBody) requestBody; + return serialize(requestBody1.contentType(), requestBody1.body().getData()); + } + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody, MultipartformdataRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "multipart/form-data"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java new file mode 100644 index 00000000000..fedc18554a6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/FakemultiplerequestbodycontenttypesPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post; + +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.FakemultiplerequestbodycontenttypesPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakemultiplerequestbodycontenttypesPostResponses { + public sealed interface EndpointResponse permits EndpointFakemultiplerequestbodycontenttypesPostCode200Response {} + + public record EndpointFakemultiplerequestbodycontenttypesPostCode200Response( + HttpResponse response, + FakemultiplerequestbodycontenttypesPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer {} + + public static final class StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer extends FakemultiplerequestbodycontenttypesPostCode200Response.FakemultiplerequestbodycontenttypesPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakemultiplerequestbodycontenttypesPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakemultiplerequestbodycontenttypesPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer castDeserializer = (StatusFakemultiplerequestbodycontenttypesPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakemultiplerequestbodycontenttypesPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..a770374fa98 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,200 @@ +package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.applicationjson; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class ApplicationjsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonA extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationjsonA instance = null; + public static ApplicationjsonA getInstance() { + if (instance == null) { + instance = new ApplicationjsonA(); + } + return instance; + } + } + + + public static class ApplicationjsonSchemaMap extends FrozenMap<@Nullable Object> { + protected ApplicationjsonSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "a" + ); + public static ApplicationjsonSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return ApplicationjsonSchema1.getInstance().validate(arg, configuration); + } + + public String a() throws UnsetPropertyException { + String key = "a"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for a"); + } + return (String) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForApplicationjsonA { + Map getInstance(); + T getBuilderAfterApplicationjsonA(Map instance); + + default T a(String value) { + var instance = getInstance(); + instance.put("a", value); + return getBuilderAfterApplicationjsonA(instance); + } + } + + public static class ApplicationjsonSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForApplicationjsonA { + private final Map instance; + private static final Set knownKeys = Set.of( + "a" + ); + public Set getKnownKeys() { + return knownKeys; + } + public ApplicationjsonSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public ApplicationjsonSchemaMapBuilder getBuilderAfterApplicationjsonA(Map instance) { + return this; + } + public ApplicationjsonSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedMap { + @Nullable Object getData(); + } + + public record ApplicationjsonSchema1BoxedMap(ApplicationjsonSchemaMap data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable ApplicationjsonSchema1 instance = null; + + protected ApplicationjsonSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("a", ApplicationjsonA.class) + )) + ); + } + + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + + public ApplicationjsonSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new ApplicationjsonSchemaMap(castProperties); + } + + public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java new file mode 100644 index 00000000000..1f7af7f9a29 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -0,0 +1,200 @@ +package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.requestbody.content.multipartformdata; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class MultipartformdataSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class MultipartformdataB extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable MultipartformdataB instance = null; + public static MultipartformdataB getInstance() { + if (instance == null) { + instance = new MultipartformdataB(); + } + return instance; + } + } + + + public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { + protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "b" + ); + public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return MultipartformdataSchema1.getInstance().validate(arg, configuration); + } + + public String b() throws UnsetPropertyException { + String key = "b"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for b"); + } + return (String) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForMultipartformdataB { + Map getInstance(); + T getBuilderAfterMultipartformdataB(Map instance); + + default T b(String value) { + var instance = getInstance(); + instance.put("b", value); + return getBuilderAfterMultipartformdataB(instance); + } + } + + public static class MultipartformdataSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataB { + private final Map instance; + private static final Set knownKeys = Set.of( + "b" + ); + public Set getKnownKeys() { + return knownKeys; + } + public MultipartformdataSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataB(Map instance) { + return this; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { + @Nullable Object getData(); + } + + public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable MultipartformdataSchema1 instance = null; + + protected MultipartformdataSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("b", MultipartformdataB.class) + )) + ); + } + + public static MultipartformdataSchema1 getInstance() { + if (instance == null) { + instance = new MultipartformdataSchema1(); + } + return instance; + } + + public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new MultipartformdataSchemaMap(castProperties); + } + + public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java new file mode 100644 index 00000000000..31866cb56d6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/FakemultiplerequestbodycontenttypesPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakemultiplerequestbodycontenttypesPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakemultiplerequestbodycontenttypesPostCode200Response1 extends ResponseDeserializer { + public FakemultiplerequestbodycontenttypesPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..68f600e23d6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.code200response.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java new file mode 100644 index 00000000000..78be3b0ebe6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/FakemultipleresponsebodiesGet.java @@ -0,0 +1,124 @@ +package org.openapijsonschematools.client.paths.fakemultipleresponsebodies; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.FakemultipleresponsebodiesGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakemultipleresponsebodies; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakemultipleresponsebodiesGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakemultipleresponsebodiesGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakemultipleresponsebodies.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakemultipleresponsebodiesGetResponses.FakemultipleresponsebodiesGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakemultipleresponsebodiesGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface MultipleResponseBodiesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakemultipleresponsebodiesGetResponses.EndpointResponse multipleResponseBodies(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java new file mode 100644 index 00000000000..328ed565f80 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/FakemultipleresponsebodiesGetResponses.java @@ -0,0 +1,69 @@ +package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get; + +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode200Response; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.FakemultipleresponsebodiesGetCode202Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakemultipleresponsebodiesGetResponses { + public sealed interface EndpointResponse permits EndpointFakemultipleresponsebodiesGetCode200Response, EndpointFakemultipleresponsebodiesGetCode202Response {} + + public record EndpointFakemultipleresponsebodiesGetCode200Response( + HttpResponse response, + FakemultipleresponsebodiesGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public record EndpointFakemultipleresponsebodiesGetCode202Response( + HttpResponse response, + FakemultipleresponsebodiesGetCode202Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer, StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer {} + + public static final class StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer extends FakemultipleresponsebodiesGetCode200Response.FakemultipleresponsebodiesGetCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer extends FakemultipleresponsebodiesGetCode202Response.FakemultipleresponsebodiesGetCode202Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakemultipleresponsebodiesGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakemultipleresponsebodiesGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("202", new StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusFakemultipleresponsebodiesGetCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakemultipleresponsebodiesGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else { + StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer castDeserializer = (StatusFakemultipleresponsebodiesGetCode202ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakemultipleresponsebodiesGetCode202Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java new file mode 100644 index 00000000000..aa57e66abcc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakemultipleresponsebodiesGetCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakemultipleresponsebodiesGetCode200Response1 extends ResponseDeserializer { + public FakemultipleresponsebodiesGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java new file mode 100644 index 00000000000..059d4284e0d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/FakemultipleresponsebodiesGetCode202Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code202response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakemultipleresponsebodiesGetCode202Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakemultipleresponsebodiesGetCode202Response1 extends ResponseDeserializer { + public FakemultipleresponsebodiesGetCode202Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..0a2a9520c57 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code200response.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..53ce26bfe16 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.code202response.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java new file mode 100644 index 00000000000..99652396c14 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/FakemultiplesecuritiesGet.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakemultiplesecurities; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakemultiplesecurities; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakemultiplesecuritiesGet { + private static class GetProvider extends AuthApplier { + private static final String method = "get"; + + public static FakemultiplesecuritiesGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + Fakemultiplesecurities.path, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + Fakemultiplesecurities.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakemultiplesecuritiesGetResponses.FakemultiplesecuritiesGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakemultiplesecuritiesGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface MultipleSecuritiesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakemultiplesecuritiesGetResponses.EndpointResponse multipleSecurities(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public RootServerInfo.@Nullable ServerIndex serverIndex; + public FakemultiplesecuritiesGetSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + GetRequest getInstance(); + T getBuilderAfterSecurityIndex(GetRequest instance); + default T securityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterSecurityIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java new file mode 100644 index 00000000000..c10a56a840a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakemultiplesecurities.get; + +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.FakemultiplesecuritiesGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakemultiplesecuritiesGetResponses { + public sealed interface EndpointResponse permits EndpointFakemultiplesecuritiesGetCode200Response {} + + public record EndpointFakemultiplesecuritiesGetCode200Response( + HttpResponse response, + FakemultiplesecuritiesGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakemultiplesecuritiesGetCode200ResponseDeserializer {} + + public static final class StatusFakemultiplesecuritiesGetCode200ResponseDeserializer extends FakemultiplesecuritiesGetCode200Response.FakemultiplesecuritiesGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakemultiplesecuritiesGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakemultiplesecuritiesGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakemultiplesecuritiesGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakemultiplesecuritiesGetCode200ResponseDeserializer castDeserializer = (StatusFakemultiplesecuritiesGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakemultiplesecuritiesGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java new file mode 100644 index 00000000000..ed1fd5216aa --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java @@ -0,0 +1,39 @@ +package org.openapijsonschematools.client.paths.fakemultiplesecurities.get; + +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security.FakemultiplesecuritiesGetSecurityRequirementObject0; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security.FakemultiplesecuritiesGetSecurityRequirementObject1; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security.FakemultiplesecuritiesGetSecurityRequirementObject2; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class FakemultiplesecuritiesGetSecurityInfo { + public static class FakemultiplesecuritiesGetSecurityInfo1 implements SecurityRequirementObjectProvider { + public final FakemultiplesecuritiesGetSecurityRequirementObject0 security0; + public final FakemultiplesecuritiesGetSecurityRequirementObject1 security1; + public final FakemultiplesecuritiesGetSecurityRequirementObject2 security2; + + public FakemultiplesecuritiesGetSecurityInfo1() { + security0 = new FakemultiplesecuritiesGetSecurityRequirementObject0(); + security1 = new FakemultiplesecuritiesGetSecurityRequirementObject1(); + security2 = new FakemultiplesecuritiesGetSecurityRequirementObject2(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + switch (securityIndex) { + case SECURITY_0: + return security0; + case SECURITY_1: + return security1; + default: + return security2; + } + } + } + + public enum SecurityIndex { + SECURITY_0, + SECURITY_1, + SECURITY_2 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java new file mode 100644 index 00000000000..06c0ea10767 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/FakemultiplesecuritiesGetCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakemultiplesecuritiesGetCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakemultiplesecuritiesGetCode200Response1 extends ResponseDeserializer { + public FakemultiplesecuritiesGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..19cca1a1b80 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.code200response.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java new file mode 100644 index 00000000000..bc95dd4ca2b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.java @@ -0,0 +1,5 @@ +package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security; + +import org.openapijsonschematools.client.securityrequirementobjects.EmptySecurityRequirementObject; + +public class FakemultiplesecuritiesGetSecurityRequirementObject0 extends EmptySecurityRequirementObject {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java new file mode 100644 index 00000000000..4b2a7c9737a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java @@ -0,0 +1,29 @@ +package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; +import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class FakemultiplesecuritiesGetSecurityRequirementObject1 extends SecurityRequirementObject { + + public FakemultiplesecuritiesGetSecurityRequirementObject1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + HttpBasicTest.class, + List.of() + ), + new AbstractMap.SimpleEntry, List>( + ApiKey.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java new file mode 100644 index 00000000000..b59a0f9bb32 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class FakemultiplesecuritiesGetSecurityRequirementObject2 extends SecurityRequirementObject { + + public FakemultiplesecuritiesGetSecurityRequirementObject2() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + PetstoreAuth.class, + List.of("write:pets", "read:pets") + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java new file mode 100644 index 00000000000..b4fa0a4edbd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/FakeobjinqueryGet.java @@ -0,0 +1,148 @@ +package org.openapijsonschematools.client.paths.fakeobjinquery; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetQueryParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.Parameters; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.FakeobjinqueryGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakeobjinquery; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeobjinqueryGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakeobjinqueryGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = null; + if (request.queryParameters != null) { + queryMap = querySerializer.getQueryMap(request.queryParameters); + } + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakeobjinquery.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeobjinqueryGetResponses.FakeobjinqueryGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeobjinqueryGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ObjectInQueryOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeobjinqueryGetResponses.EndpointResponse objectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public FakeobjinqueryGetQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForQueryParameters { + GetRequest getInstance(); + T getBuilderAfterQueryParameters(GetRequest instance); + default T queryParameters(FakeobjinqueryGetQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java new file mode 100644 index 00000000000..bd8b2045e9c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetQueryParameters.java @@ -0,0 +1,191 @@ +package org.openapijsonschematools.client.paths.fakeobjinquery.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakeobjinqueryGetQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "mapBean" + ); + public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + return FakeobjinqueryGetQueryParameters1.getInstance().validate(arg, configuration); + } + + public Schema0.SchemaMap0 mapBean() throws UnsetPropertyException { + return getOrThrow("mapBean"); + } + } + + public interface SetterForMapBean { + Map> getInstance(); + T getBuilderAfterMapBean(Map> instance); + + default T mapBean(Map value) { + var instance = getInstance(); + instance.put("mapBean", value); + return getBuilderAfterMapBean(instance); + } + } + + public static class QueryParametersMapBuilder implements GenericBuilder>>, SetterForMapBean { + private final Map> instance; + private static final Set knownKeys = Set.of( + "mapBean" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map> build() { + return instance; + } + public Map> getInstance() { + return instance; + } + public QueryParametersMapBuilder getBuilderAfterMapBean(Map> instance) { + return this; + } + } + + + public sealed interface FakeobjinqueryGetQueryParameters1Boxed permits FakeobjinqueryGetQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakeobjinqueryGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakeobjinqueryGetQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakeobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakeobjinqueryGetQueryParameters1 instance = null; + + protected FakeobjinqueryGetQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("mapBean", Schema0.Schema01.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakeobjinqueryGetQueryParameters1 getInstance() { + if (instance == null) { + instance = new FakeobjinqueryGetQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Schema0.SchemaMap0)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (Schema0.SchemaMap0) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakeobjinqueryGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakeobjinqueryGetQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakeobjinqueryGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java new file mode 100644 index 00000000000..f3b4fc6711e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/FakeobjinqueryGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakeobjinquery.get; + +import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.FakeobjinqueryGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeobjinqueryGetResponses { + public sealed interface EndpointResponse permits EndpointFakeobjinqueryGetCode200Response {} + + public record EndpointFakeobjinqueryGetCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeobjinqueryGetCode200ResponseDeserializer {} + + public static final class StatusFakeobjinqueryGetCode200ResponseDeserializer extends FakeobjinqueryGetCode200Response.FakeobjinqueryGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeobjinqueryGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeobjinqueryGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeobjinqueryGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeobjinqueryGetCode200ResponseDeserializer castDeserializer = (StatusFakeobjinqueryGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeobjinqueryGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java new file mode 100644 index 00000000000..58e787df688 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.fakeobjinquery.get; + +import org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("mapBean", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java new file mode 100644 index 00000000000..75d3713a0bb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "mapBean", + ParameterInType.QUERY, + false, + ParameterStyle.DEEP_OBJECT, + true, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..28dc740b7eb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java @@ -0,0 +1,200 @@ +package org.openapijsonschematools.client.paths.fakeobjinquery.get.parameters.parameter0; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema0 { + // nest classes so all schemas and input/output classes can be public + + + public static class Keyword0 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Keyword0 instance = null; + public static Keyword0 getInstance() { + if (instance == null) { + instance = new Keyword0(); + } + return instance; + } + } + + + public static class SchemaMap0 extends FrozenMap<@Nullable Object> { + protected SchemaMap0(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "keyword" + ); + public static SchemaMap0 of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Schema01.getInstance().validate(arg, configuration); + } + + public String keyword() throws UnsetPropertyException { + String key = "keyword"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for keyword"); + } + return (String) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForKeyword0 { + Map getInstance(); + T getBuilderAfterKeyword0(Map instance); + + default T keyword(String value) { + var instance = getInstance(); + instance.put("keyword", value); + return getBuilderAfterKeyword0(instance); + } + } + + public static class SchemaMapBuilder0 extends UnsetAddPropsSetter implements GenericBuilder>, SetterForKeyword0 { + private final Map instance; + private static final Set knownKeys = Set.of( + "keyword" + ); + public Set getKnownKeys() { + return knownKeys; + } + public SchemaMapBuilder0() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public SchemaMapBuilder0 getBuilderAfterKeyword0(Map instance) { + return this; + } + public SchemaMapBuilder0 getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface Schema01Boxed permits Schema01BoxedMap { + @Nullable Object getData(); + } + + public record Schema01BoxedMap(SchemaMap0 data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class Schema01 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Schema01 instance = null; + + protected Schema01() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("keyword", Keyword0.class) + )) + ); + } + + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + + public SchemaMap0 getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new SchemaMap0(castProperties); + } + + public SchemaMap0 validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema01BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedMap(validate(arg, configuration)); + } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.java new file mode 100644 index 00000000000..ea4029a4cb2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/responses/FakeobjinqueryGetCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakeobjinquery.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakeobjinqueryGetCode200Response extends SuccessDescriptionOnly { + public static class FakeobjinqueryGetCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java new file mode 100644 index 00000000000..0b245fa60d0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/Fakeparametercollisions1ababselfabPost.java @@ -0,0 +1,291 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostRequestBody; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostHeaderParameters; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostQueryParameters; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostCookieParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostPathParameters; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Parameters; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Fakeparametercollisions1ababselfabPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakeparametercollisions1ababselfab; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class Fakeparametercollisions1ababselfabPost { + private static class PostProvider { + private static final String method = "post"; + + public static Fakeparametercollisions1ababselfabPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new Fakeparametercollisions1ababselfabPostRequestBody.Fakeparametercollisions1ababselfabPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + + if (request.headerParameters != null) { + var headersSerializer = new Parameters.HeaderParametersSerializer(); + Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); + headers.putAll(serializedHeaders); + } + + if (request.cookieParameters != null) { + var cookieSerializer = new Parameters.CookieParametersSerializer(); + String serializedCookie = cookieSerializer.serialize(request.cookieParameters); + var cookieHeaderValues = headers.getOrDefault("Cookie", new ArrayList<>()); + cookieHeaderValues.add(serializedCookie); + } + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Fakeparametercollisions1ababselfab.path); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = null; + if (request.queryParameters != null) { + queryMap = querySerializer.getQueryMap(request.queryParameters); + } + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + updatedPath; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new Fakeparametercollisions1ababselfabPostResponses.Fakeparametercollisions1ababselfabPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Fakeparametercollisions1ababselfabPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ParameterCollisionsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Fakeparametercollisions1ababselfabPostResponses.EndpointResponse parameterCollisions(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters; + public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; + public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap queryParameters; + public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap cookieParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PostRequest( + Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters, + Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody, + Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap headerParameters, + Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap queryParameters, + Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap cookieParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.requestBody = requestBody; + this.headerParameters = headerParameters; + this.queryParameters = queryParameters; + this.cookieParameters = cookieParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public Fakeparametercollisions1ababselfabPostPathParameters.@Nullable PathParametersMap pathParameters; + public Fakeparametercollisions1ababselfabPostRequestBody.@Nullable SealedRequestBody requestBody; + public Fakeparametercollisions1ababselfabPostHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public Fakeparametercollisions1ababselfabPostQueryParameters.@Nullable QueryParametersMap queryParameters; + public Fakeparametercollisions1ababselfabPostCookieParameters.@Nullable CookieParametersMap cookieParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(Fakeparametercollisions1ababselfabPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForHeaderParameters { + PostNullableRequest getInstance(); + T getBuilderAfterHeaderParameters(PostNullableRequest instance); + default T headerParameters(Fakeparametercollisions1ababselfabPostHeaderParameters.HeaderParametersMap headerParameters) { + var instance = getInstance(); + instance.headerParameters = headerParameters; + return getBuilderAfterHeaderParameters(instance); + } + } + + public interface SetterForQueryParameters { + PostNullableRequest getInstance(); + T getBuilderAfterQueryParameters(PostNullableRequest instance); + default T queryParameters(Fakeparametercollisions1ababselfabPostQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public interface SetterForCookieParameters { + PostNullableRequest getInstance(); + T getBuilderAfterCookieParameters(PostNullableRequest instance); + default T cookieParameters(Fakeparametercollisions1ababselfabPostCookieParameters.CookieParametersMap cookieParameters) { + var instance = getInstance(); + instance.cookieParameters = cookieParameters; + return getBuilderAfterCookieParameters(instance); + } + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + PostNullableRequest getInstance(); + T getBuilderAfterPathParameters(PostNullableRequest instance); + default T pathParameters(Fakeparametercollisions1ababselfabPostPathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Post0RequestBuilder implements SetterForRequestBody, SetterForHeaderParameters, SetterForQueryParameters, SetterForCookieParameters, SetterForServerIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + pathParameters, + instance.requestBody, + instance.headerParameters, + instance.queryParameters, + instance.cookieParameters, + instance.serverIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterHeaderParameters(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterQueryParameters(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterCookieParameters(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForPathParameters { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java new file mode 100644 index 00000000000..1fde72f7396 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostCookieParameters.java @@ -0,0 +1,286 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter14.Schema14; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter15.Schema15; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter16.Schema16; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter17.Schema17; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter18.Schema18; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Fakeparametercollisions1ababselfabPostCookieParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class CookieParametersMap extends FrozenMap<@Nullable Object> { + protected CookieParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "1", + "aB", + "Ab", + "A-B", + "self" + ); + public static CookieParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Fakeparametercollisions1ababselfabPostCookieParameters1.getInstance().validate(arg, configuration); + } + + public String aB() throws UnsetPropertyException { + String key = "aB"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for aB"); + } + return (String) value; + } + + public String Ab() throws UnsetPropertyException { + String key = "Ab"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for Ab"); + } + return (String) value; + } + + public String self() throws UnsetPropertyException { + String key = "self"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for self"); + } + return (String) value; + } + } + + public interface SetterForSchema1 { + Map getInstance(); + T getBuilderAfterSchema1(Map instance); + + default T positive1(String value) { + var instance = getInstance(); + instance.put("1", value); + return getBuilderAfterSchema1(instance); + } + } + + public interface SetterForAB { + Map getInstance(); + T getBuilderAfterAB(Map instance); + + default T aB(String value) { + var instance = getInstance(); + instance.put("aB", value); + return getBuilderAfterAB(instance); + } + } + + public interface SetterForAb { + Map getInstance(); + T getBuilderAfterAb(Map instance); + + default T Ab(String value) { + var instance = getInstance(); + instance.put("Ab", value); + return getBuilderAfterAb(instance); + } + } + + public interface SetterForAB1 { + Map getInstance(); + T getBuilderAfterAB1(Map instance); + + default T aHyphenMinusB(String value) { + var instance = getInstance(); + instance.put("A-B", value); + return getBuilderAfterAB1(instance); + } + } + + public interface SetterForSelf { + Map getInstance(); + T getBuilderAfterSelf(Map instance); + + default T self(String value) { + var instance = getInstance(); + instance.put("self", value); + return getBuilderAfterSelf(instance); + } + } + + public static class CookieParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAb, SetterForAB1, SetterForSelf { + private final Map instance; + private static final Set knownKeys = Set.of( + "1", + "aB", + "Ab", + "A-B", + "self" + ); + public Set getKnownKeys() { + return knownKeys; + } + public CookieParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public CookieParametersMapBuilder getBuilderAfterSchema1(Map instance) { + return this; + } + public CookieParametersMapBuilder getBuilderAfterAB(Map instance) { + return this; + } + public CookieParametersMapBuilder getBuilderAfterAb(Map instance) { + return this; + } + public CookieParametersMapBuilder getBuilderAfterAB1(Map instance) { + return this; + } + public CookieParametersMapBuilder getBuilderAfterSelf(Map instance) { + return this; + } + } + + + public sealed interface Fakeparametercollisions1ababselfabPostCookieParameters1Boxed permits Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap { + @Nullable Object getData(); + } + + public record Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(CookieParametersMap data) implements Fakeparametercollisions1ababselfabPostCookieParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class Fakeparametercollisions1ababselfabPostCookieParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Fakeparametercollisions1ababselfabPostCookieParameters1 instance = null; + + protected Fakeparametercollisions1ababselfabPostCookieParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("1", Schema14.Schema141.class), + new PropertyEntry("aB", Schema15.Schema151.class), + new PropertyEntry("Ab", Schema16.Schema161.class), + new PropertyEntry("A-B", Schema18.Schema181.class), + new PropertyEntry("self", Schema17.Schema171.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static Fakeparametercollisions1ababselfabPostCookieParameters1 getInstance() { + if (instance == null) { + instance = new Fakeparametercollisions1ababselfabPostCookieParameters1(); + } + return instance; + } + + public CookieParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new CookieParametersMap(castProperties); + } + + public CookieParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Fakeparametercollisions1ababselfabPostCookieParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public Fakeparametercollisions1ababselfabPostCookieParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java new file mode 100644 index 00000000000..ab6e94846b2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostHeaderParameters.java @@ -0,0 +1,258 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter5.Schema5; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter6.Schema6; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter7.Schema7; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter8.Schema8; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Fakeparametercollisions1ababselfabPostHeaderParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class HeaderParametersMap extends FrozenMap<@Nullable Object> { + protected HeaderParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "1", + "aB", + "A-B", + "self" + ); + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Fakeparametercollisions1ababselfabPostHeaderParameters1.getInstance().validate(arg, configuration); + } + + public String aB() throws UnsetPropertyException { + String key = "aB"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for aB"); + } + return (String) value; + } + + public String self() throws UnsetPropertyException { + String key = "self"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for self"); + } + return (String) value; + } + } + + public interface SetterForSchema1 { + Map getInstance(); + T getBuilderAfterSchema1(Map instance); + + default T positive1(String value) { + var instance = getInstance(); + instance.put("1", value); + return getBuilderAfterSchema1(instance); + } + } + + public interface SetterForAB { + Map getInstance(); + T getBuilderAfterAB(Map instance); + + default T aB(String value) { + var instance = getInstance(); + instance.put("aB", value); + return getBuilderAfterAB(instance); + } + } + + public interface SetterForAB1 { + Map getInstance(); + T getBuilderAfterAB1(Map instance); + + default T aHyphenMinusB(String value) { + var instance = getInstance(); + instance.put("A-B", value); + return getBuilderAfterAB1(instance); + } + } + + public interface SetterForSelf { + Map getInstance(); + T getBuilderAfterSelf(Map instance); + + default T self(String value) { + var instance = getInstance(); + instance.put("self", value); + return getBuilderAfterSelf(instance); + } + } + + public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAB1, SetterForSelf { + private final Map instance; + private static final Set knownKeys = Set.of( + "1", + "aB", + "A-B", + "self" + ); + public Set getKnownKeys() { + return knownKeys; + } + public HeaderParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public HeaderParametersMapBuilder getBuilderAfterSchema1(Map instance) { + return this; + } + public HeaderParametersMapBuilder getBuilderAfterAB(Map instance) { + return this; + } + public HeaderParametersMapBuilder getBuilderAfterAB1(Map instance) { + return this; + } + public HeaderParametersMapBuilder getBuilderAfterSelf(Map instance) { + return this; + } + } + + + public sealed interface Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed permits Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap { + @Nullable Object getData(); + } + + public record Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(HeaderParametersMap data) implements Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class Fakeparametercollisions1ababselfabPostHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Fakeparametercollisions1ababselfabPostHeaderParameters1 instance = null; + + protected Fakeparametercollisions1ababselfabPostHeaderParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("1", Schema5.Schema51.class), + new PropertyEntry("aB", Schema6.Schema61.class), + new PropertyEntry("A-B", Schema8.Schema81.class), + new PropertyEntry("self", Schema7.Schema71.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static Fakeparametercollisions1ababselfabPostHeaderParameters1 getInstance() { + if (instance == null) { + instance = new Fakeparametercollisions1ababselfabPostHeaderParameters1(); + } + return instance; + } + + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new HeaderParametersMap(castProperties); + } + + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Fakeparametercollisions1ababselfabPostHeaderParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public Fakeparametercollisions1ababselfabPostHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java new file mode 100644 index 00000000000..15c92f81def --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostPathParameters.java @@ -0,0 +1,819 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter10.Schema10; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter11.Schema11; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter12.Schema12; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter13.Schema13; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter9.Schema9; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Fakeparametercollisions1ababselfabPostPathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap<@Nullable Object> { + protected PathParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "1", + "A-B", + "Ab", + "aB", + "self" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Fakeparametercollisions1ababselfabPostPathParameters1.getInstance().validate(arg, configuration); + } + + public String Ab() { + @Nullable Object value = get("Ab"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for Ab"); + } + return (String) value; + } + + public String aB() { + @Nullable Object value = get("aB"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for aB"); + } + return (String) value; + } + + public String self() { + @Nullable Object value = get("self"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for self"); + } + return (String) value; + } + } + + public interface SetterForSchema1 { + Map getInstance(); + T getBuilderAfterSchema1(Map instance); + + default T positive1(String value) { + var instance = getInstance(); + instance.put("1", value); + return getBuilderAfterSchema1(instance); + } + } + + public interface SetterForAB1 { + Map getInstance(); + T getBuilderAfterAB1(Map instance); + + default T aHyphenMinusB(String value) { + var instance = getInstance(); + instance.put("A-B", value); + return getBuilderAfterAB1(instance); + } + } + + public interface SetterForAb { + Map getInstance(); + T getBuilderAfterAb(Map instance); + + default T Ab(String value) { + var instance = getInstance(); + instance.put("Ab", value); + return getBuilderAfterAb(instance); + } + } + + public interface SetterForAB { + Map getInstance(); + T getBuilderAfterAB(Map instance); + + default T aB(String value) { + var instance = getInstance(); + instance.put("aB", value); + return getBuilderAfterAB(instance); + } + } + + public interface SetterForSelf { + Map getInstance(); + T getBuilderAfterSelf(Map instance); + + default T self(String value) { + var instance = getInstance(); + instance.put("self", value); + return getBuilderAfterSelf(instance); + } + } + + public static class PathParametersMap00000Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "1", + "A-B", + "Ab", + "aB", + "self" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap00000Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMap00001Builder implements SetterForSelf { + private final Map instance; + public PathParametersMap00001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00000Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap00000Builder(instance); + } + } + + public static class PathParametersMap00010Builder implements SetterForAB { + private final Map instance; + public PathParametersMap00010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00000Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap00000Builder(instance); + } + } + + public static class PathParametersMap00011Builder implements SetterForAB, SetterForSelf { + private final Map instance; + public PathParametersMap00011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00001Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap00001Builder(instance); + } + public PathParametersMap00010Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap00010Builder(instance); + } + } + + public static class PathParametersMap00100Builder implements SetterForAb { + private final Map instance; + public PathParametersMap00100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00000Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap00000Builder(instance); + } + } + + public static class PathParametersMap00101Builder implements SetterForAb, SetterForSelf { + private final Map instance; + public PathParametersMap00101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00001Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap00001Builder(instance); + } + public PathParametersMap00100Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap00100Builder(instance); + } + } + + public static class PathParametersMap00110Builder implements SetterForAb, SetterForAB { + private final Map instance; + public PathParametersMap00110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00010Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap00010Builder(instance); + } + public PathParametersMap00100Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap00100Builder(instance); + } + } + + public static class PathParametersMap00111Builder implements SetterForAb, SetterForAB, SetterForSelf { + private final Map instance; + public PathParametersMap00111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00011Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap00011Builder(instance); + } + public PathParametersMap00101Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap00101Builder(instance); + } + public PathParametersMap00110Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap00110Builder(instance); + } + } + + public static class PathParametersMap01000Builder implements SetterForAB1 { + private final Map instance; + public PathParametersMap01000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00000Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00000Builder(instance); + } + } + + public static class PathParametersMap01001Builder implements SetterForAB1, SetterForSelf { + private final Map instance; + public PathParametersMap01001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00001Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00001Builder(instance); + } + public PathParametersMap01000Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap01000Builder(instance); + } + } + + public static class PathParametersMap01010Builder implements SetterForAB1, SetterForAB { + private final Map instance; + public PathParametersMap01010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00010Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00010Builder(instance); + } + public PathParametersMap01000Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap01000Builder(instance); + } + } + + public static class PathParametersMap01011Builder implements SetterForAB1, SetterForAB, SetterForSelf { + private final Map instance; + public PathParametersMap01011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00011Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00011Builder(instance); + } + public PathParametersMap01001Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap01001Builder(instance); + } + public PathParametersMap01010Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap01010Builder(instance); + } + } + + public static class PathParametersMap01100Builder implements SetterForAB1, SetterForAb { + private final Map instance; + public PathParametersMap01100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00100Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00100Builder(instance); + } + public PathParametersMap01000Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap01000Builder(instance); + } + } + + public static class PathParametersMap01101Builder implements SetterForAB1, SetterForAb, SetterForSelf { + private final Map instance; + public PathParametersMap01101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00101Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00101Builder(instance); + } + public PathParametersMap01001Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap01001Builder(instance); + } + public PathParametersMap01100Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap01100Builder(instance); + } + } + + public static class PathParametersMap01110Builder implements SetterForAB1, SetterForAb, SetterForAB { + private final Map instance; + public PathParametersMap01110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00110Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00110Builder(instance); + } + public PathParametersMap01010Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap01010Builder(instance); + } + public PathParametersMap01100Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap01100Builder(instance); + } + } + + public static class PathParametersMap01111Builder implements SetterForAB1, SetterForAb, SetterForAB, SetterForSelf { + private final Map instance; + public PathParametersMap01111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00111Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap00111Builder(instance); + } + public PathParametersMap01011Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap01011Builder(instance); + } + public PathParametersMap01101Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap01101Builder(instance); + } + public PathParametersMap01110Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap01110Builder(instance); + } + } + + public static class PathParametersMap10000Builder implements SetterForSchema1 { + private final Map instance; + public PathParametersMap10000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00000Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00000Builder(instance); + } + } + + public static class PathParametersMap10001Builder implements SetterForSchema1, SetterForSelf { + private final Map instance; + public PathParametersMap10001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00001Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00001Builder(instance); + } + public PathParametersMap10000Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap10000Builder(instance); + } + } + + public static class PathParametersMap10010Builder implements SetterForSchema1, SetterForAB { + private final Map instance; + public PathParametersMap10010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00010Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00010Builder(instance); + } + public PathParametersMap10000Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap10000Builder(instance); + } + } + + public static class PathParametersMap10011Builder implements SetterForSchema1, SetterForAB, SetterForSelf { + private final Map instance; + public PathParametersMap10011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00011Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00011Builder(instance); + } + public PathParametersMap10001Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap10001Builder(instance); + } + public PathParametersMap10010Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap10010Builder(instance); + } + } + + public static class PathParametersMap10100Builder implements SetterForSchema1, SetterForAb { + private final Map instance; + public PathParametersMap10100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00100Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00100Builder(instance); + } + public PathParametersMap10000Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap10000Builder(instance); + } + } + + public static class PathParametersMap10101Builder implements SetterForSchema1, SetterForAb, SetterForSelf { + private final Map instance; + public PathParametersMap10101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00101Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00101Builder(instance); + } + public PathParametersMap10001Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap10001Builder(instance); + } + public PathParametersMap10100Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap10100Builder(instance); + } + } + + public static class PathParametersMap10110Builder implements SetterForSchema1, SetterForAb, SetterForAB { + private final Map instance; + public PathParametersMap10110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00110Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00110Builder(instance); + } + public PathParametersMap10010Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap10010Builder(instance); + } + public PathParametersMap10100Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap10100Builder(instance); + } + } + + public static class PathParametersMap10111Builder implements SetterForSchema1, SetterForAb, SetterForAB, SetterForSelf { + private final Map instance; + public PathParametersMap10111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap00111Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap00111Builder(instance); + } + public PathParametersMap10011Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap10011Builder(instance); + } + public PathParametersMap10101Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap10101Builder(instance); + } + public PathParametersMap10110Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap10110Builder(instance); + } + } + + public static class PathParametersMap11000Builder implements SetterForSchema1, SetterForAB1 { + private final Map instance; + public PathParametersMap11000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap01000Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01000Builder(instance); + } + public PathParametersMap10000Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10000Builder(instance); + } + } + + public static class PathParametersMap11001Builder implements SetterForSchema1, SetterForAB1, SetterForSelf { + private final Map instance; + public PathParametersMap11001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap01001Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01001Builder(instance); + } + public PathParametersMap10001Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10001Builder(instance); + } + public PathParametersMap11000Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap11000Builder(instance); + } + } + + public static class PathParametersMap11010Builder implements SetterForSchema1, SetterForAB1, SetterForAB { + private final Map instance; + public PathParametersMap11010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap01010Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01010Builder(instance); + } + public PathParametersMap10010Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10010Builder(instance); + } + public PathParametersMap11000Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap11000Builder(instance); + } + } + + public static class PathParametersMap11011Builder implements SetterForSchema1, SetterForAB1, SetterForAB, SetterForSelf { + private final Map instance; + public PathParametersMap11011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap01011Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01011Builder(instance); + } + public PathParametersMap10011Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10011Builder(instance); + } + public PathParametersMap11001Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap11001Builder(instance); + } + public PathParametersMap11010Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap11010Builder(instance); + } + } + + public static class PathParametersMap11100Builder implements SetterForSchema1, SetterForAB1, SetterForAb { + private final Map instance; + public PathParametersMap11100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap01100Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01100Builder(instance); + } + public PathParametersMap10100Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10100Builder(instance); + } + public PathParametersMap11000Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap11000Builder(instance); + } + } + + public static class PathParametersMap11101Builder implements SetterForSchema1, SetterForAB1, SetterForAb, SetterForSelf { + private final Map instance; + public PathParametersMap11101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap01101Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01101Builder(instance); + } + public PathParametersMap10101Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10101Builder(instance); + } + public PathParametersMap11001Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap11001Builder(instance); + } + public PathParametersMap11100Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap11100Builder(instance); + } + } + + public static class PathParametersMap11110Builder implements SetterForSchema1, SetterForAB1, SetterForAb, SetterForAB { + private final Map instance; + public PathParametersMap11110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public PathParametersMap01110Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01110Builder(instance); + } + public PathParametersMap10110Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10110Builder(instance); + } + public PathParametersMap11010Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap11010Builder(instance); + } + public PathParametersMap11100Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap11100Builder(instance); + } + } + + public static class PathParametersMapBuilder implements SetterForSchema1, SetterForAB1, SetterForAb, SetterForAB, SetterForSelf { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap01111Builder getBuilderAfterSchema1(Map instance) { + return new PathParametersMap01111Builder(instance); + } + public PathParametersMap10111Builder getBuilderAfterAB1(Map instance) { + return new PathParametersMap10111Builder(instance); + } + public PathParametersMap11011Builder getBuilderAfterAb(Map instance) { + return new PathParametersMap11011Builder(instance); + } + public PathParametersMap11101Builder getBuilderAfterAB(Map instance) { + return new PathParametersMap11101Builder(instance); + } + public PathParametersMap11110Builder getBuilderAfterSelf(Map instance) { + return new PathParametersMap11110Builder(instance); + } + } + + + public sealed interface Fakeparametercollisions1ababselfabPostPathParameters1Boxed permits Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(PathParametersMap data) implements Fakeparametercollisions1ababselfabPostPathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class Fakeparametercollisions1ababselfabPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Fakeparametercollisions1ababselfabPostPathParameters1 instance = null; + + protected Fakeparametercollisions1ababselfabPostPathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("1", Schema9.Schema91.class), + new PropertyEntry("aB", Schema10.Schema101.class), + new PropertyEntry("Ab", Schema11.Schema111.class), + new PropertyEntry("A-B", Schema13.Schema131.class), + new PropertyEntry("self", Schema12.Schema121.class) + )) + .required(Set.of( + "1", + "A-B", + "Ab", + "aB", + "self" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static Fakeparametercollisions1ababselfabPostPathParameters1 getInstance() { + if (instance == null) { + instance = new Fakeparametercollisions1ababselfabPostPathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Fakeparametercollisions1ababselfabPostPathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public Fakeparametercollisions1ababselfabPostPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java new file mode 100644 index 00000000000..2336817442d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostQueryParameters.java @@ -0,0 +1,286 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter1.Schema1; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter2.Schema2; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter3.Schema3; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter4.Schema4; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Fakeparametercollisions1ababselfabPostQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "1", + "aB", + "Ab", + "A-B", + "self" + ); + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return Fakeparametercollisions1ababselfabPostQueryParameters1.getInstance().validate(arg, configuration); + } + + public String aB() throws UnsetPropertyException { + String key = "aB"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for aB"); + } + return (String) value; + } + + public String Ab() throws UnsetPropertyException { + String key = "Ab"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for Ab"); + } + return (String) value; + } + + public String self() throws UnsetPropertyException { + String key = "self"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for self"); + } + return (String) value; + } + } + + public interface SetterForSchema1 { + Map getInstance(); + T getBuilderAfterSchema1(Map instance); + + default T positive1(String value) { + var instance = getInstance(); + instance.put("1", value); + return getBuilderAfterSchema1(instance); + } + } + + public interface SetterForAB { + Map getInstance(); + T getBuilderAfterAB(Map instance); + + default T aB(String value) { + var instance = getInstance(); + instance.put("aB", value); + return getBuilderAfterAB(instance); + } + } + + public interface SetterForAb { + Map getInstance(); + T getBuilderAfterAb(Map instance); + + default T Ab(String value) { + var instance = getInstance(); + instance.put("Ab", value); + return getBuilderAfterAb(instance); + } + } + + public interface SetterForAB1 { + Map getInstance(); + T getBuilderAfterAB1(Map instance); + + default T aHyphenMinusB(String value) { + var instance = getInstance(); + instance.put("A-B", value); + return getBuilderAfterAB1(instance); + } + } + + public interface SetterForSelf { + Map getInstance(); + T getBuilderAfterSelf(Map instance); + + default T self(String value) { + var instance = getInstance(); + instance.put("self", value); + return getBuilderAfterSelf(instance); + } + } + + public static class QueryParametersMapBuilder implements GenericBuilder>, SetterForSchema1, SetterForAB, SetterForAb, SetterForAB1, SetterForSelf { + private final Map instance; + private static final Set knownKeys = Set.of( + "1", + "aB", + "Ab", + "A-B", + "self" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMapBuilder getBuilderAfterSchema1(Map instance) { + return this; + } + public QueryParametersMapBuilder getBuilderAfterAB(Map instance) { + return this; + } + public QueryParametersMapBuilder getBuilderAfterAb(Map instance) { + return this; + } + public QueryParametersMapBuilder getBuilderAfterAB1(Map instance) { + return this; + } + public QueryParametersMapBuilder getBuilderAfterSelf(Map instance) { + return this; + } + } + + + public sealed interface Fakeparametercollisions1ababselfabPostQueryParameters1Boxed permits Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(QueryParametersMap data) implements Fakeparametercollisions1ababselfabPostQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class Fakeparametercollisions1ababselfabPostQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable Fakeparametercollisions1ababselfabPostQueryParameters1 instance = null; + + protected Fakeparametercollisions1ababselfabPostQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("1", Schema0.Schema01.class), + new PropertyEntry("aB", Schema1.Schema11.class), + new PropertyEntry("Ab", Schema2.Schema21.class), + new PropertyEntry("A-B", Schema4.Schema41.class), + new PropertyEntry("self", Schema3.Schema31.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static Fakeparametercollisions1ababselfabPostQueryParameters1 getInstance() { + if (instance == null) { + instance = new Fakeparametercollisions1ababselfabPostQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new Fakeparametercollisions1ababselfabPostQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public Fakeparametercollisions1ababselfabPostQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java new file mode 100644 index 00000000000..e650135340f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class Fakeparametercollisions1ababselfabPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class Fakeparametercollisions1ababselfabPostRequestBody1 extends RequestBodySerializer { + public Fakeparametercollisions1ababselfabPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java new file mode 100644 index 00000000000..b5e3bc67446 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Fakeparametercollisions1ababselfabPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; + +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Fakeparametercollisions1ababselfabPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class Fakeparametercollisions1ababselfabPostResponses { + public sealed interface EndpointResponse permits EndpointFakeparametercollisions1ababselfabPostCode200Response {} + + public record EndpointFakeparametercollisions1ababselfabPostCode200Response( + HttpResponse response, + Fakeparametercollisions1ababselfabPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer {} + + public static final class StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer extends Fakeparametercollisions1ababselfabPostCode200Response.Fakeparametercollisions1ababselfabPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class Fakeparametercollisions1ababselfabPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public Fakeparametercollisions1ababselfabPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer castDeserializer = (StatusFakeparametercollisions1ababselfabPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeparametercollisions1ababselfabPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java new file mode 100644 index 00000000000..6b1d6be5242 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/Parameters.java @@ -0,0 +1,86 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post; + +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter0; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter1; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter2; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter3; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter4; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter5; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter6; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter7; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter8; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter9; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter10; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter11; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter12; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter13; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter14; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter15; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter16; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter17; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.Parameter18; +import org.openapijsonschematools.client.parameter.PathSerializer; +import org.openapijsonschematools.client.parameter.HeadersSerializer; +import org.openapijsonschematools.client.parameter.QuerySerializer; +import org.openapijsonschematools.client.parameter.CookieSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("1", new Parameter9.Parameter91()), + new AbstractMap.SimpleEntry<>("aB", new Parameter10.Parameter101()), + new AbstractMap.SimpleEntry<>("Ab", new Parameter11.Parameter111()), + new AbstractMap.SimpleEntry<>("self", new Parameter12.Parameter121()), + new AbstractMap.SimpleEntry<>("A-B", new Parameter13.Parameter131()) + ) + ); + } + } + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("1", new Parameter0.Parameter01()), + new AbstractMap.SimpleEntry<>("aB", new Parameter1.Parameter11()), + new AbstractMap.SimpleEntry<>("Ab", new Parameter2.Parameter21()), + new AbstractMap.SimpleEntry<>("self", new Parameter3.Parameter31()), + new AbstractMap.SimpleEntry<>("A-B", new Parameter4.Parameter41()) + ) + ); + } + } + + public static class HeaderParametersSerializer extends HeadersSerializer { + public HeaderParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("1", new Parameter5.Parameter51()), + new AbstractMap.SimpleEntry<>("aB", new Parameter6.Parameter61()), + new AbstractMap.SimpleEntry<>("self", new Parameter7.Parameter71()), + new AbstractMap.SimpleEntry<>("A-B", new Parameter8.Parameter81()) + ) + ); + } + } + + public static class CookieParametersSerializer extends CookieSerializer { + public CookieParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("1", new Parameter14.Parameter141()), + new AbstractMap.SimpleEntry<>("aB", new Parameter15.Parameter151()), + new AbstractMap.SimpleEntry<>("Ab", new Parameter16.Parameter161()), + new AbstractMap.SimpleEntry<>("self", new Parameter17.Parameter171()), + new AbstractMap.SimpleEntry<>("A-B", new Parameter18.Parameter181()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java new file mode 100644 index 00000000000..a92fdc8a8c2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "1", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java new file mode 100644 index 00000000000..f630ae29b8f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter1.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter1.Schema1; + +public class Parameter1 { + + public static class Parameter11 extends SchemaParameter { + public Parameter11() { + super( + "aB", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema1.Schema11.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter10.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter10.java new file mode 100644 index 00000000000..0aa44d3eda8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter10.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter10.Schema10; + +public class Parameter10 { + + public static class Parameter101 extends SchemaParameter { + public Parameter101() { + super( + "aB", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema10.Schema101.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter11.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter11.java new file mode 100644 index 00000000000..a86856ac32b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter11.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter11.Schema11; + +public class Parameter11 { + + public static class Parameter111 extends SchemaParameter { + public Parameter111() { + super( + "Ab", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema11.Schema111.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter12.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter12.java new file mode 100644 index 00000000000..ee76bac70af --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter12.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter12.Schema12; + +public class Parameter12 { + + public static class Parameter121 extends SchemaParameter { + public Parameter121() { + super( + "self", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema12.Schema121.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter13.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter13.java new file mode 100644 index 00000000000..de212f1563d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter13.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter13.Schema13; + +public class Parameter13 { + + public static class Parameter131 extends SchemaParameter { + public Parameter131() { + super( + "A-B", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema13.Schema131.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter14.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter14.java new file mode 100644 index 00000000000..a29010916ac --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter14.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter14.Schema14; + +public class Parameter14 { + + public static class Parameter141 extends SchemaParameter { + public Parameter141() { + super( + "1", + ParameterInType.COOKIE, + false, + ParameterStyle.FORM, + true, + false, + Schema14.Schema141.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter15.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter15.java new file mode 100644 index 00000000000..54bf5140899 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter15.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter15.Schema15; + +public class Parameter15 { + + public static class Parameter151 extends SchemaParameter { + public Parameter151() { + super( + "aB", + ParameterInType.COOKIE, + false, + ParameterStyle.FORM, + true, + false, + Schema15.Schema151.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter16.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter16.java new file mode 100644 index 00000000000..f1b8e71d686 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter16.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter16.Schema16; + +public class Parameter16 { + + public static class Parameter161 extends SchemaParameter { + public Parameter161() { + super( + "Ab", + ParameterInType.COOKIE, + false, + ParameterStyle.FORM, + true, + false, + Schema16.Schema161.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter17.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter17.java new file mode 100644 index 00000000000..b856a27eb1e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter17.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter17.Schema17; + +public class Parameter17 { + + public static class Parameter171 extends SchemaParameter { + public Parameter171() { + super( + "self", + ParameterInType.COOKIE, + false, + ParameterStyle.FORM, + true, + false, + Schema17.Schema171.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter18.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter18.java new file mode 100644 index 00000000000..b43ebbe5664 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter18.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter18.Schema18; + +public class Parameter18 { + + public static class Parameter181 extends SchemaParameter { + public Parameter181() { + super( + "A-B", + ParameterInType.COOKIE, + false, + ParameterStyle.FORM, + true, + false, + Schema18.Schema181.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter2.java new file mode 100644 index 00000000000..bb193d95ba3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter2.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter2.Schema2; + +public class Parameter2 { + + public static class Parameter21 extends SchemaParameter { + public Parameter21() { + super( + "Ab", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema2.Schema21.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter3.java new file mode 100644 index 00000000000..b4233c96a02 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter3.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter3.Schema3; + +public class Parameter3 { + + public static class Parameter31 extends SchemaParameter { + public Parameter31() { + super( + "self", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema3.Schema31.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter4.java new file mode 100644 index 00000000000..459cdc6a234 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter4.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter4.Schema4; + +public class Parameter4 { + + public static class Parameter41 extends SchemaParameter { + public Parameter41() { + super( + "A-B", + ParameterInType.QUERY, + false, + ParameterStyle.FORM, + true, + false, + Schema4.Schema41.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter5.java new file mode 100644 index 00000000000..a589c0c385b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter5.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter5.Schema5; + +public class Parameter5 { + + public static class Parameter51 extends SchemaParameter { + public Parameter51() { + super( + "1", + ParameterInType.HEADER, + false, + ParameterStyle.SIMPLE, + false, + false, + Schema5.Schema51.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter6.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter6.java new file mode 100644 index 00000000000..dafa85cb493 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter6.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter6.Schema6; + +public class Parameter6 { + + public static class Parameter61 extends SchemaParameter { + public Parameter61() { + super( + "aB", + ParameterInType.HEADER, + false, + ParameterStyle.SIMPLE, + false, + false, + Schema6.Schema61.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter7.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter7.java new file mode 100644 index 00000000000..9d5589c95e6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter7.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter7.Schema7; + +public class Parameter7 { + + public static class Parameter71 extends SchemaParameter { + public Parameter71() { + super( + "self", + ParameterInType.HEADER, + false, + ParameterStyle.SIMPLE, + false, + false, + Schema7.Schema71.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter8.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter8.java new file mode 100644 index 00000000000..259cab30459 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter8.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter8.Schema8; + +public class Parameter8 { + + public static class Parameter81 extends SchemaParameter { + public Parameter81() { + super( + "A-B", + ParameterInType.HEADER, + false, + ParameterStyle.SIMPLE, + false, + false, + Schema8.Schema81.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter9.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter9.java new file mode 100644 index 00000000000..450bbdbfc8d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/Parameter9.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter9.Schema9; + +public class Parameter9 { + + public static class Parameter91 extends SchemaParameter { + public Parameter91() { + super( + "1", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema9.Schema91.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..0de8ca499eb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.java new file mode 100644 index 00000000000..bc5b4d4e46b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter1/Schema1.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter1; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema1 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema11 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema11 instance = null; + public static Schema11 getInstance() { + if (instance == null) { + instance = new Schema11(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.java new file mode 100644 index 00000000000..dbf0ed076f7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter10/Schema10.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter10; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema10 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema101 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema101 instance = null; + public static Schema101 getInstance() { + if (instance == null) { + instance = new Schema101(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.java new file mode 100644 index 00000000000..910dbc61dfd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter11/Schema11.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter11; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema11 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema111 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema111 instance = null; + public static Schema111 getInstance() { + if (instance == null) { + instance = new Schema111(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.java new file mode 100644 index 00000000000..fc04e87b2f8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter12/Schema12.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter12; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema12 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema121 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema121 instance = null; + public static Schema121 getInstance() { + if (instance == null) { + instance = new Schema121(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.java new file mode 100644 index 00000000000..22022466c4c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter13/Schema13.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter13; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema13 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema131 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema131 instance = null; + public static Schema131 getInstance() { + if (instance == null) { + instance = new Schema131(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.java new file mode 100644 index 00000000000..3f5d7772daf --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter14/Schema14.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter14; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema14 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema141 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema141 instance = null; + public static Schema141 getInstance() { + if (instance == null) { + instance = new Schema141(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.java new file mode 100644 index 00000000000..3242acd48bc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter15/Schema15.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter15; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema15 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema151 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema151 instance = null; + public static Schema151 getInstance() { + if (instance == null) { + instance = new Schema151(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.java new file mode 100644 index 00000000000..185b383c86b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter16/Schema16.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter16; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema16 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema161 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema161 instance = null; + public static Schema161 getInstance() { + if (instance == null) { + instance = new Schema161(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.java new file mode 100644 index 00000000000..227874f5a09 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter17/Schema17.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter17; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema17 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema171 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema171 instance = null; + public static Schema171 getInstance() { + if (instance == null) { + instance = new Schema171(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.java new file mode 100644 index 00000000000..dc0578087e4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter18/Schema18.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter18; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema18 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema181 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema181 instance = null; + public static Schema181 getInstance() { + if (instance == null) { + instance = new Schema181(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.java new file mode 100644 index 00000000000..0b74b673d7d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter2/Schema2.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter2; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema2 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema21 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema21 instance = null; + public static Schema21 getInstance() { + if (instance == null) { + instance = new Schema21(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.java new file mode 100644 index 00000000000..1fc6abc98d8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter3/Schema3.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter3; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema3 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema31 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema31 instance = null; + public static Schema31 getInstance() { + if (instance == null) { + instance = new Schema31(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.java new file mode 100644 index 00000000000..d853e72abf0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter4/Schema4.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter4; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema4 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema41 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema41 instance = null; + public static Schema41 getInstance() { + if (instance == null) { + instance = new Schema41(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.java new file mode 100644 index 00000000000..46b9065a054 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter5/Schema5.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter5; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema5 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema51 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema51 instance = null; + public static Schema51 getInstance() { + if (instance == null) { + instance = new Schema51(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.java new file mode 100644 index 00000000000..8d9b2537445 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter6/Schema6.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter6; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema6 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema61 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema61 instance = null; + public static Schema61 getInstance() { + if (instance == null) { + instance = new Schema61(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.java new file mode 100644 index 00000000000..dd7706f9c60 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter7/Schema7.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter7; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema7 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema71 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema71 instance = null; + public static Schema71 getInstance() { + if (instance == null) { + instance = new Schema71(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java new file mode 100644 index 00000000000..23df1c2744c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter8/Schema8.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter8; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema8 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema81 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema81 instance = null; + public static Schema81 getInstance() { + if (instance == null) { + instance = new Schema81(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java new file mode 100644 index 00000000000..1b334c178e1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/parameters/parameter9/Schema9.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.parameters.parameter9; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema9 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema91 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema91 instance = null; + public static Schema91 getInstance() { + if (instance == null) { + instance = new Schema91(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..b67706b3437 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.requestbody.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java new file mode 100644 index 00000000000..372e5b1d702 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/Fakeparametercollisions1ababselfabPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class Fakeparametercollisions1ababselfabPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class Fakeparametercollisions1ababselfabPostCode200Response1 extends ResponseDeserializer { + public Fakeparametercollisions1ababselfabPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..bb2a30a2a2e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.code200response.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java new file mode 100644 index 00000000000..5c627fe0093 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/FakepemcontenttypeGet.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakepemcontenttype; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.FakepemcontenttypeGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakepemcontenttype; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakepemcontenttypeGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakepemcontenttypeGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakepemcontenttypeGetRequestBody.FakepemcontenttypeGetRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakepemcontenttype.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakepemcontenttypeGetResponses.FakepemcontenttypeGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakepemcontenttypeGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface PemContentTypeOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakepemcontenttypeGetResponses.EndpointResponse pemContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public FakepemcontenttypeGetRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + GetRequest getInstance(); + T getBuilderAfterRequestBody(GetRequest instance); + default T requestBody(FakepemcontenttypeGetRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterRequestBody(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java new file mode 100644 index 00000000000..22cc2a205fa --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakepemcontenttype.get; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile.ApplicationxpemfileSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakepemcontenttypeGetRequestBody { + public sealed interface SealedMediaType permits ApplicationxpemfileMediaType {} + + public record ApplicationxpemfileMediaType(ApplicationxpemfileSchema.ApplicationxpemfileSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxpemfileMediaType() { + this(ApplicationxpemfileSchema.ApplicationxpemfileSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakepemcontenttypeGetRequestBody1 extends RequestBodySerializer { + public FakepemcontenttypeGetRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/x-pem-file", new ApplicationxpemfileMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationxpemfileRequestBody requestBody0 = (ApplicationxpemfileRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationxpemfileRequestBody {} + public record ApplicationxpemfileRequestBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/x-pem-file"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java new file mode 100644 index 00000000000..e5e32aacfe3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/FakepemcontenttypeGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakepemcontenttype.get; + +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.FakepemcontenttypeGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakepemcontenttypeGetResponses { + public sealed interface EndpointResponse permits EndpointFakepemcontenttypeGetCode200Response {} + + public record EndpointFakepemcontenttypeGetCode200Response( + HttpResponse response, + FakepemcontenttypeGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakepemcontenttypeGetCode200ResponseDeserializer {} + + public static final class StatusFakepemcontenttypeGetCode200ResponseDeserializer extends FakepemcontenttypeGetCode200Response.FakepemcontenttypeGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakepemcontenttypeGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakepemcontenttypeGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakepemcontenttypeGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakepemcontenttypeGetCode200ResponseDeserializer castDeserializer = (StatusFakepemcontenttypeGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakepemcontenttypeGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java new file mode 100644 index 00000000000..125b14dd81c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/requestbody/content/applicationxpemfile/ApplicationxpemfileSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakepemcontenttype.get.requestbody.content.applicationxpemfile; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class ApplicationxpemfileSchema extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationxpemfileSchema1 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationxpemfileSchema1 instance = null; + public static ApplicationxpemfileSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxpemfileSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java new file mode 100644 index 00000000000..b8af4640702 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/FakepemcontenttypeGetCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.code200response.content.applicationxpemfile.ApplicationxpemfileSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakepemcontenttypeGetCode200Response { + public sealed interface SealedMediaType permits ApplicationxpemfileMediaType {} + + public record ApplicationxpemfileMediaType(ApplicationxpemfileSchema.ApplicationxpemfileSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxpemfileMediaType() { + this(ApplicationxpemfileSchema.ApplicationxpemfileSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationxpemfileResponseBody {} + public record ApplicationxpemfileResponseBody(ApplicationxpemfileSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakepemcontenttypeGetCode200Response1 extends ResponseDeserializer { + public FakepemcontenttypeGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/x-pem-file", new ApplicationxpemfileMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationxpemfileMediaType thisMediaType = (ApplicationxpemfileMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxpemfileResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java new file mode 100644 index 00000000000..0d12b96b19a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.code200response.content.applicationxpemfile; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class ApplicationxpemfileSchema extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationxpemfileSchema1 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationxpemfileSchema1 instance = null; + public static ApplicationxpemfileSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxpemfileSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java new file mode 100644 index 00000000000..79603a6ddc6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/FakepetiduploadimagewithrequiredfilePost.java @@ -0,0 +1,243 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostPathParameters; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.Parameters; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakepetiduploadimagewithrequiredfile; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakepetiduploadimagewithrequiredfilePost { + private static class PostProvider extends AuthApplier { + private static final String method = "post"; + + public static FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakepetiduploadimagewithrequiredfilePostRequestBody.FakepetiduploadimagewithrequiredfilePostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Fakepetiduploadimagewithrequiredfile.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + updatedPath, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakepetiduploadimagewithrequiredfilePostResponses.FakepetiduploadimagewithrequiredfilePostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface UploadFileWithRequiredFileOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakepetiduploadimagewithrequiredfilePostResponses.EndpointResponse uploadFileWithRequiredFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters; + public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public PostRequest( + FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters, + FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public FakepetiduploadimagewithrequiredfilePostPathParameters.@Nullable PathParametersMap pathParameters; + public FakepetiduploadimagewithrequiredfilePostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public FakepetiduploadimagewithrequiredfilePostSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(FakepetiduploadimagewithrequiredfilePostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + PostNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PostNullableRequest instance); + default T securityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + PostNullableRequest getInstance(); + T getBuilderAfterPathParameters(PostNullableRequest instance); + default T pathParameters(FakepetiduploadimagewithrequiredfilePostPathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + pathParameters, + instance.requestBody, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForPathParameters { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java new file mode 100644 index 00000000000..caf128e85f0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostPathParameters.java @@ -0,0 +1,223 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakepetiduploadimagewithrequiredfilePostPathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "petId" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakepetiduploadimagewithrequiredfilePostPathParameters1.getInstance().validate(arg, configuration); + } + + public Number petId() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForPetId { + Map getInstance(); + T getBuilderAfterPetId(Map instance); + + default T petId(int value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(float value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(long value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(double value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "petId" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForPetId { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed permits FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(PathParametersMap data) implements FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakepetiduploadimagewithrequiredfilePostPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakepetiduploadimagewithrequiredfilePostPathParameters1 instance = null; + + protected FakepetiduploadimagewithrequiredfilePostPathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("petId", Schema0.Schema01.class) + )) + .required(Set.of( + "petId" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakepetiduploadimagewithrequiredfilePostPathParameters1 getInstance() { + if (instance == null) { + instance = new FakepetiduploadimagewithrequiredfilePostPathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Number)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (Number) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakepetiduploadimagewithrequiredfilePostPathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakepetiduploadimagewithrequiredfilePostPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java new file mode 100644 index 00000000000..71854f676ae --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakepetiduploadimagewithrequiredfilePostRequestBody { + public sealed interface SealedMediaType permits MultipartformdataMediaType {} + + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { + public MultipartformdataMediaType() { + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakepetiduploadimagewithrequiredfilePostRequestBody1 extends RequestBodySerializer { + public FakepetiduploadimagewithrequiredfilePostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "multipart/form-data"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java new file mode 100644 index 00000000000..94855836183 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; + +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.FakepetiduploadimagewithrequiredfilePostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakepetiduploadimagewithrequiredfilePostResponses { + public sealed interface EndpointResponse permits EndpointFakepetiduploadimagewithrequiredfilePostCode200Response {} + + public record EndpointFakepetiduploadimagewithrequiredfilePostCode200Response( + HttpResponse response, + FakepetiduploadimagewithrequiredfilePostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer {} + + public static final class StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer extends FakepetiduploadimagewithrequiredfilePostCode200Response.FakepetiduploadimagewithrequiredfilePostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakepetiduploadimagewithrequiredfilePostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakepetiduploadimagewithrequiredfilePostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer castDeserializer = (StatusFakepetiduploadimagewithrequiredfilePostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakepetiduploadimagewithrequiredfilePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java new file mode 100644 index 00000000000..8dab76a488c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; + +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.security.FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class FakepetiduploadimagewithrequiredfilePostSecurityInfo { + public static class FakepetiduploadimagewithrequiredfilePostSecurityInfo1 implements SecurityRequirementObjectProvider { + public final FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 security0; + + public FakepetiduploadimagewithrequiredfilePostSecurityInfo1() { + security0 = new FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + return security0; + } + } + + public enum SecurityIndex { + SECURITY_0 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java new file mode 100644 index 00000000000..69a6d736bc6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post; + +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("petId", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java new file mode 100644 index 00000000000..58b60c686b2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "petId", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..2c458c3ee9c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.Int64JsonSchema; + +public class Schema0 extends Int64JsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends Int64JsonSchema.Int64JsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java new file mode 100644 index 00000000000..e4a05ffe74d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -0,0 +1,251 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.requestbody.content.multipartformdata; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class MultipartformdataSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class MultipartformdataAdditionalMetadata extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable MultipartformdataAdditionalMetadata instance = null; + public static MultipartformdataAdditionalMetadata getInstance() { + if (instance == null) { + instance = new MultipartformdataAdditionalMetadata(); + } + return instance; + } + } + + + public static class MultipartformdataRequiredFile extends StringJsonSchema.StringJsonSchema1 { + // BinarySchema + private static @Nullable MultipartformdataRequiredFile instance = null; + public static MultipartformdataRequiredFile getInstance() { + if (instance == null) { + instance = new MultipartformdataRequiredFile(); + } + return instance; + } + } + + + public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { + protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "requiredFile" + ); + public static final Set optionalKeys = Set.of( + "additionalMetadata" + ); + public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return MultipartformdataSchema1.getInstance().validate(arg, configuration); + } + + public String requiredFile() { + @Nullable Object value = get("requiredFile"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for requiredFile"); + } + return (String) value; + } + + public String additionalMetadata() throws UnsetPropertyException { + String key = "additionalMetadata"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for additionalMetadata"); + } + return (String) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForMultipartformdataRequiredFile { + Map getInstance(); + T getBuilderAfterMultipartformdataRequiredFile(Map instance); + + default T requiredFile(String value) { + var instance = getInstance(); + instance.put("requiredFile", value); + return getBuilderAfterMultipartformdataRequiredFile(instance); + } + } + + public interface SetterForMultipartformdataAdditionalMetadata { + Map getInstance(); + T getBuilderAfterMultipartformdataAdditionalMetadata(Map instance); + + default T additionalMetadata(String value) { + var instance = getInstance(); + instance.put("additionalMetadata", value); + return getBuilderAfterMultipartformdataAdditionalMetadata(instance); + } + } + + public static class MultipartformdataSchemaMap0Builder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataAdditionalMetadata { + private final Map instance; + private static final Set knownKeys = Set.of( + "requiredFile", + "additionalMetadata" + ); + public Set getKnownKeys() { + return knownKeys; + } + public MultipartformdataSchemaMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataAdditionalMetadata(Map instance) { + return this; + } + public MultipartformdataSchemaMap0Builder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + public static class MultipartformdataSchemaMapBuilder implements SetterForMultipartformdataRequiredFile { + private final Map instance; + public MultipartformdataSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataRequiredFile(Map instance) { + return new MultipartformdataSchemaMap0Builder(instance); + } + } + + + public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { + @Nullable Object getData(); + } + + public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable MultipartformdataSchema1 instance = null; + + protected MultipartformdataSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("additionalMetadata", MultipartformdataAdditionalMetadata.class), + new PropertyEntry("requiredFile", MultipartformdataRequiredFile.class) + )) + .required(Set.of( + "requiredFile" + )) + ); + } + + public static MultipartformdataSchema1 getInstance() { + if (instance == null) { + instance = new MultipartformdataSchema1(); + } + return instance; + } + + public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new MultipartformdataSchemaMap(castProperties); + } + + public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java new file mode 100644 index 00000000000..6cd3b657919 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/FakepetiduploadimagewithrequiredfilePostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakepetiduploadimagewithrequiredfilePostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } + + public static class FakepetiduploadimagewithrequiredfilePostCode200Response1 extends ResponseDeserializer { + public FakepetiduploadimagewithrequiredfilePostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..42e57377e16 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.ApiResponseSchema; + +public class ApplicationjsonSchema extends ApiResponseSchema { + // $refed class + + + public static class ApplicationjsonSchema1 extends ApiResponseSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java new file mode 100644 index 00000000000..d1c684c5779 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 extends SecurityRequirementObject { + + public FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + PetstoreAuth.class, + List.of("write:pets", "read:pets") + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java new file mode 100644 index 00000000000..29c289ffc4c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/FakequeryparamwithjsoncontenttypeGet.java @@ -0,0 +1,180 @@ +package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetQueryParameters; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.Parameters; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.FakequeryparamwithjsoncontenttypeGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakequeryparamwithjsoncontenttype; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakequeryparamwithjsoncontenttypeGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakequeryparamwithjsoncontenttype.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakequeryparamwithjsoncontenttypeGetResponses.FakequeryparamwithjsoncontenttypeGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface QueryParamWithJsonContentTypeOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakequeryparamwithjsoncontenttypeGetResponses.EndpointResponse queryParamWithJsonContentType(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public GetRequest( + FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.queryParameters = queryParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class GetNullableRequest { + public FakequeryparamwithjsoncontenttypeGetQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetNullableRequest getInstance(); + T getBuilderAfterServerIndex(GetNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetNullableRequest getInstance(); + T getBuilderAfterTimeout(GetNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForQueryParameters { + GetNullableRequest getInstance(); + T getBuilderAfterQueryParameters(GetNullableRequest instance); + default T queryParameters(FakequeryparamwithjsoncontenttypeGetQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetNullableRequest instance; + + public Get0RequestBuilder(GetNullableRequest instance) { + this.instance = instance; + } + + public GetRequest build() { + var queryParameters = instance.queryParameters; + if (queryParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new GetRequest( + queryParameters, + instance.serverIndex, + instance.timeout + ); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + return this; + } + } + public static class GetRequestBuilder implements SetterForQueryParameters { + private final GetNullableRequest instance; + + public GetRequestBuilder() { + this.instance = new GetNullableRequest(); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { + return new Get0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java new file mode 100644 index 00000000000..e9336753ff1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetQueryParameters.java @@ -0,0 +1,253 @@ +package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.parameters.parameter0.content.applicationjson.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakequeryparamwithjsoncontenttypeGetQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "someParam" + ); + public static final Set optionalKeys = Set.of(); + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FakequeryparamwithjsoncontenttypeGetQueryParameters1.getInstance().validate(arg, configuration); + } + + public @Nullable Object someParam() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForSomeParam { + Map getInstance(); + T getBuilderAfterSomeParam(Map instance); + + default T someParam(Void value) { + var instance = getInstance(); + instance.put("someParam", null); + return getBuilderAfterSomeParam(instance); + } + + default T someParam(boolean value) { + var instance = getInstance(); + instance.put("someParam", value); + return getBuilderAfterSomeParam(instance); + } + + default T someParam(String value) { + var instance = getInstance(); + instance.put("someParam", value); + return getBuilderAfterSomeParam(instance); + } + + default T someParam(int value) { + var instance = getInstance(); + instance.put("someParam", value); + return getBuilderAfterSomeParam(instance); + } + + default T someParam(float value) { + var instance = getInstance(); + instance.put("someParam", value); + return getBuilderAfterSomeParam(instance); + } + + default T someParam(long value) { + var instance = getInstance(); + instance.put("someParam", value); + return getBuilderAfterSomeParam(instance); + } + + default T someParam(double value) { + var instance = getInstance(); + instance.put("someParam", value); + return getBuilderAfterSomeParam(instance); + } + + default T someParam(List value) { + var instance = getInstance(); + instance.put("someParam", value); + return getBuilderAfterSomeParam(instance); + } + + default T someParam(Map value) { + var instance = getInstance(); + instance.put("someParam", value); + return getBuilderAfterSomeParam(instance); + } + } + + public static class QueryParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "someParam" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class QueryParametersMapBuilder implements SetterForSomeParam { + private final Map instance; + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public QueryParametersMap0Builder getBuilderAfterSomeParam(Map instance) { + return new QueryParametersMap0Builder(instance); + } + } + + + public sealed interface FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed permits FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakequeryparamwithjsoncontenttypeGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakequeryparamwithjsoncontenttypeGetQueryParameters1 instance = null; + + protected FakequeryparamwithjsoncontenttypeGetQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("someParam", Schema0.Schema01.class) + )) + .required(Set.of( + "someParam" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakequeryparamwithjsoncontenttypeGetQueryParameters1 getInstance() { + if (instance == null) { + instance = new FakequeryparamwithjsoncontenttypeGetQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Object)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (@Nullable Object) propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakequeryparamwithjsoncontenttypeGetQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakequeryparamwithjsoncontenttypeGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java new file mode 100644 index 00000000000..ad96c808b19 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/FakequeryparamwithjsoncontenttypeGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get; + +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.FakequeryparamwithjsoncontenttypeGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakequeryparamwithjsoncontenttypeGetResponses { + public sealed interface EndpointResponse permits EndpointFakequeryparamwithjsoncontenttypeGetCode200Response {} + + public record EndpointFakequeryparamwithjsoncontenttypeGetCode200Response( + HttpResponse response, + FakequeryparamwithjsoncontenttypeGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer {} + + public static final class StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer extends FakequeryparamwithjsoncontenttypeGetCode200Response.FakequeryparamwithjsoncontenttypeGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakequeryparamwithjsoncontenttypeGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakequeryparamwithjsoncontenttypeGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer castDeserializer = (StatusFakequeryparamwithjsoncontenttypeGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakequeryparamwithjsoncontenttypeGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java new file mode 100644 index 00000000000..713b9540cea --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get; + +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("someParam", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java new file mode 100644 index 00000000000..ac6cbea3c13 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/Parameter0.java @@ -0,0 +1,35 @@ +package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.ContentParameter; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.parameters.parameter0.content.applicationjson.Schema0; + +import java.util.AbstractMap; + +public class Parameter0 { + + public record ApplicationjsonMediaType(Schema0.Schema01 schema) implements MediaType { + public ApplicationjsonMediaType() { + this(Schema0.Schema01.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class Parameter01 extends ContentParameter { + public Parameter01() { + super( + "someParam", + ParameterInType.QUERY, + true, + null, + null, + false, + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java new file mode 100644 index 00000000000..98f404bf94b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/parameters/parameter0/content/applicationjson/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.parameters.parameter0.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class Schema0 extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java new file mode 100644 index 00000000000..c7368eb4fc1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/FakequeryparamwithjsoncontenttypeGetCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakequeryparamwithjsoncontenttypeGetCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakequeryparamwithjsoncontenttypeGetCode200Response1 extends ResponseDeserializer { + public FakequeryparamwithjsoncontenttypeGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..b9b66780181 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.code200response.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java new file mode 100644 index 00000000000..f73a54d32b6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/FakeredirectionGet.java @@ -0,0 +1,124 @@ +package org.openapijsonschematools.client.paths.fakeredirection; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeredirection.get.FakeredirectionGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakeredirection; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeredirectionGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakeredirectionGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakeredirection.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeredirectionGetResponses.FakeredirectionGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeredirectionGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface RedirectionOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeredirectionGetResponses.EndpointResponse redirection(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java new file mode 100644 index 00000000000..6928c6ba66e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/FakeredirectionGetResponses.java @@ -0,0 +1,79 @@ +package org.openapijsonschematools.client.paths.fakeredirection.get; + +import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode303Response; +import org.openapijsonschematools.client.paths.fakeredirection.get.responses.FakeredirectionGetCode3XXResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeredirectionGetResponses { + public sealed interface EndpointResponse permits EndpointFakeredirectionGetCode3XXResponse, EndpointFakeredirectionGetCode303Response {} + + public record EndpointFakeredirectionGetCode3XXResponse( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public record EndpointFakeredirectionGetCode303Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeredirectionGetCode303ResponseDeserializer {} + + public static final class StatusFakeredirectionGetCode303ResponseDeserializer extends FakeredirectionGetCode303Response.FakeredirectionGetCode303Response1 implements StatusCodeResponseDeserializer { + } + public sealed interface WildcardCodeResponseDeserializer permits WildcardFakeredirectionGetCode3XXResponseDeserializer {} + + public static final class WildcardFakeredirectionGetCode3XXResponseDeserializer extends FakeredirectionGetCode3XXResponse.FakeredirectionGetCode3XXResponse1 implements WildcardCodeResponseDeserializer { + } + + public static final class FakeredirectionGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + private final Map wildcardCodeToResponseDeserializer; + public FakeredirectionGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("303", new StatusFakeredirectionGetCode303ResponseDeserializer()) + ); + this.wildcardCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("3", new WildcardFakeredirectionGetCode3XXResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer != null) { + StatusFakeredirectionGetCode303ResponseDeserializer castDeserializer = (StatusFakeredirectionGetCode303ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeredirectionGetCode303Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + @Nullable WildcardCodeResponseDeserializer wildcardCodeDeserializer = wildcardCodeToResponseDeserializer.get(statusCode); + if (wildcardCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + WildcardFakeredirectionGetCode3XXResponseDeserializer castDeserializer = (WildcardFakeredirectionGetCode3XXResponseDeserializer) wildcardCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new FakeredirectionGetCode3XXResponse.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java new file mode 100644 index 00000000000..8feee1d93ad --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode303Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.fakeredirection.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakeredirectionGetCode303Response { + + public static class FakeredirectionGetCode303Response1 extends ResponseDeserializer { + public FakeredirectionGetCode303Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java new file mode 100644 index 00000000000..c2e9f302411 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeredirection/get/responses/FakeredirectionGetCode3XXResponse.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.fakeredirection.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakeredirectionGetCode3XXResponse { + + public static class FakeredirectionGetCode3XXResponse1 extends ResponseDeserializer { + public FakeredirectionGetCode3XXResponse1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java new file mode 100644 index 00000000000..56e42d4d5c2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/FakerefobjinqueryGet.java @@ -0,0 +1,148 @@ +package org.openapijsonschematools.client.paths.fakerefobjinquery; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetQueryParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Parameters; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.FakerefobjinqueryGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakerefobjinquery; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakerefobjinqueryGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakerefobjinqueryGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = null; + if (request.queryParameters != null) { + queryMap = querySerializer.getQueryMap(request.queryParameters); + } + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakerefobjinquery.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakerefobjinqueryGetResponses.FakerefobjinqueryGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefobjinqueryGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface RefObjectInQueryOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefobjinqueryGetResponses.EndpointResponse refObjectInQuery(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public FakerefobjinqueryGetQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForQueryParameters { + GetRequest getInstance(); + T getBuilderAfterQueryParameters(GetRequest instance); + default T queryParameters(FakerefobjinqueryGetQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForQueryParameters, SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterQueryParameters(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java new file mode 100644 index 00000000000..8fd0df37aa2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetQueryParameters.java @@ -0,0 +1,191 @@ +package org.openapijsonschematools.client.paths.fakerefobjinquery.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Foo; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FakerefobjinqueryGetQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "mapBean" + ); + public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + return FakerefobjinqueryGetQueryParameters1.getInstance().validate(arg, configuration); + } + + public Foo.FooMap mapBean() throws UnsetPropertyException { + return getOrThrow("mapBean"); + } + } + + public interface SetterForMapBean { + Map> getInstance(); + T getBuilderAfterMapBean(Map> instance); + + default T mapBean(Map value) { + var instance = getInstance(); + instance.put("mapBean", value); + return getBuilderAfterMapBean(instance); + } + } + + public static class QueryParametersMapBuilder implements GenericBuilder>>, SetterForMapBean { + private final Map> instance; + private static final Set knownKeys = Set.of( + "mapBean" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map> build() { + return instance; + } + public Map> getInstance() { + return instance; + } + public QueryParametersMapBuilder getBuilderAfterMapBean(Map> instance) { + return this; + } + } + + + public sealed interface FakerefobjinqueryGetQueryParameters1Boxed permits FakerefobjinqueryGetQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FakerefobjinqueryGetQueryParameters1BoxedMap(QueryParametersMap data) implements FakerefobjinqueryGetQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FakerefobjinqueryGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FakerefobjinqueryGetQueryParameters1 instance = null; + + protected FakerefobjinqueryGetQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("mapBean", Foo.Foo1.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FakerefobjinqueryGetQueryParameters1 getInstance() { + if (instance == null) { + instance = new FakerefobjinqueryGetQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Foo.FooMap)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (Foo.FooMap) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FakerefobjinqueryGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FakerefobjinqueryGetQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FakerefobjinqueryGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java new file mode 100644 index 00000000000..18a07a581a2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/FakerefobjinqueryGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakerefobjinquery.get; + +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.FakerefobjinqueryGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakerefobjinqueryGetResponses { + public sealed interface EndpointResponse permits EndpointFakerefobjinqueryGetCode200Response {} + + public record EndpointFakerefobjinqueryGetCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefobjinqueryGetCode200ResponseDeserializer {} + + public static final class StatusFakerefobjinqueryGetCode200ResponseDeserializer extends FakerefobjinqueryGetCode200Response.FakerefobjinqueryGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakerefobjinqueryGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakerefobjinqueryGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakerefobjinqueryGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakerefobjinqueryGetCode200ResponseDeserializer castDeserializer = (StatusFakerefobjinqueryGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakerefobjinqueryGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java new file mode 100644 index 00000000000..c237004cd7e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.fakerefobjinquery.get; + +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("mapBean", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java new file mode 100644 index 00000000000..f1b8a6d8720 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.fakerefobjinquery.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "mapBean", + ParameterInType.QUERY, + false, + ParameterStyle.DEEP_OBJECT, + true, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..55405e37a30 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefobjinquery.get.parameters.parameter0; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Foo; + +public class Schema0 extends Foo { + // $refed class + + + public static class Schema01 extends Foo1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.java new file mode 100644 index 00000000000..7ae25fb0e12 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/responses/FakerefobjinqueryGetCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FakerefobjinqueryGetCode200Response extends SuccessDescriptionOnly { + public static class FakerefobjinqueryGetCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java new file mode 100644 index 00000000000..07af16ea8b6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/FakerefsarraymodelPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakerefsarraymodel; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.FakerefsarraymodelPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakerefsarraymodel; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakerefsarraymodelPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakerefsarraymodelPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakerefsarraymodelPostRequestBody.FakerefsarraymodelPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakerefsarraymodel.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakerefsarraymodelPostResponses.FakerefsarraymodelPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsarraymodelPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ArrayModelOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsarraymodelPostResponses.EndpointResponse arrayModel(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakerefsarraymodelPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakerefsarraymodelPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java new file mode 100644 index 00000000000..72d5f72c966 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakerefsarraymodel.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakerefsarraymodelPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakerefsarraymodelPostRequestBody1 extends RequestBodySerializer { + public FakerefsarraymodelPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.AnimalFarm1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java new file mode 100644 index 00000000000..563a821044a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/FakerefsarraymodelPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakerefsarraymodel.post; + +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.FakerefsarraymodelPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakerefsarraymodelPostResponses { + public sealed interface EndpointResponse permits EndpointFakerefsarraymodelPostCode200Response {} + + public record EndpointFakerefsarraymodelPostCode200Response( + HttpResponse response, + FakerefsarraymodelPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsarraymodelPostCode200ResponseDeserializer {} + + public static final class StatusFakerefsarraymodelPostCode200ResponseDeserializer extends FakerefsarraymodelPostCode200Response.FakerefsarraymodelPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakerefsarraymodelPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakerefsarraymodelPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsarraymodelPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakerefsarraymodelPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsarraymodelPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakerefsarraymodelPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..702bfe3e25a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsarraymodel.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.AnimalFarm; + +public class ApplicationjsonSchema extends AnimalFarm { + // $refed class + + + public static class ApplicationjsonSchema1 extends AnimalFarm1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java new file mode 100644 index 00000000000..292fe11781b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/FakerefsarraymodelPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakerefsarraymodelPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnimalFarm1Boxed body) implements SealedResponseBody { } + + public static class FakerefsarraymodelPostCode200Response1 extends ResponseDeserializer { + public FakerefsarraymodelPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..3183986a750 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.AnimalFarm; + +public class ApplicationjsonSchema extends AnimalFarm { + // $refed class + + + public static class ApplicationjsonSchema1 extends AnimalFarm1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java new file mode 100644 index 00000000000..2e562146fb3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/FakerefsarrayofenumsPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakerefsarrayofenums; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.FakerefsarrayofenumsPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakerefsarrayofenums; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakerefsarrayofenumsPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakerefsarrayofenumsPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakerefsarrayofenumsPostRequestBody.FakerefsarrayofenumsPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakerefsarrayofenums.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakerefsarrayofenumsPostResponses.FakerefsarrayofenumsPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsarrayofenumsPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ArrayOfEnumsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsarrayofenumsPostResponses.EndpointResponse arrayOfEnums(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakerefsarrayofenumsPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakerefsarrayofenumsPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java new file mode 100644 index 00000000000..cfffc2f44ea --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakerefsarrayofenumsPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakerefsarrayofenumsPostRequestBody1 extends RequestBodySerializer { + public FakerefsarrayofenumsPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ArrayOfEnums1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java new file mode 100644 index 00000000000..5fa02b7fa60 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/FakerefsarrayofenumsPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post; + +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.FakerefsarrayofenumsPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakerefsarrayofenumsPostResponses { + public sealed interface EndpointResponse permits EndpointFakerefsarrayofenumsPostCode200Response {} + + public record EndpointFakerefsarrayofenumsPostCode200Response( + HttpResponse response, + FakerefsarrayofenumsPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsarrayofenumsPostCode200ResponseDeserializer {} + + public static final class StatusFakerefsarrayofenumsPostCode200ResponseDeserializer extends FakerefsarrayofenumsPostCode200Response.FakerefsarrayofenumsPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakerefsarrayofenumsPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakerefsarrayofenumsPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsarrayofenumsPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakerefsarrayofenumsPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsarrayofenumsPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakerefsarrayofenumsPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..460518d6f87 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; + +public class ApplicationjsonSchema extends ArrayOfEnums { + // $refed class + + + public static class ApplicationjsonSchema1 extends ArrayOfEnums1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java new file mode 100644 index 00000000000..5f83f4d05d1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/FakerefsarrayofenumsPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakerefsarrayofenumsPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ArrayOfEnums1Boxed body) implements SealedResponseBody { } + + public static class FakerefsarrayofenumsPostCode200Response1 extends ResponseDeserializer { + public FakerefsarrayofenumsPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..aae5071d1b6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.ArrayOfEnums; + +public class ApplicationjsonSchema extends ArrayOfEnums { + // $refed class + + + public static class ApplicationjsonSchema1 extends ArrayOfEnums1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java new file mode 100644 index 00000000000..48e40534184 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/FakerefsbooleanPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakerefsboolean; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.FakerefsbooleanPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakerefsboolean; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakerefsbooleanPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakerefsbooleanPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakerefsbooleanPostRequestBody.FakerefsbooleanPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakerefsboolean.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakerefsbooleanPostResponses.FakerefsbooleanPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsbooleanPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ModelBooleanOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsbooleanPostResponses.EndpointResponse modelBoolean(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakerefsbooleanPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakerefsbooleanPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java new file mode 100644 index 00000000000..0c80563da89 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakerefsboolean.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakerefsbooleanPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakerefsbooleanPostRequestBody1 extends RequestBodySerializer { + public FakerefsbooleanPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java new file mode 100644 index 00000000000..ad09fb08b97 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/FakerefsbooleanPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakerefsboolean.post; + +import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.FakerefsbooleanPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakerefsbooleanPostResponses { + public sealed interface EndpointResponse permits EndpointFakerefsbooleanPostCode200Response {} + + public record EndpointFakerefsbooleanPostCode200Response( + HttpResponse response, + FakerefsbooleanPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsbooleanPostCode200ResponseDeserializer {} + + public static final class StatusFakerefsbooleanPostCode200ResponseDeserializer extends FakerefsbooleanPostCode200Response.FakerefsbooleanPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakerefsbooleanPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakerefsbooleanPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsbooleanPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakerefsbooleanPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsbooleanPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakerefsbooleanPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..6c465dba460 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsboolean.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.BooleanSchema; + +public class ApplicationjsonSchema extends BooleanSchema { + // $refed class + + + public static class ApplicationjsonSchema1 extends BooleanSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java new file mode 100644 index 00000000000..8018c18af9e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/FakerefsbooleanPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakerefsboolean.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakerefsbooleanPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.BooleanJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakerefsbooleanPostCode200Response1 extends ResponseDeserializer { + public FakerefsbooleanPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..064050b09bf --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.BooleanSchema; + +public class ApplicationjsonSchema extends BooleanSchema { + // $refed class + + + public static class ApplicationjsonSchema1 extends BooleanSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java new file mode 100644 index 00000000000..6b1f0e40677 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/FakerefscomposedoneofnumberwithvalidationsPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.FakerefscomposedoneofnumberwithvalidationsPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakerefscomposedoneofnumberwithvalidations; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakerefscomposedoneofnumberwithvalidationsPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakerefscomposedoneofnumberwithvalidationsPostRequestBody.FakerefscomposedoneofnumberwithvalidationsPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakerefscomposedoneofnumberwithvalidations.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakerefscomposedoneofnumberwithvalidationsPostResponses.FakerefscomposedoneofnumberwithvalidationsPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ComposedOneOfDifferentTypesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefscomposedoneofnumberwithvalidationsPostResponses.EndpointResponse composedOneOfDifferentTypes(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakerefscomposedoneofnumberwithvalidationsPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakerefscomposedoneofnumberwithvalidationsPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java new file mode 100644 index 00000000000..139bc7735cd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakerefscomposedoneofnumberwithvalidationsPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakerefscomposedoneofnumberwithvalidationsPostRequestBody1 extends RequestBodySerializer { + public FakerefscomposedoneofnumberwithvalidationsPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java new file mode 100644 index 00000000000..3e86f10d166 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/FakerefscomposedoneofnumberwithvalidationsPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post; + +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.FakerefscomposedoneofnumberwithvalidationsPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakerefscomposedoneofnumberwithvalidationsPostResponses { + public sealed interface EndpointResponse permits EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response {} + + public record EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response( + HttpResponse response, + FakerefscomposedoneofnumberwithvalidationsPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer {} + + public static final class StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer extends FakerefscomposedoneofnumberwithvalidationsPostCode200Response.FakerefscomposedoneofnumberwithvalidationsPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakerefscomposedoneofnumberwithvalidationsPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakerefscomposedoneofnumberwithvalidationsPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer castDeserializer = (StatusFakerefscomposedoneofnumberwithvalidationsPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakerefscomposedoneofnumberwithvalidationsPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..312ee20f0d4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; + +public class ApplicationjsonSchema extends ComposedOneOfDifferentTypes { + // $refed class + + + public static class ApplicationjsonSchema1 extends ComposedOneOfDifferentTypes1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java new file mode 100644 index 00000000000..f5b17537155 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/FakerefscomposedoneofnumberwithvalidationsPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakerefscomposedoneofnumberwithvalidationsPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ComposedOneOfDifferentTypes1Boxed body) implements SealedResponseBody { } + + public static class FakerefscomposedoneofnumberwithvalidationsPostCode200Response1 extends ResponseDeserializer { + public FakerefscomposedoneofnumberwithvalidationsPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..075b7ade4dd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.ComposedOneOfDifferentTypes; + +public class ApplicationjsonSchema extends ComposedOneOfDifferentTypes { + // $refed class + + + public static class ApplicationjsonSchema1 extends ComposedOneOfDifferentTypes1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java new file mode 100644 index 00000000000..83b9713931f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/FakerefsenumPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakerefsenum; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsenum.post.FakerefsenumPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakerefsenum; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakerefsenumPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakerefsenumPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakerefsenumPostRequestBody.FakerefsenumPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakerefsenum.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakerefsenumPostResponses.FakerefsenumPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsenumPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface StringEnumOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsenumPostResponses.EndpointResponse stringEnum(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakerefsenumPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakerefsenumPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java new file mode 100644 index 00000000000..7e12689b711 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakerefsenum.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsenum.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakerefsenumPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakerefsenumPostRequestBody1 extends RequestBodySerializer { + public FakerefsenumPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.StringEnum1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java new file mode 100644 index 00000000000..ca9be127a78 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/FakerefsenumPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakerefsenum.post; + +import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.FakerefsenumPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakerefsenumPostResponses { + public sealed interface EndpointResponse permits EndpointFakerefsenumPostCode200Response {} + + public record EndpointFakerefsenumPostCode200Response( + HttpResponse response, + FakerefsenumPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsenumPostCode200ResponseDeserializer {} + + public static final class StatusFakerefsenumPostCode200ResponseDeserializer extends FakerefsenumPostCode200Response.FakerefsenumPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakerefsenumPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakerefsenumPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsenumPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakerefsenumPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsenumPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakerefsenumPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..556d7c6a72f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsenum.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.StringEnum; + +public class ApplicationjsonSchema extends StringEnum { + // $refed class + + + public static class ApplicationjsonSchema1 extends StringEnum1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java new file mode 100644 index 00000000000..c250f33f370 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/FakerefsenumPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakerefsenum.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakerefsenumPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringEnum1Boxed body) implements SealedResponseBody { } + + public static class FakerefsenumPostCode200Response1 extends ResponseDeserializer { + public FakerefsenumPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..f32e80d609f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsenum.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.StringEnum; + +public class ApplicationjsonSchema extends StringEnum { + // $refed class + + + public static class ApplicationjsonSchema1 extends StringEnum1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java new file mode 100644 index 00000000000..1107280199a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/FakerefsmammalPost.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.fakerefsmammal; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostRequestBody; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.FakerefsmammalPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakerefsmammal; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakerefsmammalPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakerefsmammalPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new FakerefsmammalPostRequestBody.FakerefsmammalPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakerefsmammal.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakerefsmammalPostResponses.FakerefsmammalPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsmammalPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface MammalOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsmammalPostResponses.EndpointResponse mammal(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakerefsmammalPostRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PostRequest( + FakerefsmammalPostRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public FakerefsmammalPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(FakerefsmammalPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + requestBody, + instance.serverIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForRequestBody { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java new file mode 100644 index 00000000000..748ec657df0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakerefsmammal.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakerefsmammalPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakerefsmammalPostRequestBody1 extends RequestBodySerializer { + public FakerefsmammalPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + true + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.Mammal1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java new file mode 100644 index 00000000000..57581467ece --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/FakerefsmammalPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakerefsmammal.post; + +import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.FakerefsmammalPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakerefsmammalPostResponses { + public sealed interface EndpointResponse permits EndpointFakerefsmammalPostCode200Response {} + + public record EndpointFakerefsmammalPostCode200Response( + HttpResponse response, + FakerefsmammalPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsmammalPostCode200ResponseDeserializer {} + + public static final class StatusFakerefsmammalPostCode200ResponseDeserializer extends FakerefsmammalPostCode200Response.FakerefsmammalPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakerefsmammalPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakerefsmammalPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsmammalPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakerefsmammalPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsmammalPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakerefsmammalPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..a85a80fb124 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsmammal.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Mammal; + +public class ApplicationjsonSchema extends Mammal { + // $refed class + + + public static class ApplicationjsonSchema1 extends Mammal1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java new file mode 100644 index 00000000000..7818cef0191 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/FakerefsmammalPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakerefsmammal.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakerefsmammalPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Mammal1Boxed body) implements SealedResponseBody { } + + public static class FakerefsmammalPostCode200Response1 extends ResponseDeserializer { + public FakerefsmammalPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..89dac1bf71a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Mammal; + +public class ApplicationjsonSchema extends Mammal { + // $refed class + + + public static class ApplicationjsonSchema1 extends Mammal1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java new file mode 100644 index 00000000000..1d1a42bd13b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/FakerefsnumberPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakerefsnumber; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.FakerefsnumberPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakerefsnumber; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakerefsnumberPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakerefsnumberPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakerefsnumberPostRequestBody.FakerefsnumberPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakerefsnumber.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakerefsnumberPostResponses.FakerefsnumberPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsnumberPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface NumberWithValidationsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsnumberPostResponses.EndpointResponse numberWithValidations(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakerefsnumberPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakerefsnumberPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java new file mode 100644 index 00000000000..0c76fd2b996 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakerefsnumber.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakerefsnumberPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakerefsnumberPostRequestBody1 extends RequestBodySerializer { + public FakerefsnumberPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.NumberWithValidations1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java new file mode 100644 index 00000000000..b8ca69723bb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/FakerefsnumberPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakerefsnumber.post; + +import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.FakerefsnumberPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakerefsnumberPostResponses { + public sealed interface EndpointResponse permits EndpointFakerefsnumberPostCode200Response {} + + public record EndpointFakerefsnumberPostCode200Response( + HttpResponse response, + FakerefsnumberPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsnumberPostCode200ResponseDeserializer {} + + public static final class StatusFakerefsnumberPostCode200ResponseDeserializer extends FakerefsnumberPostCode200Response.FakerefsnumberPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakerefsnumberPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakerefsnumberPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsnumberPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakerefsnumberPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsnumberPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakerefsnumberPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..0444065de0f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsnumber.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.NumberWithValidations; + +public class ApplicationjsonSchema extends NumberWithValidations { + // $refed class + + + public static class ApplicationjsonSchema1 extends NumberWithValidations1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java new file mode 100644 index 00000000000..0a439671493 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/FakerefsnumberPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakerefsnumber.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakerefsnumberPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.NumberWithValidations1Boxed body) implements SealedResponseBody { } + + public static class FakerefsnumberPostCode200Response1 extends ResponseDeserializer { + public FakerefsnumberPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..735f78f40f2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.NumberWithValidations; + +public class ApplicationjsonSchema extends NumberWithValidations { + // $refed class + + + public static class ApplicationjsonSchema1 extends NumberWithValidations1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java new file mode 100644 index 00000000000..a0d92eb73a6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/FakerefsobjectmodelwithrefpropsPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.FakerefsobjectmodelwithrefpropsPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakerefsobjectmodelwithrefprops; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakerefsobjectmodelwithrefpropsPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakerefsobjectmodelwithrefpropsPostRequestBody.FakerefsobjectmodelwithrefpropsPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakerefsobjectmodelwithrefprops.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakerefsobjectmodelwithrefpropsPostResponses.FakerefsobjectmodelwithrefpropsPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ObjectModelWithRefPropsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsobjectmodelwithrefpropsPostResponses.EndpointResponse objectModelWithRefProps(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakerefsobjectmodelwithrefpropsPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakerefsobjectmodelwithrefpropsPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java new file mode 100644 index 00000000000..912abd1b019 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakerefsobjectmodelwithrefpropsPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakerefsobjectmodelwithrefpropsPostRequestBody1 extends RequestBodySerializer { + public FakerefsobjectmodelwithrefpropsPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java new file mode 100644 index 00000000000..002b379bf62 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/FakerefsobjectmodelwithrefpropsPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post; + +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.FakerefsobjectmodelwithrefpropsPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakerefsobjectmodelwithrefpropsPostResponses { + public sealed interface EndpointResponse permits EndpointFakerefsobjectmodelwithrefpropsPostCode200Response {} + + public record EndpointFakerefsobjectmodelwithrefpropsPostCode200Response( + HttpResponse response, + FakerefsobjectmodelwithrefpropsPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer {} + + public static final class StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer extends FakerefsobjectmodelwithrefpropsPostCode200Response.FakerefsobjectmodelwithrefpropsPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakerefsobjectmodelwithrefpropsPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakerefsobjectmodelwithrefpropsPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsobjectmodelwithrefpropsPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakerefsobjectmodelwithrefpropsPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..1e9e2b7db85 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; + +public class ApplicationjsonSchema extends ObjectModelWithRefProps { + // $refed class + + + public static class ApplicationjsonSchema1 extends ObjectModelWithRefProps1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java new file mode 100644 index 00000000000..5a7bacf97cc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/FakerefsobjectmodelwithrefpropsPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakerefsobjectmodelwithrefpropsPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ObjectModelWithRefProps1Boxed body) implements SealedResponseBody { } + + public static class FakerefsobjectmodelwithrefpropsPostCode200Response1 extends ResponseDeserializer { + public FakerefsobjectmodelwithrefpropsPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..ae20e625adc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.ObjectModelWithRefProps; + +public class ApplicationjsonSchema extends ObjectModelWithRefProps { + // $refed class + + + public static class ApplicationjsonSchema1 extends ObjectModelWithRefProps1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java new file mode 100644 index 00000000000..adc7818a1fa --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/FakerefsstringPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakerefsstring; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakerefsstring.post.FakerefsstringPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakerefsstring; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakerefsstringPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakerefsstringPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakerefsstringPostRequestBody.FakerefsstringPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakerefsstring.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakerefsstringPostResponses.FakerefsstringPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsstringPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ModelStringOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakerefsstringPostResponses.EndpointResponse modelString(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakerefsstringPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakerefsstringPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java new file mode 100644 index 00000000000..a762a5c66ac --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakerefsstring.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsstring.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakerefsstringPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakerefsstringPostRequestBody1 extends RequestBodySerializer { + public FakerefsstringPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java new file mode 100644 index 00000000000..3617898cf51 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/FakerefsstringPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakerefsstring.post; + +import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.FakerefsstringPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakerefsstringPostResponses { + public sealed interface EndpointResponse permits EndpointFakerefsstringPostCode200Response {} + + public record EndpointFakerefsstringPostCode200Response( + HttpResponse response, + FakerefsstringPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakerefsstringPostCode200ResponseDeserializer {} + + public static final class StatusFakerefsstringPostCode200ResponseDeserializer extends FakerefsstringPostCode200Response.FakerefsstringPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakerefsstringPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakerefsstringPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakerefsstringPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakerefsstringPostCode200ResponseDeserializer castDeserializer = (StatusFakerefsstringPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakerefsstringPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..7ebeea7dcd3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsstring.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.StringSchema; + +public class ApplicationjsonSchema extends StringSchema { + // $refed class + + + public static class ApplicationjsonSchema1 extends StringSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java new file mode 100644 index 00000000000..52adfde1ffc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/FakerefsstringPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakerefsstring.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakerefsstringPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakerefsstringPostCode200Response1 extends ResponseDeserializer { + public FakerefsstringPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..9f140dc31c3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakerefsstring.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.StringSchema; + +public class ApplicationjsonSchema extends StringSchema { + // $refed class + + + public static class ApplicationjsonSchema1 extends StringSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java new file mode 100644 index 00000000000..284c2b3309e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/FakeresponsewithoutschemaGet.java @@ -0,0 +1,124 @@ +package org.openapijsonschematools.client.paths.fakeresponsewithoutschema; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.FakeresponsewithoutschemaGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakeresponsewithoutschema; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeresponsewithoutschemaGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakeresponsewithoutschemaGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakeresponsewithoutschema.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeresponsewithoutschemaGetResponses.FakeresponsewithoutschemaGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeresponsewithoutschemaGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface ResponseWithoutSchemaOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeresponsewithoutschemaGetResponses.EndpointResponse responseWithoutSchema(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java new file mode 100644 index 00000000000..061491da53c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/FakeresponsewithoutschemaGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get; + +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.FakeresponsewithoutschemaGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeresponsewithoutschemaGetResponses { + public sealed interface EndpointResponse permits EndpointFakeresponsewithoutschemaGetCode200Response {} + + public record EndpointFakeresponsewithoutschemaGetCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer {} + + public static final class StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer extends FakeresponsewithoutschemaGetCode200Response.FakeresponsewithoutschemaGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeresponsewithoutschemaGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeresponsewithoutschemaGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer castDeserializer = (StatusFakeresponsewithoutschemaGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeresponsewithoutschemaGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java new file mode 100644 index 00000000000..a190bfa972c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeresponsewithoutschema/get/responses/FakeresponsewithoutschemaGetCode200Response.java @@ -0,0 +1,48 @@ +package org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakeresponsewithoutschemaGetCode200Response { + + public static class FakeresponsewithoutschemaGetCode200Response1 extends ResponseDeserializer { + public FakeresponsewithoutschemaGetCode200Response1() { + super( + MapUtils.makeMap( + new AbstractMap.SimpleEntry("application/json", null), + new AbstractMap.SimpleEntry("application/xml", null) + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java new file mode 100644 index 00000000000..3957ca24485 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/FaketestqueryparamtersPut.java @@ -0,0 +1,180 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutQueryParameters; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Parameters; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.FaketestqueryparamtersPutResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Faketestqueryparamters; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FaketestqueryparamtersPut { + private static class PutProvider { + private static final String method = "put"; + + public static FaketestqueryparamtersPutResponses.EndpointResponse put( + PutRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Faketestqueryparamters.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FaketestqueryparamtersPutResponses.FaketestqueryparamtersPutResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PutOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FaketestqueryparamtersPutResponses.EndpointResponse put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface QueryParameterCollectionFormatOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FaketestqueryparamtersPutResponses.EndpointResponse queryParameterCollectionFormat(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Put extends ApiClient implements PutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PutRequest { + public FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PutRequest( + FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.queryParameters = queryParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PutNullableRequest { + public FaketestqueryparamtersPutQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PutNullableRequest getInstance(); + T getBuilderAfterServerIndex(PutNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PutNullableRequest getInstance(); + T getBuilderAfterTimeout(PutNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForQueryParameters { + PutNullableRequest getInstance(); + T getBuilderAfterQueryParameters(PutNullableRequest instance); + default T queryParameters(FaketestqueryparamtersPutQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public static class Put0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PutNullableRequest instance; + + public Put0RequestBuilder(PutNullableRequest instance) { + this.instance = instance; + } + + public PutRequest build() { + var queryParameters = instance.queryParameters; + if (queryParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PutRequest( + queryParameters, + instance.serverIndex, + instance.timeout + ); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + return this; + } + + public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + return this; + } + } + public static class PutRequestBuilder implements SetterForQueryParameters { + private final PutNullableRequest instance; + + public PutRequestBuilder() { + this.instance = new PutNullableRequest(); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put0RequestBuilder getBuilderAfterQueryParameters(PutNullableRequest instance) { + return new Put0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java new file mode 100644 index 00000000000..91dbcc45d71 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutQueryParameters.java @@ -0,0 +1,1515 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.StringWithValidation; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter1.Schema1; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter2.Schema2; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter3.Schema3; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter4.Schema4; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FaketestqueryparamtersPutQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "context", + "http", + "ioutil", + "pipe", + "refParam", + "url" + ); + public static final Set optionalKeys = Set.of(); + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FaketestqueryparamtersPutQueryParameters1.getInstance().validate(arg, configuration); + } + + public Schema4.SchemaList4 context() { + @Nullable Object value = get("context"); + if (!(value instanceof Schema4.SchemaList4)) { + throw new RuntimeException("Invalid value stored for context"); + } + return (Schema4.SchemaList4) value; + } + + public Schema2.SchemaList2 http() { + @Nullable Object value = get("http"); + if (!(value instanceof Schema2.SchemaList2)) { + throw new RuntimeException("Invalid value stored for http"); + } + return (Schema2.SchemaList2) value; + } + + public Schema1.SchemaList1 ioutil() { + @Nullable Object value = get("ioutil"); + if (!(value instanceof Schema1.SchemaList1)) { + throw new RuntimeException("Invalid value stored for ioutil"); + } + return (Schema1.SchemaList1) value; + } + + public Schema0.SchemaList0 pipe() { + @Nullable Object value = get("pipe"); + if (!(value instanceof Schema0.SchemaList0)) { + throw new RuntimeException("Invalid value stored for pipe"); + } + return (Schema0.SchemaList0) value; + } + + public String refParam() { + @Nullable Object value = get("refParam"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for refParam"); + } + return (String) value; + } + + public Schema3.SchemaList3 url() { + @Nullable Object value = get("url"); + if (!(value instanceof Schema3.SchemaList3)) { + throw new RuntimeException("Invalid value stored for url"); + } + return (Schema3.SchemaList3) value; + } + } + + public interface SetterForContext { + Map getInstance(); + T getBuilderAfterContext(Map instance); + + default T context(List value) { + var instance = getInstance(); + instance.put("context", value); + return getBuilderAfterContext(instance); + } + } + + public interface SetterForHttp { + Map getInstance(); + T getBuilderAfterHttp(Map instance); + + default T http(List value) { + var instance = getInstance(); + instance.put("http", value); + return getBuilderAfterHttp(instance); + } + } + + public interface SetterForIoutil { + Map getInstance(); + T getBuilderAfterIoutil(Map instance); + + default T ioutil(List value) { + var instance = getInstance(); + instance.put("ioutil", value); + return getBuilderAfterIoutil(instance); + } + } + + public interface SetterForPipe { + Map getInstance(); + T getBuilderAfterPipe(Map instance); + + default T pipe(List value) { + var instance = getInstance(); + instance.put("pipe", value); + return getBuilderAfterPipe(instance); + } + } + + public interface SetterForRefParam { + Map getInstance(); + T getBuilderAfterRefParam(Map instance); + + default T refParam(String value) { + var instance = getInstance(); + instance.put("refParam", value); + return getBuilderAfterRefParam(instance); + } + } + + public interface SetterForUrl { + Map getInstance(); + T getBuilderAfterUrl(Map instance); + + default T url(List value) { + var instance = getInstance(); + instance.put("url", value); + return getBuilderAfterUrl(instance); + } + } + + public static class QueryParametersMap000000Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "context", + "http", + "ioutil", + "pipe", + "refParam", + "url" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMap000000Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class QueryParametersMap000001Builder implements SetterForUrl { + private final Map instance; + public QueryParametersMap000001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap000000Builder(instance); + } + } + + public static class QueryParametersMap000010Builder implements SetterForRefParam { + private final Map instance; + public QueryParametersMap000010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap000000Builder(instance); + } + } + + public static class QueryParametersMap000011Builder implements SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap000011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap000001Builder(instance); + } + public QueryParametersMap000010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap000010Builder(instance); + } + } + + public static class QueryParametersMap000100Builder implements SetterForPipe { + private final Map instance; + public QueryParametersMap000100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap000000Builder(instance); + } + } + + public static class QueryParametersMap000101Builder implements SetterForPipe, SetterForUrl { + private final Map instance; + public QueryParametersMap000101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap000001Builder(instance); + } + public QueryParametersMap000100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap000100Builder(instance); + } + } + + public static class QueryParametersMap000110Builder implements SetterForPipe, SetterForRefParam { + private final Map instance; + public QueryParametersMap000110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap000010Builder(instance); + } + public QueryParametersMap000100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap000100Builder(instance); + } + } + + public static class QueryParametersMap000111Builder implements SetterForPipe, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap000111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap000011Builder(instance); + } + public QueryParametersMap000101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap000101Builder(instance); + } + public QueryParametersMap000110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap000110Builder(instance); + } + } + + public static class QueryParametersMap001000Builder implements SetterForIoutil { + private final Map instance; + public QueryParametersMap001000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000000Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000000Builder(instance); + } + } + + public static class QueryParametersMap001001Builder implements SetterForIoutil, SetterForUrl { + private final Map instance; + public QueryParametersMap001001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000001Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000001Builder(instance); + } + public QueryParametersMap001000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap001000Builder(instance); + } + } + + public static class QueryParametersMap001010Builder implements SetterForIoutil, SetterForRefParam { + private final Map instance; + public QueryParametersMap001010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000010Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000010Builder(instance); + } + public QueryParametersMap001000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap001000Builder(instance); + } + } + + public static class QueryParametersMap001011Builder implements SetterForIoutil, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap001011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000011Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000011Builder(instance); + } + public QueryParametersMap001001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap001001Builder(instance); + } + public QueryParametersMap001010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap001010Builder(instance); + } + } + + public static class QueryParametersMap001100Builder implements SetterForIoutil, SetterForPipe { + private final Map instance; + public QueryParametersMap001100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000100Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000100Builder(instance); + } + public QueryParametersMap001000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap001000Builder(instance); + } + } + + public static class QueryParametersMap001101Builder implements SetterForIoutil, SetterForPipe, SetterForUrl { + private final Map instance; + public QueryParametersMap001101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000101Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000101Builder(instance); + } + public QueryParametersMap001001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap001001Builder(instance); + } + public QueryParametersMap001100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap001100Builder(instance); + } + } + + public static class QueryParametersMap001110Builder implements SetterForIoutil, SetterForPipe, SetterForRefParam { + private final Map instance; + public QueryParametersMap001110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000110Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000110Builder(instance); + } + public QueryParametersMap001010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap001010Builder(instance); + } + public QueryParametersMap001100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap001100Builder(instance); + } + } + + public static class QueryParametersMap001111Builder implements SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap001111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000111Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap000111Builder(instance); + } + public QueryParametersMap001011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap001011Builder(instance); + } + public QueryParametersMap001101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap001101Builder(instance); + } + public QueryParametersMap001110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap001110Builder(instance); + } + } + + public static class QueryParametersMap010000Builder implements SetterForHttp { + private final Map instance; + public QueryParametersMap010000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000000Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000000Builder(instance); + } + } + + public static class QueryParametersMap010001Builder implements SetterForHttp, SetterForUrl { + private final Map instance; + public QueryParametersMap010001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000001Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000001Builder(instance); + } + public QueryParametersMap010000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap010000Builder(instance); + } + } + + public static class QueryParametersMap010010Builder implements SetterForHttp, SetterForRefParam { + private final Map instance; + public QueryParametersMap010010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000010Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000010Builder(instance); + } + public QueryParametersMap010000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap010000Builder(instance); + } + } + + public static class QueryParametersMap010011Builder implements SetterForHttp, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap010011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000011Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000011Builder(instance); + } + public QueryParametersMap010001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap010001Builder(instance); + } + public QueryParametersMap010010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap010010Builder(instance); + } + } + + public static class QueryParametersMap010100Builder implements SetterForHttp, SetterForPipe { + private final Map instance; + public QueryParametersMap010100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000100Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000100Builder(instance); + } + public QueryParametersMap010000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap010000Builder(instance); + } + } + + public static class QueryParametersMap010101Builder implements SetterForHttp, SetterForPipe, SetterForUrl { + private final Map instance; + public QueryParametersMap010101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000101Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000101Builder(instance); + } + public QueryParametersMap010001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap010001Builder(instance); + } + public QueryParametersMap010100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap010100Builder(instance); + } + } + + public static class QueryParametersMap010110Builder implements SetterForHttp, SetterForPipe, SetterForRefParam { + private final Map instance; + public QueryParametersMap010110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000110Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000110Builder(instance); + } + public QueryParametersMap010010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap010010Builder(instance); + } + public QueryParametersMap010100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap010100Builder(instance); + } + } + + public static class QueryParametersMap010111Builder implements SetterForHttp, SetterForPipe, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap010111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000111Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap000111Builder(instance); + } + public QueryParametersMap010011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap010011Builder(instance); + } + public QueryParametersMap010101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap010101Builder(instance); + } + public QueryParametersMap010110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap010110Builder(instance); + } + } + + public static class QueryParametersMap011000Builder implements SetterForHttp, SetterForIoutil { + private final Map instance; + public QueryParametersMap011000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001000Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001000Builder(instance); + } + public QueryParametersMap010000Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010000Builder(instance); + } + } + + public static class QueryParametersMap011001Builder implements SetterForHttp, SetterForIoutil, SetterForUrl { + private final Map instance; + public QueryParametersMap011001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001001Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001001Builder(instance); + } + public QueryParametersMap010001Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010001Builder(instance); + } + public QueryParametersMap011000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap011000Builder(instance); + } + } + + public static class QueryParametersMap011010Builder implements SetterForHttp, SetterForIoutil, SetterForRefParam { + private final Map instance; + public QueryParametersMap011010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001010Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001010Builder(instance); + } + public QueryParametersMap010010Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010010Builder(instance); + } + public QueryParametersMap011000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap011000Builder(instance); + } + } + + public static class QueryParametersMap011011Builder implements SetterForHttp, SetterForIoutil, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap011011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001011Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001011Builder(instance); + } + public QueryParametersMap010011Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010011Builder(instance); + } + public QueryParametersMap011001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap011001Builder(instance); + } + public QueryParametersMap011010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap011010Builder(instance); + } + } + + public static class QueryParametersMap011100Builder implements SetterForHttp, SetterForIoutil, SetterForPipe { + private final Map instance; + public QueryParametersMap011100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001100Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001100Builder(instance); + } + public QueryParametersMap010100Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010100Builder(instance); + } + public QueryParametersMap011000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap011000Builder(instance); + } + } + + public static class QueryParametersMap011101Builder implements SetterForHttp, SetterForIoutil, SetterForPipe, SetterForUrl { + private final Map instance; + public QueryParametersMap011101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001101Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001101Builder(instance); + } + public QueryParametersMap010101Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010101Builder(instance); + } + public QueryParametersMap011001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap011001Builder(instance); + } + public QueryParametersMap011100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap011100Builder(instance); + } + } + + public static class QueryParametersMap011110Builder implements SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam { + private final Map instance; + public QueryParametersMap011110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001110Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001110Builder(instance); + } + public QueryParametersMap010110Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010110Builder(instance); + } + public QueryParametersMap011010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap011010Builder(instance); + } + public QueryParametersMap011100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap011100Builder(instance); + } + } + + public static class QueryParametersMap011111Builder implements SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap011111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001111Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap001111Builder(instance); + } + public QueryParametersMap010111Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap010111Builder(instance); + } + public QueryParametersMap011011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap011011Builder(instance); + } + public QueryParametersMap011101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap011101Builder(instance); + } + public QueryParametersMap011110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap011110Builder(instance); + } + } + + public static class QueryParametersMap100000Builder implements SetterForContext { + private final Map instance; + public QueryParametersMap100000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000000Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000000Builder(instance); + } + } + + public static class QueryParametersMap100001Builder implements SetterForContext, SetterForUrl { + private final Map instance; + public QueryParametersMap100001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000001Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000001Builder(instance); + } + public QueryParametersMap100000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap100000Builder(instance); + } + } + + public static class QueryParametersMap100010Builder implements SetterForContext, SetterForRefParam { + private final Map instance; + public QueryParametersMap100010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000010Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000010Builder(instance); + } + public QueryParametersMap100000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap100000Builder(instance); + } + } + + public static class QueryParametersMap100011Builder implements SetterForContext, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap100011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000011Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000011Builder(instance); + } + public QueryParametersMap100001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap100001Builder(instance); + } + public QueryParametersMap100010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap100010Builder(instance); + } + } + + public static class QueryParametersMap100100Builder implements SetterForContext, SetterForPipe { + private final Map instance; + public QueryParametersMap100100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000100Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000100Builder(instance); + } + public QueryParametersMap100000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap100000Builder(instance); + } + } + + public static class QueryParametersMap100101Builder implements SetterForContext, SetterForPipe, SetterForUrl { + private final Map instance; + public QueryParametersMap100101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000101Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000101Builder(instance); + } + public QueryParametersMap100001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap100001Builder(instance); + } + public QueryParametersMap100100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap100100Builder(instance); + } + } + + public static class QueryParametersMap100110Builder implements SetterForContext, SetterForPipe, SetterForRefParam { + private final Map instance; + public QueryParametersMap100110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000110Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000110Builder(instance); + } + public QueryParametersMap100010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap100010Builder(instance); + } + public QueryParametersMap100100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap100100Builder(instance); + } + } + + public static class QueryParametersMap100111Builder implements SetterForContext, SetterForPipe, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap100111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap000111Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap000111Builder(instance); + } + public QueryParametersMap100011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap100011Builder(instance); + } + public QueryParametersMap100101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap100101Builder(instance); + } + public QueryParametersMap100110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap100110Builder(instance); + } + } + + public static class QueryParametersMap101000Builder implements SetterForContext, SetterForIoutil { + private final Map instance; + public QueryParametersMap101000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001000Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001000Builder(instance); + } + public QueryParametersMap100000Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100000Builder(instance); + } + } + + public static class QueryParametersMap101001Builder implements SetterForContext, SetterForIoutil, SetterForUrl { + private final Map instance; + public QueryParametersMap101001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001001Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001001Builder(instance); + } + public QueryParametersMap100001Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100001Builder(instance); + } + public QueryParametersMap101000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap101000Builder(instance); + } + } + + public static class QueryParametersMap101010Builder implements SetterForContext, SetterForIoutil, SetterForRefParam { + private final Map instance; + public QueryParametersMap101010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001010Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001010Builder(instance); + } + public QueryParametersMap100010Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100010Builder(instance); + } + public QueryParametersMap101000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap101000Builder(instance); + } + } + + public static class QueryParametersMap101011Builder implements SetterForContext, SetterForIoutil, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap101011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001011Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001011Builder(instance); + } + public QueryParametersMap100011Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100011Builder(instance); + } + public QueryParametersMap101001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap101001Builder(instance); + } + public QueryParametersMap101010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap101010Builder(instance); + } + } + + public static class QueryParametersMap101100Builder implements SetterForContext, SetterForIoutil, SetterForPipe { + private final Map instance; + public QueryParametersMap101100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001100Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001100Builder(instance); + } + public QueryParametersMap100100Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100100Builder(instance); + } + public QueryParametersMap101000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap101000Builder(instance); + } + } + + public static class QueryParametersMap101101Builder implements SetterForContext, SetterForIoutil, SetterForPipe, SetterForUrl { + private final Map instance; + public QueryParametersMap101101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001101Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001101Builder(instance); + } + public QueryParametersMap100101Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100101Builder(instance); + } + public QueryParametersMap101001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap101001Builder(instance); + } + public QueryParametersMap101100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap101100Builder(instance); + } + } + + public static class QueryParametersMap101110Builder implements SetterForContext, SetterForIoutil, SetterForPipe, SetterForRefParam { + private final Map instance; + public QueryParametersMap101110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001110Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001110Builder(instance); + } + public QueryParametersMap100110Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100110Builder(instance); + } + public QueryParametersMap101010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap101010Builder(instance); + } + public QueryParametersMap101100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap101100Builder(instance); + } + } + + public static class QueryParametersMap101111Builder implements SetterForContext, SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap101111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap001111Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap001111Builder(instance); + } + public QueryParametersMap100111Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap100111Builder(instance); + } + public QueryParametersMap101011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap101011Builder(instance); + } + public QueryParametersMap101101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap101101Builder(instance); + } + public QueryParametersMap101110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap101110Builder(instance); + } + } + + public static class QueryParametersMap110000Builder implements SetterForContext, SetterForHttp { + private final Map instance; + public QueryParametersMap110000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap010000Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010000Builder(instance); + } + public QueryParametersMap100000Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100000Builder(instance); + } + } + + public static class QueryParametersMap110001Builder implements SetterForContext, SetterForHttp, SetterForUrl { + private final Map instance; + public QueryParametersMap110001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap010001Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010001Builder(instance); + } + public QueryParametersMap100001Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100001Builder(instance); + } + public QueryParametersMap110000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap110000Builder(instance); + } + } + + public static class QueryParametersMap110010Builder implements SetterForContext, SetterForHttp, SetterForRefParam { + private final Map instance; + public QueryParametersMap110010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap010010Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010010Builder(instance); + } + public QueryParametersMap100010Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100010Builder(instance); + } + public QueryParametersMap110000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap110000Builder(instance); + } + } + + public static class QueryParametersMap110011Builder implements SetterForContext, SetterForHttp, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap110011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap010011Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010011Builder(instance); + } + public QueryParametersMap100011Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100011Builder(instance); + } + public QueryParametersMap110001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap110001Builder(instance); + } + public QueryParametersMap110010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap110010Builder(instance); + } + } + + public static class QueryParametersMap110100Builder implements SetterForContext, SetterForHttp, SetterForPipe { + private final Map instance; + public QueryParametersMap110100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap010100Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010100Builder(instance); + } + public QueryParametersMap100100Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100100Builder(instance); + } + public QueryParametersMap110000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap110000Builder(instance); + } + } + + public static class QueryParametersMap110101Builder implements SetterForContext, SetterForHttp, SetterForPipe, SetterForUrl { + private final Map instance; + public QueryParametersMap110101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap010101Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010101Builder(instance); + } + public QueryParametersMap100101Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100101Builder(instance); + } + public QueryParametersMap110001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap110001Builder(instance); + } + public QueryParametersMap110100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap110100Builder(instance); + } + } + + public static class QueryParametersMap110110Builder implements SetterForContext, SetterForHttp, SetterForPipe, SetterForRefParam { + private final Map instance; + public QueryParametersMap110110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap010110Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010110Builder(instance); + } + public QueryParametersMap100110Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100110Builder(instance); + } + public QueryParametersMap110010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap110010Builder(instance); + } + public QueryParametersMap110100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap110100Builder(instance); + } + } + + public static class QueryParametersMap110111Builder implements SetterForContext, SetterForHttp, SetterForPipe, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap110111Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap010111Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap010111Builder(instance); + } + public QueryParametersMap100111Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap100111Builder(instance); + } + public QueryParametersMap110011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap110011Builder(instance); + } + public QueryParametersMap110101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap110101Builder(instance); + } + public QueryParametersMap110110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap110110Builder(instance); + } + } + + public static class QueryParametersMap111000Builder implements SetterForContext, SetterForHttp, SetterForIoutil { + private final Map instance; + public QueryParametersMap111000Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap011000Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011000Builder(instance); + } + public QueryParametersMap101000Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101000Builder(instance); + } + public QueryParametersMap110000Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110000Builder(instance); + } + } + + public static class QueryParametersMap111001Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForUrl { + private final Map instance; + public QueryParametersMap111001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap011001Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011001Builder(instance); + } + public QueryParametersMap101001Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101001Builder(instance); + } + public QueryParametersMap110001Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110001Builder(instance); + } + public QueryParametersMap111000Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap111000Builder(instance); + } + } + + public static class QueryParametersMap111010Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForRefParam { + private final Map instance; + public QueryParametersMap111010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap011010Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011010Builder(instance); + } + public QueryParametersMap101010Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101010Builder(instance); + } + public QueryParametersMap110010Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110010Builder(instance); + } + public QueryParametersMap111000Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap111000Builder(instance); + } + } + + public static class QueryParametersMap111011Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMap111011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap011011Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011011Builder(instance); + } + public QueryParametersMap101011Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101011Builder(instance); + } + public QueryParametersMap110011Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110011Builder(instance); + } + public QueryParametersMap111001Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap111001Builder(instance); + } + public QueryParametersMap111010Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap111010Builder(instance); + } + } + + public static class QueryParametersMap111100Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe { + private final Map instance; + public QueryParametersMap111100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap011100Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011100Builder(instance); + } + public QueryParametersMap101100Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101100Builder(instance); + } + public QueryParametersMap110100Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110100Builder(instance); + } + public QueryParametersMap111000Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap111000Builder(instance); + } + } + + public static class QueryParametersMap111101Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe, SetterForUrl { + private final Map instance; + public QueryParametersMap111101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap011101Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011101Builder(instance); + } + public QueryParametersMap101101Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101101Builder(instance); + } + public QueryParametersMap110101Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110101Builder(instance); + } + public QueryParametersMap111001Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap111001Builder(instance); + } + public QueryParametersMap111100Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap111100Builder(instance); + } + } + + public static class QueryParametersMap111110Builder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam { + private final Map instance; + public QueryParametersMap111110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap011110Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011110Builder(instance); + } + public QueryParametersMap101110Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101110Builder(instance); + } + public QueryParametersMap110110Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110110Builder(instance); + } + public QueryParametersMap111010Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap111010Builder(instance); + } + public QueryParametersMap111100Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap111100Builder(instance); + } + } + + public static class QueryParametersMapBuilder implements SetterForContext, SetterForHttp, SetterForIoutil, SetterForPipe, SetterForRefParam, SetterForUrl { + private final Map instance; + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public QueryParametersMap011111Builder getBuilderAfterContext(Map instance) { + return new QueryParametersMap011111Builder(instance); + } + public QueryParametersMap101111Builder getBuilderAfterHttp(Map instance) { + return new QueryParametersMap101111Builder(instance); + } + public QueryParametersMap110111Builder getBuilderAfterIoutil(Map instance) { + return new QueryParametersMap110111Builder(instance); + } + public QueryParametersMap111011Builder getBuilderAfterPipe(Map instance) { + return new QueryParametersMap111011Builder(instance); + } + public QueryParametersMap111101Builder getBuilderAfterRefParam(Map instance) { + return new QueryParametersMap111101Builder(instance); + } + public QueryParametersMap111110Builder getBuilderAfterUrl(Map instance) { + return new QueryParametersMap111110Builder(instance); + } + } + + + public sealed interface FaketestqueryparamtersPutQueryParameters1Boxed permits FaketestqueryparamtersPutQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record FaketestqueryparamtersPutQueryParameters1BoxedMap(QueryParametersMap data) implements FaketestqueryparamtersPutQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FaketestqueryparamtersPutQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FaketestqueryparamtersPutQueryParameters1 instance = null; + + protected FaketestqueryparamtersPutQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("refParam", StringWithValidation.StringWithValidation1.class), + new PropertyEntry("ioutil", Schema1.Schema11.class), + new PropertyEntry("context", Schema4.Schema41.class), + new PropertyEntry("http", Schema2.Schema21.class), + new PropertyEntry("pipe", Schema0.Schema01.class), + new PropertyEntry("url", Schema3.Schema31.class) + )) + .required(Set.of( + "context", + "http", + "ioutil", + "pipe", + "refParam", + "url" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FaketestqueryparamtersPutQueryParameters1 getInstance() { + if (instance == null) { + instance = new FaketestqueryparamtersPutQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FaketestqueryparamtersPutQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FaketestqueryparamtersPutQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public FaketestqueryparamtersPutQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java new file mode 100644 index 00000000000..ed5c4a6f030 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/FaketestqueryparamtersPutResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put; + +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.FaketestqueryparamtersPutCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FaketestqueryparamtersPutResponses { + public sealed interface EndpointResponse permits EndpointFaketestqueryparamtersPutCode200Response {} + + public record EndpointFaketestqueryparamtersPutCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFaketestqueryparamtersPutCode200ResponseDeserializer {} + + public static final class StatusFaketestqueryparamtersPutCode200ResponseDeserializer extends FaketestqueryparamtersPutCode200Response.FaketestqueryparamtersPutCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FaketestqueryparamtersPutResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FaketestqueryparamtersPutResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFaketestqueryparamtersPutCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFaketestqueryparamtersPutCode200ResponseDeserializer castDeserializer = (StatusFaketestqueryparamtersPutCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFaketestqueryparamtersPutCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java new file mode 100644 index 00000000000..447f578a330 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/Parameters.java @@ -0,0 +1,30 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put; + +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter0; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter1; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter2; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter3; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter4; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.Parameter5; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("pipe", new Parameter0.Parameter01()), + new AbstractMap.SimpleEntry<>("ioutil", new Parameter1.Parameter11()), + new AbstractMap.SimpleEntry<>("http", new Parameter2.Parameter21()), + new AbstractMap.SimpleEntry<>("url", new Parameter3.Parameter31()), + new AbstractMap.SimpleEntry<>("context", new Parameter4.Parameter41()), + new AbstractMap.SimpleEntry<>("refParam", new Parameter5.Parameter51()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter0.java new file mode 100644 index 00000000000..fb818182444 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "pipe", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter1.java new file mode 100644 index 00000000000..c835f8982f0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter1.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter1.Schema1; + +public class Parameter1 { + + public static class Parameter11 extends SchemaParameter { + public Parameter11() { + super( + "ioutil", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + false, + false, + Schema1.Schema11.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter2.java new file mode 100644 index 00000000000..a4718b73134 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter2.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter2.Schema2; + +public class Parameter2 { + + public static class Parameter21 extends SchemaParameter { + public Parameter21() { + super( + "http", + ParameterInType.QUERY, + true, + ParameterStyle.SPACE_DELIMITED, + false, + false, + Schema2.Schema21.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter3.java new file mode 100644 index 00000000000..243be0b3e0f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter3.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter3.Schema3; + +public class Parameter3 { + + public static class Parameter31 extends SchemaParameter { + public Parameter31() { + super( + "url", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + false, + false, + Schema3.Schema31.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter4.java new file mode 100644 index 00000000000..449ae175083 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter4.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter4.Schema4; + +public class Parameter4 { + + public static class Parameter41 extends SchemaParameter { + public Parameter41() { + super( + "context", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema4.Schema41.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter5.java new file mode 100644 index 00000000000..1575ac4c084 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/Parameter5.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter5.Schema5; + +public class Parameter5 { + + public static class Parameter51 extends SchemaParameter { + public Parameter51() { + super( + "refParam", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema5.Schema51.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..a1a141e38d1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java @@ -0,0 +1,157 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter0; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema0 { + // nest classes so all schemas and input/output classes can be public + + + public static class Items0 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Items0 instance = null; + public static Items0 getInstance() { + if (instance == null) { + instance = new Items0(); + } + return instance; + } + } + + + public static class SchemaList0 extends FrozenList { + protected SchemaList0(FrozenList m) { + super(m); + } + public static SchemaList0 of(List arg, SchemaConfiguration configuration) throws ValidationException { + return Schema01.getInstance().validate(arg, configuration); + } + } + + public static class SchemaListBuilder0 { + // class to build List + private final List list; + + public SchemaListBuilder0() { + list = new ArrayList<>(); + } + + public SchemaListBuilder0(List list) { + this.list = list; + } + + public SchemaListBuilder0 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface Schema01Boxed permits Schema01BoxedList { + @Nullable Object getData(); + } + + public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema01 extends JsonSchema implements ListSchemaValidator { + private static @Nullable Schema01 instance = null; + + protected Schema01() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(Items0.class) + ); + } + + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + + @Override + public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new SchemaList0(newInstanceItems); + } + + public SchemaList0 validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedList(validate(arg, configuration)); + } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java new file mode 100644 index 00000000000..f73a4a14c25 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java @@ -0,0 +1,157 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter1; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema1 { + // nest classes so all schemas and input/output classes can be public + + + public static class Items1 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Items1 instance = null; + public static Items1 getInstance() { + if (instance == null) { + instance = new Items1(); + } + return instance; + } + } + + + public static class SchemaList1 extends FrozenList { + protected SchemaList1(FrozenList m) { + super(m); + } + public static SchemaList1 of(List arg, SchemaConfiguration configuration) throws ValidationException { + return Schema11.getInstance().validate(arg, configuration); + } + } + + public static class SchemaListBuilder1 { + // class to build List + private final List list; + + public SchemaListBuilder1() { + list = new ArrayList<>(); + } + + public SchemaListBuilder1(List list) { + this.list = list; + } + + public SchemaListBuilder1 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface Schema11Boxed permits Schema11BoxedList { + @Nullable Object getData(); + } + + public record Schema11BoxedList(SchemaList1 data) implements Schema11Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema11 extends JsonSchema implements ListSchemaValidator { + private static @Nullable Schema11 instance = null; + + protected Schema11() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(Items1.class) + ); + } + + public static Schema11 getInstance() { + if (instance == null) { + instance = new Schema11(); + } + return instance; + } + + @Override + public SchemaList1 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new SchemaList1(newInstanceItems); + } + + public SchemaList1 validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema11BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema11BoxedList(validate(arg, configuration)); + } + @Override + public Schema11Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java new file mode 100644 index 00000000000..fa6b93e54f0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java @@ -0,0 +1,157 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter2; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema2 { + // nest classes so all schemas and input/output classes can be public + + + public static class Items2 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Items2 instance = null; + public static Items2 getInstance() { + if (instance == null) { + instance = new Items2(); + } + return instance; + } + } + + + public static class SchemaList2 extends FrozenList { + protected SchemaList2(FrozenList m) { + super(m); + } + public static SchemaList2 of(List arg, SchemaConfiguration configuration) throws ValidationException { + return Schema21.getInstance().validate(arg, configuration); + } + } + + public static class SchemaListBuilder2 { + // class to build List + private final List list; + + public SchemaListBuilder2() { + list = new ArrayList<>(); + } + + public SchemaListBuilder2(List list) { + this.list = list; + } + + public SchemaListBuilder2 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface Schema21Boxed permits Schema21BoxedList { + @Nullable Object getData(); + } + + public record Schema21BoxedList(SchemaList2 data) implements Schema21Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema21 extends JsonSchema implements ListSchemaValidator { + private static @Nullable Schema21 instance = null; + + protected Schema21() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(Items2.class) + ); + } + + public static Schema21 getInstance() { + if (instance == null) { + instance = new Schema21(); + } + return instance; + } + + @Override + public SchemaList2 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new SchemaList2(newInstanceItems); + } + + public SchemaList2 validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema21BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema21BoxedList(validate(arg, configuration)); + } + @Override + public Schema21Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java new file mode 100644 index 00000000000..6301f5135d6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java @@ -0,0 +1,157 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter3; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema3 { + // nest classes so all schemas and input/output classes can be public + + + public static class Items3 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Items3 instance = null; + public static Items3 getInstance() { + if (instance == null) { + instance = new Items3(); + } + return instance; + } + } + + + public static class SchemaList3 extends FrozenList { + protected SchemaList3(FrozenList m) { + super(m); + } + public static SchemaList3 of(List arg, SchemaConfiguration configuration) throws ValidationException { + return Schema31.getInstance().validate(arg, configuration); + } + } + + public static class SchemaListBuilder3 { + // class to build List + private final List list; + + public SchemaListBuilder3() { + list = new ArrayList<>(); + } + + public SchemaListBuilder3(List list) { + this.list = list; + } + + public SchemaListBuilder3 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface Schema31Boxed permits Schema31BoxedList { + @Nullable Object getData(); + } + + public record Schema31BoxedList(SchemaList3 data) implements Schema31Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema31 extends JsonSchema implements ListSchemaValidator { + private static @Nullable Schema31 instance = null; + + protected Schema31() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(Items3.class) + ); + } + + public static Schema31 getInstance() { + if (instance == null) { + instance = new Schema31(); + } + return instance; + } + + @Override + public SchemaList3 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new SchemaList3(newInstanceItems); + } + + public SchemaList3 validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema31BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema31BoxedList(validate(arg, configuration)); + } + @Override + public Schema31Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java new file mode 100644 index 00000000000..fb955854aee --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java @@ -0,0 +1,157 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter4; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema4 { + // nest classes so all schemas and input/output classes can be public + + + public static class Items4 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Items4 instance = null; + public static Items4 getInstance() { + if (instance == null) { + instance = new Items4(); + } + return instance; + } + } + + + public static class SchemaList4 extends FrozenList { + protected SchemaList4(FrozenList m) { + super(m); + } + public static SchemaList4 of(List arg, SchemaConfiguration configuration) throws ValidationException { + return Schema41.getInstance().validate(arg, configuration); + } + } + + public static class SchemaListBuilder4 { + // class to build List + private final List list; + + public SchemaListBuilder4() { + list = new ArrayList<>(); + } + + public SchemaListBuilder4(List list) { + this.list = list; + } + + public SchemaListBuilder4 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface Schema41Boxed permits Schema41BoxedList { + @Nullable Object getData(); + } + + public record Schema41BoxedList(SchemaList4 data) implements Schema41Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema41 extends JsonSchema implements ListSchemaValidator { + private static @Nullable Schema41 instance = null; + + protected Schema41() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(Items4.class) + ); + } + + public static Schema41 getInstance() { + if (instance == null) { + instance = new Schema41(); + } + return instance; + } + + @Override + public SchemaList4 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new SchemaList4(newInstanceItems); + } + + public SchemaList4 validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema41BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema41BoxedList(validate(arg, configuration)); + } + @Override + public Schema41Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java new file mode 100644 index 00000000000..a2af162b5a6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter5/Schema5.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.parameters.parameter5; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.StringWithValidation; + +public class Schema5 extends StringWithValidation { + // $refed class + + + public static class Schema51 extends StringWithValidation1 { + private static @Nullable Schema51 instance = null; + public static Schema51 getInstance() { + if (instance == null) { + instance = new Schema51(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.java new file mode 100644 index 00000000000..180a1f4d934 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/responses/FaketestqueryparamtersPutCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class FaketestqueryparamtersPutCode200Response extends SuccessDescriptionOnly { + public static class FaketestqueryparamtersPutCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java new file mode 100644 index 00000000000..40b05b37b3a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/FakeuploaddownloadfilePost.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.fakeuploaddownloadfile; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostRequestBody; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.FakeuploaddownloadfilePostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakeuploaddownloadfile; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeuploaddownloadfilePost { + private static class PostProvider { + private static final String method = "post"; + + public static FakeuploaddownloadfilePostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new FakeuploaddownloadfilePostRequestBody.FakeuploaddownloadfilePostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakeuploaddownloadfile.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeuploaddownloadfilePostResponses.FakeuploaddownloadfilePostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeuploaddownloadfilePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface UploadDownloadFileOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeuploaddownloadfilePostResponses.EndpointResponse uploadDownloadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PostRequest( + FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public FakeuploaddownloadfilePostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(FakeuploaddownloadfilePostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + requestBody, + instance.serverIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForRequestBody { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java new file mode 100644 index 00000000000..c178703cbdb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream.ApplicationoctetstreamSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakeuploaddownloadfilePostRequestBody { + public sealed interface SealedMediaType permits ApplicationoctetstreamMediaType {} + + public record ApplicationoctetstreamMediaType(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationoctetstreamMediaType() { + this(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakeuploaddownloadfilePostRequestBody1 extends RequestBodySerializer { + public FakeuploaddownloadfilePostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/octet-stream", new ApplicationoctetstreamMediaType()) + ), + true + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationoctetstreamRequestBody requestBody0 = (ApplicationoctetstreamRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationoctetstreamRequestBody {} + public record ApplicationoctetstreamRequestBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/octet-stream"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java new file mode 100644 index 00000000000..04f4e9c3706 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/FakeuploaddownloadfilePostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post; + +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.FakeuploaddownloadfilePostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeuploaddownloadfilePostResponses { + public sealed interface EndpointResponse permits EndpointFakeuploaddownloadfilePostCode200Response {} + + public record EndpointFakeuploaddownloadfilePostCode200Response( + HttpResponse response, + FakeuploaddownloadfilePostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeuploaddownloadfilePostCode200ResponseDeserializer {} + + public static final class StatusFakeuploaddownloadfilePostCode200ResponseDeserializer extends FakeuploaddownloadfilePostCode200Response.FakeuploaddownloadfilePostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeuploaddownloadfilePostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeuploaddownloadfilePostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeuploaddownloadfilePostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeuploaddownloadfilePostCode200ResponseDeserializer castDeserializer = (StatusFakeuploaddownloadfilePostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeuploaddownloadfilePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java new file mode 100644 index 00000000000..1dded2752b5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/ApplicationoctetstreamSchema.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class ApplicationoctetstreamSchema extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationoctetstreamSchema1 extends StringJsonSchema.StringJsonSchema1 { + // BinarySchema + private static @Nullable ApplicationoctetstreamSchema1 instance = null; + public static ApplicationoctetstreamSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationoctetstreamSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java new file mode 100644 index 00000000000..dd4052cb616 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/FakeuploaddownloadfilePostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.code200response.content.applicationoctetstream.ApplicationoctetstreamSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakeuploaddownloadfilePostCode200Response { + public sealed interface SealedMediaType permits ApplicationoctetstreamMediaType {} + + public record ApplicationoctetstreamMediaType(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationoctetstreamMediaType() { + this(ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationoctetstreamResponseBody {} + public record ApplicationoctetstreamResponseBody(ApplicationoctetstreamSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakeuploaddownloadfilePostCode200Response1 extends ResponseDeserializer { + public FakeuploaddownloadfilePostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/octet-stream", new ApplicationoctetstreamMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationoctetstreamMediaType thisMediaType = (ApplicationoctetstreamMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationoctetstreamResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java new file mode 100644 index 00000000000..4560be3af67 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.code200response.content.applicationoctetstream; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class ApplicationoctetstreamSchema extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationoctetstreamSchema1 extends StringJsonSchema.StringJsonSchema1 { + // BinarySchema + private static @Nullable ApplicationoctetstreamSchema1 instance = null; + public static ApplicationoctetstreamSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationoctetstreamSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java new file mode 100644 index 00000000000..4a90826a6bd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/FakeuploadfilePost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakeuploadfile; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.FakeuploadfilePostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakeuploadfile; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeuploadfilePost { + private static class PostProvider { + private static final String method = "post"; + + public static FakeuploadfilePostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakeuploadfilePostRequestBody.FakeuploadfilePostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakeuploadfile.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeuploadfilePostResponses.FakeuploadfilePostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeuploadfilePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface UploadFileOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeuploadfilePostResponses.EndpointResponse uploadFile(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakeuploadfilePostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakeuploadfilePostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java new file mode 100644 index 00000000000..e4b168121f6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakeuploadfile.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakeuploadfilePostRequestBody { + public sealed interface SealedMediaType permits MultipartformdataMediaType {} + + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { + public MultipartformdataMediaType() { + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakeuploadfilePostRequestBody1 extends RequestBodySerializer { + public FakeuploadfilePostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "multipart/form-data"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java new file mode 100644 index 00000000000..976aaee314e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/FakeuploadfilePostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakeuploadfile.post; + +import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.FakeuploadfilePostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeuploadfilePostResponses { + public sealed interface EndpointResponse permits EndpointFakeuploadfilePostCode200Response {} + + public record EndpointFakeuploadfilePostCode200Response( + HttpResponse response, + FakeuploadfilePostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeuploadfilePostCode200ResponseDeserializer {} + + public static final class StatusFakeuploadfilePostCode200ResponseDeserializer extends FakeuploadfilePostCode200Response.FakeuploadfilePostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeuploadfilePostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeuploadfilePostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeuploadfilePostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeuploadfilePostCode200ResponseDeserializer castDeserializer = (StatusFakeuploadfilePostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeuploadfilePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java new file mode 100644 index 00000000000..4632d7c9bae --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -0,0 +1,251 @@ +package org.openapijsonschematools.client.paths.fakeuploadfile.post.requestbody.content.multipartformdata; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class MultipartformdataSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class MultipartformdataAdditionalMetadata extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable MultipartformdataAdditionalMetadata instance = null; + public static MultipartformdataAdditionalMetadata getInstance() { + if (instance == null) { + instance = new MultipartformdataAdditionalMetadata(); + } + return instance; + } + } + + + public static class MultipartformdataFile extends StringJsonSchema.StringJsonSchema1 { + // BinarySchema + private static @Nullable MultipartformdataFile instance = null; + public static MultipartformdataFile getInstance() { + if (instance == null) { + instance = new MultipartformdataFile(); + } + return instance; + } + } + + + public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { + protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "file" + ); + public static final Set optionalKeys = Set.of( + "additionalMetadata" + ); + public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return MultipartformdataSchema1.getInstance().validate(arg, configuration); + } + + public String file() { + @Nullable Object value = get("file"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for file"); + } + return (String) value; + } + + public String additionalMetadata() throws UnsetPropertyException { + String key = "additionalMetadata"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for additionalMetadata"); + } + return (String) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForMultipartformdataFile { + Map getInstance(); + T getBuilderAfterMultipartformdataFile(Map instance); + + default T file(String value) { + var instance = getInstance(); + instance.put("file", value); + return getBuilderAfterMultipartformdataFile(instance); + } + } + + public interface SetterForMultipartformdataAdditionalMetadata { + Map getInstance(); + T getBuilderAfterMultipartformdataAdditionalMetadata(Map instance); + + default T additionalMetadata(String value) { + var instance = getInstance(); + instance.put("additionalMetadata", value); + return getBuilderAfterMultipartformdataAdditionalMetadata(instance); + } + } + + public static class MultipartformdataSchemaMap0Builder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataAdditionalMetadata { + private final Map instance; + private static final Set knownKeys = Set.of( + "file", + "additionalMetadata" + ); + public Set getKnownKeys() { + return knownKeys; + } + public MultipartformdataSchemaMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataAdditionalMetadata(Map instance) { + return this; + } + public MultipartformdataSchemaMap0Builder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + public static class MultipartformdataSchemaMapBuilder implements SetterForMultipartformdataFile { + private final Map instance; + public MultipartformdataSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public MultipartformdataSchemaMap0Builder getBuilderAfterMultipartformdataFile(Map instance) { + return new MultipartformdataSchemaMap0Builder(instance); + } + } + + + public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { + @Nullable Object getData(); + } + + public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable MultipartformdataSchema1 instance = null; + + protected MultipartformdataSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("additionalMetadata", MultipartformdataAdditionalMetadata.class), + new PropertyEntry("file", MultipartformdataFile.class) + )) + .required(Set.of( + "file" + )) + ); + } + + public static MultipartformdataSchema1 getInstance() { + if (instance == null) { + instance = new MultipartformdataSchema1(); + } + return instance; + } + + public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new MultipartformdataSchemaMap(castProperties); + } + + public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java new file mode 100644 index 00000000000..19ee4cb8e6b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/FakeuploadfilePostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakeuploadfile.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakeuploadfilePostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } + + public static class FakeuploadfilePostCode200Response1 extends ResponseDeserializer { + public FakeuploadfilePostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..efbbe4fc405 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.ApiResponseSchema; + +public class ApplicationjsonSchema extends ApiResponseSchema { + // $refed class + + + public static class ApplicationjsonSchema1 extends ApiResponseSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java new file mode 100644 index 00000000000..e35ade51c50 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/FakeuploadfilesPost.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.fakeuploadfiles; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.FakeuploadfilesPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Fakeuploadfiles; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakeuploadfilesPost { + private static class PostProvider { + private static final String method = "post"; + + public static FakeuploadfilesPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new FakeuploadfilesPostRequestBody.FakeuploadfilesPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakeuploadfiles.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakeuploadfilesPostResponses.FakeuploadfilesPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeuploadfilesPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface UploadFilesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakeuploadfilesPostResponses.EndpointResponse uploadFiles(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public FakeuploadfilesPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostRequest getInstance(); + T getBuilderAfterRequestBody(PostRequest instance); + default T requestBody(FakeuploadfilesPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostRequest getInstance(); + T getBuilderAfterServerIndex(PostRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostRequest getInstance(); + T getBuilderAfterTimeout(PostRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class PostRequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForTimeout { + private final PostRequest instance; + + public PostRequestBuilder() { + this.instance = new PostRequest(); + } + + public PostRequest build() { + return instance; + } + + public PostRequest getInstance() { + return instance; + } + + public PostRequestBuilder getBuilderAfterRequestBody(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterServerIndex(PostRequest instance) { + return this; + } + + public PostRequestBuilder getBuilderAfterTimeout(PostRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java new file mode 100644 index 00000000000..c95dc09ce28 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.fakeuploadfiles.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class FakeuploadfilesPostRequestBody { + public sealed interface SealedMediaType permits MultipartformdataMediaType {} + + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { + public MultipartformdataMediaType() { + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class FakeuploadfilesPostRequestBody1 extends RequestBodySerializer { + public FakeuploadfilesPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "multipart/form-data"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java new file mode 100644 index 00000000000..77ed06b1d42 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/FakeuploadfilesPostResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.fakeuploadfiles.post; + +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.FakeuploadfilesPostCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakeuploadfilesPostResponses { + public sealed interface EndpointResponse permits EndpointFakeuploadfilesPostCode200Response {} + + public record EndpointFakeuploadfilesPostCode200Response( + HttpResponse response, + FakeuploadfilesPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakeuploadfilesPostCode200ResponseDeserializer {} + + public static final class StatusFakeuploadfilesPostCode200ResponseDeserializer extends FakeuploadfilesPostCode200Response.FakeuploadfilesPostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class FakeuploadfilesPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public FakeuploadfilesPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakeuploadfilesPostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusFakeuploadfilesPostCode200ResponseDeserializer castDeserializer = (StatusFakeuploadfilesPostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakeuploadfilesPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java new file mode 100644 index 00000000000..355c33d6d56 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -0,0 +1,325 @@ +package org.openapijsonschematools.client.paths.fakeuploadfiles.post.requestbody.content.multipartformdata; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class MultipartformdataSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class MultipartformdataItems extends StringJsonSchema.StringJsonSchema1 { + // BinarySchema + private static @Nullable MultipartformdataItems instance = null; + public static MultipartformdataItems getInstance() { + if (instance == null) { + instance = new MultipartformdataItems(); + } + return instance; + } + } + + + public static class MultipartformdataFilesList extends FrozenList { + protected MultipartformdataFilesList(FrozenList m) { + super(m); + } + public static MultipartformdataFilesList of(List arg, SchemaConfiguration configuration) throws ValidationException { + return MultipartformdataFiles.getInstance().validate(arg, configuration); + } + } + + public static class MultipartformdataFilesListBuilder { + // class to build List + private final List list; + + public MultipartformdataFilesListBuilder() { + list = new ArrayList<>(); + } + + public MultipartformdataFilesListBuilder(List list) { + this.list = list; + } + + public MultipartformdataFilesListBuilder add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface MultipartformdataFilesBoxed permits MultipartformdataFilesBoxedList { + @Nullable Object getData(); + } + + public record MultipartformdataFilesBoxedList(MultipartformdataFilesList data) implements MultipartformdataFilesBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class MultipartformdataFiles extends JsonSchema implements ListSchemaValidator { + private static @Nullable MultipartformdataFiles instance = null; + + protected MultipartformdataFiles() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(MultipartformdataItems.class) + ); + } + + public static MultipartformdataFiles getInstance() { + if (instance == null) { + instance = new MultipartformdataFiles(); + } + return instance; + } + + @Override + public MultipartformdataFilesList getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new MultipartformdataFilesList(newInstanceItems); + } + + public MultipartformdataFilesList validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public MultipartformdataFilesBoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataFilesBoxedList(validate(arg, configuration)); + } + @Override + public MultipartformdataFilesBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { + protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "files" + ); + public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return MultipartformdataSchema1.getInstance().validate(arg, configuration); + } + + public MultipartformdataFilesList files() throws UnsetPropertyException { + String key = "files"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof MultipartformdataFilesList)) { + throw new RuntimeException("Invalid value stored for files"); + } + return (MultipartformdataFilesList) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForMultipartformdataFiles { + Map getInstance(); + T getBuilderAfterMultipartformdataFiles(Map instance); + + default T files(List value) { + var instance = getInstance(); + instance.put("files", value); + return getBuilderAfterMultipartformdataFiles(instance); + } + } + + public static class MultipartformdataSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataFiles { + private final Map instance; + private static final Set knownKeys = Set.of( + "files" + ); + public Set getKnownKeys() { + return knownKeys; + } + public MultipartformdataSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataFiles(Map instance) { + return this; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { + @Nullable Object getData(); + } + + public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable MultipartformdataSchema1 instance = null; + + protected MultipartformdataSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("files", MultipartformdataFiles.class) + )) + ); + } + + public static MultipartformdataSchema1 getInstance() { + if (instance == null) { + instance = new MultipartformdataSchema1(); + } + return instance; + } + + public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new MultipartformdataSchemaMap(castProperties); + } + + public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java new file mode 100644 index 00000000000..b2d4ff90442 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/FakeuploadfilesPostCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakeuploadfilesPostCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApiResponseSchema1Boxed body) implements SealedResponseBody { } + + public static class FakeuploadfilesPostCode200Response1 extends ResponseDeserializer { + public FakeuploadfilesPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..df28450acdb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.ApiResponseSchema; + +public class ApplicationjsonSchema extends ApiResponseSchema { + // $refed class + + + public static class ApplicationjsonSchema1 extends ApiResponseSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java new file mode 100644 index 00000000000..1f7aab70481 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/FakewildcardresponsesGet.java @@ -0,0 +1,124 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.FakewildcardresponsesGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Fakewildcardresponses; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FakewildcardresponsesGet { + private static class GetProvider { + private static final String method = "get"; + + public static FakewildcardresponsesGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Fakewildcardresponses.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FakewildcardresponsesGetResponses.FakewildcardresponsesGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakewildcardresponsesGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface WildCardResponsesOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FakewildcardresponsesGetResponses.EndpointResponse wildCardResponses(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java new file mode 100644 index 00000000000..893cf1358e5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/FakewildcardresponsesGetResponses.java @@ -0,0 +1,139 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get; + +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode1XXResponse; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode200Response; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode2XXResponse; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode3XXResponse; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode4XXResponse; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.FakewildcardresponsesGetCode5XXResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FakewildcardresponsesGetResponses { + public sealed interface EndpointResponse permits EndpointFakewildcardresponsesGetCode1XXResponse, EndpointFakewildcardresponsesGetCode2XXResponse, EndpointFakewildcardresponsesGetCode200Response, EndpointFakewildcardresponsesGetCode3XXResponse {} + + public record EndpointFakewildcardresponsesGetCode1XXResponse( + HttpResponse response, + FakewildcardresponsesGetCode1XXResponse.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public record EndpointFakewildcardresponsesGetCode2XXResponse( + HttpResponse response, + FakewildcardresponsesGetCode2XXResponse.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public record EndpointFakewildcardresponsesGetCode200Response( + HttpResponse response, + FakewildcardresponsesGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public record EndpointFakewildcardresponsesGetCode3XXResponse( + HttpResponse response, + FakewildcardresponsesGetCode3XXResponse.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusFakewildcardresponsesGetCode200ResponseDeserializer {} + + public static final class StatusFakewildcardresponsesGetCode200ResponseDeserializer extends FakewildcardresponsesGetCode200Response.FakewildcardresponsesGetCode200Response1 implements StatusCodeResponseDeserializer { + } + public sealed interface WildcardCodeResponseDeserializer permits WildcardFakewildcardresponsesGetCode1XXResponseDeserializer, WildcardFakewildcardresponsesGetCode2XXResponseDeserializer, WildcardFakewildcardresponsesGetCode3XXResponseDeserializer, WildcardFakewildcardresponsesGetCode4XXResponseDeserializer, WildcardFakewildcardresponsesGetCode5XXResponseDeserializer {} + + public static final class WildcardFakewildcardresponsesGetCode1XXResponseDeserializer extends FakewildcardresponsesGetCode1XXResponse.FakewildcardresponsesGetCode1XXResponse1 implements WildcardCodeResponseDeserializer { + } + public static final class WildcardFakewildcardresponsesGetCode2XXResponseDeserializer extends FakewildcardresponsesGetCode2XXResponse.FakewildcardresponsesGetCode2XXResponse1 implements WildcardCodeResponseDeserializer { + } + public static final class WildcardFakewildcardresponsesGetCode3XXResponseDeserializer extends FakewildcardresponsesGetCode3XXResponse.FakewildcardresponsesGetCode3XXResponse1 implements WildcardCodeResponseDeserializer { + } + public static final class WildcardFakewildcardresponsesGetCode4XXResponseDeserializer extends FakewildcardresponsesGetCode4XXResponse.FakewildcardresponsesGetCode4XXResponse1 implements WildcardCodeResponseDeserializer { + } + public static final class WildcardFakewildcardresponsesGetCode5XXResponseDeserializer extends FakewildcardresponsesGetCode5XXResponse.FakewildcardresponsesGetCode5XXResponse1 implements WildcardCodeResponseDeserializer { + } + + public static final class FakewildcardresponsesGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + private final Map wildcardCodeToResponseDeserializer; + public FakewildcardresponsesGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusFakewildcardresponsesGetCode200ResponseDeserializer()) + ); + this.wildcardCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("1", new WildcardFakewildcardresponsesGetCode1XXResponseDeserializer()), + new AbstractMap.SimpleEntry<>("2", new WildcardFakewildcardresponsesGetCode2XXResponseDeserializer()), + new AbstractMap.SimpleEntry<>("3", new WildcardFakewildcardresponsesGetCode3XXResponseDeserializer()), + new AbstractMap.SimpleEntry<>("4", new WildcardFakewildcardresponsesGetCode4XXResponseDeserializer()), + new AbstractMap.SimpleEntry<>("5", new WildcardFakewildcardresponsesGetCode5XXResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer != null) { + StatusFakewildcardresponsesGetCode200ResponseDeserializer castDeserializer = (StatusFakewildcardresponsesGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointFakewildcardresponsesGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + @Nullable WildcardCodeResponseDeserializer wildcardCodeDeserializer = wildcardCodeToResponseDeserializer.get(statusCode); + if (wildcardCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode1XXResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new FakewildcardresponsesGetCode1XXResponse.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode2XXResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new FakewildcardresponsesGetCode2XXResponse.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode3XXResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new FakewildcardresponsesGetCode3XXResponse.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else if (wildcardCodeDeserializer instanceof WildcardFakewildcardresponsesGetCode4XXResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new FakewildcardresponsesGetCode4XXResponse.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else { + WildcardFakewildcardresponsesGetCode5XXResponseDeserializer castDeserializer = (WildcardFakewildcardresponsesGetCode5XXResponseDeserializer) wildcardCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new FakewildcardresponsesGetCode5XXResponse.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java new file mode 100644 index 00000000000..9be539481c2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode1XXResponse.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code1xxresponse.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakewildcardresponsesGetCode1XXResponse { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakewildcardresponsesGetCode1XXResponse1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode1XXResponse1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java new file mode 100644 index 00000000000..6176befb30c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode200Response.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakewildcardresponsesGetCode200Response { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakewildcardresponsesGetCode200Response1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java new file mode 100644 index 00000000000..5a471b38e05 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode2XXResponse.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code2xxresponse.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakewildcardresponsesGetCode2XXResponse { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakewildcardresponsesGetCode2XXResponse1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode2XXResponse1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java new file mode 100644 index 00000000000..df2e4ea8d9d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode3XXResponse.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code3xxresponse.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakewildcardresponsesGetCode3XXResponse { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakewildcardresponsesGetCode3XXResponse1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode3XXResponse1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java new file mode 100644 index 00000000000..0c46483284c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode4XXResponse.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code4xxresponse.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakewildcardresponsesGetCode4XXResponse { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakewildcardresponsesGetCode4XXResponse1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode4XXResponse1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java new file mode 100644 index 00000000000..f4c919e3ded --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/FakewildcardresponsesGetCode5XXResponse.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code5xxresponse.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FakewildcardresponsesGetCode5XXResponse { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.AnyTypeJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FakewildcardresponsesGetCode5XXResponse1 extends ResponseDeserializer { + public FakewildcardresponsesGetCode5XXResponse1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..bc6d5118003 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code1xxresponse.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..7e12b7b922a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code200response.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..a5d19b2fa85 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code2xxresponse.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..3b4a18033e7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code3xxresponse.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..346bbf338f9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code4xxresponse.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..6b9394e4858 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.code5xxresponse.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; + +public class ApplicationjsonSchema extends AnyTypeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends AnyTypeJsonSchema.AnyTypeJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java new file mode 100644 index 00000000000..e5828e4cfe5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/FooGet.java @@ -0,0 +1,124 @@ +package org.openapijsonschematools.client.paths.foo; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; +import org.openapijsonschematools.client.paths.foo.get.FooGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Foo; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class FooGet { + private static class GetProvider { + private static final String method = "get"; + + public static FooGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Foo.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new FooGetResponses.FooGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FooGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface FooGetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default FooGetResponses.EndpointResponse fooGet(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public FooGetServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(FooGetServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java new file mode 100644 index 00000000000..c447c27c206 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetResponses.java @@ -0,0 +1,37 @@ +package org.openapijsonschematools.client.paths.foo.get; + +import org.openapijsonschematools.client.paths.foo.get.responses.FooGetCodedefaultResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class FooGetResponses { + public sealed interface EndpointResponse permits EndpointFooGetCodedefaultResponse {} + + public record EndpointFooGetCodedefaultResponse( + HttpResponse response, + FooGetCodedefaultResponse.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public static final class FooGetResponses1 implements ResponsesDeserializer { + private final FooGetCodedefaultResponse.FooGetCodedefaultResponse1 defaultResponseDeserializer; + public FooGetResponses1() { + this.defaultResponseDeserializer = new FooGetCodedefaultResponse.FooGetCodedefaultResponse1(); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); + return new EndpointFooGetCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java new file mode 100644 index 00000000000..ca1bc261831 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.foo.get; + +import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer0; +import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer1; +import org.openapijsonschematools.client.servers.Server; +import org.openapijsonschematools.client.servers.ServerProvider; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.util.Objects; + +public class FooGetServerInfo { + public static class FooGetServerInfo1 implements ServerProvider { + private final FooGetServer0 server0; + private final FooGetServer1 server1; + + FooGetServerInfo1( + @Nullable FooGetServer0 server0, + @Nullable FooGetServer1 server1 + ) { + this.server0 = Objects.requireNonNullElseGet(server0, FooGetServer0::new); + this.server1 = Objects.requireNonNullElseGet(server1, FooGetServer1::new); + } + + @Override + public Server getServer(ServerIndex serverIndex) { + switch (serverIndex) { + case SERVER_0: + return server0; + default: + return server1; + } + } + } + + public static class FooGetServerInfoBuilder { + private @Nullable FooGetServer0 server0; + private @Nullable FooGetServer1 server1; + + public FooGetServerInfoBuilder() {} + + public FooGetServerInfoBuilder fooGetServer0(FooGetServer0 server0) { + this.server0 = server0; + return this; + } + + public FooGetServerInfoBuilder fooGetServer1(FooGetServer1 server1) { + this.server1 = server1; + return this; + } + + public FooGetServerInfo1 build() { + return new FooGetServerInfo1( + server0, + server1 + ); + } + } + + public enum ServerIndex { + SERVER_0, + SERVER_1 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java new file mode 100644 index 00000000000..8d43ab82cfb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/FooGetCodedefaultResponse.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.foo.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.foo.get.responses.codedefaultresponse.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class FooGetCodedefaultResponse { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationjsonResponseBody {} + public record ApplicationjsonResponseBody(ApplicationjsonSchema.ApplicationjsonSchema1Boxed body) implements SealedResponseBody { } + + public static class FooGetCodedefaultResponse1 extends ResponseDeserializer { + public FooGetCodedefaultResponse1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..8c8442fee2b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,179 @@ +package org.openapijsonschematools.client.paths.foo.get.responses.codedefaultresponse.content.applicationjson; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Foo; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class ApplicationjsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchemaMap extends FrozenMap<@Nullable Object> { + protected ApplicationjsonSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "string" + ); + public static ApplicationjsonSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return ApplicationjsonSchema1.getInstance().validate(arg, configuration); + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForApplicationjsonString { + Map getInstance(); + T getBuilderAfterApplicationjsonString(Map instance); + + default T setString(Map value) { + var instance = getInstance(); + instance.put("string", value); + return getBuilderAfterApplicationjsonString(instance); + } + } + + public static class ApplicationjsonSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForApplicationjsonString { + private final Map instance; + private static final Set knownKeys = Set.of( + "string" + ); + public Set getKnownKeys() { + return knownKeys; + } + public ApplicationjsonSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public ApplicationjsonSchemaMapBuilder getBuilderAfterApplicationjsonString(Map instance) { + return this; + } + public ApplicationjsonSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface ApplicationjsonSchema1Boxed permits ApplicationjsonSchema1BoxedMap { + @Nullable Object getData(); + } + + public record ApplicationjsonSchema1BoxedMap(ApplicationjsonSchemaMap data) implements ApplicationjsonSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class ApplicationjsonSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable ApplicationjsonSchema1 instance = null; + + protected ApplicationjsonSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("string", Foo.Foo1.class) + )) + ); + } + + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + + public ApplicationjsonSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new ApplicationjsonSchemaMap(castProperties); + } + + public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationjsonSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationjsonSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public ApplicationjsonSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java new file mode 100644 index 00000000000..1ea6b69b607 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer0.java @@ -0,0 +1,9 @@ +package org.openapijsonschematools.client.paths.foo.get.servers; + +import org.openapijsonschematools.client.servers.ServerWithoutVariables; + +public class FooGetServer0 extends ServerWithoutVariables { + public FooGetServer0() { + super("https://path-server-test.petstore.local/v2"); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java new file mode 100644 index 00000000000..06657dc917f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java @@ -0,0 +1,35 @@ +package org.openapijsonschematools.client.paths.foo.get.servers; + +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.servers.ServerWithVariables; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.paths.foo.get.servers.server1.FooGetServer1Variables; + +import java.util.AbstractMap; + +public class FooGetServer1 extends ServerWithVariables { + private static FooGetServer1Variables.VariablesMap getVariables() { + try { + return FooGetServer1Variables.FooGetServer1Variables1.getInstance().validate( + MapUtils.makeMap( + new AbstractMap.SimpleEntry<>("version", FooGetServer1Variables.Version.getInstance().defaultValue()) + ), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) + ); + } catch (ValidationException e) { + throw new RuntimeException(e); + } + } + + public FooGetServer1() { + super( + "https://petstore.swagger.io/{version}", + getVariables() + ); + } + public FooGetServer1(FooGetServer1Variables.VariablesMap variables) { + super("https://petstore.swagger.io/{version}", variables); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/FooGetServer1Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/FooGetServer1Variables.java new file mode 100644 index 00000000000..35368a77bd1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/FooGetServer1Variables.java @@ -0,0 +1,313 @@ +package org.openapijsonschematools.client.paths.foo.get.servers.server1; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class FooGetServer1Variables { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + public enum StringVersionEnums implements StringValueMethod { + V1("v1"), + V2("v2"); + private final String value; + + StringVersionEnums(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface VersionBoxed permits VersionBoxedString { + @Nullable Object getData(); + } + + public record VersionBoxedString(String data) implements VersionBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Version instance = null; + + protected Version() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "v1", + "v2" + )) + .defaultValue("v1") + ); + } + + public static Version getInstance() { + if (instance == null) { + instance = new Version(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new VersionBoxedString(validate(arg, configuration)); + } + @Override + public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class VariablesMap extends FrozenMap { + protected VariablesMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "version" + ); + public static final Set optionalKeys = Set.of(); + public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return FooGetServer1Variables1.getInstance().validate(arg, configuration); + } + + public String version() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForVersion { + Map getInstance(); + T getBuilderAfterVersion(Map instance); + + default T version(String value) { + var instance = getInstance(); + instance.put("version", value); + return getBuilderAfterVersion(instance); + } + + default T version(StringVersionEnums value) { + var instance = getInstance(); + instance.put("version", value.value()); + return getBuilderAfterVersion(instance); + } + } + + public static class VariablesMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "version" + ); + public Set getKnownKeys() { + return knownKeys; + } + public VariablesMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class VariablesMapBuilder implements SetterForVersion { + private final Map instance; + public VariablesMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public VariablesMap0Builder getBuilderAfterVersion(Map instance) { + return new VariablesMap0Builder(instance); + } + } + + + public sealed interface FooGetServer1Variables1Boxed permits FooGetServer1Variables1BoxedMap { + @Nullable Object getData(); + } + + public record FooGetServer1Variables1BoxedMap(VariablesMap data) implements FooGetServer1Variables1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class FooGetServer1Variables1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable FooGetServer1Variables1 instance = null; + + protected FooGetServer1Variables1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("version", Version.class) + )) + .required(Set.of( + "version" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static FooGetServer1Variables1 getInstance() { + if (instance == null) { + instance = new FooGetServer1Variables1(); + } + return instance; + } + + public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new VariablesMap(castProperties); + } + + public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public FooGetServer1Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new FooGetServer1Variables1BoxedMap(validate(arg, configuration)); + } + @Override + public FooGetServer1Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java new file mode 100644 index 00000000000..1f9d0dc8431 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPost.java @@ -0,0 +1,215 @@ +package org.openapijsonschematools.client.paths.pet; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; +import org.openapijsonschematools.client.paths.pet.post.PetPostRequestBody; +import org.openapijsonschematools.client.paths.pet.post.PetPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Pet; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class PetPost { + private static class PostProvider extends AuthApplier { + private static final String method = "post"; + + public static PetPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new PetPostRequestBody.PetPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + Pet.path, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + Pet.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new PetPostResponses.PetPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default PetPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface AddPetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default PetPostResponses.EndpointResponse addPet(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public PetPostRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public PostRequest( + PetPostRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + PetPostSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public PetPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetPostSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + PostNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PostNullableRequest instance); + default T securityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(PetPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Post0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + requestBody, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForRequestBody { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java new file mode 100644 index 00000000000..2fbf38a193b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/PetPut.java @@ -0,0 +1,214 @@ +package org.openapijsonschematools.client.paths.pet; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; +import org.openapijsonschematools.client.paths.pet.put.PetPutRequestBody; +import org.openapijsonschematools.client.paths.pet.put.PetPutResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Pet; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class PetPut { + private static class PutProvider extends AuthApplier { + private static final String method = "put"; + + public static Void put( + PutRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new PetPutRequestBody.PetPutRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + Pet.path, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + Pet.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + return (Void) null; + } + } + + public interface PutOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Void put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface UpdatePetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Void updatePet(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Put extends ApiClient implements PutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PutRequest { + public PetPutRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public PutRequest( + PetPutRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + PetPutSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class PutNullableRequest { + public PetPutRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetPutSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PutNullableRequest getInstance(); + T getBuilderAfterServerIndex(PutNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + PutNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PutNullableRequest instance); + default T securityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + PutNullableRequest getInstance(); + T getBuilderAfterTimeout(PutNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PutNullableRequest getInstance(); + T getBuilderAfterRequestBody(PutNullableRequest instance); + default T requestBody(PetPutRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Put0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final PutNullableRequest instance; + + public Put0RequestBuilder(PutNullableRequest instance) { + this.instance = instance; + } + + public PutRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PutRequest( + requestBody, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put0RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + return this; + } + + public Put0RequestBuilder getBuilderAfterSecurityIndex(PutNullableRequest instance) { + return this; + } + + public Put0RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + return this; + } + } + public static class PutRequestBuilder implements SetterForRequestBody { + private final PutNullableRequest instance; + + public PutRequestBuilder() { + this.instance = new PutNullableRequest(); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put0RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + return new Put0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java new file mode 100644 index 00000000000..f2304ccf791 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostRequestBody.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.pet.post; + +import org.openapijsonschematools.client.components.requestbodies.Pet; + +public class PetPostRequestBody extends Pet { + public static class PetPostRequestBody1 extends Pet1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java new file mode 100644 index 00000000000..b5a6f364f9c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostResponses.java @@ -0,0 +1,66 @@ +package org.openapijsonschematools.client.paths.pet.post; + +import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode200Response; +import org.openapijsonschematools.client.paths.pet.post.responses.PetPostCode405Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class PetPostResponses { + public sealed interface EndpointResponse permits EndpointPetPostCode200Response {} + + public record EndpointPetPostCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusPetPostCode200ResponseDeserializer, StatusPetPostCode405ResponseDeserializer {} + + public static final class StatusPetPostCode200ResponseDeserializer extends PetPostCode200Response.PetPostCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusPetPostCode405ResponseDeserializer extends PetPostCode405Response.PetPostCode405Response1 implements StatusCodeResponseDeserializer { + } + + public static final class PetPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public PetPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusPetPostCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("405", new StatusPetPostCode405ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusPetPostCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointPetPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else { + StatusPetPostCode405ResponseDeserializer castDeserializer = (StatusPetPostCode405ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new PetPostCode405Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java new file mode 100644 index 00000000000..91df6b3f3e8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java @@ -0,0 +1,39 @@ +package org.openapijsonschematools.client.paths.pet.post; + +import org.openapijsonschematools.client.paths.pet.post.security.PetPostSecurityRequirementObject0; +import org.openapijsonschematools.client.paths.pet.post.security.PetPostSecurityRequirementObject1; +import org.openapijsonschematools.client.paths.pet.post.security.PetPostSecurityRequirementObject2; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class PetPostSecurityInfo { + public static class PetPostSecurityInfo1 implements SecurityRequirementObjectProvider { + public final PetPostSecurityRequirementObject0 security0; + public final PetPostSecurityRequirementObject1 security1; + public final PetPostSecurityRequirementObject2 security2; + + public PetPostSecurityInfo1() { + security0 = new PetPostSecurityRequirementObject0(); + security1 = new PetPostSecurityRequirementObject1(); + security2 = new PetPostSecurityRequirementObject2(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + switch (securityIndex) { + case SECURITY_0: + return security0; + case SECURITY_1: + return security1; + default: + return security2; + } + } + } + + public enum SecurityIndex { + SECURITY_0, + SECURITY_1, + SECURITY_2 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java new file mode 100644 index 00000000000..d32f61af7bc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.pet.post.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class PetPostCode200Response extends SuccessDescriptionOnly { + public static class PetPostCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java new file mode 100644 index 00000000000..30ed877e1b3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/responses/PetPostCode405Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.pet.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetPostCode405Response { + + public static class PetPostCode405Response1 extends ResponseDeserializer { + public PetPostCode405Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java new file mode 100644 index 00000000000..b1e63c8cdde --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.pet.post.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetPostSecurityRequirementObject0 extends SecurityRequirementObject { + + public PetPostSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + ApiKey.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java new file mode 100644 index 00000000000..3d9d95fe223 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject1.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.pet.post.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetPostSecurityRequirementObject1 extends SecurityRequirementObject { + + public PetPostSecurityRequirementObject1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + HttpSignatureTest.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java new file mode 100644 index 00000000000..81ac4bb60b1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/security/PetPostSecurityRequirementObject2.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.pet.post.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetPostSecurityRequirementObject2 extends SecurityRequirementObject { + + public PetPostSecurityRequirementObject2() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + PetstoreAuth.class, + List.of("write:pets", "read:pets") + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java new file mode 100644 index 00000000000..4faecd10dc9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutRequestBody.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.pet.put; + +import org.openapijsonschematools.client.components.requestbodies.Pet; + +public class PetPutRequestBody extends Pet { + public static class PetPutRequestBody1 extends Pet1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java new file mode 100644 index 00000000000..a8e998184ef --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutResponses.java @@ -0,0 +1,72 @@ +package org.openapijsonschematools.client.paths.pet.put; + +import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode400Response; +import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode404Response; +import org.openapijsonschematools.client.paths.pet.put.responses.PetPutCode405Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class PetPutResponses { + + public sealed interface StatusCodeResponseDeserializer permits StatusPetPutCode400ResponseDeserializer, StatusPetPutCode404ResponseDeserializer, StatusPetPutCode405ResponseDeserializer {} + + public static final class StatusPetPutCode400ResponseDeserializer extends PetPutCode400Response.PetPutCode400Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusPetPutCode404ResponseDeserializer extends PetPutCode404Response.PetPutCode404Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusPetPutCode405ResponseDeserializer extends PetPutCode405Response.PetPutCode405Response1 implements StatusCodeResponseDeserializer { + } + + public static final class PetPutResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public PetPutResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("400", new StatusPetPutCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusPetPutCode404ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("405", new StatusPetPutCode405ResponseDeserializer()) + ); + } + + public Void deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusPetPutCode400ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new PetPutCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else if (statusCodeDeserializer instanceof StatusPetPutCode404ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new PetPutCode404Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else { + StatusPetPutCode405ResponseDeserializer castDeserializer = (StatusPetPutCode405ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new PetPutCode405Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java new file mode 100644 index 00000000000..35d27e66846 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.paths.pet.put; + +import org.openapijsonschematools.client.paths.pet.put.security.PetPutSecurityRequirementObject0; +import org.openapijsonschematools.client.paths.pet.put.security.PetPutSecurityRequirementObject1; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class PetPutSecurityInfo { + public static class PetPutSecurityInfo1 implements SecurityRequirementObjectProvider { + public final PetPutSecurityRequirementObject0 security0; + public final PetPutSecurityRequirementObject1 security1; + + public PetPutSecurityInfo1() { + security0 = new PetPutSecurityRequirementObject0(); + security1 = new PetPutSecurityRequirementObject1(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + switch (securityIndex) { + case SECURITY_0: + return security0; + default: + return security1; + } + } + } + + public enum SecurityIndex { + SECURITY_0, + SECURITY_1 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java new file mode 100644 index 00000000000..f67abd8a562 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.pet.put.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetPutCode400Response { + + public static class PetPutCode400Response1 extends ResponseDeserializer { + public PetPutCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java new file mode 100644 index 00000000000..caa7f0ab930 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode404Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.pet.put.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetPutCode404Response { + + public static class PetPutCode404Response1 extends ResponseDeserializer { + public PetPutCode404Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java new file mode 100644 index 00000000000..117fd9b4d99 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/responses/PetPutCode405Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.pet.put.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetPutCode405Response { + + public static class PetPutCode405Response1 extends ResponseDeserializer { + public PetPutCode405Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java new file mode 100644 index 00000000000..e1e15505dca --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.pet.put.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetPutSecurityRequirementObject0 extends SecurityRequirementObject { + + public PetPutSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + HttpSignatureTest.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java new file mode 100644 index 00000000000..e2264fa535c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/security/PetPutSecurityRequirementObject1.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.pet.put.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetPutSecurityRequirementObject1 extends SecurityRequirementObject { + + public PetPutSecurityRequirementObject1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + PetstoreAuth.class, + List.of("write:pets", "read:pets") + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java new file mode 100644 index 00000000000..d4b8b02fa41 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusGet.java @@ -0,0 +1,212 @@ +package org.openapijsonschematools.client.paths.petfindbystatus; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; +import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetSecurityInfo; +import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetQueryParameters; +import org.openapijsonschematools.client.paths.petfindbystatus.get.Parameters; +import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Petfindbystatus; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class PetfindbystatusGet { + private static class GetProvider extends AuthApplier { + private static final String method = "get"; + + public static PetfindbystatusGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + Petfindbystatus.path, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + Petfindbystatus.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new PetfindbystatusGetResponses.PetfindbystatusGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default PetfindbystatusGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface FindPetsByStatusOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default PetfindbystatusGetResponses.EndpointResponse findPetsByStatus(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters; + public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; + public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public GetRequest( + PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters, + PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex, + PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.queryParameters = queryParameters; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class GetNullableRequest { + public PetfindbystatusGetQueryParameters.@Nullable QueryParametersMap queryParameters; + public PetfindbystatusServerInfo.@Nullable ServerIndex serverIndex; + public PetfindbystatusGetSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetNullableRequest getInstance(); + T getBuilderAfterServerIndex(GetNullableRequest instance); + default T serverIndex(PetfindbystatusServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + GetNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(GetNullableRequest instance); + default T securityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + GetNullableRequest getInstance(); + T getBuilderAfterTimeout(GetNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForQueryParameters { + GetNullableRequest getInstance(); + T getBuilderAfterQueryParameters(GetNullableRequest instance); + default T queryParameters(PetfindbystatusGetQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final GetNullableRequest instance; + + public Get0RequestBuilder(GetNullableRequest instance) { + this.instance = instance; + } + + public GetRequest build() { + var queryParameters = instance.queryParameters; + if (queryParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new GetRequest( + queryParameters, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + return this; + } + } + public static class GetRequestBuilder implements SetterForQueryParameters { + private final GetNullableRequest instance; + + public GetRequestBuilder() { + this.instance = new GetNullableRequest(); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { + return new Get0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java new file mode 100644 index 00000000000..e0ed6efd6f2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java @@ -0,0 +1,63 @@ +package org.openapijsonschematools.client.paths.petfindbystatus; + +import org.openapijsonschematools.client.paths.petfindbystatus.servers.PetfindbystatusServer0; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.PetfindbystatusServer1; +import org.openapijsonschematools.client.servers.Server; +import org.openapijsonschematools.client.servers.ServerProvider; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.util.Objects; + +public class PetfindbystatusServerInfo { + public static class PetfindbystatusServerInfo1 implements ServerProvider { + private final PetfindbystatusServer0 server0; + private final PetfindbystatusServer1 server1; + + PetfindbystatusServerInfo1( + @Nullable PetfindbystatusServer0 server0, + @Nullable PetfindbystatusServer1 server1 + ) { + this.server0 = Objects.requireNonNullElseGet(server0, PetfindbystatusServer0::new); + this.server1 = Objects.requireNonNullElseGet(server1, PetfindbystatusServer1::new); + } + + @Override + public Server getServer(ServerIndex serverIndex) { + switch (serverIndex) { + case SERVER_0: + return server0; + default: + return server1; + } + } + } + + public static class PetfindbystatusServerInfoBuilder { + private @Nullable PetfindbystatusServer0 server0; + private @Nullable PetfindbystatusServer1 server1; + + public PetfindbystatusServerInfoBuilder() {} + + public PetfindbystatusServerInfoBuilder petfindbystatusServer0(PetfindbystatusServer0 server0) { + this.server0 = server0; + return this; + } + + public PetfindbystatusServerInfoBuilder petfindbystatusServer1(PetfindbystatusServer1 server1) { + this.server1 = server1; + return this; + } + + public PetfindbystatusServerInfo1 build() { + return new PetfindbystatusServerInfo1( + server0, + server1 + ); + } + } + + public enum ServerIndex { + SERVER_0, + SERVER_1 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java new file mode 100644 index 00000000000..e1ac9de45c5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get; + +import org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("status", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java new file mode 100644 index 00000000000..903dcda7c49 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetQueryParameters.java @@ -0,0 +1,206 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class PetfindbystatusGetQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "status" + ); + public static final Set optionalKeys = Set.of(); + public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + return PetfindbystatusGetQueryParameters1.getInstance().validate(arg, configuration); + } + + public Schema0.SchemaList0 status() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForStatus { + Map> getInstance(); + T getBuilderAfterStatus(Map> instance); + + default T status(List value) { + var instance = getInstance(); + instance.put("status", value); + return getBuilderAfterStatus(instance); + } + } + + public static class QueryParametersMap0Builder implements GenericBuilder>> { + private final Map> instance; + private static final Set knownKeys = Set.of( + "status" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMap0Builder(Map> instance) { + this.instance = instance; + } + public Map> build() { + return instance; + } + } + + public static class QueryParametersMapBuilder implements SetterForStatus { + private final Map> instance; + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map> getInstance() { + return instance; + } + public QueryParametersMap0Builder getBuilderAfterStatus(Map> instance) { + return new QueryParametersMap0Builder(instance); + } + } + + + public sealed interface PetfindbystatusGetQueryParameters1Boxed permits PetfindbystatusGetQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record PetfindbystatusGetQueryParameters1BoxedMap(QueryParametersMap data) implements PetfindbystatusGetQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class PetfindbystatusGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetfindbystatusGetQueryParameters1 instance = null; + + protected PetfindbystatusGetQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("status", Schema0.Schema01.class) + )) + .required(Set.of( + "status" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static PetfindbystatusGetQueryParameters1 getInstance() { + if (instance == null) { + instance = new PetfindbystatusGetQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Schema0.SchemaList0)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (Schema0.SchemaList0) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public PetfindbystatusGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetfindbystatusGetQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public PetfindbystatusGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java new file mode 100644 index 00000000000..c4507e80287 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetResponses.java @@ -0,0 +1,66 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get; + +import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.PetfindbystatusGetCode200Response; +import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.PetfindbystatusGetCode400Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class PetfindbystatusGetResponses { + public sealed interface EndpointResponse permits EndpointPetfindbystatusGetCode200Response {} + + public record EndpointPetfindbystatusGetCode200Response( + HttpResponse response, + PetfindbystatusGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusPetfindbystatusGetCode200ResponseDeserializer, StatusPetfindbystatusGetCode400ResponseDeserializer {} + + public static final class StatusPetfindbystatusGetCode200ResponseDeserializer extends PetfindbystatusGetCode200Response.PetfindbystatusGetCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusPetfindbystatusGetCode400ResponseDeserializer extends PetfindbystatusGetCode400Response.PetfindbystatusGetCode400Response1 implements StatusCodeResponseDeserializer { + } + + public static final class PetfindbystatusGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public PetfindbystatusGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusPetfindbystatusGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusPetfindbystatusGetCode400ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusPetfindbystatusGetCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointPetfindbystatusGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else { + StatusPetfindbystatusGetCode400ResponseDeserializer castDeserializer = (StatusPetfindbystatusGetCode400ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new PetfindbystatusGetCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java new file mode 100644 index 00000000000..7e2dd18d844 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java @@ -0,0 +1,39 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get; + +import org.openapijsonschematools.client.paths.petfindbystatus.get.security.PetfindbystatusGetSecurityRequirementObject0; +import org.openapijsonschematools.client.paths.petfindbystatus.get.security.PetfindbystatusGetSecurityRequirementObject1; +import org.openapijsonschematools.client.paths.petfindbystatus.get.security.PetfindbystatusGetSecurityRequirementObject2; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class PetfindbystatusGetSecurityInfo { + public static class PetfindbystatusGetSecurityInfo1 implements SecurityRequirementObjectProvider { + public final PetfindbystatusGetSecurityRequirementObject0 security0; + public final PetfindbystatusGetSecurityRequirementObject1 security1; + public final PetfindbystatusGetSecurityRequirementObject2 security2; + + public PetfindbystatusGetSecurityInfo1() { + security0 = new PetfindbystatusGetSecurityRequirementObject0(); + security1 = new PetfindbystatusGetSecurityRequirementObject1(); + security2 = new PetfindbystatusGetSecurityRequirementObject2(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + switch (securityIndex) { + case SECURITY_0: + return security0; + case SECURITY_1: + return security1; + default: + return security2; + } + } + } + + public enum SecurityIndex { + SECURITY_0, + SECURITY_1, + SECURITY_2 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java new file mode 100644 index 00000000000..b77d3c07561 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "status", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..43ff824d739 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java @@ -0,0 +1,255 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get.parameters.parameter0; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema0 { + // nest classes so all schemas and input/output classes can be public + + public enum StringItemsEnums0 implements StringValueMethod { + AVAILABLE("available"), + PENDING("pending"), + SOLD("sold"); + private final String value; + + StringItemsEnums0(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface Items0Boxed permits Items0BoxedString { + @Nullable Object getData(); + } + + public record Items0BoxedString(String data) implements Items0Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Items0 extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Items0 instance = null; + + protected Items0() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "available", + "pending", + "sold" + )) + .defaultValue("available") + ); + } + + public static Items0 getInstance() { + if (instance == null) { + instance = new Items0(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringItemsEnums0 arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public Items0BoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new Items0BoxedString(validate(arg, configuration)); + } + @Override + public Items0Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class SchemaList0 extends FrozenList { + protected SchemaList0(FrozenList m) { + super(m); + } + public static SchemaList0 of(List arg, SchemaConfiguration configuration) throws ValidationException { + return Schema01.getInstance().validate(arg, configuration); + } + } + + public static class SchemaListBuilder0 { + // class to build List + private final List list; + + public SchemaListBuilder0() { + list = new ArrayList<>(); + } + + public SchemaListBuilder0(List list) { + this.list = list; + } + + public SchemaListBuilder0 add(String item) { + list.add(item); + return this; + } + + public SchemaListBuilder0 add(StringItemsEnums0 item) { + list.add(item.value()); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface Schema01Boxed permits Schema01BoxedList { + @Nullable Object getData(); + } + + public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema01 extends JsonSchema implements ListSchemaValidator { + private static @Nullable Schema01 instance = null; + + protected Schema01() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(Items0.class) + ); + } + + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + + @Override + public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new SchemaList0(newInstanceItems); + } + + public SchemaList0 validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedList(validate(arg, configuration)); + } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.java new file mode 100644 index 00000000000..824d60a6907 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessfulXmlAndJsonArrayOfPet; + +public class PetfindbystatusGetCode200Response extends SuccessfulXmlAndJsonArrayOfPet { + public static class PetfindbystatusGetCode200Response1 extends SuccessfulXmlAndJsonArrayOfPet1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java new file mode 100644 index 00000000000..d05bfe4df56 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/responses/PetfindbystatusGetCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetfindbystatusGetCode400Response { + + public static class PetfindbystatusGetCode400Response1 extends ResponseDeserializer { + public PetfindbystatusGetCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java new file mode 100644 index 00000000000..0f8bcbc46b0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetfindbystatusGetSecurityRequirementObject0 extends SecurityRequirementObject { + + public PetfindbystatusGetSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + ApiKey.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java new file mode 100644 index 00000000000..d96864b78a1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetfindbystatusGetSecurityRequirementObject1 extends SecurityRequirementObject { + + public PetfindbystatusGetSecurityRequirementObject1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + HttpSignatureTest.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java new file mode 100644 index 00000000000..d5da83b6640 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.get.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetfindbystatusGetSecurityRequirementObject2 extends SecurityRequirementObject { + + public PetfindbystatusGetSecurityRequirementObject2() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + PetstoreAuth.class, + List.of("write:pets", "read:pets") + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer0.java new file mode 100644 index 00000000000..d548b1da5db --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer0.java @@ -0,0 +1,9 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.servers; + +import org.openapijsonschematools.client.servers.ServerWithoutVariables; + +public class PetfindbystatusServer0 extends ServerWithoutVariables { + public PetfindbystatusServer0() { + super("https://path-server-test.petstore.local/v2"); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java new file mode 100644 index 00000000000..5d73d07d98b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java @@ -0,0 +1,35 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.servers; + +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.servers.ServerWithVariables; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.PetfindbystatusServer1Variables; + +import java.util.AbstractMap; + +public class PetfindbystatusServer1 extends ServerWithVariables { + private static PetfindbystatusServer1Variables.VariablesMap getVariables() { + try { + return PetfindbystatusServer1Variables.PetfindbystatusServer1Variables1.getInstance().validate( + MapUtils.makeMap( + new AbstractMap.SimpleEntry<>("version", PetfindbystatusServer1Variables.Version.getInstance().defaultValue()) + ), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) + ); + } catch (ValidationException e) { + throw new RuntimeException(e); + } + } + + public PetfindbystatusServer1() { + super( + "https://petstore.swagger.io/{version}", + getVariables() + ); + } + public PetfindbystatusServer1(PetfindbystatusServer1Variables.VariablesMap variables) { + super("https://petstore.swagger.io/{version}", variables); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.java new file mode 100644 index 00000000000..73133822702 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/PetfindbystatusServer1Variables.java @@ -0,0 +1,313 @@ +package org.openapijsonschematools.client.paths.petfindbystatus.servers.server1; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class PetfindbystatusServer1Variables { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + public enum StringVersionEnums implements StringValueMethod { + V1("v1"), + V2("v2"); + private final String value; + + StringVersionEnums(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface VersionBoxed permits VersionBoxedString { + @Nullable Object getData(); + } + + public record VersionBoxedString(String data) implements VersionBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Version instance = null; + + protected Version() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "v1", + "v2" + )) + .defaultValue("v1") + ); + } + + public static Version getInstance() { + if (instance == null) { + instance = new Version(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new VersionBoxedString(validate(arg, configuration)); + } + @Override + public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class VariablesMap extends FrozenMap { + protected VariablesMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "version" + ); + public static final Set optionalKeys = Set.of(); + public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetfindbystatusServer1Variables1.getInstance().validate(arg, configuration); + } + + public String version() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForVersion { + Map getInstance(); + T getBuilderAfterVersion(Map instance); + + default T version(String value) { + var instance = getInstance(); + instance.put("version", value); + return getBuilderAfterVersion(instance); + } + + default T version(StringVersionEnums value) { + var instance = getInstance(); + instance.put("version", value.value()); + return getBuilderAfterVersion(instance); + } + } + + public static class VariablesMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "version" + ); + public Set getKnownKeys() { + return knownKeys; + } + public VariablesMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class VariablesMapBuilder implements SetterForVersion { + private final Map instance; + public VariablesMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public VariablesMap0Builder getBuilderAfterVersion(Map instance) { + return new VariablesMap0Builder(instance); + } + } + + + public sealed interface PetfindbystatusServer1Variables1Boxed permits PetfindbystatusServer1Variables1BoxedMap { + @Nullable Object getData(); + } + + public record PetfindbystatusServer1Variables1BoxedMap(VariablesMap data) implements PetfindbystatusServer1Variables1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class PetfindbystatusServer1Variables1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetfindbystatusServer1Variables1 instance = null; + + protected PetfindbystatusServer1Variables1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("version", Version.class) + )) + .required(Set.of( + "version" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static PetfindbystatusServer1Variables1 getInstance() { + if (instance == null) { + instance = new PetfindbystatusServer1Variables1(); + } + return instance; + } + + public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new VariablesMap(castProperties); + } + + public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public PetfindbystatusServer1Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetfindbystatusServer1Variables1BoxedMap(validate(arg, configuration)); + } + @Override + public PetfindbystatusServer1Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java new file mode 100644 index 00000000000..d747aca39f8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/PetfindbytagsGet.java @@ -0,0 +1,212 @@ +package org.openapijsonschematools.client.paths.petfindbytags; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetSecurityInfo; +import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetQueryParameters; +import org.openapijsonschematools.client.paths.petfindbytags.get.Parameters; +import org.openapijsonschematools.client.paths.petfindbytags.get.PetfindbytagsGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Petfindbytags; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class PetfindbytagsGet { + private static class GetProvider extends AuthApplier { + private static final String method = "get"; + + public static PetfindbytagsGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + Petfindbytags.path, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + Petfindbytags.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new PetfindbytagsGetResponses.PetfindbytagsGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default PetfindbytagsGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface FindPetsByTagsOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default PetfindbytagsGetResponses.EndpointResponse findPetsByTags(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public GetRequest( + PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.queryParameters = queryParameters; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class GetNullableRequest { + public PetfindbytagsGetQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetfindbytagsGetSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetNullableRequest getInstance(); + T getBuilderAfterServerIndex(GetNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + GetNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(GetNullableRequest instance); + default T securityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + GetNullableRequest getInstance(); + T getBuilderAfterTimeout(GetNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForQueryParameters { + GetNullableRequest getInstance(); + T getBuilderAfterQueryParameters(GetNullableRequest instance); + default T queryParameters(PetfindbytagsGetQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final GetNullableRequest instance; + + public Get0RequestBuilder(GetNullableRequest instance) { + this.instance = instance; + } + + public GetRequest build() { + var queryParameters = instance.queryParameters; + if (queryParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new GetRequest( + queryParameters, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + return this; + } + } + public static class GetRequestBuilder implements SetterForQueryParameters { + private final GetNullableRequest instance; + + public GetRequestBuilder() { + this.instance = new GetNullableRequest(); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { + return new Get0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Parameters.java new file mode 100644 index 00000000000..5974cc73733 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get; + +import org.openapijsonschematools.client.paths.petfindbytags.get.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("tags", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java new file mode 100644 index 00000000000..39aba0ed1c6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetQueryParameters.java @@ -0,0 +1,206 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.petfindbytags.get.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class PetfindbytagsGetQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap { + protected QueryParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "tags" + ); + public static final Set optionalKeys = Set.of(); + public static QueryParametersMap of(Map> arg, SchemaConfiguration configuration) throws ValidationException { + return PetfindbytagsGetQueryParameters1.getInstance().validate(arg, configuration); + } + + public Schema0.SchemaList0 tags() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForTags { + Map> getInstance(); + T getBuilderAfterTags(Map> instance); + + default T tags(List value) { + var instance = getInstance(); + instance.put("tags", value); + return getBuilderAfterTags(instance); + } + } + + public static class QueryParametersMap0Builder implements GenericBuilder>> { + private final Map> instance; + private static final Set knownKeys = Set.of( + "tags" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMap0Builder(Map> instance) { + this.instance = instance; + } + public Map> build() { + return instance; + } + } + + public static class QueryParametersMapBuilder implements SetterForTags { + private final Map> instance; + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map> getInstance() { + return instance; + } + public QueryParametersMap0Builder getBuilderAfterTags(Map> instance) { + return new QueryParametersMap0Builder(instance); + } + } + + + public sealed interface PetfindbytagsGetQueryParameters1Boxed permits PetfindbytagsGetQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record PetfindbytagsGetQueryParameters1BoxedMap(QueryParametersMap data) implements PetfindbytagsGetQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class PetfindbytagsGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetfindbytagsGetQueryParameters1 instance = null; + + protected PetfindbytagsGetQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("tags", Schema0.Schema01.class) + )) + .required(Set.of( + "tags" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static PetfindbytagsGetQueryParameters1 getInstance() { + if (instance == null) { + instance = new PetfindbytagsGetQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Schema0.SchemaList0)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (Schema0.SchemaList0) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public PetfindbytagsGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetfindbytagsGetQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public PetfindbytagsGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java new file mode 100644 index 00000000000..9129f784d43 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetResponses.java @@ -0,0 +1,66 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get; + +import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode200Response; +import org.openapijsonschematools.client.paths.petfindbytags.get.responses.PetfindbytagsGetCode400Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class PetfindbytagsGetResponses { + public sealed interface EndpointResponse permits EndpointPetfindbytagsGetCode200Response {} + + public record EndpointPetfindbytagsGetCode200Response( + HttpResponse response, + PetfindbytagsGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusPetfindbytagsGetCode200ResponseDeserializer, StatusPetfindbytagsGetCode400ResponseDeserializer {} + + public static final class StatusPetfindbytagsGetCode200ResponseDeserializer extends PetfindbytagsGetCode200Response.PetfindbytagsGetCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusPetfindbytagsGetCode400ResponseDeserializer extends PetfindbytagsGetCode400Response.PetfindbytagsGetCode400Response1 implements StatusCodeResponseDeserializer { + } + + public static final class PetfindbytagsGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public PetfindbytagsGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusPetfindbytagsGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusPetfindbytagsGetCode400ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusPetfindbytagsGetCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointPetfindbytagsGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else { + StatusPetfindbytagsGetCode400ResponseDeserializer castDeserializer = (StatusPetfindbytagsGetCode400ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new PetfindbytagsGetCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java new file mode 100644 index 00000000000..4c4856f98eb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get; + +import org.openapijsonschematools.client.paths.petfindbytags.get.security.PetfindbytagsGetSecurityRequirementObject0; +import org.openapijsonschematools.client.paths.petfindbytags.get.security.PetfindbytagsGetSecurityRequirementObject1; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class PetfindbytagsGetSecurityInfo { + public static class PetfindbytagsGetSecurityInfo1 implements SecurityRequirementObjectProvider { + public final PetfindbytagsGetSecurityRequirementObject0 security0; + public final PetfindbytagsGetSecurityRequirementObject1 security1; + + public PetfindbytagsGetSecurityInfo1() { + security0 = new PetfindbytagsGetSecurityRequirementObject0(); + security1 = new PetfindbytagsGetSecurityRequirementObject1(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + switch (securityIndex) { + case SECURITY_0: + return security0; + default: + return security1; + } + } + } + + public enum SecurityIndex { + SECURITY_0, + SECURITY_1 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java new file mode 100644 index 00000000000..43633e1742d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.petfindbytags.get.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "tags", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..977742f58ab --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java @@ -0,0 +1,157 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get.parameters.parameter0; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.ListSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema0 { + // nest classes so all schemas and input/output classes can be public + + + public static class Items0 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Items0 instance = null; + public static Items0 getInstance() { + if (instance == null) { + instance = new Items0(); + } + return instance; + } + } + + + public static class SchemaList0 extends FrozenList { + protected SchemaList0(FrozenList m) { + super(m); + } + public static SchemaList0 of(List arg, SchemaConfiguration configuration) throws ValidationException { + return Schema01.getInstance().validate(arg, configuration); + } + } + + public static class SchemaListBuilder0 { + // class to build List + private final List list; + + public SchemaListBuilder0() { + list = new ArrayList<>(); + } + + public SchemaListBuilder0(List list) { + this.list = list; + } + + public SchemaListBuilder0 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } + } + + + public sealed interface Schema01Boxed permits Schema01BoxedList { + @Nullable Object getData(); + } + + public record Schema01BoxedList(SchemaList0 data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema01 extends JsonSchema implements ListSchemaValidator { + private static @Nullable Schema01 instance = null; + + protected Schema01() { + super(new JsonSchemaInfo() + .type(Set.of(List.class)) + .items(Items0.class) + ); + } + + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + + @Override + public SchemaList0 getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { + List items = new ArrayList<>(); + int i = 0; + for (Object item: arg) { + List itemPathToItem = new ArrayList<>(pathToItem); + itemPathToItem.add(i); + LinkedHashMap, Void> schemas = pathToSchemas.get(itemPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); + if (!(itemInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + items.add((String) itemInstance); + i += 1; + } + FrozenList newInstanceItems = new FrozenList<>(items); + return new SchemaList0(newInstanceItems); + } + + public SchemaList0 validate(List arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + List castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List) { + return validate((List) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof List) { + return getNewInstance((List) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema01BoxedList validateAndBox(List arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedList(validate(arg, configuration)); + } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof List castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.java new file mode 100644 index 00000000000..bd576d29b7e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get.responses; + +import org.openapijsonschematools.client.components.responses.RefSuccessfulXmlAndJsonArrayOfPet; + +public class PetfindbytagsGetCode200Response extends RefSuccessfulXmlAndJsonArrayOfPet { + public static class PetfindbytagsGetCode200Response1 extends RefSuccessfulXmlAndJsonArrayOfPet1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java new file mode 100644 index 00000000000..96f6f4fc9fa --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/responses/PetfindbytagsGetCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetfindbytagsGetCode400Response { + + public static class PetfindbytagsGetCode400Response1 extends ResponseDeserializer { + public PetfindbytagsGetCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java new file mode 100644 index 00000000000..5ce1d1f7054 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.HttpSignatureTest; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetfindbytagsGetSecurityRequirementObject0 extends SecurityRequirementObject { + + public PetfindbytagsGetSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + HttpSignatureTest.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java new file mode 100644 index 00000000000..2f7ef1e7674 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petfindbytags.get.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetfindbytagsGetSecurityRequirementObject1 extends SecurityRequirementObject { + + public PetfindbytagsGetSecurityRequirementObject1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + PetstoreAuth.class, + List.of("write:pets", "read:pets") + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java new file mode 100644 index 00000000000..7c21fe27824 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidDelete.java @@ -0,0 +1,236 @@ +package org.openapijsonschematools.client.paths.petpetid; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteHeaderParameters; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteSecurityInfo; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeletePathParameters; +import org.openapijsonschematools.client.paths.petpetid.delete.Parameters; +import org.openapijsonschematools.client.paths.petpetid.delete.PetpetidDeleteResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Petpetid; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class PetpetidDelete { + private static class DeleteProvider extends AuthApplier { + private static final String method = "delete"; + + public static Void delete( + DeleteRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + if (request.headerParameters != null) { + var headersSerializer = new Parameters.HeaderParametersSerializer(); + Map> serializedHeaders = headersSerializer.serialize(request.headerParameters); + headers.putAll(serializedHeaders); + } + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Petpetid.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + updatedPath, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + return (Void) null; + } + } + + public interface DeleteOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Void delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface DeletePetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Void deletePet(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Delete extends ApiClient implements DeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class DeleteRequest { + public PetpetidDeletePathParameters.PathParametersMap pathParameters; + public PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public DeleteRequest( + PetpetidDeletePathParameters.PathParametersMap pathParameters, + PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.headerParameters = headerParameters; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class DeleteNullableRequest { + public PetpetidDeletePathParameters.@Nullable PathParametersMap pathParameters; + public PetpetidDeleteHeaderParameters.@Nullable HeaderParametersMap headerParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetpetidDeleteSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForHeaderParameters { + DeleteNullableRequest getInstance(); + T getBuilderAfterHeaderParameters(DeleteNullableRequest instance); + default T headerParameters(PetpetidDeleteHeaderParameters.HeaderParametersMap headerParameters) { + var instance = getInstance(); + instance.headerParameters = headerParameters; + return getBuilderAfterHeaderParameters(instance); + } + } + + public interface SetterForServerIndex { + DeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + DeleteNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(DeleteNullableRequest instance); + default T securityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + DeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(DeleteNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + DeleteNullableRequest getInstance(); + T getBuilderAfterPathParameters(DeleteNullableRequest instance); + default T pathParameters(PetpetidDeletePathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Delete0RequestBuilder implements SetterForHeaderParameters, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final DeleteNullableRequest instance; + + public Delete0RequestBuilder(DeleteNullableRequest instance) { + this.instance = instance; + } + + public DeleteRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new DeleteRequest( + pathParameters, + instance.headerParameters, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete0RequestBuilder getBuilderAfterHeaderParameters(DeleteNullableRequest instance) { + return this; + } + + public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + return this; + } + + public Delete0RequestBuilder getBuilderAfterSecurityIndex(DeleteNullableRequest instance) { + return this; + } + + public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + return this; + } + } + public static class DeleteRequestBuilder implements SetterForPathParameters { + private final DeleteNullableRequest instance; + + public DeleteRequestBuilder() { + this.instance = new DeleteNullableRequest(); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { + return new Delete0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java new file mode 100644 index 00000000000..b7cdbb9ddc1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidGet.java @@ -0,0 +1,211 @@ +package org.openapijsonschematools.client.paths.petpetid; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetSecurityInfo; +import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetPathParameters; +import org.openapijsonschematools.client.paths.petpetid.get.Parameters; +import org.openapijsonschematools.client.paths.petpetid.get.PetpetidGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Petpetid; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class PetpetidGet { + private static class GetProvider extends AuthApplier { + private static final String method = "get"; + + public static PetpetidGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Petpetid.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + updatedPath, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new PetpetidGetResponses.PetpetidGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default PetpetidGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface GetPetByIdOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default PetpetidGetResponses.EndpointResponse getPetById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public PetpetidGetPathParameters.PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public GetRequest( + PetpetidGetPathParameters.PathParametersMap pathParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class GetNullableRequest { + public PetpetidGetPathParameters.@Nullable PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetpetidGetSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetNullableRequest getInstance(); + T getBuilderAfterServerIndex(GetNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + GetNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(GetNullableRequest instance); + default T securityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + GetNullableRequest getInstance(); + T getBuilderAfterTimeout(GetNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + GetNullableRequest getInstance(); + T getBuilderAfterPathParameters(GetNullableRequest instance); + default T pathParameters(PetpetidGetPathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Get0RequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final GetNullableRequest instance; + + public Get0RequestBuilder(GetNullableRequest instance) { + this.instance = instance; + } + + public GetRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new GetRequest( + pathParameters, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterSecurityIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + return this; + } + } + public static class GetRequestBuilder implements SetterForPathParameters { + private final GetNullableRequest instance; + + public GetRequestBuilder() { + this.instance = new GetNullableRequest(); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { + return new Get0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java new file mode 100644 index 00000000000..285054a419b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/PetpetidPost.java @@ -0,0 +1,242 @@ +package org.openapijsonschematools.client.paths.petpetid; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostPathParameters; +import org.openapijsonschematools.client.paths.petpetid.post.Parameters; +import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Petpetid; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class PetpetidPost { + private static class PostProvider extends AuthApplier { + private static final String method = "post"; + + public static Void post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new PetpetidPostRequestBody.PetpetidPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Petpetid.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + updatedPath, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + return (Void) null; + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Void post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface UpdatePetWithFormOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Void updatePetWithForm(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public PetpetidPostPathParameters.PathParametersMap pathParameters; + public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public PostRequest( + PetpetidPostPathParameters.PathParametersMap pathParameters, + PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public PetpetidPostPathParameters.@Nullable PathParametersMap pathParameters; + public PetpetidPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetpetidPostSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(PetpetidPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + PostNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PostNullableRequest instance); + default T securityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + PostNullableRequest getInstance(); + T getBuilderAfterPathParameters(PostNullableRequest instance); + default T pathParameters(PetpetidPostPathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + pathParameters, + instance.requestBody, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForPathParameters { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java new file mode 100644 index 00000000000..d8775b677aa --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/Parameters.java @@ -0,0 +1,32 @@ +package org.openapijsonschematools.client.paths.petpetid.delete; + +import org.openapijsonschematools.client.paths.petpetid.delete.parameters.Parameter0; +import org.openapijsonschematools.client.paths.petpetid.delete.parameters.Parameter1; +import org.openapijsonschematools.client.parameter.PathSerializer; +import org.openapijsonschematools.client.parameter.HeadersSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("petId", new Parameter1.Parameter11()) + ) + ); + } + } + + public static class HeaderParametersSerializer extends HeadersSerializer { + public HeaderParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("api_key", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java new file mode 100644 index 00000000000..3bdf3b1f609 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteHeaderParameters.java @@ -0,0 +1,191 @@ +package org.openapijsonschematools.client.paths.petpetid.delete; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class PetpetidDeleteHeaderParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class HeaderParametersMap extends FrozenMap { + protected HeaderParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "api_key" + ); + public static HeaderParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetpetidDeleteHeaderParameters1.getInstance().validate(arg, configuration); + } + + public String api_key() throws UnsetPropertyException { + return getOrThrow("api_key"); + } + } + + public interface SetterForApiKey { + Map getInstance(); + T getBuilderAfterApiKey(Map instance); + + default T api_key(String value) { + var instance = getInstance(); + instance.put("api_key", value); + return getBuilderAfterApiKey(instance); + } + } + + public static class HeaderParametersMapBuilder implements GenericBuilder>, SetterForApiKey { + private final Map instance; + private static final Set knownKeys = Set.of( + "api_key" + ); + public Set getKnownKeys() { + return knownKeys; + } + public HeaderParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public HeaderParametersMapBuilder getBuilderAfterApiKey(Map instance) { + return this; + } + } + + + public sealed interface PetpetidDeleteHeaderParameters1Boxed permits PetpetidDeleteHeaderParameters1BoxedMap { + @Nullable Object getData(); + } + + public record PetpetidDeleteHeaderParameters1BoxedMap(HeaderParametersMap data) implements PetpetidDeleteHeaderParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class PetpetidDeleteHeaderParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetpetidDeleteHeaderParameters1 instance = null; + + protected PetpetidDeleteHeaderParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("api_key", Schema0.Schema01.class) + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static PetpetidDeleteHeaderParameters1 getInstance() { + if (instance == null) { + instance = new PetpetidDeleteHeaderParameters1(); + } + return instance; + } + + public HeaderParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new HeaderParametersMap(castProperties); + } + + public HeaderParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public PetpetidDeleteHeaderParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetpetidDeleteHeaderParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public PetpetidDeleteHeaderParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java new file mode 100644 index 00000000000..217bc3b8e83 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeletePathParameters.java @@ -0,0 +1,223 @@ +package org.openapijsonschematools.client.paths.petpetid.delete; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter1.Schema1; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class PetpetidDeletePathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "petId" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetpetidDeletePathParameters1.getInstance().validate(arg, configuration); + } + + public Number petId() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForPetId { + Map getInstance(); + T getBuilderAfterPetId(Map instance); + + default T petId(int value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(float value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(long value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(double value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "petId" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForPetId { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface PetpetidDeletePathParameters1Boxed permits PetpetidDeletePathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record PetpetidDeletePathParameters1BoxedMap(PathParametersMap data) implements PetpetidDeletePathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class PetpetidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetpetidDeletePathParameters1 instance = null; + + protected PetpetidDeletePathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("petId", Schema1.Schema11.class) + )) + .required(Set.of( + "petId" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static PetpetidDeletePathParameters1 getInstance() { + if (instance == null) { + instance = new PetpetidDeletePathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Number)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (Number) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public PetpetidDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetpetidDeletePathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public PetpetidDeletePathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java new file mode 100644 index 00000000000..e5dbf441ebb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteResponses.java @@ -0,0 +1,48 @@ +package org.openapijsonschematools.client.paths.petpetid.delete; + +import org.openapijsonschematools.client.paths.petpetid.delete.responses.PetpetidDeleteCode400Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class PetpetidDeleteResponses { + + public sealed interface StatusCodeResponseDeserializer permits StatusPetpetidDeleteCode400ResponseDeserializer {} + + public static final class StatusPetpetidDeleteCode400ResponseDeserializer extends PetpetidDeleteCode400Response.PetpetidDeleteCode400Response1 implements StatusCodeResponseDeserializer { + } + + public static final class PetpetidDeleteResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public PetpetidDeleteResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("400", new StatusPetpetidDeleteCode400ResponseDeserializer()) + ); + } + + public Void deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusPetpetidDeleteCode400ResponseDeserializer castDeserializer = (StatusPetpetidDeleteCode400ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new PetpetidDeleteCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java new file mode 100644 index 00000000000..941f3f23abf --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.paths.petpetid.delete; + +import org.openapijsonschematools.client.paths.petpetid.delete.security.PetpetidDeleteSecurityRequirementObject0; +import org.openapijsonschematools.client.paths.petpetid.delete.security.PetpetidDeleteSecurityRequirementObject1; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class PetpetidDeleteSecurityInfo { + public static class PetpetidDeleteSecurityInfo1 implements SecurityRequirementObjectProvider { + public final PetpetidDeleteSecurityRequirementObject0 security0; + public final PetpetidDeleteSecurityRequirementObject1 security1; + + public PetpetidDeleteSecurityInfo1() { + security0 = new PetpetidDeleteSecurityRequirementObject0(); + security1 = new PetpetidDeleteSecurityRequirementObject1(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + switch (securityIndex) { + case SECURITY_0: + return security0; + default: + return security1; + } + } + } + + public enum SecurityIndex { + SECURITY_0, + SECURITY_1 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter0.java new file mode 100644 index 00000000000..48e40ea5596 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.petpetid.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "api_key", + ParameterInType.HEADER, + false, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter1.java new file mode 100644 index 00000000000..c40da80fec8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/Parameter1.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.petpetid.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter1.Schema1; + +public class Parameter1 { + + public static class Parameter11 extends SchemaParameter { + public Parameter11() { + super( + "petId", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema1.Schema11.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..c4b34bf4f68 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java new file mode 100644 index 00000000000..3ec2f12b279 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/parameters/parameter1/Schema1.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.petpetid.delete.parameters.parameter1; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.Int64JsonSchema; + +public class Schema1 extends Int64JsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema11 extends Int64JsonSchema.Int64JsonSchema1 { + private static @Nullable Schema11 instance = null; + public static Schema11 getInstance() { + if (instance == null) { + instance = new Schema11(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java new file mode 100644 index 00000000000..99deaad489e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/responses/PetpetidDeleteCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.petpetid.delete.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetpetidDeleteCode400Response { + + public static class PetpetidDeleteCode400Response1 extends ResponseDeserializer { + public PetpetidDeleteCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java new file mode 100644 index 00000000000..320b2cffa63 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petpetid.delete.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetpetidDeleteSecurityRequirementObject0 extends SecurityRequirementObject { + + public PetpetidDeleteSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + ApiKey.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java new file mode 100644 index 00000000000..f7e6f70df99 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petpetid.delete.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetpetidDeleteSecurityRequirementObject1 extends SecurityRequirementObject { + + public PetpetidDeleteSecurityRequirementObject1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + PetstoreAuth.class, + List.of("write:pets", "read:pets") + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java new file mode 100644 index 00000000000..f5e28725665 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.petpetid.get; + +import org.openapijsonschematools.client.paths.petpetid.get.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("petId", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java new file mode 100644 index 00000000000..498b007f37a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetPathParameters.java @@ -0,0 +1,223 @@ +package org.openapijsonschematools.client.paths.petpetid.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.petpetid.get.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class PetpetidGetPathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "petId" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetpetidGetPathParameters1.getInstance().validate(arg, configuration); + } + + public Number petId() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForPetId { + Map getInstance(); + T getBuilderAfterPetId(Map instance); + + default T petId(int value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(float value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(long value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(double value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "petId" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForPetId { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface PetpetidGetPathParameters1Boxed permits PetpetidGetPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record PetpetidGetPathParameters1BoxedMap(PathParametersMap data) implements PetpetidGetPathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class PetpetidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetpetidGetPathParameters1 instance = null; + + protected PetpetidGetPathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("petId", Schema0.Schema01.class) + )) + .required(Set.of( + "petId" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static PetpetidGetPathParameters1 getInstance() { + if (instance == null) { + instance = new PetpetidGetPathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Number)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (Number) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public PetpetidGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetpetidGetPathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public PetpetidGetPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java new file mode 100644 index 00000000000..45efdb26f89 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetResponses.java @@ -0,0 +1,77 @@ +package org.openapijsonschematools.client.paths.petpetid.get; + +import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode200Response; +import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode400Response; +import org.openapijsonschematools.client.paths.petpetid.get.responses.PetpetidGetCode404Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class PetpetidGetResponses { + public sealed interface EndpointResponse permits EndpointPetpetidGetCode200Response {} + + public record EndpointPetpetidGetCode200Response( + HttpResponse response, + PetpetidGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusPetpetidGetCode200ResponseDeserializer, StatusPetpetidGetCode400ResponseDeserializer, StatusPetpetidGetCode404ResponseDeserializer {} + + public static final class StatusPetpetidGetCode200ResponseDeserializer extends PetpetidGetCode200Response.PetpetidGetCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusPetpetidGetCode400ResponseDeserializer extends PetpetidGetCode400Response.PetpetidGetCode400Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusPetpetidGetCode404ResponseDeserializer extends PetpetidGetCode404Response.PetpetidGetCode404Response1 implements StatusCodeResponseDeserializer { + } + + public static final class PetpetidGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public PetpetidGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusPetpetidGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusPetpetidGetCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusPetpetidGetCode404ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusPetpetidGetCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointPetpetidGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else if (statusCodeDeserializer instanceof StatusPetpetidGetCode400ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new PetpetidGetCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else { + StatusPetpetidGetCode404ResponseDeserializer castDeserializer = (StatusPetpetidGetCode404ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new PetpetidGetCode404Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java new file mode 100644 index 00000000000..4d21d88f82e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PetpetidGetSecurityInfo.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petpetid.get; + +import org.openapijsonschematools.client.paths.petpetid.get.security.PetpetidGetSecurityRequirementObject0; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class PetpetidGetSecurityInfo { + public static class PetpetidGetSecurityInfo1 implements SecurityRequirementObjectProvider { + public final PetpetidGetSecurityRequirementObject0 security0; + + public PetpetidGetSecurityInfo1() { + security0 = new PetpetidGetSecurityRequirementObject0(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + return security0; + } + } + + public enum SecurityIndex { + SECURITY_0 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java new file mode 100644 index 00000000000..7b03160b9a4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.petpetid.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.petpetid.get.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "petId", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..2131549a0b8 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.petpetid.get.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.Int64JsonSchema; + +public class Schema0 extends Int64JsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends Int64JsonSchema.Int64JsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java new file mode 100644 index 00000000000..ef57c8d7c8c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode200Response.java @@ -0,0 +1,81 @@ +package org.openapijsonschematools.client.paths.petpetid.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetpetidGetCode200Response { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} + + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxmlMediaType() { + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.Pet1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Pet1Boxed body) implements SealedResponseBody { } + + public static class PetpetidGetCode200Response1 extends ResponseDeserializer { + public PetpetidGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java new file mode 100644 index 00000000000..798be7c4d4b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.petpetid.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetpetidGetCode400Response { + + public static class PetpetidGetCode400Response1 extends ResponseDeserializer { + public PetpetidGetCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java new file mode 100644 index 00000000000..8c7b60d64d7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/PetpetidGetCode404Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.petpetid.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetpetidGetCode404Response { + + public static class PetpetidGetCode404Response1 extends ResponseDeserializer { + public PetpetidGetCode404Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..1409b9ae6dd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Pet; +import org.openapijsonschematools.client.components.schemas.RefPet; + +public class ApplicationjsonSchema extends RefPet { + // $refed class + + + public static class ApplicationjsonSchema1 extends Pet1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java new file mode 100644 index 00000000000..2c49b59c0e5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.petpetid.get.responses.code200response.content.applicationxml; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Pet; + +public class ApplicationxmlSchema extends Pet { + // $refed class + + + public static class ApplicationxmlSchema1 extends Pet1 { + private static @Nullable ApplicationxmlSchema1 instance = null; + public static ApplicationxmlSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxmlSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java new file mode 100644 index 00000000000..00903fe643c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petpetid.get.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetpetidGetSecurityRequirementObject0 extends SecurityRequirementObject { + + public PetpetidGetSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + ApiKey.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java new file mode 100644 index 00000000000..04772587103 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.petpetid.post; + +import org.openapijsonschematools.client.paths.petpetid.post.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("petId", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java new file mode 100644 index 00000000000..28daa3aee1a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostPathParameters.java @@ -0,0 +1,223 @@ +package org.openapijsonschematools.client.paths.petpetid.post; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.petpetid.post.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class PetpetidPostPathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "petId" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetpetidPostPathParameters1.getInstance().validate(arg, configuration); + } + + public Number petId() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForPetId { + Map getInstance(); + T getBuilderAfterPetId(Map instance); + + default T petId(int value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(float value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(long value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(double value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "petId" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForPetId { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface PetpetidPostPathParameters1Boxed permits PetpetidPostPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record PetpetidPostPathParameters1BoxedMap(PathParametersMap data) implements PetpetidPostPathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class PetpetidPostPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetpetidPostPathParameters1 instance = null; + + protected PetpetidPostPathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("petId", Schema0.Schema01.class) + )) + .required(Set.of( + "petId" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static PetpetidPostPathParameters1 getInstance() { + if (instance == null) { + instance = new PetpetidPostPathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Number)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (Number) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public PetpetidPostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetpetidPostPathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public PetpetidPostPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java new file mode 100644 index 00000000000..67d40f7ca47 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.petpetid.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.petpetid.post.requestbody.content.applicationxwwwformurlencoded.ApplicationxwwwformurlencodedSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class PetpetidPostRequestBody { + public sealed interface SealedMediaType permits ApplicationxwwwformurlencodedMediaType {} + + public record ApplicationxwwwformurlencodedMediaType(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxwwwformurlencodedMediaType() { + this(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class PetpetidPostRequestBody1 extends RequestBodySerializer { + public PetpetidPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/x-www-form-urlencoded", new ApplicationxwwwformurlencodedMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationxwwwformurlencodedRequestBody requestBody0 = (ApplicationxwwwformurlencodedRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationxwwwformurlencodedRequestBody {} + public record ApplicationxwwwformurlencodedRequestBody(ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/x-www-form-urlencoded"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java new file mode 100644 index 00000000000..f7d62e199a3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostResponses.java @@ -0,0 +1,48 @@ +package org.openapijsonschematools.client.paths.petpetid.post; + +import org.openapijsonschematools.client.paths.petpetid.post.responses.PetpetidPostCode405Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class PetpetidPostResponses { + + public sealed interface StatusCodeResponseDeserializer permits StatusPetpetidPostCode405ResponseDeserializer {} + + public static final class StatusPetpetidPostCode405ResponseDeserializer extends PetpetidPostCode405Response.PetpetidPostCode405Response1 implements StatusCodeResponseDeserializer { + } + + public static final class PetpetidPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public PetpetidPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("405", new StatusPetpetidPostCode405ResponseDeserializer()) + ); + } + + public Void deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusPetpetidPostCode405ResponseDeserializer castDeserializer = (StatusPetpetidPostCode405ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new PetpetidPostCode405Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java new file mode 100644 index 00000000000..3763c38088a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java @@ -0,0 +1,33 @@ +package org.openapijsonschematools.client.paths.petpetid.post; + +import org.openapijsonschematools.client.paths.petpetid.post.security.PetpetidPostSecurityRequirementObject0; +import org.openapijsonschematools.client.paths.petpetid.post.security.PetpetidPostSecurityRequirementObject1; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class PetpetidPostSecurityInfo { + public static class PetpetidPostSecurityInfo1 implements SecurityRequirementObjectProvider { + public final PetpetidPostSecurityRequirementObject0 security0; + public final PetpetidPostSecurityRequirementObject1 security1; + + public PetpetidPostSecurityInfo1() { + security0 = new PetpetidPostSecurityRequirementObject0(); + security1 = new PetpetidPostSecurityRequirementObject1(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + switch (securityIndex) { + case SECURITY_0: + return security0; + default: + return security1; + } + } + } + + public enum SecurityIndex { + SECURITY_0, + SECURITY_1 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java new file mode 100644 index 00000000000..13a19320b60 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.petpetid.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.petpetid.post.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "petId", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..2bcfb59b424 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.petpetid.post.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.Int64JsonSchema; + +public class Schema0 extends Int64JsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends Int64JsonSchema.Int64JsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java new file mode 100644 index 00000000000..c7af01879e4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -0,0 +1,238 @@ +package org.openapijsonschematools.client.paths.petpetid.post.requestbody.content.applicationxwwwformurlencoded; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class ApplicationxwwwformurlencodedSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationxwwwformurlencodedName extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationxwwwformurlencodedName instance = null; + public static ApplicationxwwwformurlencodedName getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedName(); + } + return instance; + } + } + + + public static class ApplicationxwwwformurlencodedStatus extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationxwwwformurlencodedStatus instance = null; + public static ApplicationxwwwformurlencodedStatus getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedStatus(); + } + return instance; + } + } + + + public static class ApplicationxwwwformurlencodedSchemaMap extends FrozenMap<@Nullable Object> { + protected ApplicationxwwwformurlencodedSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "name", + "status" + ); + public static ApplicationxwwwformurlencodedSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return ApplicationxwwwformurlencodedSchema1.getInstance().validate(arg, configuration); + } + + public String name() throws UnsetPropertyException { + String key = "name"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for name"); + } + return (String) value; + } + + public String status() throws UnsetPropertyException { + String key = "status"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for status"); + } + return (String) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForApplicationxwwwformurlencodedName { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedName(Map instance); + + default T name(String value) { + var instance = getInstance(); + instance.put("name", value); + return getBuilderAfterApplicationxwwwformurlencodedName(instance); + } + } + + public interface SetterForApplicationxwwwformurlencodedStatus { + Map getInstance(); + T getBuilderAfterApplicationxwwwformurlencodedStatus(Map instance); + + default T status(String value) { + var instance = getInstance(); + instance.put("status", value); + return getBuilderAfterApplicationxwwwformurlencodedStatus(instance); + } + } + + public static class ApplicationxwwwformurlencodedSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForApplicationxwwwformurlencodedName, SetterForApplicationxwwwformurlencodedStatus { + private final Map instance; + private static final Set knownKeys = Set.of( + "name", + "status" + ); + public Set getKnownKeys() { + return knownKeys; + } + public ApplicationxwwwformurlencodedSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterApplicationxwwwformurlencodedName(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterApplicationxwwwformurlencodedStatus(Map instance) { + return this; + } + public ApplicationxwwwformurlencodedSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface ApplicationxwwwformurlencodedSchema1Boxed permits ApplicationxwwwformurlencodedSchema1BoxedMap { + @Nullable Object getData(); + } + + public record ApplicationxwwwformurlencodedSchema1BoxedMap(ApplicationxwwwformurlencodedSchemaMap data) implements ApplicationxwwwformurlencodedSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class ApplicationxwwwformurlencodedSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable ApplicationxwwwformurlencodedSchema1 instance = null; + + protected ApplicationxwwwformurlencodedSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("name", ApplicationxwwwformurlencodedName.class), + new PropertyEntry("status", ApplicationxwwwformurlencodedStatus.class) + )) + ); + } + + public static ApplicationxwwwformurlencodedSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxwwwformurlencodedSchema1(); + } + return instance; + } + + public ApplicationxwwwformurlencodedSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new ApplicationxwwwformurlencodedSchemaMap(castProperties); + } + + public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public ApplicationxwwwformurlencodedSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new ApplicationxwwwformurlencodedSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public ApplicationxwwwformurlencodedSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java new file mode 100644 index 00000000000..63a84f81656 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/responses/PetpetidPostCode405Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.petpetid.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class PetpetidPostCode405Response { + + public static class PetpetidPostCode405Response1 extends ResponseDeserializer { + public PetpetidPostCode405Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java new file mode 100644 index 00000000000..5362c41579c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petpetid.post.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetpetidPostSecurityRequirementObject0 extends SecurityRequirementObject { + + public PetpetidPostSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + ApiKey.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java new file mode 100644 index 00000000000..377bdaffd38 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petpetid.post.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetpetidPostSecurityRequirementObject1 extends SecurityRequirementObject { + + public PetpetidPostSecurityRequirementObject1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + PetstoreAuth.class, + List.of("write:pets", "read:pets") + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java new file mode 100644 index 00000000000..82c0dce116b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/PetpetiduploadimagePost.java @@ -0,0 +1,243 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostRequestBody; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostPathParameters; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.Parameters; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Petpetiduploadimage; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class PetpetiduploadimagePost { + private static class PostProvider extends AuthApplier { + private static final String method = "post"; + + public static PetpetiduploadimagePostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + @Nullable SerializedRequestBody serializedRequestBody; + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + if (request.requestBody != null) { + serializedRequestBody = new PetpetiduploadimagePostRequestBody.PetpetiduploadimagePostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + bodyPublisher = serializedRequestBody.bodyPublisher; + } + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Petpetiduploadimage.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + updatedPath, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new PetpetiduploadimagePostResponses.PetpetiduploadimagePostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default PetpetiduploadimagePostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface UploadImageOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default PetpetiduploadimagePostResponses.EndpointResponse uploadImage(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters; + public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + + public PostRequest( + PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters, + PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.securityIndex = securityIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public PetpetiduploadimagePostPathParameters.@Nullable PathParametersMap pathParameters; + public PetpetiduploadimagePostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public PetpetiduploadimagePostSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(PetpetiduploadimagePostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + PostNullableRequest getInstance(); + T getBuilderAfterSecurityIndex(PostNullableRequest instance); + default T securityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + PostNullableRequest getInstance(); + T getBuilderAfterPathParameters(PostNullableRequest instance); + default T pathParameters(PetpetiduploadimagePostPathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Post0RequestBuilder implements SetterForRequestBody, SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + pathParameters, + instance.requestBody, + instance.serverIndex, + instance.securityIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterSecurityIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForPathParameters { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterPathParameters(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java new file mode 100644 index 00000000000..739ed320360 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post; + +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("petId", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java new file mode 100644 index 00000000000..29b957c98cd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostPathParameters.java @@ -0,0 +1,223 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class PetpetiduploadimagePostPathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "petId" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return PetpetiduploadimagePostPathParameters1.getInstance().validate(arg, configuration); + } + + public Number petId() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForPetId { + Map getInstance(); + T getBuilderAfterPetId(Map instance); + + default T petId(int value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(float value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(long value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + + default T petId(double value) { + var instance = getInstance(); + instance.put("petId", value); + return getBuilderAfterPetId(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "petId" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForPetId { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterPetId(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface PetpetiduploadimagePostPathParameters1Boxed permits PetpetiduploadimagePostPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record PetpetiduploadimagePostPathParameters1BoxedMap(PathParametersMap data) implements PetpetiduploadimagePostPathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class PetpetiduploadimagePostPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable PetpetiduploadimagePostPathParameters1 instance = null; + + protected PetpetiduploadimagePostPathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("petId", Schema0.Schema01.class) + )) + .required(Set.of( + "petId" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static PetpetiduploadimagePostPathParameters1 getInstance() { + if (instance == null) { + instance = new PetpetiduploadimagePostPathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Number)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (Number) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public PetpetiduploadimagePostPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new PetpetiduploadimagePostPathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public PetpetiduploadimagePostPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java new file mode 100644 index 00000000000..2fa51fd7974 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.requestbody.content.multipartformdata.MultipartformdataSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class PetpetiduploadimagePostRequestBody { + public sealed interface SealedMediaType permits MultipartformdataMediaType {} + + public record MultipartformdataMediaType(MultipartformdataSchema.MultipartformdataSchema1 schema) implements SealedMediaType, MediaType { + public MultipartformdataMediaType() { + this(MultipartformdataSchema.MultipartformdataSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class PetpetiduploadimagePostRequestBody1 extends RequestBodySerializer { + public PetpetiduploadimagePostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("multipart/form-data", new MultipartformdataMediaType()) + ), + false + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + MultipartformdataRequestBody requestBody0 = (MultipartformdataRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits MultipartformdataRequestBody {} + public record MultipartformdataRequestBody(MultipartformdataSchema.MultipartformdataSchema1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "multipart/form-data"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java new file mode 100644 index 00000000000..ef9ecbb0b8a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostResponses.java @@ -0,0 +1,54 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post; + +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.PetpetiduploadimagePostCode200Response; +import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class PetpetiduploadimagePostResponses { + public sealed interface EndpointResponse permits EndpointPetpetiduploadimagePostCode200Response {} + + public record EndpointPetpetiduploadimagePostCode200Response( + HttpResponse response, + PetpetiduploadimagePostCode200Response.SealedResponseBody body, + SuccessWithJsonApiResponseHeadersSchema.SuccessWithJsonApiResponseHeadersSchemaMap headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusPetpetiduploadimagePostCode200ResponseDeserializer {} + + public static final class StatusPetpetiduploadimagePostCode200ResponseDeserializer extends PetpetiduploadimagePostCode200Response.PetpetiduploadimagePostCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class PetpetiduploadimagePostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public PetpetiduploadimagePostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusPetpetiduploadimagePostCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusPetpetiduploadimagePostCode200ResponseDeserializer castDeserializer = (StatusPetpetiduploadimagePostCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointPetpetiduploadimagePostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java new file mode 100644 index 00000000000..0418c7b90c0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post; + +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.security.PetpetiduploadimagePostSecurityRequirementObject0; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class PetpetiduploadimagePostSecurityInfo { + public static class PetpetiduploadimagePostSecurityInfo1 implements SecurityRequirementObjectProvider { + public final PetpetiduploadimagePostSecurityRequirementObject0 security0; + + public PetpetiduploadimagePostSecurityInfo1() { + security0 = new PetpetiduploadimagePostSecurityRequirementObject0(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + return security0; + } + } + + public enum SecurityIndex { + SECURITY_0 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java new file mode 100644 index 00000000000..e6002b4ec9d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "petId", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..e314fe44ae4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.Int64JsonSchema; + +public class Schema0 extends Int64JsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends Int64JsonSchema.Int64JsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java new file mode 100644 index 00000000000..d1d3106be24 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -0,0 +1,239 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post.requestbody.content.multipartformdata; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.InvalidAdditionalPropertyException; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.StringJsonSchema; +import org.openapijsonschematools.client.schemas.UnsetAddPropsSetter; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class MultipartformdataSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class MultipartformdataAdditionalMetadata extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable MultipartformdataAdditionalMetadata instance = null; + public static MultipartformdataAdditionalMetadata getInstance() { + if (instance == null) { + instance = new MultipartformdataAdditionalMetadata(); + } + return instance; + } + } + + + public static class MultipartformdataFile extends StringJsonSchema.StringJsonSchema1 { + // BinarySchema + private static @Nullable MultipartformdataFile instance = null; + public static MultipartformdataFile getInstance() { + if (instance == null) { + instance = new MultipartformdataFile(); + } + return instance; + } + } + + + public static class MultipartformdataSchemaMap extends FrozenMap<@Nullable Object> { + protected MultipartformdataSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of(); + public static final Set optionalKeys = Set.of( + "additionalMetadata", + "file" + ); + public static MultipartformdataSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return MultipartformdataSchema1.getInstance().validate(arg, configuration); + } + + public String additionalMetadata() throws UnsetPropertyException { + String key = "additionalMetadata"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for additionalMetadata"); + } + return (String) value; + } + + public String file() throws UnsetPropertyException { + String key = "file"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for file"); + } + return (String) value; + } + + public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { + throwIfKeyKnown(name, requiredKeys, optionalKeys); + throwIfKeyNotPresent(name); + return get(name); + } + } + + public interface SetterForMultipartformdataAdditionalMetadata { + Map getInstance(); + T getBuilderAfterMultipartformdataAdditionalMetadata(Map instance); + + default T additionalMetadata(String value) { + var instance = getInstance(); + instance.put("additionalMetadata", value); + return getBuilderAfterMultipartformdataAdditionalMetadata(instance); + } + } + + public interface SetterForMultipartformdataFile { + Map getInstance(); + T getBuilderAfterMultipartformdataFile(Map instance); + + default T file(String value) { + var instance = getInstance(); + instance.put("file", value); + return getBuilderAfterMultipartformdataFile(instance); + } + } + + public static class MultipartformdataSchemaMapBuilder extends UnsetAddPropsSetter implements GenericBuilder>, SetterForMultipartformdataAdditionalMetadata, SetterForMultipartformdataFile { + private final Map instance; + private static final Set knownKeys = Set.of( + "additionalMetadata", + "file" + ); + public Set getKnownKeys() { + return knownKeys; + } + public MultipartformdataSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataAdditionalMetadata(Map instance) { + return this; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterMultipartformdataFile(Map instance) { + return this; + } + public MultipartformdataSchemaMapBuilder getBuilderAfterAdditionalProperty(Map instance) { + return this; + } + } + + + public sealed interface MultipartformdataSchema1Boxed permits MultipartformdataSchema1BoxedMap { + @Nullable Object getData(); + } + + public record MultipartformdataSchema1BoxedMap(MultipartformdataSchemaMap data) implements MultipartformdataSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class MultipartformdataSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable MultipartformdataSchema1 instance = null; + + protected MultipartformdataSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("additionalMetadata", MultipartformdataAdditionalMetadata.class), + new PropertyEntry("file", MultipartformdataFile.class) + )) + ); + } + + public static MultipartformdataSchema1 getInstance() { + if (instance == null) { + instance = new MultipartformdataSchema1(); + } + return instance; + } + + public MultipartformdataSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new MultipartformdataSchemaMap(castProperties); + } + + public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public MultipartformdataSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new MultipartformdataSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public MultipartformdataSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.java new file mode 100644 index 00000000000..c597f9f42d7 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/responses/PetpetiduploadimagePostCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses; + +import org.openapijsonschematools.client.components.responses.SuccessWithJsonApiResponse; + +public class PetpetiduploadimagePostCode200Response extends SuccessWithJsonApiResponse { + public static class PetpetiduploadimagePostCode200Response1 extends SuccessWithJsonApiResponse1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java new file mode 100644 index 00000000000..2a6e237ed37 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.petpetiduploadimage.post.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class PetpetiduploadimagePostSecurityRequirementObject0 extends SecurityRequirementObject { + + public PetpetiduploadimagePostSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + PetstoreAuth.class, + List.of("write:pets", "read:pets") + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java new file mode 100644 index 00000000000..6d03a9384b5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/SolidusGet.java @@ -0,0 +1,124 @@ +package org.openapijsonschematools.client.paths.solidus; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.solidus.get.SolidusGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Solidus; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class SolidusGet { + private static class GetProvider { + private static final String method = "get"; + + public static SolidusGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Solidus.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new SolidusGetResponses.SolidusGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default SolidusGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface SlashRouteOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default SolidusGetResponses.EndpointResponse slashRoute(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java new file mode 100644 index 00000000000..b6d5295cdce --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/SolidusGetResponses.java @@ -0,0 +1,53 @@ +package org.openapijsonschematools.client.paths.solidus.get; + +import org.openapijsonschematools.client.paths.solidus.get.responses.SolidusGetCode200Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class SolidusGetResponses { + public sealed interface EndpointResponse permits EndpointSolidusGetCode200Response {} + + public record EndpointSolidusGetCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusSolidusGetCode200ResponseDeserializer {} + + public static final class StatusSolidusGetCode200ResponseDeserializer extends SolidusGetCode200Response.SolidusGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class SolidusGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public SolidusGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusSolidusGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusSolidusGetCode200ResponseDeserializer castDeserializer = (StatusSolidusGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointSolidusGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java new file mode 100644 index 00000000000..9560cc160dd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/solidus/get/responses/SolidusGetCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.solidus.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class SolidusGetCode200Response extends SuccessDescriptionOnly { + public static class SolidusGetCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java new file mode 100644 index 00000000000..13cf7cda7a6 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/StoreinventoryGet.java @@ -0,0 +1,152 @@ +package org.openapijsonschematools.client.paths.storeinventory; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; +import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Storeinventory; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.AuthApplier; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class StoreinventoryGet { + private static class GetProvider extends AuthApplier { + private static final String method = "get"; + + public static StoreinventoryGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + SecurityRequirementObject securityRequirementObject = apiConfiguration.getSecurityRequirementObject(request.securityIndex); + updateParamsForAuth( + securityRequirementObject, + headers, + Storeinventory.path, + method, + bodyPublisher, + queryMap, + apiConfiguration + ); + + String url = host + Storeinventory.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new StoreinventoryGetResponses.StoreinventoryGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default StoreinventoryGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface GetInventoryOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default StoreinventoryGetResponses.EndpointResponse getInventory(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public RootServerInfo.@Nullable ServerIndex serverIndex; + public StoreinventoryGetSecurityInfo.@Nullable SecurityIndex securityIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForSecurityIndex { + GetRequest getInstance(); + T getBuilderAfterSecurityIndex(GetRequest instance); + default T securityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityIndex) { + var instance = getInstance(); + instance.securityIndex = securityIndex; + return getBuilderAfterSecurityIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForServerIndex, SetterForSecurityIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterSecurityIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java new file mode 100644 index 00000000000..389cb0617a3 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetResponses.java @@ -0,0 +1,54 @@ +package org.openapijsonschematools.client.paths.storeinventory.get; + +import org.openapijsonschematools.client.paths.storeinventory.get.responses.StoreinventoryGetCode200Response; +import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class StoreinventoryGetResponses { + public sealed interface EndpointResponse permits EndpointStoreinventoryGetCode200Response {} + + public record EndpointStoreinventoryGetCode200Response( + HttpResponse response, + StoreinventoryGetCode200Response.SealedResponseBody body, + SuccessInlineContentAndHeaderHeadersSchema.SuccessInlineContentAndHeaderHeadersSchemaMap headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusStoreinventoryGetCode200ResponseDeserializer {} + + public static final class StatusStoreinventoryGetCode200ResponseDeserializer extends StoreinventoryGetCode200Response.StoreinventoryGetCode200Response1 implements StatusCodeResponseDeserializer { + } + + public static final class StoreinventoryGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public StoreinventoryGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusStoreinventoryGetCode200ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + StatusStoreinventoryGetCode200ResponseDeserializer castDeserializer = (StatusStoreinventoryGetCode200ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointStoreinventoryGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java new file mode 100644 index 00000000000..5c661cfd67c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/StoreinventoryGetSecurityInfo.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.storeinventory.get; + +import org.openapijsonschematools.client.paths.storeinventory.get.security.StoreinventoryGetSecurityRequirementObject0; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider; + +public class StoreinventoryGetSecurityInfo { + public static class StoreinventoryGetSecurityInfo1 implements SecurityRequirementObjectProvider { + public final StoreinventoryGetSecurityRequirementObject0 security0; + + public StoreinventoryGetSecurityInfo1() { + security0 = new StoreinventoryGetSecurityRequirementObject0(); + } + + @Override + public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) { + return security0; + } + } + + public enum SecurityIndex { + SECURITY_0 + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.java new file mode 100644 index 00000000000..16275bedfdf --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/responses/StoreinventoryGetCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.storeinventory.get.responses; + +import org.openapijsonschematools.client.components.responses.SuccessInlineContentAndHeader; + +public class StoreinventoryGetCode200Response extends SuccessInlineContentAndHeader { + public static class StoreinventoryGetCode200Response1 extends SuccessInlineContentAndHeader1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java new file mode 100644 index 00000000000..12e9ef453a2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.java @@ -0,0 +1,24 @@ +package org.openapijsonschematools.client.paths.storeinventory.get.security; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; +import org.openapijsonschematools.client.securityschemes.SecurityScheme; +import org.openapijsonschematools.client.components.securityschemes.ApiKey; + +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class StoreinventoryGetSecurityRequirementObject0 extends SecurityRequirementObject { + + public StoreinventoryGetSecurityRequirementObject0() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry, List>( + ApiKey.class, + List.of() + ) + ) + ); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java new file mode 100644 index 00000000000..7a9de50a73b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/StoreorderPost.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.storeorder; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostRequestBody; +import org.openapijsonschematools.client.paths.storeorder.post.StoreorderPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Storeorder; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class StoreorderPost { + private static class PostProvider { + private static final String method = "post"; + + public static StoreorderPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new StoreorderPostRequestBody.StoreorderPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Storeorder.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new StoreorderPostResponses.StoreorderPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default StoreorderPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface PlaceOrderOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default StoreorderPostResponses.EndpointResponse placeOrder(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public StoreorderPostRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PostRequest( + StoreorderPostRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public StoreorderPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(StoreorderPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + requestBody, + instance.serverIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForRequestBody { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java new file mode 100644 index 00000000000..6b587ce09ab --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.storeorder.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.storeorder.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class StoreorderPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class StoreorderPostRequestBody1 extends RequestBodySerializer { + public StoreorderPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + true + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.Order1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java new file mode 100644 index 00000000000..5afb42352d9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/StoreorderPostResponses.java @@ -0,0 +1,66 @@ +package org.openapijsonschematools.client.paths.storeorder.post; + +import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode200Response; +import org.openapijsonschematools.client.paths.storeorder.post.responses.StoreorderPostCode400Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class StoreorderPostResponses { + public sealed interface EndpointResponse permits EndpointStoreorderPostCode200Response {} + + public record EndpointStoreorderPostCode200Response( + HttpResponse response, + StoreorderPostCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusStoreorderPostCode200ResponseDeserializer, StatusStoreorderPostCode400ResponseDeserializer {} + + public static final class StatusStoreorderPostCode200ResponseDeserializer extends StoreorderPostCode200Response.StoreorderPostCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusStoreorderPostCode400ResponseDeserializer extends StoreorderPostCode400Response.StoreorderPostCode400Response1 implements StatusCodeResponseDeserializer { + } + + public static final class StoreorderPostResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public StoreorderPostResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusStoreorderPostCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusStoreorderPostCode400ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusStoreorderPostCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointStoreorderPostCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else { + StatusStoreorderPostCode400ResponseDeserializer castDeserializer = (StatusStoreorderPostCode400ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new StoreorderPostCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..acc568b81b4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.storeorder.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Order; + +public class ApplicationjsonSchema extends Order { + // $refed class + + + public static class ApplicationjsonSchema1 extends Order1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java new file mode 100644 index 00000000000..233b54e530b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode200Response.java @@ -0,0 +1,81 @@ +package org.openapijsonschematools.client.paths.storeorder.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class StoreorderPostCode200Response { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} + + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxmlMediaType() { + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } + + public static class StoreorderPostCode200Response1 extends ResponseDeserializer { + public StoreorderPostCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java new file mode 100644 index 00000000000..255fd7c4195 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/StoreorderPostCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.storeorder.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class StoreorderPostCode400Response { + + public static class StoreorderPostCode400Response1 extends ResponseDeserializer { + public StoreorderPostCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..c7b1d3035af --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Order; + +public class ApplicationjsonSchema extends Order { + // $refed class + + + public static class ApplicationjsonSchema1 extends Order1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java new file mode 100644 index 00000000000..d0a1692555b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.storeorder.post.responses.code200response.content.applicationxml; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Order; + +public class ApplicationxmlSchema extends Order { + // $refed class + + + public static class ApplicationxmlSchema1 extends Order1 { + private static @Nullable ApplicationxmlSchema1 instance = null; + public static ApplicationxmlSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxmlSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java new file mode 100644 index 00000000000..8e9c1da41b0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidDelete.java @@ -0,0 +1,178 @@ +package org.openapijsonschematools.client.paths.storeorderorderid; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeletePathParameters; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.Parameters; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.StoreorderorderidDeleteResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Storeorderorderid; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class StoreorderorderidDelete { + private static class DeleteProvider { + private static final String method = "delete"; + + public static Void delete( + DeleteRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Storeorderorderid.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + return (Void) null; + } + } + + public interface DeleteOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Void delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface DeleteOrderOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Void deleteOrder(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Delete extends ApiClient implements DeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class DeleteRequest { + public StoreorderorderidDeletePathParameters.PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public DeleteRequest( + StoreorderorderidDeletePathParameters.PathParametersMap pathParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class DeleteNullableRequest { + public StoreorderorderidDeletePathParameters.@Nullable PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + DeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + DeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(DeleteNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + DeleteNullableRequest getInstance(); + T getBuilderAfterPathParameters(DeleteNullableRequest instance); + default T pathParameters(StoreorderorderidDeletePathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final DeleteNullableRequest instance; + + public Delete0RequestBuilder(DeleteNullableRequest instance) { + this.instance = instance; + } + + public DeleteRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new DeleteRequest( + pathParameters, + instance.serverIndex, + instance.timeout + ); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + return this; + } + + public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + return this; + } + } + public static class DeleteRequestBuilder implements SetterForPathParameters { + private final DeleteNullableRequest instance; + + public DeleteRequestBuilder() { + this.instance = new DeleteNullableRequest(); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { + return new Delete0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java new file mode 100644 index 00000000000..e7b57253441 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/StoreorderorderidGet.java @@ -0,0 +1,179 @@ +package org.openapijsonschematools.client.paths.storeorderorderid; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetPathParameters; +import org.openapijsonschematools.client.paths.storeorderorderid.get.Parameters; +import org.openapijsonschematools.client.paths.storeorderorderid.get.StoreorderorderidGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Storeorderorderid; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class StoreorderorderidGet { + private static class GetProvider { + private static final String method = "get"; + + public static StoreorderorderidGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Storeorderorderid.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new StoreorderorderidGetResponses.StoreorderorderidGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default StoreorderorderidGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface GetOrderByIdOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default StoreorderorderidGetResponses.EndpointResponse getOrderById(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public StoreorderorderidGetPathParameters.PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public GetRequest( + StoreorderorderidGetPathParameters.PathParametersMap pathParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class GetNullableRequest { + public StoreorderorderidGetPathParameters.@Nullable PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetNullableRequest getInstance(); + T getBuilderAfterServerIndex(GetNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetNullableRequest getInstance(); + T getBuilderAfterTimeout(GetNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + GetNullableRequest getInstance(); + T getBuilderAfterPathParameters(GetNullableRequest instance); + default T pathParameters(StoreorderorderidGetPathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetNullableRequest instance; + + public Get0RequestBuilder(GetNullableRequest instance) { + this.instance = instance; + } + + public GetRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new GetRequest( + pathParameters, + instance.serverIndex, + instance.timeout + ); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + return this; + } + } + public static class GetRequestBuilder implements SetterForPathParameters { + private final GetNullableRequest instance; + + public GetRequestBuilder() { + this.instance = new GetNullableRequest(); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { + return new Get0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java new file mode 100644 index 00000000000..be0db492e8e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.delete; + +import org.openapijsonschematools.client.paths.storeorderorderid.delete.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("order_id", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java new file mode 100644 index 00000000000..333df7667ee --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeletePathParameters.java @@ -0,0 +1,205 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.delete; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class StoreorderorderidDeletePathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "order_id" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return StoreorderorderidDeletePathParameters1.getInstance().validate(arg, configuration); + } + + public String order_id() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForOrderId { + Map getInstance(); + T getBuilderAfterOrderId(Map instance); + + default T order_id(String value) { + var instance = getInstance(); + instance.put("order_id", value); + return getBuilderAfterOrderId(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "order_id" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForOrderId { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterOrderId(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface StoreorderorderidDeletePathParameters1Boxed permits StoreorderorderidDeletePathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record StoreorderorderidDeletePathParameters1BoxedMap(PathParametersMap data) implements StoreorderorderidDeletePathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class StoreorderorderidDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable StoreorderorderidDeletePathParameters1 instance = null; + + protected StoreorderorderidDeletePathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("order_id", Schema0.Schema01.class) + )) + .required(Set.of( + "order_id" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static StoreorderorderidDeletePathParameters1 getInstance() { + if (instance == null) { + instance = new StoreorderorderidDeletePathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public StoreorderorderidDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new StoreorderorderidDeletePathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public StoreorderorderidDeletePathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java new file mode 100644 index 00000000000..4e2878c3135 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/StoreorderorderidDeleteResponses.java @@ -0,0 +1,61 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.delete; + +import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode400Response; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.StoreorderorderidDeleteCode404Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class StoreorderorderidDeleteResponses { + + public sealed interface StatusCodeResponseDeserializer permits StatusStoreorderorderidDeleteCode400ResponseDeserializer, StatusStoreorderorderidDeleteCode404ResponseDeserializer {} + + public static final class StatusStoreorderorderidDeleteCode400ResponseDeserializer extends StoreorderorderidDeleteCode400Response.StoreorderorderidDeleteCode400Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusStoreorderorderidDeleteCode404ResponseDeserializer extends StoreorderorderidDeleteCode404Response.StoreorderorderidDeleteCode404Response1 implements StatusCodeResponseDeserializer { + } + + public static final class StoreorderorderidDeleteResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public StoreorderorderidDeleteResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("400", new StatusStoreorderorderidDeleteCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusStoreorderorderidDeleteCode404ResponseDeserializer()) + ); + } + + public Void deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusStoreorderorderidDeleteCode400ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new StoreorderorderidDeleteCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else { + StatusStoreorderorderidDeleteCode404ResponseDeserializer castDeserializer = (StatusStoreorderorderidDeleteCode404ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new StoreorderorderidDeleteCode404Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java new file mode 100644 index 00000000000..3f27fb09e43 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.delete.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "order_id", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..f1ef8de93ef --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.delete.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java new file mode 100644 index 00000000000..9cb784d6247 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.delete.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class StoreorderorderidDeleteCode400Response { + + public static class StoreorderorderidDeleteCode400Response1 extends ResponseDeserializer { + public StoreorderorderidDeleteCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java new file mode 100644 index 00000000000..db72a798656 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/responses/StoreorderorderidDeleteCode404Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.delete.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class StoreorderorderidDeleteCode404Response { + + public static class StoreorderorderidDeleteCode404Response1 extends ResponseDeserializer { + public StoreorderorderidDeleteCode404Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java new file mode 100644 index 00000000000..5e6d9bb0b5d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.get; + +import org.openapijsonschematools.client.paths.storeorderorderid.get.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("order_id", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java new file mode 100644 index 00000000000..b103bb5c279 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetPathParameters.java @@ -0,0 +1,223 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.storeorderorderid.get.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class StoreorderorderidGetPathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "order_id" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return StoreorderorderidGetPathParameters1.getInstance().validate(arg, configuration); + } + + public Number order_id() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForOrderId { + Map getInstance(); + T getBuilderAfterOrderId(Map instance); + + default T order_id(int value) { + var instance = getInstance(); + instance.put("order_id", value); + return getBuilderAfterOrderId(instance); + } + + default T order_id(float value) { + var instance = getInstance(); + instance.put("order_id", value); + return getBuilderAfterOrderId(instance); + } + + default T order_id(long value) { + var instance = getInstance(); + instance.put("order_id", value); + return getBuilderAfterOrderId(instance); + } + + default T order_id(double value) { + var instance = getInstance(); + instance.put("order_id", value); + return getBuilderAfterOrderId(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "order_id" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForOrderId { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterOrderId(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface StoreorderorderidGetPathParameters1Boxed permits StoreorderorderidGetPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record StoreorderorderidGetPathParameters1BoxedMap(PathParametersMap data) implements StoreorderorderidGetPathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class StoreorderorderidGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable StoreorderorderidGetPathParameters1 instance = null; + + protected StoreorderorderidGetPathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("order_id", Schema0.Schema01.class) + )) + .required(Set.of( + "order_id" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static StoreorderorderidGetPathParameters1 getInstance() { + if (instance == null) { + instance = new StoreorderorderidGetPathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof Number)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (Number) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public StoreorderorderidGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new StoreorderorderidGetPathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public StoreorderorderidGetPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java new file mode 100644 index 00000000000..fe5a0ecb10f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/StoreorderorderidGetResponses.java @@ -0,0 +1,77 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.get; + +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode200Response; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode400Response; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.StoreorderorderidGetCode404Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class StoreorderorderidGetResponses { + public sealed interface EndpointResponse permits EndpointStoreorderorderidGetCode200Response {} + + public record EndpointStoreorderorderidGetCode200Response( + HttpResponse response, + StoreorderorderidGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusStoreorderorderidGetCode200ResponseDeserializer, StatusStoreorderorderidGetCode400ResponseDeserializer, StatusStoreorderorderidGetCode404ResponseDeserializer {} + + public static final class StatusStoreorderorderidGetCode200ResponseDeserializer extends StoreorderorderidGetCode200Response.StoreorderorderidGetCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusStoreorderorderidGetCode400ResponseDeserializer extends StoreorderorderidGetCode400Response.StoreorderorderidGetCode400Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusStoreorderorderidGetCode404ResponseDeserializer extends StoreorderorderidGetCode404Response.StoreorderorderidGetCode404Response1 implements StatusCodeResponseDeserializer { + } + + public static final class StoreorderorderidGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public StoreorderorderidGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusStoreorderorderidGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusStoreorderorderidGetCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusStoreorderorderidGetCode404ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusStoreorderorderidGetCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointStoreorderorderidGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else if (statusCodeDeserializer instanceof StatusStoreorderorderidGetCode400ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new StoreorderorderidGetCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else { + StatusStoreorderorderidGetCode404ResponseDeserializer castDeserializer = (StatusStoreorderorderidGetCode404ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new StoreorderorderidGetCode404Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java new file mode 100644 index 00000000000..e1ad2e999a1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.storeorderorderid.get.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "order_id", + ParameterInType.PATH, + true, + ParameterStyle.SIMPLE, + false, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..b81d0724b97 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java @@ -0,0 +1,111 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.get.parameters.parameter0; +import java.util.HashSet; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.NumberSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class Schema0 { + // nest classes so all schemas and input/output classes can be public + + + public sealed interface Schema01Boxed permits Schema01BoxedNumber { + @Nullable Object getData(); + } + + public record Schema01BoxedNumber(Number data) implements Schema01Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Schema01 extends JsonSchema implements NumberSchemaValidator { + private static @Nullable Schema01 instance = null; + + protected Schema01() { + super(new JsonSchemaInfo() + .type(Set.of( + Integer.class, + Long.class, + Float.class, + Double.class + )) + .format("int64") + .maximum(5) + .minimum(1) + ); + } + + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + + @Override + public Number validate(Number arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + public int validate(int arg, SchemaConfiguration configuration) throws ValidationException { + return (int) validate((Number) arg, configuration); + } + + public float validate(float arg, SchemaConfiguration configuration) throws ValidationException { + return (float) validate((Number) arg, configuration); + } + + public long validate(long arg, SchemaConfiguration configuration) throws ValidationException { + return (long) validate((Number) arg, configuration); + } + + public double validate(double arg, SchemaConfiguration configuration) throws ValidationException { + return (double) validate((Number) arg, configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number) { + return validate((Number) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Number) { + return getNewInstance((Number) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public Schema01BoxedNumber validateAndBox(Number arg, SchemaConfiguration configuration) throws ValidationException { + return new Schema01BoxedNumber(validate(arg, configuration)); + } + @Override + public Schema01Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Number castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java new file mode 100644 index 00000000000..f15a3a49f9f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode200Response.java @@ -0,0 +1,81 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class StoreorderorderidGetCode200Response { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} + + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxmlMediaType() { + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.Order1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.Order1Boxed body) implements SealedResponseBody { } + + public static class StoreorderorderidGetCode200Response1 extends ResponseDeserializer { + public StoreorderorderidGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java new file mode 100644 index 00000000000..c444b171ea4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class StoreorderorderidGetCode400Response { + + public static class StoreorderorderidGetCode400Response1 extends ResponseDeserializer { + public StoreorderorderidGetCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java new file mode 100644 index 00000000000..39125cd7b5e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/StoreorderorderidGetCode404Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class StoreorderorderidGetCode404Response { + + public static class StoreorderorderidGetCode404Response1 extends ResponseDeserializer { + public StoreorderorderidGetCode404Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..b1b2c0183b4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Order; + +public class ApplicationjsonSchema extends Order { + // $refed class + + + public static class ApplicationjsonSchema1 extends Order1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java new file mode 100644 index 00000000000..91ca54812cd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.storeorderorderid.get.responses.code200response.content.applicationxml; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.Order; + +public class ApplicationxmlSchema extends Order { + // $refed class + + + public static class ApplicationxmlSchema1 extends Order1 { + private static @Nullable ApplicationxmlSchema1 instance = null; + public static ApplicationxmlSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxmlSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java new file mode 100644 index 00000000000..9881c39c507 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/UserPost.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.user; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.user.post.UserPostRequestBody; +import org.openapijsonschematools.client.paths.user.post.UserPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.User; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class UserPost { + private static class PostProvider { + private static final String method = "post"; + + public static UserPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new UserPostRequestBody.UserPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + User.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new UserPostResponses.UserPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UserPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface CreateUserOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UserPostResponses.EndpointResponse createUser(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public UserPostRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PostRequest( + UserPostRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public UserPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(UserPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + requestBody, + instance.serverIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForRequestBody { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java new file mode 100644 index 00000000000..9f4b9c37e2e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.user.post; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.user.post.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class UserPostRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class UserPostRequestBody1 extends RequestBodySerializer { + public UserPostRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + true + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java new file mode 100644 index 00000000000..f87b60de8c9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/UserPostResponses.java @@ -0,0 +1,37 @@ +package org.openapijsonschematools.client.paths.user.post; + +import org.openapijsonschematools.client.paths.user.post.responses.UserPostCodedefaultResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class UserPostResponses { + public sealed interface EndpointResponse permits EndpointUserPostCodedefaultResponse {} + + public record EndpointUserPostCodedefaultResponse( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public static final class UserPostResponses1 implements ResponsesDeserializer { + private final UserPostCodedefaultResponse.UserPostCodedefaultResponse1 defaultResponseDeserializer; + public UserPostResponses1() { + this.defaultResponseDeserializer = new UserPostCodedefaultResponse.UserPostCodedefaultResponse1(); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); + return new EndpointUserPostCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..b23c171aa6e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.user.post.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.User; + +public class ApplicationjsonSchema extends User { + // $refed class + + + public static class ApplicationjsonSchema1 extends User1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java new file mode 100644 index 00000000000..c5be0393da1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/user/post/responses/UserPostCodedefaultResponse.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.user.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UserPostCodedefaultResponse { + + public static class UserPostCodedefaultResponse1 extends ResponseDeserializer { + public UserPostCodedefaultResponse1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java new file mode 100644 index 00000000000..e3c07ef1234 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/UsercreatewitharrayPost.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.usercreatewitharray; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostRequestBody; +import org.openapijsonschematools.client.paths.usercreatewitharray.post.UsercreatewitharrayPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Usercreatewitharray; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class UsercreatewitharrayPost { + private static class PostProvider { + private static final String method = "post"; + + public static UsercreatewitharrayPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new UsercreatewitharrayPostRequestBody.UsercreatewitharrayPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Usercreatewitharray.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new UsercreatewitharrayPostResponses.UsercreatewitharrayPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UsercreatewitharrayPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface CreateUsersWithArrayInputOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UsercreatewitharrayPostResponses.EndpointResponse createUsersWithArrayInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PostRequest( + UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public UsercreatewitharrayPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(UsercreatewitharrayPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + requestBody, + instance.serverIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForRequestBody { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java new file mode 100644 index 00000000000..50224dc5a1c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostRequestBody.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.usercreatewitharray.post; + +import org.openapijsonschematools.client.components.requestbodies.UserArray; + +public class UsercreatewitharrayPostRequestBody extends UserArray { + public static class UsercreatewitharrayPostRequestBody1 extends UserArray1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java new file mode 100644 index 00000000000..6e7f68122fb --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/UsercreatewitharrayPostResponses.java @@ -0,0 +1,37 @@ +package org.openapijsonschematools.client.paths.usercreatewitharray.post; + +import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.UsercreatewitharrayPostCodedefaultResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class UsercreatewitharrayPostResponses { + public sealed interface EndpointResponse permits EndpointUsercreatewitharrayPostCodedefaultResponse {} + + public record EndpointUsercreatewitharrayPostCodedefaultResponse( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public static final class UsercreatewitharrayPostResponses1 implements ResponsesDeserializer { + private final UsercreatewitharrayPostCodedefaultResponse.UsercreatewitharrayPostCodedefaultResponse1 defaultResponseDeserializer; + public UsercreatewitharrayPostResponses1() { + this.defaultResponseDeserializer = new UsercreatewitharrayPostCodedefaultResponse.UsercreatewitharrayPostCodedefaultResponse1(); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); + return new EndpointUsercreatewitharrayPostCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java new file mode 100644 index 00000000000..9f3410d1091 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewitharray/post/responses/UsercreatewitharrayPostCodedefaultResponse.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.usercreatewitharray.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UsercreatewitharrayPostCodedefaultResponse { + + public static class UsercreatewitharrayPostCodedefaultResponse1 extends ResponseDeserializer { + public UsercreatewitharrayPostCodedefaultResponse1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java new file mode 100644 index 00000000000..0d346b0d866 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/UsercreatewithlistPost.java @@ -0,0 +1,183 @@ +package org.openapijsonschematools.client.paths.usercreatewithlist; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostRequestBody; +import org.openapijsonschematools.client.paths.usercreatewithlist.post.UsercreatewithlistPostResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Usercreatewithlist; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class UsercreatewithlistPost { + private static class PostProvider { + private static final String method = "post"; + + public static UsercreatewithlistPostResponses.EndpointResponse post( + PostRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new UsercreatewithlistPostRequestBody.UsercreatewithlistPostRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Usercreatewithlist.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new UsercreatewithlistPostResponses.UsercreatewithlistPostResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface PostOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UsercreatewithlistPostResponses.EndpointResponse post(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface CreateUsersWithListInputOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UsercreatewithlistPostResponses.EndpointResponse createUsersWithListInput(PostRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PostProvider.post(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Post extends ApiClient implements PostOperation { + public Post(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PostRequest { + public UsercreatewithlistPostRequestBody.SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PostRequest( + UsercreatewithlistPostRequestBody.SealedRequestBody requestBody, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PostNullableRequest { + public UsercreatewithlistPostRequestBody.@Nullable SealedRequestBody requestBody; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PostNullableRequest getInstance(); + T getBuilderAfterServerIndex(PostNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PostNullableRequest getInstance(); + T getBuilderAfterTimeout(PostNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PostNullableRequest getInstance(); + T getBuilderAfterRequestBody(PostNullableRequest instance); + default T requestBody(UsercreatewithlistPostRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public static class Post0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PostNullableRequest instance; + + public Post0RequestBuilder(PostNullableRequest instance) { + this.instance = instance; + } + + public PostRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PostRequest( + requestBody, + instance.serverIndex, + instance.timeout + ); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterServerIndex(PostNullableRequest instance) { + return this; + } + + public Post0RequestBuilder getBuilderAfterTimeout(PostNullableRequest instance) { + return this; + } + } + public static class PostRequestBuilder implements SetterForRequestBody { + private final PostNullableRequest instance; + + public PostRequestBuilder() { + this.instance = new PostNullableRequest(); + } + + public PostNullableRequest getInstance() { + return instance; + } + + public Post0RequestBuilder getBuilderAfterRequestBody(PostNullableRequest instance) { + return new Post0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java new file mode 100644 index 00000000000..1d84fbcdb44 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostRequestBody.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.usercreatewithlist.post; + +import org.openapijsonschematools.client.components.requestbodies.RefUserArray; + +public class UsercreatewithlistPostRequestBody extends RefUserArray { + public static class UsercreatewithlistPostRequestBody1 extends RefUserArray1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java new file mode 100644 index 00000000000..082e179676e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/UsercreatewithlistPostResponses.java @@ -0,0 +1,37 @@ +package org.openapijsonschematools.client.paths.usercreatewithlist.post; + +import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.UsercreatewithlistPostCodedefaultResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class UsercreatewithlistPostResponses { + public sealed interface EndpointResponse permits EndpointUsercreatewithlistPostCodedefaultResponse {} + + public record EndpointUsercreatewithlistPostCodedefaultResponse( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public static final class UsercreatewithlistPostResponses1 implements ResponsesDeserializer { + private final UsercreatewithlistPostCodedefaultResponse.UsercreatewithlistPostCodedefaultResponse1 defaultResponseDeserializer; + public UsercreatewithlistPostResponses1() { + this.defaultResponseDeserializer = new UsercreatewithlistPostCodedefaultResponse.UsercreatewithlistPostCodedefaultResponse1(); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); + return new EndpointUsercreatewithlistPostCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java new file mode 100644 index 00000000000..6966b53669d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/usercreatewithlist/post/responses/UsercreatewithlistPostCodedefaultResponse.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.usercreatewithlist.post.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UsercreatewithlistPostCodedefaultResponse { + + public static class UsercreatewithlistPostCodedefaultResponse1 extends ResponseDeserializer { + public UsercreatewithlistPostCodedefaultResponse1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java new file mode 100644 index 00000000000..5a65e591c6d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/UserloginGet.java @@ -0,0 +1,180 @@ +package org.openapijsonschematools.client.paths.userlogin; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetQueryParameters; +import org.openapijsonschematools.client.paths.userlogin.get.Parameters; +import org.openapijsonschematools.client.paths.userlogin.get.UserloginGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Userlogin; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class UserloginGet { + private static class GetProvider { + private static final String method = "get"; + + public static UserloginGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var querySerializer = new Parameters.QueryParametersSerializer(); + @Nullable Map queryMap = querySerializer.getQueryMap(request.queryParameters); + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Userlogin.path; + if (queryMap != null) { + url = url + querySerializer.serialize(queryMap); + } + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new UserloginGetResponses.UserloginGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UserloginGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface LoginUserOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UserloginGetResponses.EndpointResponse loginUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public UserloginGetQueryParameters.QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public GetRequest( + UserloginGetQueryParameters.QueryParametersMap queryParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.queryParameters = queryParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class GetNullableRequest { + public UserloginGetQueryParameters.@Nullable QueryParametersMap queryParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetNullableRequest getInstance(); + T getBuilderAfterServerIndex(GetNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetNullableRequest getInstance(); + T getBuilderAfterTimeout(GetNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForQueryParameters { + GetNullableRequest getInstance(); + T getBuilderAfterQueryParameters(GetNullableRequest instance); + default T queryParameters(UserloginGetQueryParameters.QueryParametersMap queryParameters) { + var instance = getInstance(); + instance.queryParameters = queryParameters; + return getBuilderAfterQueryParameters(instance); + } + } + + public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetNullableRequest instance; + + public Get0RequestBuilder(GetNullableRequest instance) { + this.instance = instance; + } + + public GetRequest build() { + var queryParameters = instance.queryParameters; + if (queryParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new GetRequest( + queryParameters, + instance.serverIndex, + instance.timeout + ); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + return this; + } + } + public static class GetRequestBuilder implements SetterForQueryParameters { + private final GetNullableRequest instance; + + public GetRequestBuilder() { + this.instance = new GetNullableRequest(); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterQueryParameters(GetNullableRequest instance) { + return new Get0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java new file mode 100644 index 00000000000..0e29f41858d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/Parameters.java @@ -0,0 +1,22 @@ +package org.openapijsonschematools.client.paths.userlogin.get; + +import org.openapijsonschematools.client.paths.userlogin.get.parameters.Parameter0; +import org.openapijsonschematools.client.paths.userlogin.get.parameters.Parameter1; +import org.openapijsonschematools.client.parameter.QuerySerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class QueryParametersSerializer extends QuerySerializer { + public QueryParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("username", new Parameter0.Parameter01()), + new AbstractMap.SimpleEntry<>("password", new Parameter1.Parameter11()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java new file mode 100644 index 00000000000..c42b97df5ca --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetQueryParameters.java @@ -0,0 +1,255 @@ +package org.openapijsonschematools.client.paths.userlogin.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter0.Schema0; +import org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter1.Schema1; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class UserloginGetQueryParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class QueryParametersMap extends FrozenMap<@Nullable Object> { + protected QueryParametersMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "password", + "username" + ); + public static final Set optionalKeys = Set.of(); + public static QueryParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return UserloginGetQueryParameters1.getInstance().validate(arg, configuration); + } + + public String password() { + @Nullable Object value = get("password"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for password"); + } + return (String) value; + } + + public String username() { + @Nullable Object value = get("username"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for username"); + } + return (String) value; + } + } + + public interface SetterForPassword { + Map getInstance(); + T getBuilderAfterPassword(Map instance); + + default T password(String value) { + var instance = getInstance(); + instance.put("password", value); + return getBuilderAfterPassword(instance); + } + } + + public interface SetterForUsername { + Map getInstance(); + T getBuilderAfterUsername(Map instance); + + default T username(String value) { + var instance = getInstance(); + instance.put("username", value); + return getBuilderAfterUsername(instance); + } + } + + public static class QueryParametersMap00Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "password", + "username" + ); + public Set getKnownKeys() { + return knownKeys; + } + public QueryParametersMap00Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class QueryParametersMap01Builder implements SetterForUsername { + private final Map instance; + public QueryParametersMap01Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap00Builder getBuilderAfterUsername(Map instance) { + return new QueryParametersMap00Builder(instance); + } + } + + public static class QueryParametersMap10Builder implements SetterForPassword { + private final Map instance; + public QueryParametersMap10Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public QueryParametersMap00Builder getBuilderAfterPassword(Map instance) { + return new QueryParametersMap00Builder(instance); + } + } + + public static class QueryParametersMapBuilder implements SetterForPassword, SetterForUsername { + private final Map instance; + public QueryParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public QueryParametersMap01Builder getBuilderAfterPassword(Map instance) { + return new QueryParametersMap01Builder(instance); + } + public QueryParametersMap10Builder getBuilderAfterUsername(Map instance) { + return new QueryParametersMap10Builder(instance); + } + } + + + public sealed interface UserloginGetQueryParameters1Boxed permits UserloginGetQueryParameters1BoxedMap { + @Nullable Object getData(); + } + + public record UserloginGetQueryParameters1BoxedMap(QueryParametersMap data) implements UserloginGetQueryParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class UserloginGetQueryParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable UserloginGetQueryParameters1 instance = null; + + protected UserloginGetQueryParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("password", Schema1.Schema11.class), + new PropertyEntry("username", Schema0.Schema01.class) + )) + .required(Set.of( + "password", + "username" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static UserloginGetQueryParameters1 getInstance() { + if (instance == null) { + instance = new UserloginGetQueryParameters1(); + } + return instance; + } + + public QueryParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new QueryParametersMap(castProperties); + } + + public QueryParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public UserloginGetQueryParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new UserloginGetQueryParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public UserloginGetQueryParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java new file mode 100644 index 00000000000..8e5613c7641 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/UserloginGetResponses.java @@ -0,0 +1,67 @@ +package org.openapijsonschematools.client.paths.userlogin.get; + +import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode200Response; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.UserloginGetCode400Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class UserloginGetResponses { + public sealed interface EndpointResponse permits EndpointUserloginGetCode200Response {} + + public record EndpointUserloginGetCode200Response( + HttpResponse response, + UserloginGetCode200Response.SealedResponseBody body, + UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusUserloginGetCode200ResponseDeserializer, StatusUserloginGetCode400ResponseDeserializer {} + + public static final class StatusUserloginGetCode200ResponseDeserializer extends UserloginGetCode200Response.UserloginGetCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusUserloginGetCode400ResponseDeserializer extends UserloginGetCode400Response.UserloginGetCode400Response1 implements StatusCodeResponseDeserializer { + } + + public static final class UserloginGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public UserloginGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusUserloginGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusUserloginGetCode400ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusUserloginGetCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointUserloginGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else { + StatusUserloginGetCode400ResponseDeserializer castDeserializer = (StatusUserloginGetCode400ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new UserloginGetCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter0.java new file mode 100644 index 00000000000..db4b2c26b2e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter0.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.userlogin.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter0.Schema0; + +public class Parameter0 { + + public static class Parameter01 extends SchemaParameter { + public Parameter01() { + super( + "username", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema0.Schema01.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java new file mode 100644 index 00000000000..958cf010fab --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/Parameter1.java @@ -0,0 +1,23 @@ +package org.openapijsonschematools.client.paths.userlogin.get.parameters; + +import org.openapijsonschematools.client.parameter.ParameterStyle; +import org.openapijsonschematools.client.parameter.ParameterInType; +import org.openapijsonschematools.client.parameter.SchemaParameter; +import org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter1.Schema1; + +public class Parameter1 { + + public static class Parameter11 extends SchemaParameter { + public Parameter11() { + super( + "password", + ParameterInType.QUERY, + true, + ParameterStyle.FORM, + true, + false, + Schema1.Schema11.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java new file mode 100644 index 00000000000..8450f67fc2b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter0/Schema0.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter0; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema0 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema01 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema01 instance = null; + public static Schema01 getInstance() { + if (instance == null) { + instance = new Schema01(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java new file mode 100644 index 00000000000..9eed3552b1f --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/parameters/parameter1/Schema1.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.userlogin.get.parameters.parameter1; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class Schema1 extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class Schema11 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable Schema11 instance = null; + public static Schema11 getInstance() { + if (instance == null) { + instance = new Schema11(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java new file mode 100644 index 00000000000..07992812d1e --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode200Response.java @@ -0,0 +1,83 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.UserloginGetCode200ResponseHeadersSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.Headers; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UserloginGetCode200Response { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} + + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxmlMediaType() { + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.StringJsonSchema1Boxed body) implements SealedResponseBody { } + + public static class UserloginGetCode200Response1 extends ResponseDeserializer { + public UserloginGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + } + + @Override + protected UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchemaMap getHeaders(HttpHeaders headers, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + return new Headers().deserialize(headers, configuration); + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java new file mode 100644 index 00000000000..a9e9d3cb6b0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/UserloginGetCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UserloginGetCode400Response { + + public static class UserloginGetCode400Response1 extends ResponseDeserializer { + public UserloginGetCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java new file mode 100644 index 00000000000..5c6b5922c54 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Headers.java @@ -0,0 +1,26 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response; + +import org.openapijsonschematools.client.response.HeadersDeserializer; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.XRateLimit; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.Int32; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.XExpiresAfter; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.Refcontentschemaheader; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.NumberHeader; + +import java.util.Map; +import java.util.AbstractMap; + +public class Headers extends HeadersDeserializer { + public Headers() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("X-Rate-Limit", new XRateLimit.XRateLimit1()), + new AbstractMap.SimpleEntry<>("int32", new Int32.Int321()), + new AbstractMap.SimpleEntry<>("X-Expires-After", new XExpiresAfter.XExpiresAfter1()), + new AbstractMap.SimpleEntry<>("ref-content-schema-header", new Refcontentschemaheader.Refcontentschemaheader1()), + new AbstractMap.SimpleEntry<>("numberHeader", new NumberHeader.NumberHeader1()) + ), + UserloginGetCode200ResponseHeadersSchema.UserloginGetCode200ResponseHeadersSchema1.getInstance() + ); + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java new file mode 100644 index 00000000000..49828653caa --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/UserloginGetCode200ResponseHeadersSchema.java @@ -0,0 +1,389 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.headers.int32jsoncontenttypeheader.content.applicationjson.Int32JsonContentTypeHeaderSchema; +import org.openapijsonschematools.client.components.headers.numberheader.NumberHeaderSchema; +import org.openapijsonschematools.client.components.schemas.StringWithValidation; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xexpiresafter.XExpiresAfterSchema; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xratelimit.content.applicationjson.XRateLimitSchema; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class UserloginGetCode200ResponseHeadersSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class UserloginGetCode200ResponseAdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable UserloginGetCode200ResponseAdditionalProperties instance = null; + public static UserloginGetCode200ResponseAdditionalProperties getInstance() { + if (instance == null) { + instance = new UserloginGetCode200ResponseAdditionalProperties(); + } + return instance; + } + } + + + public static class UserloginGetCode200ResponseHeadersSchemaMap extends FrozenMap<@Nullable Object> { + protected UserloginGetCode200ResponseHeadersSchemaMap(FrozenMap<@Nullable Object> m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "X-Rate-Limit", + "int32", + "ref-content-schema-header" + ); + public static final Set optionalKeys = Set.of( + "X-Expires-After", + "numberHeader" + ); + public static UserloginGetCode200ResponseHeadersSchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return UserloginGetCode200ResponseHeadersSchema1.getInstance().validate(arg, configuration); + } + + public Number int32() { + @Nullable Object value = get("int32"); + if (!(value instanceof Number)) { + throw new RuntimeException("Invalid value stored for int32"); + } + return (Number) value; + } + + public String numberHeader() throws UnsetPropertyException { + String key = "numberHeader"; + throwIfKeyNotPresent(key); + @Nullable Object value = get(key); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for numberHeader"); + } + return (String) value; + } + } + + public interface SetterForUserloginGetCode200ResponseXRateLimit { + Map getInstance(); + T getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance); + + default T xHyphenMinusRateHyphenMinusLimit(int value) { + var instance = getInstance(); + instance.put("X-Rate-Limit", value); + return getBuilderAfterUserloginGetCode200ResponseXRateLimit(instance); + } + + default T xHyphenMinusRateHyphenMinusLimit(float value) { + var instance = getInstance(); + instance.put("X-Rate-Limit", value); + return getBuilderAfterUserloginGetCode200ResponseXRateLimit(instance); + } + } + + public interface SetterForUserloginGetCode200ResponseInt32 { + Map getInstance(); + T getBuilderAfterUserloginGetCode200ResponseInt32(Map instance); + + default T int32(int value) { + var instance = getInstance(); + instance.put("int32", value); + return getBuilderAfterUserloginGetCode200ResponseInt32(instance); + } + + default T int32(float value) { + var instance = getInstance(); + instance.put("int32", value); + return getBuilderAfterUserloginGetCode200ResponseInt32(instance); + } + } + + public interface SetterForUserloginGetCode200ResponseRefcontentschemaheader { + Map getInstance(); + T getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance); + + default T refHyphenMinusContentHyphenMinusSchemaHyphenMinusHeader(String value) { + var instance = getInstance(); + instance.put("ref-content-schema-header", value); + return getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(instance); + } + } + + public interface SetterForUserloginGetCode200ResponseXExpiresAfter { + Map getInstance(); + T getBuilderAfterUserloginGetCode200ResponseXExpiresAfter(Map instance); + + default T xHyphenMinusExpiresHyphenMinusAfter(String value) { + var instance = getInstance(); + instance.put("X-Expires-After", value); + return getBuilderAfterUserloginGetCode200ResponseXExpiresAfter(instance); + } + } + + public interface SetterForUserloginGetCode200ResponseNumberHeader { + Map getInstance(); + T getBuilderAfterUserloginGetCode200ResponseNumberHeader(Map instance); + + default T numberHeader(String value) { + var instance = getInstance(); + instance.put("numberHeader", value); + return getBuilderAfterUserloginGetCode200ResponseNumberHeader(instance); + } + } + + public static class UserloginGetCode200ResponseHeadersSchemaMap000Builder implements GenericBuilder>, SetterForUserloginGetCode200ResponseXExpiresAfter, SetterForUserloginGetCode200ResponseNumberHeader { + private final Map instance; + private static final Set knownKeys = Set.of( + "X-Rate-Limit", + "int32", + "ref-content-schema-header", + "X-Expires-After", + "numberHeader" + ); + public Set getKnownKeys() { + return knownKeys; + } + public UserloginGetCode200ResponseHeadersSchemaMap000Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + public Map getInstance() { + return instance; + } + public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseXExpiresAfter(Map instance) { + return this; + } + public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseNumberHeader(Map instance) { + return this; + } + } + + public static class UserloginGetCode200ResponseHeadersSchemaMap001Builder implements SetterForUserloginGetCode200ResponseRefcontentschemaheader { + private final Map instance; + public UserloginGetCode200ResponseHeadersSchemaMap001Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap000Builder(instance); + } + } + + public static class UserloginGetCode200ResponseHeadersSchemaMap010Builder implements SetterForUserloginGetCode200ResponseInt32 { + private final Map instance; + public UserloginGetCode200ResponseHeadersSchemaMap010Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap000Builder(instance); + } + } + + public static class UserloginGetCode200ResponseHeadersSchemaMap011Builder implements SetterForUserloginGetCode200ResponseInt32, SetterForUserloginGetCode200ResponseRefcontentschemaheader { + private final Map instance; + public UserloginGetCode200ResponseHeadersSchemaMap011Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public UserloginGetCode200ResponseHeadersSchemaMap001Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap001Builder(instance); + } + public UserloginGetCode200ResponseHeadersSchemaMap010Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap010Builder(instance); + } + } + + public static class UserloginGetCode200ResponseHeadersSchemaMap100Builder implements SetterForUserloginGetCode200ResponseXRateLimit { + private final Map instance; + public UserloginGetCode200ResponseHeadersSchemaMap100Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public UserloginGetCode200ResponseHeadersSchemaMap000Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap000Builder(instance); + } + } + + public static class UserloginGetCode200ResponseHeadersSchemaMap101Builder implements SetterForUserloginGetCode200ResponseXRateLimit, SetterForUserloginGetCode200ResponseRefcontentschemaheader { + private final Map instance; + public UserloginGetCode200ResponseHeadersSchemaMap101Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public UserloginGetCode200ResponseHeadersSchemaMap001Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap001Builder(instance); + } + public UserloginGetCode200ResponseHeadersSchemaMap100Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap100Builder(instance); + } + } + + public static class UserloginGetCode200ResponseHeadersSchemaMap110Builder implements SetterForUserloginGetCode200ResponseXRateLimit, SetterForUserloginGetCode200ResponseInt32 { + private final Map instance; + public UserloginGetCode200ResponseHeadersSchemaMap110Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public UserloginGetCode200ResponseHeadersSchemaMap010Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap010Builder(instance); + } + public UserloginGetCode200ResponseHeadersSchemaMap100Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap100Builder(instance); + } + } + + public static class UserloginGetCode200ResponseHeadersSchemaMapBuilder implements SetterForUserloginGetCode200ResponseXRateLimit, SetterForUserloginGetCode200ResponseInt32, SetterForUserloginGetCode200ResponseRefcontentschemaheader { + private final Map instance; + public UserloginGetCode200ResponseHeadersSchemaMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public UserloginGetCode200ResponseHeadersSchemaMap011Builder getBuilderAfterUserloginGetCode200ResponseXRateLimit(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap011Builder(instance); + } + public UserloginGetCode200ResponseHeadersSchemaMap101Builder getBuilderAfterUserloginGetCode200ResponseInt32(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap101Builder(instance); + } + public UserloginGetCode200ResponseHeadersSchemaMap110Builder getBuilderAfterUserloginGetCode200ResponseRefcontentschemaheader(Map instance) { + return new UserloginGetCode200ResponseHeadersSchemaMap110Builder(instance); + } + } + + + public sealed interface UserloginGetCode200ResponseHeadersSchema1Boxed permits UserloginGetCode200ResponseHeadersSchema1BoxedMap { + @Nullable Object getData(); + } + + public record UserloginGetCode200ResponseHeadersSchema1BoxedMap(UserloginGetCode200ResponseHeadersSchemaMap data) implements UserloginGetCode200ResponseHeadersSchema1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class UserloginGetCode200ResponseHeadersSchema1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable UserloginGetCode200ResponseHeadersSchema1 instance = null; + + protected UserloginGetCode200ResponseHeadersSchema1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("X-Rate-Limit", XRateLimitSchema.XRateLimitSchema1.class), + new PropertyEntry("int32", Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1.class), + new PropertyEntry("X-Expires-After", XExpiresAfterSchema.XExpiresAfterSchema1.class), + new PropertyEntry("ref-content-schema-header", StringWithValidation.StringWithValidation1.class), + new PropertyEntry("numberHeader", NumberHeaderSchema.NumberHeaderSchema1.class) + )) + .required(Set.of( + "X-Rate-Limit", + "int32", + "ref-content-schema-header" + )) + .additionalProperties(UserloginGetCode200ResponseAdditionalProperties.class) + ); + } + + public static UserloginGetCode200ResponseHeadersSchema1 getInstance() { + if (instance == null) { + instance = new UserloginGetCode200ResponseHeadersSchema1(); + } + return instance; + } + + public UserloginGetCode200ResponseHeadersSchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + properties.put(propertyName, propertyInstance); + } + FrozenMap<@Nullable Object> castProperties = new FrozenMap<>(properties); + return new UserloginGetCode200ResponseHeadersSchemaMap(castProperties); + } + + public UserloginGetCode200ResponseHeadersSchemaMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public UserloginGetCode200ResponseHeadersSchema1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new UserloginGetCode200ResponseHeadersSchema1BoxedMap(validate(arg, configuration)); + } + @Override + public UserloginGetCode200ResponseHeadersSchema1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..93f4ea3148c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class ApplicationjsonSchema extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationjsonSchema1 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java new file mode 100644 index 00000000000..557f1fbe8d1 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.content.applicationxml; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.StringJsonSchema; + +public class ApplicationxmlSchema extends StringJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class ApplicationxmlSchema1 extends StringJsonSchema.StringJsonSchema1 { + private static @Nullable ApplicationxmlSchema1 instance = null; + public static ApplicationxmlSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxmlSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Int32.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Int32.java new file mode 100644 index 00000000000..e58a6bc7a89 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Int32.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers; + +import org.openapijsonschematools.client.components.headers.Int32JsonContentTypeHeader; + +public class Int32 extends Int32JsonContentTypeHeader { + public static class Int321 extends Int32JsonContentTypeHeader1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/NumberHeader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/NumberHeader.java new file mode 100644 index 00000000000..32207ae7232 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/NumberHeader.java @@ -0,0 +1,3 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers; + +public class NumberHeader extends org.openapijsonschematools.client.components.headers.NumberHeader {} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Refcontentschemaheader.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Refcontentschemaheader.java new file mode 100644 index 00000000000..2e61fb18770 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/Refcontentschemaheader.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers; + +import org.openapijsonschematools.client.components.headers.RefContentSchemaHeader; + +public class Refcontentschemaheader extends RefContentSchemaHeader { + public static class Refcontentschemaheader1 extends RefContentSchemaHeader1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XExpiresAfter.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XExpiresAfter.java new file mode 100644 index 00000000000..16c17845941 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XExpiresAfter.java @@ -0,0 +1,18 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers; + +import org.openapijsonschematools.client.header.SchemaHeader; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xexpiresafter.XExpiresAfterSchema; + +public class XExpiresAfter { + + public static class XExpiresAfter1 extends SchemaHeader { + public XExpiresAfter1() { + super( + false, + null, + false, + XExpiresAfterSchema.XExpiresAfterSchema1.getInstance() + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XRateLimit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XRateLimit.java new file mode 100644 index 00000000000..f7e9a714406 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/XRateLimit.java @@ -0,0 +1,31 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers; + +import org.openapijsonschematools.client.header.ContentHeader; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xratelimit.content.applicationjson.XRateLimitSchema; + +import java.util.AbstractMap; + +public class XRateLimit { + + public record ApplicationjsonMediaType(XRateLimitSchema.XRateLimitSchema1 schema) implements MediaType { + public ApplicationjsonMediaType() { + this(XRateLimitSchema.XRateLimitSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class XRateLimit1 extends ContentHeader { + public XRateLimit1() { + super( + true, + null, + false, + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java new file mode 100644 index 00000000000..13ec38f4440 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xexpiresafter; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.DateTimeJsonSchema; + +public class XExpiresAfterSchema extends DateTimeJsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class XExpiresAfterSchema1 extends DateTimeJsonSchema.DateTimeJsonSchema1 { + private static @Nullable XExpiresAfterSchema1 instance = null; + public static XExpiresAfterSchema1 getInstance() { + if (instance == null) { + instance = new XExpiresAfterSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java new file mode 100644 index 00000000000..9ce160e834c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.headers.xratelimit.content.applicationjson; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.schemas.Int32JsonSchema; + +public class XRateLimitSchema extends Int32JsonSchema { + // nest classes so all schemas and input/output classes can be public + + + public static class XRateLimitSchema1 extends Int32JsonSchema.Int32JsonSchema1 { + private static @Nullable XRateLimitSchema1 instance = null; + public static XRateLimitSchema1 getInstance() { + if (instance == null) { + instance = new XRateLimitSchema1(); + } + return instance; + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java new file mode 100644 index 00000000000..b55850dcc33 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/UserlogoutGet.java @@ -0,0 +1,124 @@ +package org.openapijsonschematools.client.paths.userlogout; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.userlogout.get.UserlogoutGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Userlogout; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class UserlogoutGet { + private static class GetProvider { + private static final String method = "get"; + + public static UserlogoutGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + Userlogout.path; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new UserlogoutGetResponses.UserlogoutGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UserlogoutGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface LogoutUserOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UserlogoutGetResponses.EndpointResponse logoutUser(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetRequest getInstance(); + T getBuilderAfterServerIndex(GetRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetRequest getInstance(); + T getBuilderAfterTimeout(GetRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public static class GetRequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetRequest instance; + + public GetRequestBuilder() { + this.instance = new GetRequest(); + } + + public GetRequest build() { + return instance; + } + + public GetRequest getInstance() { + return instance; + } + + public GetRequestBuilder getBuilderAfterServerIndex(GetRequest instance) { + return this; + } + + public GetRequestBuilder getBuilderAfterTimeout(GetRequest instance) { + return this; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java new file mode 100644 index 00000000000..e122fdd65e0 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/UserlogoutGetResponses.java @@ -0,0 +1,37 @@ +package org.openapijsonschematools.client.paths.userlogout.get; + +import org.openapijsonschematools.client.paths.userlogout.get.responses.UserlogoutGetCodedefaultResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class UserlogoutGetResponses { + public sealed interface EndpointResponse permits EndpointUserlogoutGetCodedefaultResponse {} + + public record EndpointUserlogoutGetCodedefaultResponse( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public static final class UserlogoutGetResponses1 implements ResponsesDeserializer { + private final UserlogoutGetCodedefaultResponse.UserlogoutGetCodedefaultResponse1 defaultResponseDeserializer; + public UserlogoutGetResponses1() { + this.defaultResponseDeserializer = new UserlogoutGetCodedefaultResponse.UserlogoutGetCodedefaultResponse1(); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + var deserializedResponse = defaultResponseDeserializer.deserialize(response, configuration); + return new EndpointUserlogoutGetCodedefaultResponse(response, deserializedResponse.body(), deserializedResponse.headers()); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.java new file mode 100644 index 00000000000..18fa2331b9a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogout/get/responses/UserlogoutGetCodedefaultResponse.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.userlogout.get.responses; + +import org.openapijsonschematools.client.components.responses.RefSuccessDescriptionOnly; + +public class UserlogoutGetCodedefaultResponse extends RefSuccessDescriptionOnly { + public static class UserlogoutGetCodedefaultResponse1 extends RefSuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java new file mode 100644 index 00000000000..62d4bc7efe2 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameDelete.java @@ -0,0 +1,179 @@ +package org.openapijsonschematools.client.paths.userusername; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeletePathParameters; +import org.openapijsonschematools.client.paths.userusername.delete.Parameters; +import org.openapijsonschematools.client.paths.userusername.delete.UserusernameDeleteResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Userusername; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class UserusernameDelete { + private static class DeleteProvider { + private static final String method = "delete"; + + public static UserusernameDeleteResponses.EndpointResponse delete( + DeleteRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Userusername.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new UserusernameDeleteResponses.UserusernameDeleteResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface DeleteOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UserusernameDeleteResponses.EndpointResponse delete(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface DeleteUserOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UserusernameDeleteResponses.EndpointResponse deleteUser(DeleteRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return DeleteProvider.delete(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Delete extends ApiClient implements DeleteOperation { + public Delete(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class DeleteRequest { + public UserusernameDeletePathParameters.PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public DeleteRequest( + UserusernameDeletePathParameters.PathParametersMap pathParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class DeleteNullableRequest { + public UserusernameDeletePathParameters.@Nullable PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + DeleteNullableRequest getInstance(); + T getBuilderAfterServerIndex(DeleteNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + DeleteNullableRequest getInstance(); + T getBuilderAfterTimeout(DeleteNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + DeleteNullableRequest getInstance(); + T getBuilderAfterPathParameters(DeleteNullableRequest instance); + default T pathParameters(UserusernameDeletePathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Delete0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final DeleteNullableRequest instance; + + public Delete0RequestBuilder(DeleteNullableRequest instance) { + this.instance = instance; + } + + public DeleteRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new DeleteRequest( + pathParameters, + instance.serverIndex, + instance.timeout + ); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete0RequestBuilder getBuilderAfterServerIndex(DeleteNullableRequest instance) { + return this; + } + + public Delete0RequestBuilder getBuilderAfterTimeout(DeleteNullableRequest instance) { + return this; + } + } + public static class DeleteRequestBuilder implements SetterForPathParameters { + private final DeleteNullableRequest instance; + + public DeleteRequestBuilder() { + this.instance = new DeleteNullableRequest(); + } + + public DeleteNullableRequest getInstance() { + return instance; + } + + public Delete0RequestBuilder getBuilderAfterPathParameters(DeleteNullableRequest instance) { + return new Delete0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java new file mode 100644 index 00000000000..9f49051e830 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernameGet.java @@ -0,0 +1,179 @@ +package org.openapijsonschematools.client.paths.userusername; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetPathParameters; +import org.openapijsonschematools.client.paths.userusername.get.Parameters; +import org.openapijsonschematools.client.paths.userusername.get.UserusernameGetResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.paths.Userusername; + +import java.io.IOException; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class UserusernameGet { + private static class GetProvider { + private static final String method = "get"; + + public static UserusernameGetResponses.EndpointResponse get( + GetRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.noBody(); + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Userusername.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + var responsesDeserializer = new UserusernameGetResponses.UserusernameGetResponses1(); + return responsesDeserializer.deserialize(response, schemaConfiguration); + } + } + + public interface GetOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UserusernameGetResponses.EndpointResponse get(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface GetUserByNameOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default UserusernameGetResponses.EndpointResponse getUserByName(GetRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return GetProvider.get(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Get extends ApiClient implements GetOperation { + public Get(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class GetRequest { + public UserusernameGetPathParameters.PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public GetRequest( + UserusernameGetPathParameters.PathParametersMap pathParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.pathParameters = pathParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class GetNullableRequest { + public UserusernameGetPathParameters.@Nullable PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + GetNullableRequest getInstance(); + T getBuilderAfterServerIndex(GetNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + GetNullableRequest getInstance(); + T getBuilderAfterTimeout(GetNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForPathParameters { + GetNullableRequest getInstance(); + T getBuilderAfterPathParameters(GetNullableRequest instance); + default T pathParameters(UserusernameGetPathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Get0RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final GetNullableRequest instance; + + public Get0RequestBuilder(GetNullableRequest instance) { + this.instance = instance; + } + + public GetRequest build() { + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new GetRequest( + pathParameters, + instance.serverIndex, + instance.timeout + ); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterServerIndex(GetNullableRequest instance) { + return this; + } + + public Get0RequestBuilder getBuilderAfterTimeout(GetNullableRequest instance) { + return this; + } + } + public static class GetRequestBuilder implements SetterForPathParameters { + private final GetNullableRequest instance; + + public GetRequestBuilder() { + this.instance = new GetNullableRequest(); + } + + public GetNullableRequest getInstance() { + return instance; + } + + public Get0RequestBuilder getBuilderAfterPathParameters(GetNullableRequest instance) { + return new Get0RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java new file mode 100644 index 00000000000..963abca5b28 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/UserusernamePut.java @@ -0,0 +1,240 @@ +package org.openapijsonschematools.client.paths.userusername; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.RootServerInfo; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutRequestBody; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutPathParameters; +import org.openapijsonschematools.client.paths.userusername.put.Parameters; +import org.openapijsonschematools.client.paths.userusername.put.UserusernamePutResponses; +import org.openapijsonschematools.client.apiclient.ApiClient; +import org.openapijsonschematools.client.configurations.ApiConfiguration; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.restclient.RestClient; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.paths.Userusername; + +import java.io.IOException; +import java.util.ArrayList; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.time.Duration; +import java.util.List; +import java.util.Map; + +public class UserusernamePut { + private static class PutProvider { + private static final String method = "put"; + + public static Void put( + PutRequest request, + ApiConfiguration apiConfiguration, + SchemaConfiguration schemaConfiguration, + HttpClient client + ) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + Map> headers = apiConfiguration.getDefaultHeaders(); + + SerializedRequestBody serializedRequestBody = new UserusernamePutRequestBody.UserusernamePutRequestBody1().serialize( + request.requestBody + ); + var contentTypeHeaderValues = headers.getOrDefault("Content-Type", new ArrayList<>()); + contentTypeHeaderValues.add(serializedRequestBody.contentType); + HttpRequest.BodyPublisher bodyPublisher = serializedRequestBody.bodyPublisher; + + var pathSerializer = new Parameters.PathParametersSerializer(); + String updatedPath = pathSerializer.serialize(request.pathParameters, Userusername.path); + // TODO set this to a map if there is a query security scheme + @Nullable Map queryMap = null; + String host = apiConfiguration.getServer(request.serverIndex).url(); + + String url = host + updatedPath; + var httpRequest = RestClient.getRequest( + url, + method, + bodyPublisher, + headers, + request.timeout + ); + var response = RestClient.getResponse(httpRequest, client); + return (Void) null; + } + } + + public interface PutOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Void put(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public interface UpdateUserOperation { + ApiConfiguration getApiConfiguration(); + SchemaConfiguration getSchemaConfiguration(); + HttpClient getClient(); + default Void updateUser(PutRequest request) throws IOException, InterruptedException, ValidationException, NotImplementedException, ApiException { + return PutProvider.put(request, getApiConfiguration(), getSchemaConfiguration(), getClient()); + } + } + + public static class Put extends ApiClient implements PutOperation { + public Put(ApiConfiguration apiConfiguration, SchemaConfiguration schemaConfiguration) { + super(apiConfiguration, schemaConfiguration); + } + } + + public static class PutRequest { + public UserusernamePutRequestBody.SealedRequestBody requestBody; + public UserusernamePutPathParameters.PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + + public PutRequest( + UserusernamePutRequestBody.SealedRequestBody requestBody, + UserusernamePutPathParameters.PathParametersMap pathParameters, + RootServerInfo.@Nullable ServerIndex serverIndex, + @Nullable Duration timeout + ) { + this.requestBody = requestBody; + this.pathParameters = pathParameters; + this.serverIndex = serverIndex; + this.timeout = timeout; + } + } + + public static class PutNullableRequest { + public UserusernamePutRequestBody.@Nullable SealedRequestBody requestBody; + public UserusernamePutPathParameters.@Nullable PathParametersMap pathParameters; + public RootServerInfo.@Nullable ServerIndex serverIndex; + public @Nullable Duration timeout; + } + + public interface SetterForServerIndex { + PutNullableRequest getInstance(); + T getBuilderAfterServerIndex(PutNullableRequest instance); + default T serverIndex(RootServerInfo.ServerIndex serverIndex) { + var instance = getInstance(); + instance.serverIndex = serverIndex; + return getBuilderAfterServerIndex(instance); + } + } + + public interface SetterForTimeout { + PutNullableRequest getInstance(); + T getBuilderAfterTimeout(PutNullableRequest instance); + default T timeout(Duration timeout) { + var instance = getInstance(); + instance.timeout = timeout; + return getBuilderAfterTimeout(instance); + } + } + + public interface SetterForRequestBody { + PutNullableRequest getInstance(); + T getBuilderAfterRequestBody(PutNullableRequest instance); + default T requestBody(UserusernamePutRequestBody.SealedRequestBody requestBody) { + var instance = getInstance(); + instance.requestBody = requestBody; + return getBuilderAfterRequestBody(instance); + } + } + + public interface SetterForPathParameters { + PutNullableRequest getInstance(); + T getBuilderAfterPathParameters(PutNullableRequest instance); + default T pathParameters(UserusernamePutPathParameters.PathParametersMap pathParameters) { + var instance = getInstance(); + instance.pathParameters = pathParameters; + return getBuilderAfterPathParameters(instance); + } + } + + public static class Put00RequestBuilder implements SetterForServerIndex, SetterForTimeout { + private final PutNullableRequest instance; + + public Put00RequestBuilder(PutNullableRequest instance) { + this.instance = instance; + } + + public PutRequest build() { + var requestBody = instance.requestBody; + if (requestBody == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + var pathParameters = instance.pathParameters; + if (pathParameters == null) { + throw new RuntimeException("invalid null value for required parameter"); + } + return new PutRequest( + requestBody, + pathParameters, + instance.serverIndex, + instance.timeout + ); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put00RequestBuilder getBuilderAfterServerIndex(PutNullableRequest instance) { + return this; + } + + public Put00RequestBuilder getBuilderAfterTimeout(PutNullableRequest instance) { + return this; + } + } + public static class Put01RequestBuilder implements SetterForPathParameters { + private final PutNullableRequest instance; + + public Put01RequestBuilder(PutNullableRequest instance) { + this.instance = instance; + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put00RequestBuilder getBuilderAfterPathParameters(PutNullableRequest instance) { + return new Put00RequestBuilder(instance); + } + } + public static class Put10RequestBuilder implements SetterForRequestBody { + private final PutNullableRequest instance; + + public Put10RequestBuilder(PutNullableRequest instance) { + this.instance = instance; + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put00RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + return new Put00RequestBuilder(instance); + } + } + public static class PutRequestBuilder implements SetterForRequestBody, SetterForPathParameters { + private final PutNullableRequest instance; + + public PutRequestBuilder() { + this.instance = new PutNullableRequest(); + } + + public PutNullableRequest getInstance() { + return instance; + } + + public Put01RequestBuilder getBuilderAfterRequestBody(PutNullableRequest instance) { + return new Put01RequestBuilder(instance); + } + + public Put10RequestBuilder getBuilderAfterPathParameters(PutNullableRequest instance) { + return new Put10RequestBuilder(instance); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java new file mode 100644 index 00000000000..ea0e063d89c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.userusername.delete; + +import org.openapijsonschematools.client.paths.userusername.delete.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("username", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java new file mode 100644 index 00000000000..4d8cbc3a337 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeletePathParameters.java @@ -0,0 +1,205 @@ +package org.openapijsonschematools.client.paths.userusername.delete; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.parameters.pathusername.Schema; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class UserusernameDeletePathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "username" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return UserusernameDeletePathParameters1.getInstance().validate(arg, configuration); + } + + public String username() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForUsername { + Map getInstance(); + T getBuilderAfterUsername(Map instance); + + default T username(String value) { + var instance = getInstance(); + instance.put("username", value); + return getBuilderAfterUsername(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "username" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForUsername { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface UserusernameDeletePathParameters1Boxed permits UserusernameDeletePathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record UserusernameDeletePathParameters1BoxedMap(PathParametersMap data) implements UserusernameDeletePathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class UserusernameDeletePathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable UserusernameDeletePathParameters1 instance = null; + + protected UserusernameDeletePathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("username", Schema.Schema1.class) + )) + .required(Set.of( + "username" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static UserusernameDeletePathParameters1 getInstance() { + if (instance == null) { + instance = new UserusernameDeletePathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public UserusernameDeletePathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new UserusernameDeletePathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public UserusernameDeletePathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java new file mode 100644 index 00000000000..8ab4e2b7b08 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/UserusernameDeleteResponses.java @@ -0,0 +1,66 @@ +package org.openapijsonschematools.client.paths.userusername.delete; + +import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode200Response; +import org.openapijsonschematools.client.paths.userusername.delete.responses.UserusernameDeleteCode404Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class UserusernameDeleteResponses { + public sealed interface EndpointResponse permits EndpointUserusernameDeleteCode200Response {} + + public record EndpointUserusernameDeleteCode200Response( + HttpResponse response, + Void body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusUserusernameDeleteCode200ResponseDeserializer, StatusUserusernameDeleteCode404ResponseDeserializer {} + + public static final class StatusUserusernameDeleteCode200ResponseDeserializer extends UserusernameDeleteCode200Response.UserusernameDeleteCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusUserusernameDeleteCode404ResponseDeserializer extends UserusernameDeleteCode404Response.UserusernameDeleteCode404Response1 implements StatusCodeResponseDeserializer { + } + + public static final class UserusernameDeleteResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public UserusernameDeleteResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusUserusernameDeleteCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusUserusernameDeleteCode404ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusUserusernameDeleteCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointUserusernameDeleteCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else { + StatusUserusernameDeleteCode404ResponseDeserializer castDeserializer = (StatusUserusernameDeleteCode404ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new UserusernameDeleteCode404Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java new file mode 100644 index 00000000000..e95aee523c4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/parameters/Parameter0.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.userusername.delete.parameters; + +import org.openapijsonschematools.client.components.parameters.RefPathUserName; + +public class Parameter0 extends RefPathUserName { + public static class Parameter01 extends RefPathUserName1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode200Response.java new file mode 100644 index 00000000000..680a51cb08b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode200Response.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.userusername.delete.responses; + +import org.openapijsonschematools.client.components.responses.SuccessDescriptionOnly; + +public class UserusernameDeleteCode200Response extends SuccessDescriptionOnly { + public static class UserusernameDeleteCode200Response1 extends SuccessDescriptionOnly1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java new file mode 100644 index 00000000000..8bd53126538 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/responses/UserusernameDeleteCode404Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.userusername.delete.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UserusernameDeleteCode404Response { + + public static class UserusernameDeleteCode404Response1 extends ResponseDeserializer { + public UserusernameDeleteCode404Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java new file mode 100644 index 00000000000..65c65d5d3b9 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.userusername.get; + +import org.openapijsonschematools.client.paths.userusername.get.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("username", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java new file mode 100644 index 00000000000..c1a9b62fb37 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetPathParameters.java @@ -0,0 +1,205 @@ +package org.openapijsonschematools.client.paths.userusername.get; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.parameters.pathusername.Schema; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class UserusernameGetPathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "username" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return UserusernameGetPathParameters1.getInstance().validate(arg, configuration); + } + + public String username() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForUsername { + Map getInstance(); + T getBuilderAfterUsername(Map instance); + + default T username(String value) { + var instance = getInstance(); + instance.put("username", value); + return getBuilderAfterUsername(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "username" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForUsername { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface UserusernameGetPathParameters1Boxed permits UserusernameGetPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record UserusernameGetPathParameters1BoxedMap(PathParametersMap data) implements UserusernameGetPathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class UserusernameGetPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable UserusernameGetPathParameters1 instance = null; + + protected UserusernameGetPathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("username", Schema.Schema1.class) + )) + .required(Set.of( + "username" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static UserusernameGetPathParameters1 getInstance() { + if (instance == null) { + instance = new UserusernameGetPathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public UserusernameGetPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new UserusernameGetPathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public UserusernameGetPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java new file mode 100644 index 00000000000..042305694da --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/UserusernameGetResponses.java @@ -0,0 +1,77 @@ +package org.openapijsonschematools.client.paths.userusername.get; + +import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode200Response; +import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode400Response; +import org.openapijsonschematools.client.paths.userusername.get.responses.UserusernameGetCode404Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ApiResponse; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class UserusernameGetResponses { + public sealed interface EndpointResponse permits EndpointUserusernameGetCode200Response {} + + public record EndpointUserusernameGetCode200Response( + HttpResponse response, + UserusernameGetCode200Response.SealedResponseBody body, + Void headers + ) implements EndpointResponse, ApiResponse{ + } + + public sealed interface StatusCodeResponseDeserializer permits StatusUserusernameGetCode200ResponseDeserializer, StatusUserusernameGetCode400ResponseDeserializer, StatusUserusernameGetCode404ResponseDeserializer {} + + public static final class StatusUserusernameGetCode200ResponseDeserializer extends UserusernameGetCode200Response.UserusernameGetCode200Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusUserusernameGetCode400ResponseDeserializer extends UserusernameGetCode400Response.UserusernameGetCode400Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusUserusernameGetCode404ResponseDeserializer extends UserusernameGetCode404Response.UserusernameGetCode404Response1 implements StatusCodeResponseDeserializer { + } + + public static final class UserusernameGetResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public UserusernameGetResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("200", new StatusUserusernameGetCode200ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("400", new StatusUserusernameGetCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusUserusernameGetCode404ResponseDeserializer()) + ); + } + + public EndpointResponse deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusUserusernameGetCode200ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + return new EndpointUserusernameGetCode200Response(response, deserializedResponse.body(), deserializedResponse.headers()); + } else if (statusCodeDeserializer instanceof StatusUserusernameGetCode400ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new UserusernameGetCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else { + StatusUserusernameGetCode404ResponseDeserializer castDeserializer = (StatusUserusernameGetCode404ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new UserusernameGetCode404Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java new file mode 100644 index 00000000000..d100ccf2d2b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/parameters/Parameter0.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.userusername.get.parameters; + +import org.openapijsonschematools.client.components.parameters.PathUserName; + +public class Parameter0 extends PathUserName { + public static class Parameter01 extends PathUserName1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java new file mode 100644 index 00000000000..a71bf43bca4 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode200Response.java @@ -0,0 +1,81 @@ +package org.openapijsonschematools.client.paths.userusername.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationxml.ApplicationxmlSchema; +import org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UserusernameGetCode200Response { + public sealed interface SealedMediaType permits ApplicationxmlMediaType, ApplicationjsonMediaType {} + + public record ApplicationxmlMediaType(ApplicationxmlSchema.ApplicationxmlSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationxmlMediaType() { + this(ApplicationxmlSchema.ApplicationxmlSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + public sealed interface SealedResponseBody permits ApplicationxmlResponseBody, ApplicationjsonResponseBody {} + public record ApplicationxmlResponseBody(ApplicationxmlSchema.User1Boxed body) implements SealedResponseBody { } + public record ApplicationjsonResponseBody(ApplicationjsonSchema.User1Boxed body) implements SealedResponseBody { } + + public static class UserusernameGetCode200Response1 extends ResponseDeserializer { + public UserusernameGetCode200Response1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/xml", new ApplicationxmlMediaType()), + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ) + ); + } + + @Override + protected SealedResponseBody getBody(String contentType, SealedMediaType mediaType, byte[] body, SchemaConfiguration configuration) throws ValidationException, NotImplementedException { + if (mediaType instanceof ApplicationxmlMediaType thisMediaType) { + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationxmlResponseBody(deserializedBody); + } else { + ApplicationjsonMediaType thisMediaType = (ApplicationjsonMediaType) mediaType; + var deserializedBody = deserializeBody(contentType, body, thisMediaType.schema(), configuration); + return new ApplicationjsonResponseBody(deserializedBody); + } + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java new file mode 100644 index 00000000000..71459da89cd --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.userusername.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UserusernameGetCode400Response { + + public static class UserusernameGetCode400Response1 extends ResponseDeserializer { + public UserusernameGetCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java new file mode 100644 index 00000000000..6c106f8d43b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/UserusernameGetCode404Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.userusername.get.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UserusernameGetCode404Response { + + public static class UserusernameGetCode404Response1 extends ResponseDeserializer { + public UserusernameGetCode404Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..910120ee863 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.User; + +public class ApplicationjsonSchema extends User { + // $refed class + + + public static class ApplicationjsonSchema1 extends User1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java new file mode 100644 index 00000000000..0d8e9cf0d9a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.userusername.get.responses.code200response.content.applicationxml; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.User; + +public class ApplicationxmlSchema extends User { + // $refed class + + + public static class ApplicationxmlSchema1 extends User1 { + private static @Nullable ApplicationxmlSchema1 instance = null; + public static ApplicationxmlSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationxmlSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java new file mode 100644 index 00000000000..bd698da0d9d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/Parameters.java @@ -0,0 +1,20 @@ +package org.openapijsonschematools.client.paths.userusername.put; + +import org.openapijsonschematools.client.paths.userusername.put.parameters.Parameter0; +import org.openapijsonschematools.client.parameter.PathSerializer; + +import java.util.Map; +import java.util.AbstractMap; + +public class Parameters { + + public static class PathParametersSerializer extends PathSerializer { + public PathParametersSerializer() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("username", new Parameter0.Parameter01()) + ) + ); + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java new file mode 100644 index 00000000000..f5c674bac20 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutPathParameters.java @@ -0,0 +1,205 @@ +package org.openapijsonschematools.client.paths.userusername.put; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.parameters.pathusername.Schema; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class UserusernamePutPathParameters { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "username" + ); + public static final Set optionalKeys = Set.of(); + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return UserusernamePutPathParameters1.getInstance().validate(arg, configuration); + } + + public String username() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForUsername { + Map getInstance(); + T getBuilderAfterUsername(Map instance); + + default T username(String value) { + var instance = getInstance(); + instance.put("username", value); + return getBuilderAfterUsername(instance); + } + } + + public static class PathParametersMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "username" + ); + public Set getKnownKeys() { + return knownKeys; + } + public PathParametersMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class PathParametersMapBuilder implements SetterForUsername { + private final Map instance; + public PathParametersMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public PathParametersMap0Builder getBuilderAfterUsername(Map instance) { + return new PathParametersMap0Builder(instance); + } + } + + + public sealed interface UserusernamePutPathParameters1Boxed permits UserusernamePutPathParameters1BoxedMap { + @Nullable Object getData(); + } + + public record UserusernamePutPathParameters1BoxedMap(PathParametersMap data) implements UserusernamePutPathParameters1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class UserusernamePutPathParameters1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable UserusernamePutPathParameters1 instance = null; + + protected UserusernamePutPathParameters1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("username", Schema.Schema1.class) + )) + .required(Set.of( + "username" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static UserusernamePutPathParameters1 getInstance() { + if (instance == null) { + instance = new UserusernamePutPathParameters1(); + } + return instance; + } + + public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new PathParametersMap(castProperties); + } + + public PathParametersMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public UserusernamePutPathParameters1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new UserusernamePutPathParameters1BoxedMap(validate(arg, configuration)); + } + @Override + public UserusernamePutPathParameters1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java new file mode 100644 index 00000000000..f078896522a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutRequestBody.java @@ -0,0 +1,49 @@ +package org.openapijsonschematools.client.paths.userusername.put; + +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.requestbody.RequestBodySerializer; +import org.openapijsonschematools.client.requestbody.GenericRequestBody; +import org.openapijsonschematools.client.requestbody.SerializedRequestBody; +import org.openapijsonschematools.client.mediatype.MediaType; +import org.openapijsonschematools.client.paths.userusername.put.requestbody.content.applicationjson.ApplicationjsonSchema; + +import java.util.AbstractMap; +import java.util.Map; + +public class UserusernamePutRequestBody { + public sealed interface SealedMediaType permits ApplicationjsonMediaType {} + + public record ApplicationjsonMediaType(ApplicationjsonSchema.ApplicationjsonSchema1 schema) implements SealedMediaType, MediaType { + public ApplicationjsonMediaType() { + this(ApplicationjsonSchema.ApplicationjsonSchema1.getInstance()); + } + @Override + public Void encoding() { + return null; + } + } + + public static class UserusernamePutRequestBody1 extends RequestBodySerializer { + public UserusernamePutRequestBody1() { + super( + Map.ofEntries( + new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) + ), + true + ); + } + + public SerializedRequestBody serialize(SealedRequestBody requestBody) throws NotImplementedException { + ApplicationjsonRequestBody requestBody0 = (ApplicationjsonRequestBody) requestBody; + return serialize(requestBody0.contentType(), requestBody0.body().getData()); + } + } + + public sealed interface SealedRequestBody permits ApplicationjsonRequestBody {} + public record ApplicationjsonRequestBody(ApplicationjsonSchema.User1Boxed body) implements SealedRequestBody, GenericRequestBody { + @Override + public String contentType() { + return "application/json"; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java new file mode 100644 index 00000000000..533a25eabe5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/UserusernamePutResponses.java @@ -0,0 +1,61 @@ +package org.openapijsonschematools.client.paths.userusername.put; + +import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode400Response; +import org.openapijsonschematools.client.paths.userusername.put.responses.UserusernamePutCode404Response; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.response.ResponsesDeserializer; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.AbstractMap; + +public class UserusernamePutResponses { + + public sealed interface StatusCodeResponseDeserializer permits StatusUserusernamePutCode400ResponseDeserializer, StatusUserusernamePutCode404ResponseDeserializer {} + + public static final class StatusUserusernamePutCode400ResponseDeserializer extends UserusernamePutCode400Response.UserusernamePutCode400Response1 implements StatusCodeResponseDeserializer { + } + public static final class StatusUserusernamePutCode404ResponseDeserializer extends UserusernamePutCode404Response.UserusernamePutCode404Response1 implements StatusCodeResponseDeserializer { + } + + public static final class UserusernamePutResponses1 implements ResponsesDeserializer { + private final Map statusCodeToResponseDeserializer; + public UserusernamePutResponses1() { + this.statusCodeToResponseDeserializer = Map.ofEntries( + new AbstractMap.SimpleEntry<>("400", new StatusUserusernamePutCode400ResponseDeserializer()), + new AbstractMap.SimpleEntry<>("404", new StatusUserusernamePutCode404ResponseDeserializer()) + ); + } + + public Void deserialize(HttpResponse response, SchemaConfiguration configuration) throws ValidationException, NotImplementedException, ApiException { + String statusCode = String.valueOf(response.statusCode()); + @Nullable StatusCodeResponseDeserializer statusCodeDeserializer = statusCodeToResponseDeserializer.get(statusCode); + if (statusCodeDeserializer == null) { + throw new ApiException( + "Invalid response statusCode="+statusCode+" has no response defined in the openapi document", + response + ); + } + if (statusCodeDeserializer instanceof StatusUserusernamePutCode400ResponseDeserializer castDeserializer) { + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new UserusernamePutCode400Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } else { + StatusUserusernamePutCode404ResponseDeserializer castDeserializer = (StatusUserusernamePutCode404ResponseDeserializer) statusCodeDeserializer; + var deserializedResponse = castDeserializer.deserialize(response, configuration); + throw new UserusernamePutCode404Response.ResponseApiException( + "Received error statusCode response from server", + response, + deserializedResponse + ); + } + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java new file mode 100644 index 00000000000..cf1add59f0d --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/parameters/Parameter0.java @@ -0,0 +1,7 @@ +package org.openapijsonschematools.client.paths.userusername.put.parameters; + +import org.openapijsonschematools.client.components.parameters.PathUserName; + +public class Parameter0 extends PathUserName { + public static class Parameter01 extends PathUserName1 {} +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java new file mode 100644 index 00000000000..80f49dd652b --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.paths.userusername.put.requestbody.content.applicationjson; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.components.schemas.User; + +public class ApplicationjsonSchema extends User { + // $refed class + + + public static class ApplicationjsonSchema1 extends User1 { + private static @Nullable ApplicationjsonSchema1 instance = null; + public static ApplicationjsonSchema1 getInstance() { + if (instance == null) { + instance = new ApplicationjsonSchema1(); + } + return instance; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java new file mode 100644 index 00000000000..b29bac8a12a --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode400Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.userusername.put.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UserusernamePutCode400Response { + + public static class UserusernamePutCode400Response1 extends ResponseDeserializer { + public UserusernamePutCode400Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java new file mode 100644 index 00000000000..c050f90e377 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/responses/UserusernamePutCode404Response.java @@ -0,0 +1,45 @@ +package org.openapijsonschematools.client.paths.userusername.put.responses; + +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.response.ResponseDeserializer; +import org.openapijsonschematools.client.response.DeserializedHttpResponse; +import org.openapijsonschematools.client.exceptions.ApiException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.NotImplementedException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; + +import java.util.Map; +import java.net.http.HttpResponse; +import java.net.http.HttpHeaders; + +public class UserusernamePutCode404Response { + + public static class UserusernamePutCode404Response1 extends ResponseDeserializer { + public UserusernamePutCode404Response1() { + super( + MapUtils.makeMap( + ) + ); + } + + @Override + protected Void getBody(String contentType, Void mediaType, byte[] body, SchemaConfiguration configuration) { + return null; + } + + @Override + protected Void getHeaders(HttpHeaders headers, SchemaConfiguration configuration) { + return null; + } + } + + @SuppressWarnings("serial") + public static class ResponseApiException extends ApiException { + public DeserializedHttpResponse deserializedResponse; + + public ResponseApiException(String s, HttpResponse response, DeserializedHttpResponse deserializedResponse) { + super(s, response); + this.deserializedResponse = deserializedResponse; + } + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java new file mode 100644 index 00000000000..1dddf7bf2fe --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java @@ -0,0 +1,38 @@ +package org.openapijsonschematools.client.servers; + +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.servers.rootserver0.RootServer0Variables; + +import java.util.AbstractMap; + +public class RootServer0 extends ServerWithVariables { + /* + petstore server + */ + private static RootServer0Variables.VariablesMap getVariables() { + try { + return RootServer0Variables.RootServer0Variables1.getInstance().validate( + MapUtils.makeMap( + new AbstractMap.SimpleEntry<>("port", RootServer0Variables.Port.getInstance().defaultValue()), + new AbstractMap.SimpleEntry<>("server", RootServer0Variables.Server.getInstance().defaultValue()) + ), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) + ); + } catch (ValidationException e) { + throw new RuntimeException(e); + } + } + + public RootServer0() { + super( + "http://{server}.swagger.io:{port}/v2", + getVariables() + ); + } + public RootServer0(RootServer0Variables.VariablesMap variables) { + super("http://{server}.swagger.io:{port}/v2", variables); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer1.java new file mode 100644 index 00000000000..2ff8761b163 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer1.java @@ -0,0 +1,37 @@ +package org.openapijsonschematools.client.servers; + +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.servers.rootserver1.RootServer1Variables; + +import java.util.AbstractMap; + +public class RootServer1 extends ServerWithVariables { + /* + The local server + */ + private static RootServer1Variables.VariablesMap getVariables() { + try { + return RootServer1Variables.RootServer1Variables1.getInstance().validate( + MapUtils.makeMap( + new AbstractMap.SimpleEntry<>("version", RootServer1Variables.Version.getInstance().defaultValue()) + ), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) + ); + } catch (ValidationException e) { + throw new RuntimeException(e); + } + } + + public RootServer1() { + super( + "https://localhost:8080/{version}", + getVariables() + ); + } + public RootServer1(RootServer1Variables.VariablesMap variables) { + super("https://localhost:8080/{version}", variables); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer2.java new file mode 100644 index 00000000000..5292f414c65 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/RootServer2.java @@ -0,0 +1,9 @@ +package org.openapijsonschematools.client.servers; + +import org.openapijsonschematools.client.servers.ServerWithoutVariables; + +public class RootServer2 extends ServerWithoutVariables { + public RootServer2() { + super("https://localhost:8080"); + } +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server.java new file mode 100644 index 00000000000..f5159644ccc --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.servers; + +public interface Server { + String url(); +} + diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java new file mode 100644 index 00000000000..f736485870c --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java @@ -0,0 +1,6 @@ +package org.openapijsonschematools.client.servers; + +public interface ServerProvider { + Server getServer(T serverIndex); +} + diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java new file mode 100644 index 00000000000..68748bcfcae --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java @@ -0,0 +1,21 @@ +package org.openapijsonschematools.client.servers; + +import java.util.Map; + +public abstract class ServerWithVariables> implements Server { + public final String url; + public final T variables; + + protected ServerWithVariables(String url, T variables) { + this.variables = variables; + for (Map.Entry entry: variables.entrySet()) { + url = url.replace("{" + entry.getKey() + "}", entry.getValue()); + } + this.url = url; + } + + public String url(){ + return url; + } +} + diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java new file mode 100644 index 00000000000..c41ac2e77e5 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java @@ -0,0 +1,14 @@ +package org.openapijsonschematools.client.servers; + +public abstract class ServerWithoutVariables implements Server { + public final String url; + + protected ServerWithoutVariables(String url) { + this.url = url; + } + + public String url(){ + return url; + } +} + diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/rootserver0/RootServer0Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/rootserver0/RootServer0Variables.java new file mode 100644 index 00000000000..f8f7eac2b21 --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/rootserver0/RootServer0Variables.java @@ -0,0 +1,471 @@ +package org.openapijsonschematools.client.servers.rootserver0; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class RootServer0Variables { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + public enum StringServerEnums implements StringValueMethod { + PETSTORE("petstore"), + QA_HYPHEN_MINUS_PETSTORE("qa-petstore"), + DEV_HYPHEN_MINUS_PETSTORE("dev-petstore"); + private final String value; + + StringServerEnums(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface ServerBoxed permits ServerBoxedString { + @Nullable Object getData(); + } + + public record ServerBoxedString(String data) implements ServerBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Server extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Server instance = null; + + protected Server() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "petstore", + "qa-petstore", + "dev-petstore" + )) + .defaultValue("petstore") + ); + } + + public static Server getInstance() { + if (instance == null) { + instance = new Server(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringServerEnums arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public ServerBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new ServerBoxedString(validate(arg, configuration)); + } + @Override + public ServerBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + public enum StringPortEnums implements StringValueMethod { + POSITIVE_80("80"), + POSITIVE_8080("8080"); + private final String value; + + StringPortEnums(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface PortBoxed permits PortBoxedString { + @Nullable Object getData(); + } + + public record PortBoxedString(String data) implements PortBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Port extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Port instance = null; + + protected Port() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "80", + "8080" + )) + .defaultValue("80") + ); + } + + public static Port getInstance() { + if (instance == null) { + instance = new Port(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringPortEnums arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public PortBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new PortBoxedString(validate(arg, configuration)); + } + @Override + public PortBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class VariablesMap extends FrozenMap { + protected VariablesMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "port", + "server" + ); + public static final Set optionalKeys = Set.of(); + public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return RootServer0Variables1.getInstance().validate(arg, configuration); + } + + public String port() { + String value = get("port"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for port"); + } + return (String) value; + } + + public String server() { + String value = get("server"); + if (!(value instanceof String)) { + throw new RuntimeException("Invalid value stored for server"); + } + return (String) value; + } + } + + public interface SetterForPort { + Map getInstance(); + T getBuilderAfterPort(Map instance); + + default T port(String value) { + var instance = getInstance(); + instance.put("port", value); + return getBuilderAfterPort(instance); + } + + default T port(StringPortEnums value) { + var instance = getInstance(); + instance.put("port", value.value()); + return getBuilderAfterPort(instance); + } + } + + public interface SetterForServer { + Map getInstance(); + T getBuilderAfterServer(Map instance); + + default T server(String value) { + var instance = getInstance(); + instance.put("server", value); + return getBuilderAfterServer(instance); + } + + default T server(StringServerEnums value) { + var instance = getInstance(); + instance.put("server", value.value()); + return getBuilderAfterServer(instance); + } + } + + public static class VariablesMap00Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "port", + "server" + ); + public Set getKnownKeys() { + return knownKeys; + } + public VariablesMap00Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class VariablesMap01Builder implements SetterForServer { + private final Map instance; + public VariablesMap01Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public VariablesMap00Builder getBuilderAfterServer(Map instance) { + return new VariablesMap00Builder(instance); + } + } + + public static class VariablesMap10Builder implements SetterForPort { + private final Map instance; + public VariablesMap10Builder(Map instance) { + this.instance = instance; + } + public Map getInstance() { + return instance; + } + public VariablesMap00Builder getBuilderAfterPort(Map instance) { + return new VariablesMap00Builder(instance); + } + } + + public static class VariablesMapBuilder implements SetterForPort, SetterForServer { + private final Map instance; + public VariablesMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public VariablesMap01Builder getBuilderAfterPort(Map instance) { + return new VariablesMap01Builder(instance); + } + public VariablesMap10Builder getBuilderAfterServer(Map instance) { + return new VariablesMap10Builder(instance); + } + } + + + public sealed interface RootServer0Variables1Boxed permits RootServer0Variables1BoxedMap { + @Nullable Object getData(); + } + + public record RootServer0Variables1BoxedMap(VariablesMap data) implements RootServer0Variables1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class RootServer0Variables1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable RootServer0Variables1 instance = null; + + protected RootServer0Variables1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("server", Server.class), + new PropertyEntry("port", Port.class) + )) + .required(Set.of( + "port", + "server" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static RootServer0Variables1 getInstance() { + if (instance == null) { + instance = new RootServer0Variables1(); + } + return instance; + } + + public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new VariablesMap(castProperties); + } + + public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public RootServer0Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new RootServer0Variables1BoxedMap(validate(arg, configuration)); + } + @Override + public RootServer0Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/rootserver1/RootServer1Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/rootserver1/RootServer1Variables.java new file mode 100644 index 00000000000..6204a0b7cff --- /dev/null +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/rootserver1/RootServer1Variables.java @@ -0,0 +1,313 @@ +package org.openapijsonschematools.client.servers.rootserver1; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.nullness.qual.Nullable; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.UnsetPropertyException; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.AnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.GenericBuilder; +import org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema; +import org.openapijsonschematools.client.schemas.SetMaker; +import org.openapijsonschematools.client.schemas.validation.DefaultValueMethod; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.schemas.validation.JsonSchema; +import org.openapijsonschematools.client.schemas.validation.JsonSchemaInfo; +import org.openapijsonschematools.client.schemas.validation.MapSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.PathToSchemasMap; +import org.openapijsonschematools.client.schemas.validation.PropertyEntry; +import org.openapijsonschematools.client.schemas.validation.StringEnumValidator; +import org.openapijsonschematools.client.schemas.validation.StringSchemaValidator; +import org.openapijsonschematools.client.schemas.validation.StringValueMethod; +import org.openapijsonschematools.client.schemas.validation.ValidationMetadata; + +public class RootServer1Variables { + // nest classes so all schemas and input/output classes can be public + + + public static class AdditionalProperties extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 { + // NotAnyTypeSchema + private static @Nullable AdditionalProperties instance = null; + public static AdditionalProperties getInstance() { + if (instance == null) { + instance = new AdditionalProperties(); + } + return instance; + } + } + + public enum StringVersionEnums implements StringValueMethod { + V1("v1"), + V2("v2"); + private final String value; + + StringVersionEnums(String value) { + this.value = value; + } + public String value() { + return this.value; + } + } + + + public sealed interface VersionBoxed permits VersionBoxedString { + @Nullable Object getData(); + } + + public record VersionBoxedString(String data) implements VersionBoxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + + public static class Version extends JsonSchema implements StringSchemaValidator, StringEnumValidator, DefaultValueMethod { + private static @Nullable Version instance = null; + + protected Version() { + super(new JsonSchemaInfo() + .type(Set.of( + String.class + )) + .enumValues(SetMaker.makeSet( + "v1", + "v2" + )) + .defaultValue("v2") + ); + } + + public static Version getInstance() { + if (instance == null) { + instance = new Version(); + } + return instance; + } + + @Override + public String validate(String arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + String castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + getPathToSchemas(this, castArg, validationMetadata, pathSet); + return castArg; + } + + @Override + public String validate(StringVersionEnums arg,SchemaConfiguration configuration) throws ValidationException { + return validate(arg.value(), configuration); + } + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String) { + return validate((String) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof String) { + return getNewInstance((String) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + public String defaultValue() throws ValidationException { + if (defaultValue instanceof String) { + return (String) defaultValue; + } + throw new ValidationException("Invalid type stored in defaultValue"); + } + @Override + public VersionBoxedString validateAndBox(String arg, SchemaConfiguration configuration) throws ValidationException { + return new VersionBoxedString(validate(arg, configuration)); + } + @Override + public VersionBoxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof String castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + + public static class VariablesMap extends FrozenMap { + protected VariablesMap(FrozenMap m) { + super(m); + } + public static final Set requiredKeys = Set.of( + "version" + ); + public static final Set optionalKeys = Set.of(); + public static VariablesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + return RootServer1Variables1.getInstance().validate(arg, configuration); + } + + public String version() { + try { + return getOrThrow("version"); + } catch (UnsetPropertyException e) { + throw new RuntimeException(e); + } + } + } + + public interface SetterForVersion { + Map getInstance(); + T getBuilderAfterVersion(Map instance); + + default T version(String value) { + var instance = getInstance(); + instance.put("version", value); + return getBuilderAfterVersion(instance); + } + + default T version(StringVersionEnums value) { + var instance = getInstance(); + instance.put("version", value.value()); + return getBuilderAfterVersion(instance); + } + } + + public static class VariablesMap0Builder implements GenericBuilder> { + private final Map instance; + private static final Set knownKeys = Set.of( + "version" + ); + public Set getKnownKeys() { + return knownKeys; + } + public VariablesMap0Builder(Map instance) { + this.instance = instance; + } + public Map build() { + return instance; + } + } + + public static class VariablesMapBuilder implements SetterForVersion { + private final Map instance; + public VariablesMapBuilder() { + this.instance = new LinkedHashMap<>(); + } + public Map getInstance() { + return instance; + } + public VariablesMap0Builder getBuilderAfterVersion(Map instance) { + return new VariablesMap0Builder(instance); + } + } + + + public sealed interface RootServer1Variables1Boxed permits RootServer1Variables1BoxedMap { + @Nullable Object getData(); + } + + public record RootServer1Variables1BoxedMap(VariablesMap data) implements RootServer1Variables1Boxed { + @Override + public @Nullable Object getData() { + return data; + } + } + + + public static class RootServer1Variables1 extends JsonSchema implements MapSchemaValidator { + private static @Nullable RootServer1Variables1 instance = null; + + protected RootServer1Variables1() { + super(new JsonSchemaInfo() + .type(Set.of(Map.class)) + .properties(Map.ofEntries( + new PropertyEntry("version", Version.class) + )) + .required(Set.of( + "version" + )) + .additionalProperties(AdditionalProperties.class) + ); + } + + public static RootServer1Variables1 getInstance() { + if (instance == null) { + instance = new RootServer1Variables1(); + } + return instance; + } + + public VariablesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { + LinkedHashMap properties = new LinkedHashMap<>(); + for(Map.Entry entry: arg.entrySet()) { + @Nullable Object entryKey = entry.getKey(); + if (!(entryKey instanceof String)) { + throw new RuntimeException("Invalid non-string key value"); + } + String propertyName = (String) entryKey; + List propertyPathToItem = new ArrayList<>(pathToItem); + propertyPathToItem.add(propertyName); + Object value = entry.getValue(); + LinkedHashMap, Void> schemas = pathToSchemas.get(propertyPathToItem); + if (schemas == null) { + throw new RuntimeException("Validation result is invalid, schemas must exist for a pathToItem"); + } + JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); + @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); + if (!(propertyInstance instanceof String)) { + throw new RuntimeException("Invalid instantiated value"); + } + properties.put(propertyName, (String) propertyInstance); + } + FrozenMap castProperties = new FrozenMap<>(properties); + return new VariablesMap(castProperties); + } + + public VariablesMap validate(Map arg, SchemaConfiguration configuration) throws ValidationException { + Set> pathSet = new HashSet<>(); + List pathToItem = List.of("args[0"); + Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); + ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); + PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); + return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); + } + + + @Override + public @Nullable Object validate(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map) { + return validate((Map) arg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + @Override + public @Nullable Object getNewInstance(@Nullable Object arg, List pathToItem, PathToSchemasMap pathToSchemas) { + if (arg instanceof Map) { + return getNewInstance((Map) arg, pathToItem, pathToSchemas); + } + throw new RuntimeException("Invalid input type="+getClass(arg)+". It can't be instantiated by this schema"); + } + @Override + public RootServer1Variables1BoxedMap validateAndBox(Map arg, SchemaConfiguration configuration) throws ValidationException { + return new RootServer1Variables1BoxedMap(validate(arg, configuration)); + } + @Override + public RootServer1Variables1Boxed validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) throws ValidationException { + if (arg instanceof Map castArg) { + return validateAndBox(castArg, configuration); + } + throw new ValidationException("Invalid input type="+getClass(arg)+". It can't be validated by this schema"); + } + } + +} diff --git a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java index 84981150158..a3646916cc5 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java +++ b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java @@ -384,6 +384,7 @@ private String filenameFromRoot(List pathSegments) { } private void generateFile(Map templateData, String templateName, String outputFilename, List files, boolean shouldGenerate, String skippedByOption) { + templateData.putAll(generator.additionalProperties()); try { File written = processTemplateToFile(templateData, templateName, outputFilename, shouldGenerate, skippedByOption); if (written != null) { diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index fdbb69b9d9e..c9dac9adc2b 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -3961,14 +3961,14 @@ private void updatePathsFilepath(String[] pathPieces) { if (pathPieces[3].equals("servers")) { if (pathPieces.length == 4) { // #/paths/somePath/servers - pathPieces[3] = toServerFilename("s", jsonPath); + pathPieces[3] = toServerFilename("servers", jsonPath); } else if (pathPieces.length == 5) { // #/paths/somePath/servers/0 pathPieces[4] = toServerFilename(pathPieces[4], jsonPath); } else { // #/paths/somePath/servers/0/variables pathPieces[4] = "server" + pathPieces[4]; - pathPieces[5] = "Variables"; + pathPieces[5] = getSchemaFilename(jsonPath); } return; } else if (pathPieces[3].equals("parameters")) { @@ -4010,7 +4010,7 @@ private void updatePathsFilepath(String[] pathPieces) { } else { // #/paths/somePath/get/servers/0/variables pathPieces[5] = "server" + pathPieces[5]; - pathPieces[6] = "Variables"; + pathPieces[6] = getSchemaFilename(jsonPath); } } else if (pathPieces[4].equals("security")) { // #/paths/somePath/get/security diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index b0e559beb8d..17fe83c6df8 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -138,7 +138,7 @@ protected void updateServersFilepath(String[] pathPieces) { String jsonPath = String.join("/", copiedPathPieces); if (pathPieces.length == 2) { // #/servers - pathPieces[1] = "ServerInfo"; + pathPieces[1] = "RootServerInfo"; } else if (pathPieces.length == 3) { // #/servers/0 pathPieces[2] = toServerFilename(pathPieces[2], jsonPath); @@ -1318,7 +1318,7 @@ private String getSchemaPascalCaseName(String name, @NotNull String sourceJsonPa } else if (serverVariables) { if (pathPieces.length == 4) { // #/servers/0/variables -> 4 - usedKey = "Server" + pathPieces[2] + "Variables"; + usedKey = "RootServer" + pathPieces[2] + "Variables"; } else if (pathPieces.length == 6) { // #/paths/somePath/servers/0/variables -> 6 CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", sourceJsonPath); @@ -2672,10 +2672,10 @@ public String getPascalCase(CodegenKeyType type, String lastJsonPathFragment, St if (jsonPath.startsWith("#/servers")) { if (pathPieces.length == 2) { // #/servers - return "ServerInfo"; + return "RootServerInfo"; } // #/servers/0 - return "Server"+pathPieces[2]; + return "RootServer"+pathPieces[2]; } else if (jsonPath.startsWith("#/paths") && pathPieces.length >= 4 && pathPieces[3].equals("servers")) { CodegenKey pathKey = getKey(ModelUtils.decodeSlashes(pathPieces[2]), "paths", jsonPath); if (pathPieces.length == 4) { diff --git a/src/main/java/org/openapijsonschematools/codegen/templating/HandlebarsEngineAdapter.java b/src/main/java/org/openapijsonschematools/codegen/templating/HandlebarsEngineAdapter.java index e63c0d2dd0a..2739ba008fb 100644 --- a/src/main/java/org/openapijsonschematools/codegen/templating/HandlebarsEngineAdapter.java +++ b/src/main/java/org/openapijsonschematools/codegen/templating/HandlebarsEngineAdapter.java @@ -78,7 +78,7 @@ public TemplateSource sourceAt(String location) { Handlebars handlebars = new Handlebars(loader); handlebars.registerHelperMissing((obj, options) -> { - LOGGER.warn(String.format(Locale.ROOT, "Unregistered helper name '%s', processing template:%n%s", options.helperName, options.fn.text())); + LOGGER.warn(String.format(Locale.ROOT, "Unregistered helper name '%s', processing template:%n%s", options.helperName, options.fn.toString())); return ""; }); handlebars.registerHelper("json", Jackson2Helper.INSTANCE); diff --git a/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs b/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs index 8e75ac67e84..251dfb5e375 100644 --- a/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs +++ b/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs @@ -234,7 +234,7 @@ public class ApiConfiguration { {{/if}} public Map> getDefaultHeaders() { - return new HashMap<>(); + return defaultHeaders; } public @Nullable Duration getTimeout() { From 01e99e0b8f4f840aec4349152cfa521a4c81a8a4 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 12 Apr 2024 11:44:45 -0700 Subject: [PATCH 11/12] Samples regen, additionalProperties added in missing location --- .../java/.openapi-generator/FILES | 8 ++-- samples/client/3_0_3_unit_test/java/README.md | 2 +- .../java/docs/RootServerInfo.md | 6 +-- .../java/docs/servers/RootServer0.md | 17 +++++++++ .../client/RootServerInfo.java | 12 +++--- .../configurations/ApiConfiguration.java | 38 +++++++++---------- .../client/servers/RootServer0.java | 9 +++++ ...hema_which_should_validate_request_body.py | 3 ++ ...ies_are_allowed_by_default_request_body.py | 3 ++ ...erties_can_exist_by_itself_request_body.py | 3 ++ ...ld_not_look_in_applicators_request_body.py | 3 ++ ..._combined_with_anyof_oneof_request_body.py | 3 ++ .../request_body_post_allof_request_body.py | 3 ++ ...dy_post_allof_simple_types_request_body.py | 3 ++ ...ost_allof_with_base_schema_request_body.py | 3 ++ ...llof_with_one_empty_schema_request_body.py | 3 ++ ...ith_the_first_empty_schema_request_body.py | 3 ++ ...with_the_last_empty_schema_request_body.py | 3 ++ ...lof_with_two_empty_schemas_request_body.py | 3 ++ ...y_post_anyof_complex_types_request_body.py | 3 ++ .../request_body_post_anyof_request_body.py | 3 ++ ...ost_anyof_with_base_schema_request_body.py | 3 ++ ...nyof_with_one_empty_schema_request_body.py | 3 ++ ..._array_type_matches_arrays_request_body.py | 3 ++ ...lean_type_matches_booleans_request_body.py | 3 ++ .../request_body_post_by_int_request_body.py | 3 ++ ...equest_body_post_by_number_request_body.py | 3 ++ ..._body_post_by_small_number_request_body.py | 3 ++ ...body_post_date_time_format_request_body.py | 3 ++ ...est_body_post_email_format_request_body.py | 3 ++ ...with0_does_not_match_false_request_body.py | 3 ++ ..._with1_does_not_match_true_request_body.py | 3 ++ ...um_with_escaped_characters_request_body.py | 3 ++ ...with_false_does_not_match0_request_body.py | 3 ++ ..._with_true_does_not_match1_request_body.py | 3 ++ ...y_post_enums_in_properties_request_body.py | 3 ++ ...dy_post_forbidden_property_request_body.py | 3 ++ ..._body_post_hostname_format_request_body.py | 3 ++ ...eger_type_matches_integers_request_body.py | 3 ++ ...or_when_float_division_inf_request_body.py | 3 ++ ...d_string_value_for_default_request_body.py | 3 ++ ...uest_body_post_ipv4_format_request_body.py | 3 ++ ...uest_body_post_ipv6_format_request_body.py | 3 ++ ...y_post_json_pointer_format_request_body.py | 3 ++ ...dy_post_maximum_validation_request_body.py | 3 ++ ...tion_with_unsigned_integer_request_body.py | 3 ++ ...y_post_maxitems_validation_request_body.py | 3 ++ ..._post_maxlength_validation_request_body.py | 3 ++ ..._means_the_object_is_empty_request_body.py | 3 ++ ...t_maxproperties_validation_request_body.py | 3 ++ ...dy_post_minimum_validation_request_body.py | 3 ++ ...dation_with_signed_integer_request_body.py | 3 ++ ...y_post_minitems_validation_request_body.py | 3 ++ ..._post_minlength_validation_request_body.py | 3 ++ ...t_minproperties_validation_request_body.py | 3 ++ ...check_validation_semantics_request_body.py | 3 ++ ...check_validation_semantics_request_body.py | 3 ++ ...est_body_post_nested_items_request_body.py | 3 ++ ...check_validation_semantics_request_body.py | 3 ++ ...st_not_more_complex_schema_request_body.py | 3 ++ .../request_body_post_not_request_body.py | 3 ++ ..._nul_characters_in_strings_request_body.py | 3 ++ ...tches_only_the_null_object_request_body.py | 3 ++ ...umber_type_matches_numbers_request_body.py | 3 ++ ...ject_properties_validation_request_body.py | 3 ++ ...bject_type_matches_objects_request_body.py | 3 ++ ...y_post_oneof_complex_types_request_body.py | 3 ++ .../request_body_post_oneof_request_body.py | 3 ++ ...ost_oneof_with_base_schema_request_body.py | 3 ++ ...st_oneof_with_empty_schema_request_body.py | 3 ++ ...y_post_oneof_with_required_request_body.py | 3 ++ ...st_pattern_is_not_anchored_request_body.py | 3 ++ ...dy_post_pattern_validation_request_body.py | 3 ++ ...es_with_escaped_characters_request_body.py | 3 ++ ...ef_that_is_not_a_reference_request_body.py | 3 ++ ...ef_in_additionalproperties_request_body.py | 3 ++ ...est_body_post_ref_in_allof_request_body.py | 3 ++ ...est_body_post_ref_in_anyof_request_body.py | 3 ++ ...est_body_post_ref_in_items_request_body.py | 3 ++ ...quest_body_post_ref_in_not_request_body.py | 3 ++ ...est_body_post_ref_in_oneof_request_body.py | 3 ++ ..._body_post_ref_in_property_request_body.py | 3 ++ ...equired_default_validation_request_body.py | 3 ++ ...y_post_required_validation_request_body.py | 3 ++ ..._required_with_empty_array_request_body.py | 3 ++ ...ed_with_escaped_characters_request_body.py | 3 ++ ...ost_simple_enum_validation_request_body.py | 3 ++ ...tring_type_matches_strings_request_body.py | 3 ++ ...if_the_property_is_missing_request_body.py | 3 ++ ...iqueitems_false_validation_request_body.py | 3 ++ ...ost_uniqueitems_validation_request_body.py | 3 ++ ...quest_body_post_uri_format_request_body.py | 3 ++ ..._post_uri_reference_format_request_body.py | 3 ++ ...y_post_uri_template_format_request_body.py | 3 ++ ...alidate_response_body_for_content_types.py | 3 ++ ...default_response_body_for_content_types.py | 3 ++ ..._itself_response_body_for_content_types.py | 3 ++ ...icators_response_body_for_content_types.py | 3 ++ ...f_oneof_response_body_for_content_types.py | 3 ++ ...t_allof_response_body_for_content_types.py | 3 ++ ...e_types_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ...schemas_response_body_for_content_types.py | 3 ++ ...x_types_response_body_for_content_types.py | 3 ++ ...t_anyof_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._arrays_response_body_for_content_types.py | 3 ++ ...ooleans_response_body_for_content_types.py | 3 ++ ..._by_int_response_body_for_content_types.py | 3 ++ ..._number_response_body_for_content_types.py | 3 ++ ..._number_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...h_false_response_body_for_content_types.py | 3 ++ ...ch_true_response_body_for_content_types.py | 3 ++ ...racters_response_body_for_content_types.py | 3 ++ ..._match0_response_body_for_content_types.py | 3 ++ ..._match1_response_body_for_content_types.py | 3 ++ ...perties_response_body_for_content_types.py | 3 ++ ...roperty_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...ntegers_response_body_for_content_types.py | 3 ++ ...ion_inf_response_body_for_content_types.py | 3 ++ ...default_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...integer_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...s_empty_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...integer_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...mantics_response_body_for_content_types.py | 3 ++ ...mantics_response_body_for_content_types.py | 3 ++ ...d_items_response_body_for_content_types.py | 3 ++ ...mantics_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ...ost_not_response_body_for_content_types.py | 3 ++ ...strings_response_body_for_content_types.py | 3 ++ ..._object_response_body_for_content_types.py | 3 ++ ...numbers_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...objects_response_body_for_content_types.py | 3 ++ ...x_types_response_body_for_content_types.py | 3 ++ ...t_oneof_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ...equired_response_body_for_content_types.py | 3 ++ ...nchored_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...racters_response_body_for_content_types.py | 3 ++ ...ference_response_body_for_content_types.py | 3 ++ ...perties_response_body_for_content_types.py | 3 ++ ...n_allof_response_body_for_content_types.py | 3 ++ ...n_anyof_response_body_for_content_types.py | 3 ++ ...n_items_response_body_for_content_types.py | 3 ++ ..._in_not_response_body_for_content_types.py | 3 ++ ...n_oneof_response_body_for_content_types.py | 3 ++ ...roperty_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...y_array_response_body_for_content_types.py | 3 ++ ...racters_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...strings_response_body_for_content_types.py | 3 ++ ...missing_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ .../src/unit_test_api/apis/tags/_not_api.py | 3 ++ .../apis/tags/additional_properties_api.py | 3 ++ .../src/unit_test_api/apis/tags/all_of_api.py | 3 ++ .../src/unit_test_api/apis/tags/any_of_api.py | 3 ++ .../apis/tags/content_type_json_api.py | 3 ++ .../unit_test_api/apis/tags/default_api.py | 3 ++ .../src/unit_test_api/apis/tags/enum_api.py | 3 ++ .../src/unit_test_api/apis/tags/format_api.py | 3 ++ .../src/unit_test_api/apis/tags/items_api.py | 3 ++ .../unit_test_api/apis/tags/max_items_api.py | 3 ++ .../unit_test_api/apis/tags/max_length_api.py | 3 ++ .../apis/tags/max_properties_api.py | 3 ++ .../unit_test_api/apis/tags/maximum_api.py | 3 ++ .../unit_test_api/apis/tags/min_items_api.py | 3 ++ .../unit_test_api/apis/tags/min_length_api.py | 3 ++ .../apis/tags/min_properties_api.py | 3 ++ .../unit_test_api/apis/tags/minimum_api.py | 3 ++ .../apis/tags/multiple_of_api.py | 3 ++ .../src/unit_test_api/apis/tags/one_of_api.py | 3 ++ .../apis/tags/operation_request_body_api.py | 3 ++ .../unit_test_api/apis/tags/path_post_api.py | 3 ++ .../unit_test_api/apis/tags/pattern_api.py | 3 ++ .../unit_test_api/apis/tags/properties_api.py | 3 ++ .../src/unit_test_api/apis/tags/ref_api.py | 3 ++ .../unit_test_api/apis/tags/required_api.py | 3 ++ ...esponse_content_content_type_schema_api.py | 3 ++ .../src/unit_test_api/apis/tags/type_api.py | 3 ++ .../apis/tags/unique_items_api.py | 3 ++ .../java/.openapi-generator/FILES | 8 ++-- samples/client/3_1_0_unit_test/java/README.md | 2 +- .../java/docs/RootServerInfo.md | 6 +-- .../java/docs/servers/RootServer0.md | 17 +++++++++ .../client/RootServerInfo.java | 12 +++--- .../configurations/ApiConfiguration.java | 38 +++++++++---------- .../client/servers/RootServer0.java | 9 +++++ ...hema_given_for_prefixitems_request_body.py | 3 ++ ...ems_are_allowed_by_default_request_body.py | 3 ++ ...ies_are_allowed_by_default_request_body.py | 3 ++ ...erties_can_exist_by_itself_request_body.py | 3 ++ ...es_not_look_in_applicators_request_body.py | 3 ++ ...valued_instance_properties_request_body.py | 3 ++ ...onalproperties_with_schema_request_body.py | 3 ++ ..._combined_with_anyof_oneof_request_body.py | 3 ++ .../request_body_post_allof_request_body.py | 3 ++ ...dy_post_allof_simple_types_request_body.py | 3 ++ ...ost_allof_with_base_schema_request_body.py | 3 ++ ...llof_with_one_empty_schema_request_body.py | 3 ++ ...ith_the_first_empty_schema_request_body.py | 3 ++ ...with_the_last_empty_schema_request_body.py | 3 ++ ...lof_with_two_empty_schemas_request_body.py | 3 ++ ...y_post_anyof_complex_types_request_body.py | 3 ++ .../request_body_post_anyof_request_body.py | 3 ++ ...ost_anyof_with_base_schema_request_body.py | 3 ++ ...nyof_with_one_empty_schema_request_body.py | 3 ++ ..._array_type_matches_arrays_request_body.py | 3 ++ ...lean_type_matches_booleans_request_body.py | 3 ++ .../request_body_post_by_int_request_body.py | 3 ++ ...equest_body_post_by_number_request_body.py | 3 ++ ..._body_post_by_small_number_request_body.py | 3 ++ ..._nul_characters_in_strings_request_body.py | 3 ++ ...ontains_keyword_validation_request_body.py | 3 ++ ...ith_null_instance_elements_request_body.py | 3 ++ ...uest_body_post_date_format_request_body.py | 3 ++ ...body_post_date_time_format_request_body.py | 3 ++ ...es_with_escaped_characters_request_body.py | 3 ++ ...ema_incompatible_with_root_request_body.py | 3 ++ ..._schemas_single_dependency_request_body.py | 3 ++ ..._body_post_duration_format_request_body.py | 3 ++ ...est_body_post_email_format_request_body.py | 3 ++ ...body_post_empty_dependents_request_body.py | 3 ++ ...with0_does_not_match_false_request_body.py | 3 ++ ..._with1_does_not_match_true_request_body.py | 3 ++ ...um_with_escaped_characters_request_body.py | 3 ++ ...with_false_does_not_match0_request_body.py | 3 ++ ..._with_true_does_not_match1_request_body.py | 3 ++ ...y_post_enums_in_properties_request_body.py | 3 ++ ...xclusivemaximum_validation_request_body.py | 3 ++ ...xclusiveminimum_validation_request_body.py | 3 ++ ...dy_post_float_division_inf_request_body.py | 3 ++ ...dy_post_forbidden_property_request_body.py | 3 ++ ..._body_post_hostname_format_request_body.py | 3 ++ ...body_post_idn_email_format_request_body.py | 3 ++ ...y_post_idn_hostname_format_request_body.py | 3 ++ ...t_if_and_else_without_then_request_body.py | 3 ++ ...t_if_and_then_without_else_request_body.py | 3 ++ ...eyword_processing_sequence_request_body.py | 3 ++ ...ost_ignore_else_without_if_request_body.py | 3 ++ ...re_if_without_then_or_else_request_body.py | 3 ++ ...ost_ignore_then_without_if_request_body.py | 3 ++ ...eger_type_matches_integers_request_body.py | 3 ++ ...uest_body_post_ipv4_format_request_body.py | 3 ++ ...uest_body_post_ipv6_format_request_body.py | 3 ++ ...quest_body_post_iri_format_request_body.py | 3 ++ ..._post_iri_reference_format_request_body.py | 3 ++ ...t_body_post_items_contains_request_body.py | 3 ++ ..._in_applicators_valid_case_request_body.py | 3 ++ ...ith_null_instance_elements_request_body.py | 3 ++ ...y_post_json_pointer_format_request_body.py | 3 ++ ...ithout_contains_is_ignored_request_body.py | 3 ++ ...dy_post_maximum_validation_request_body.py | 3 ++ ...tion_with_unsigned_integer_request_body.py | 3 ++ ...y_post_maxitems_validation_request_body.py | 3 ++ ..._post_maxlength_validation_request_body.py | 3 ++ ..._means_the_object_is_empty_request_body.py | 3 ++ ...t_maxproperties_validation_request_body.py | 3 ++ ...ithout_contains_is_ignored_request_body.py | 3 ++ ...dy_post_minimum_validation_request_body.py | 3 ++ ...dation_with_signed_integer_request_body.py | 3 ++ ...y_post_minitems_validation_request_body.py | 3 ++ ..._post_minlength_validation_request_body.py | 3 ++ ...t_minproperties_validation_request_body.py | 3 ++ ...ltiple_dependents_required_request_body.py | 3 ++ ...rnproperties_are_validated_request_body.py | 3 ++ ...n_be_specified_in_an_array_request_body.py | 3 ++ ...check_validation_semantics_request_body.py | 3 ++ ...check_validation_semantics_request_body.py | 3 ++ ...est_body_post_nested_items_request_body.py | 3 ++ ...check_validation_semantics_request_body.py | 3 ++ ..._with_additionalproperties_request_body.py | 3 ++ ...ce_across_combined_schemas_request_body.py | 3 ++ ...st_not_more_complex_schema_request_body.py | 3 ++ ...dy_post_not_multiple_types_request_body.py | 3 ++ .../request_body_post_not_request_body.py | 3 ++ ..._nul_characters_in_strings_request_body.py | 3 ++ ...tches_only_the_null_object_request_body.py | 3 ++ ...umber_type_matches_numbers_request_body.py | 3 ++ ...ject_properties_validation_request_body.py | 3 ++ ...bject_type_matches_objects_request_body.py | 3 ++ ...y_post_oneof_complex_types_request_body.py | 3 ++ .../request_body_post_oneof_request_body.py | 3 ++ ...ost_oneof_with_base_schema_request_body.py | 3 ++ ...st_oneof_with_empty_schema_request_body.py | 3 ++ ...y_post_oneof_with_required_request_body.py | 3 ++ ...st_pattern_is_not_anchored_request_body.py | 3 ++ ...dy_post_pattern_validation_request_body.py | 3 ++ ...roperties_matching_a_regex_request_body.py | 3 ++ ...valued_instance_properties_request_body.py | 3 ++ ...e_starting_index_for_items_request_body.py | 3 ++ ...ith_null_instance_elements_request_body.py | 3 ++ ...onalproperties_interaction_request_body.py | 3 ++ ...ript_object_property_names_request_body.py | 3 ++ ...es_with_escaped_characters_request_body.py | 3 ++ ...valued_instance_properties_request_body.py | 3 ++ ...ef_that_is_not_a_reference_request_body.py | 3 ++ ...t_propertynames_validation_request_body.py | 3 ++ ...est_body_post_regex_format_request_body.py | 3 ++ ...ult_and_are_case_sensitive_request_body.py | 3 ++ ...lative_json_pointer_format_request_body.py | 3 ++ ...equired_default_validation_request_body.py | 3 ++ ...ript_object_property_names_request_body.py | 3 ++ ...y_post_required_validation_request_body.py | 3 ++ ..._required_with_empty_array_request_body.py | 3 ++ ...ed_with_escaped_characters_request_body.py | 3 ++ ...ost_simple_enum_validation_request_body.py | 3 ++ ...ody_post_single_dependency_request_body.py | 3 ++ ..._multiple_of_large_integer_request_body.py | 3 ++ ...tring_type_matches_strings_request_body.py | 3 ++ ...uest_body_post_time_format_request_body.py | 3 ++ ..._type_array_object_or_null_request_body.py | 3 ++ ..._post_type_array_or_object_request_body.py | 3 ++ ...ype_as_array_with_one_item_request_body.py | 3 ++ ...unevaluateditems_as_schema_request_body.py | 3 ++ ...n_multiple_nested_contains_request_body.py | 3 ++ ...nevaluateditems_with_items_request_body.py | 3 ++ ...ith_null_instance_elements_request_body.py | 3 ++ ..._affected_by_propertynames_request_body.py | 3 ++ ...evaluatedproperties_schema_request_body.py | 3 ++ ...acent_additionalproperties_request_body.py | 3 ++ ...valued_instance_properties_request_body.py | 3 ++ ...iqueitems_false_validation_request_body.py | 3 ++ ...lse_with_an_array_of_items_request_body.py | 3 ++ ...ost_uniqueitems_validation_request_body.py | 3 ++ ...ems_with_an_array_of_items_request_body.py | 3 ++ ...quest_body_post_uri_format_request_body.py | 3 ++ ..._post_uri_reference_format_request_body.py | 3 ++ ...y_post_uri_template_format_request_body.py | 3 ++ ...uest_body_post_uuid_format_request_body.py | 3 ++ ...orrect_branch_then_vs_else_request_body.py | 3 ++ ...ixitems_response_body_for_content_types.py | 3 ++ ...default_response_body_for_content_types.py | 3 ++ ...default_response_body_for_content_types.py | 3 ++ ..._itself_response_body_for_content_types.py | 3 ++ ...icators_response_body_for_content_types.py | 3 ++ ...perties_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ...f_oneof_response_body_for_content_types.py | 3 ++ ...t_allof_response_body_for_content_types.py | 3 ++ ...e_types_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ...schemas_response_body_for_content_types.py | 3 ++ ...x_types_response_body_for_content_types.py | 3 ++ ...t_anyof_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._arrays_response_body_for_content_types.py | 3 ++ ...ooleans_response_body_for_content_types.py | 3 ++ ..._by_int_response_body_for_content_types.py | 3 ++ ..._number_response_body_for_content_types.py | 3 ++ ..._number_response_body_for_content_types.py | 3 ++ ...strings_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...lements_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...racters_response_body_for_content_types.py | 3 ++ ...th_root_response_body_for_content_types.py | 3 ++ ...endency_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...endents_response_body_for_content_types.py | 3 ++ ...h_false_response_body_for_content_types.py | 3 ++ ...ch_true_response_body_for_content_types.py | 3 ++ ...racters_response_body_for_content_types.py | 3 ++ ..._match0_response_body_for_content_types.py | 3 ++ ..._match1_response_body_for_content_types.py | 3 ++ ...perties_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...ion_inf_response_body_for_content_types.py | 3 ++ ...roperty_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...ut_then_response_body_for_content_types.py | 3 ++ ...ut_else_response_body_for_content_types.py | 3 ++ ...equence_response_body_for_content_types.py | 3 ++ ...hout_if_response_body_for_content_types.py | 3 ++ ...or_else_response_body_for_content_types.py | 3 ++ ...hout_if_response_body_for_content_types.py | 3 ++ ...ntegers_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...ontains_response_body_for_content_types.py | 3 ++ ...id_case_response_body_for_content_types.py | 3 ++ ...lements_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...ignored_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...integer_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...s_empty_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...ignored_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...integer_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...equired_response_body_for_content_types.py | 3 ++ ...lidated_response_body_for_content_types.py | 3 ++ ...n_array_response_body_for_content_types.py | 3 ++ ...mantics_response_body_for_content_types.py | 3 ++ ...mantics_response_body_for_content_types.py | 3 ++ ...d_items_response_body_for_content_types.py | 3 ++ ...mantics_response_body_for_content_types.py | 3 ++ ...perties_response_body_for_content_types.py | 3 ++ ...schemas_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ...e_types_response_body_for_content_types.py | 3 ++ ...ost_not_response_body_for_content_types.py | 3 ++ ...strings_response_body_for_content_types.py | 3 ++ ..._object_response_body_for_content_types.py | 3 ++ ...numbers_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...objects_response_body_for_content_types.py | 3 ++ ...x_types_response_body_for_content_types.py | 3 ++ ...t_oneof_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ...equired_response_body_for_content_types.py | 3 ++ ...nchored_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...a_regex_response_body_for_content_types.py | 3 ++ ...perties_response_body_for_content_types.py | 3 ++ ...r_items_response_body_for_content_types.py | 3 ++ ...lements_response_body_for_content_types.py | 3 ++ ...raction_response_body_for_content_types.py | 3 ++ ...y_names_response_body_for_content_types.py | 3 ++ ...racters_response_body_for_content_types.py | 3 ++ ...perties_response_body_for_content_types.py | 3 ++ ...ference_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...nsitive_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...y_names_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...y_array_response_body_for_content_types.py | 3 ++ ...racters_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...endency_response_body_for_content_types.py | 3 ++ ...integer_response_body_for_content_types.py | 3 ++ ...strings_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...or_null_response_body_for_content_types.py | 3 ++ ..._object_response_body_for_content_types.py | 3 ++ ...ne_item_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ...ontains_response_body_for_content_types.py | 3 ++ ...h_items_response_body_for_content_types.py | 3 ++ ...lements_response_body_for_content_types.py | 3 ++ ...tynames_response_body_for_content_types.py | 3 ++ ..._schema_response_body_for_content_types.py | 3 ++ ...perties_response_body_for_content_types.py | 3 ++ ...perties_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...f_items_response_body_for_content_types.py | 3 ++ ...idation_response_body_for_content_types.py | 3 ++ ...f_items_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ..._format_response_body_for_content_types.py | 3 ++ ...vs_else_response_body_for_content_types.py | 3 ++ .../src/unit_test_api/apis/tags/_not_api.py | 3 ++ .../apis/tags/additional_properties_api.py | 3 ++ .../src/unit_test_api/apis/tags/all_of_api.py | 3 ++ .../src/unit_test_api/apis/tags/any_of_api.py | 3 ++ .../src/unit_test_api/apis/tags/const_api.py | 3 ++ .../unit_test_api/apis/tags/contains_api.py | 3 ++ .../apis/tags/content_type_json_api.py | 3 ++ .../apis/tags/dependent_required_api.py | 3 ++ .../apis/tags/dependent_schemas_api.py | 3 ++ .../src/unit_test_api/apis/tags/enum_api.py | 3 ++ .../apis/tags/exclusive_maximum_api.py | 3 ++ .../apis/tags/exclusive_minimum_api.py | 3 ++ .../src/unit_test_api/apis/tags/format_api.py | 3 ++ .../apis/tags/if_then_else_api.py | 3 ++ .../src/unit_test_api/apis/tags/items_api.py | 3 ++ .../apis/tags/max_contains_api.py | 3 ++ .../unit_test_api/apis/tags/max_items_api.py | 3 ++ .../unit_test_api/apis/tags/max_length_api.py | 3 ++ .../apis/tags/max_properties_api.py | 3 ++ .../unit_test_api/apis/tags/maximum_api.py | 3 ++ .../apis/tags/min_contains_api.py | 3 ++ .../unit_test_api/apis/tags/min_items_api.py | 3 ++ .../unit_test_api/apis/tags/min_length_api.py | 3 ++ .../apis/tags/min_properties_api.py | 3 ++ .../unit_test_api/apis/tags/minimum_api.py | 3 ++ .../apis/tags/multiple_of_api.py | 3 ++ .../src/unit_test_api/apis/tags/one_of_api.py | 3 ++ .../apis/tags/operation_request_body_api.py | 3 ++ .../unit_test_api/apis/tags/path_post_api.py | 3 ++ .../unit_test_api/apis/tags/pattern_api.py | 3 ++ .../apis/tags/pattern_properties_api.py | 3 ++ .../apis/tags/prefix_items_api.py | 3 ++ .../unit_test_api/apis/tags/properties_api.py | 3 ++ .../apis/tags/property_names_api.py | 3 ++ .../src/unit_test_api/apis/tags/ref_api.py | 3 ++ .../unit_test_api/apis/tags/required_api.py | 3 ++ ...esponse_content_content_type_schema_api.py | 3 ++ .../src/unit_test_api/apis/tags/type_api.py | 3 ++ .../apis/tags/unevaluated_items_api.py | 3 ++ .../apis/tags/unevaluated_properties_api.py | 3 ++ .../apis/tags/unique_items_api.py | 3 ++ .../src/this_package/apis/paths/operators.py | 3 ++ .../src/this_package/apis/tags/default_api.py | 3 ++ .../paths/path_with_no_explicit_security.py | 3 ++ .../paths/path_with_one_explicit_security.py | 3 ++ .../paths/path_with_security_from_root.py | 3 ++ .../paths/path_with_two_explicit_security.py | 3 ++ .../src/this_package/apis/tags/default_api.py | 3 ++ .../apis/paths/another_fake_dummy.py | 3 ++ .../apis/paths/common_param_sub_dir.py | 3 ++ .../src/petstore_api/apis/paths/fake.py | 3 ++ ...ditional_properties_with_array_of_enums.py | 3 ++ .../apis/paths/fake_body_with_file_schema.py | 3 ++ .../apis/paths/fake_body_with_query_params.py | 3 ++ .../apis/paths/fake_case_sensitive_params.py | 3 ++ .../apis/paths/fake_classname_test.py | 3 ++ .../apis/paths/fake_delete_coffee_id.py | 3 ++ .../petstore_api/apis/paths/fake_health.py | 3 ++ .../fake_inline_additional_properties.py | 3 ++ .../apis/paths/fake_inline_composition.py | 3 ++ .../apis/paths/fake_json_form_data.py | 3 ++ .../apis/paths/fake_json_patch.py | 3 ++ .../apis/paths/fake_json_with_charset.py | 3 ++ ...ake_multiple_request_body_content_types.py | 3 ++ .../paths/fake_multiple_response_bodies.py | 3 ++ .../apis/paths/fake_multiple_securities.py | 3 ++ .../apis/paths/fake_obj_in_query.py | 3 ++ ...fake_parameter_collisions1_abab_self_ab.py | 3 ++ .../apis/paths/fake_pem_content_type.py | 3 ++ ..._pet_id_upload_image_with_required_file.py | 3 ++ ...fake_query_param_with_json_content_type.py | 3 ++ .../apis/paths/fake_redirection.py | 3 ++ .../apis/paths/fake_ref_obj_in_query.py | 3 ++ .../apis/paths/fake_refs_array_of_enums.py | 3 ++ .../apis/paths/fake_refs_arraymodel.py | 3 ++ .../apis/paths/fake_refs_boolean.py | 3 ++ ...composed_one_of_number_with_validations.py | 3 ++ .../petstore_api/apis/paths/fake_refs_enum.py | 3 ++ .../apis/paths/fake_refs_mammal.py | 3 ++ .../apis/paths/fake_refs_number.py | 3 ++ .../fake_refs_object_model_with_ref_props.py | 3 ++ .../apis/paths/fake_refs_string.py | 3 ++ .../paths/fake_response_without_schema.py | 3 ++ .../apis/paths/fake_test_query_paramters.py | 3 ++ .../apis/paths/fake_upload_download_file.py | 3 ++ .../apis/paths/fake_upload_file.py | 3 ++ .../apis/paths/fake_upload_files.py | 3 ++ .../apis/paths/fake_wild_card_responses.py | 3 ++ .../python/src/petstore_api/apis/paths/foo.py | 3 ++ .../python/src/petstore_api/apis/paths/pet.py | 3 ++ .../apis/paths/pet_find_by_status.py | 3 ++ .../apis/paths/pet_find_by_tags.py | 3 ++ .../src/petstore_api/apis/paths/pet_pet_id.py | 3 ++ .../apis/paths/pet_pet_id_upload_image.py | 3 ++ .../src/petstore_api/apis/paths/solidus.py | 3 ++ .../apis/paths/store_inventory.py | 3 ++ .../petstore_api/apis/paths/store_order.py | 3 ++ .../apis/paths/store_order_order_id.py | 3 ++ .../src/petstore_api/apis/paths/user.py | 3 ++ .../apis/paths/user_create_with_array.py | 3 ++ .../apis/paths/user_create_with_list.py | 3 ++ .../src/petstore_api/apis/paths/user_login.py | 3 ++ .../petstore_api/apis/paths/user_logout.py | 3 ++ .../petstore_api/apis/paths/user_username.py | 3 ++ .../apis/tags/another_fake_api.py | 3 ++ .../src/petstore_api/apis/tags/default_api.py | 3 ++ .../src/petstore_api/apis/tags/fake_api.py | 3 ++ .../apis/tags/fake_classname_tags123_api.py | 3 ++ .../src/petstore_api/apis/tags/pet_api.py | 3 ++ .../src/petstore_api/apis/tags/store_api.py | 3 ++ .../src/petstore_api/apis/tags/user_api.py | 3 ++ 613 files changed, 1915 insertions(+), 66 deletions(-) create mode 100644 samples/client/3_0_3_unit_test/java/docs/servers/RootServer0.md create mode 100644 samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java create mode 100644 samples/client/3_1_0_unit_test/java/docs/servers/RootServer0.md create mode 100644 samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java diff --git a/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES b/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES index f0296136bf5..2ae8ae4665a 100644 --- a/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES +++ b/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES @@ -1,5 +1,5 @@ README.md -docs/ServerInfo.md +docs/RootServerInfo.md docs/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md docs/components/schemas/AdditionalpropertiesCanExistByItself.md @@ -87,9 +87,9 @@ docs/components/schemas/UniqueitemsValidation.md docs/components/schemas/UriFormat.md docs/components/schemas/UriReferenceFormat.md docs/components/schemas/UriTemplateFormat.md -docs/servers/Server0.md +docs/servers/RootServer0.md pom.xml -src/main/java/org/openapijsonschematools/client/ServerInfo.java +src/main/java/org/openapijsonschematools/client/RootServerInfo.java src/main/java/org/openapijsonschematools/client/apiclient/ApiClient.java src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.java src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java @@ -313,8 +313,8 @@ src/main/java/org/openapijsonschematools/client/schemas/validation/UniqueItemsVa src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java +src/main/java/org/openapijsonschematools/client/servers/RootServer0.java src/main/java/org/openapijsonschematools/client/servers/Server.java -src/main/java/org/openapijsonschematools/client/servers/Server0.java src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java diff --git a/samples/client/3_0_3_unit_test/java/README.md b/samples/client/3_0_3_unit_test/java/README.md index bf5ab04681e..181a1f40c9c 100644 --- a/samples/client/3_0_3_unit_test/java/README.md +++ b/samples/client/3_0_3_unit_test/java/README.md @@ -149,7 +149,7 @@ allowed input and output types. ## Servers | server_index | Class | Description | | ------------ | ----- | ----------- | -| 0 | [Server0](docs/servers/Server0.md) | | +| 0 | [RootServer0](docs/servers/RootServer0.md) | | ## Endpoints All URIs are relative to the selected server diff --git a/samples/client/3_0_3_unit_test/java/docs/RootServerInfo.md b/samples/client/3_0_3_unit_test/java/docs/RootServerInfo.md index cc1e29df040..46c3ca818e6 100644 --- a/samples/client/3_0_3_unit_test/java/docs/RootServerInfo.md +++ b/samples/client/3_0_3_unit_test/java/docs/RootServerInfo.md @@ -23,12 +23,12 @@ A class that stores servers and allows one to be returned with a ServerIndex ins ### Constructor Summary | Constructor and Description | | --------------------------- | -| RootServerInfo1(@Nullable [Server0](servers/Server0.md) server0)
Creates an instance using passed in servers | +| RootServerInfo1(@Nullable [RootServer0](servers/RootServer0.md) server0)
Creates an instance using passed in servers | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [Server0](servers/Server0.md) | server0 | +| [RootServer0](servers/RootServer0.md) | server0 | ### Method Summary | Modifier and Type | Method and Description | @@ -47,7 +47,7 @@ a builder for [RootServerInfo1](#rootserverinfo1) ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [RootServerInfoBuilder](#rootserverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | +| [RootServerInfoBuilder](#rootserverinfobuilder) | rootServer0([RootServer0](servers/RootServer0.md) server0)
sets the server | | [RootServerInfo1](#rootserverinfo1) | build() | ## ServerIndex diff --git a/samples/client/3_0_3_unit_test/java/docs/servers/RootServer0.md b/samples/client/3_0_3_unit_test/java/docs/servers/RootServer0.md new file mode 100644 index 00000000000..08ddb1be947 --- /dev/null +++ b/samples/client/3_0_3_unit_test/java/docs/servers/RootServer0.md @@ -0,0 +1,17 @@ +org.openapijsonschematools.client.servers.RootServer0 +# Server RootServer0 +public class RootServer0 + +A class that stores a server url + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServer0()
Creates a server | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "https://someserver.com/v1" | + +[[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java index 2e2c3d87885..f7e35bcb79d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java @@ -1,6 +1,6 @@ package org.openapijsonschematools.client; -import org.openapijsonschematools.client.servers.Server0; +import org.openapijsonschematools.client.servers.RootServer0; import org.openapijsonschematools.client.servers.Server; import org.openapijsonschematools.client.servers.ServerProvider; import org.checkerframework.checker.nullness.qual.Nullable; @@ -9,12 +9,12 @@ public class RootServerInfo { public static class RootServerInfo1 implements ServerProvider { - private final Server0 server0; + private final RootServer0 server0; RootServerInfo1( - @Nullable Server0 server0 + @Nullable RootServer0 server0 ) { - this.server0 = Objects.requireNonNullElseGet(server0, Server0::new); + this.server0 = Objects.requireNonNullElseGet(server0, RootServer0::new); } @Override @@ -24,11 +24,11 @@ public Server getServer(ServerIndex serverIndex) { } public static class RootServerInfoBuilder { - private @Nullable Server0 server0; + private @Nullable RootServer0 server0; public RootServerInfoBuilder() {} - public RootServerInfoBuilder server0(Server0 server0) { + public RootServerInfoBuilder rootServer0(RootServer0 server0) { this.server0 = server0; return this; } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java index 9791245f120..f623a36498b 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.configurations; import org.openapijsonschematools.client.servers.Server; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.checkerframework.checker.nullness.qual.Nullable; import java.time.Duration; @@ -31,68 +31,68 @@ public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, } public static class ServerInfo { - final ServerInfo.ServerInfo1 serverInfo; + final RootServerInfo.RootServerInfo1 rootServerInfo; ServerInfo( - ServerInfo. @Nullable ServerInfo1 serverInfo + RootServerInfo. @Nullable RootServerInfo1 rootServerInfo ) { - this.serverInfo = Objects.requireNonNullElse(serverInfo, new ServerInfo.ServerInfoBuilder().build()); + this.rootServerInfo = Objects.requireNonNullElse(rootServerInfo, new RootServerInfo.RootServerInfoBuilder().build()); } } public static class ServerInfoBuilder { - private ServerInfo. @Nullable ServerInfo1 serverInfo; + private RootServerInfo. @Nullable RootServerInfo1 rootServerInfo; public ServerInfoBuilder() {} - public ServerInfoBuilder serverInfo(ServerInfo.ServerInfo1 serverInfo) { - this.serverInfo = serverInfo; + public ServerInfoBuilder rootServerInfo(RootServerInfo.RootServerInfo1 rootServerInfo) { + this.rootServerInfo = rootServerInfo; return this; } public ServerInfo build() { return new ServerInfo( - serverInfo + rootServerInfo ); } } public static class ServerIndexInfo { - final ServerInfo.ServerIndex serverInfoServerIndex; + final RootServerInfo.ServerIndex rootServerInfoServerIndex; ServerIndexInfo( - ServerInfo. @Nullable ServerIndex serverInfoServerIndex + RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex ) { - this.serverInfoServerIndex = Objects.requireNonNullElse(serverInfoServerIndex, ServerInfo.ServerIndex.SERVER_0); + this.rootServerInfoServerIndex = Objects.requireNonNullElse(rootServerInfoServerIndex, RootServerInfo.ServerIndex.SERVER_0); } } public static class ServerIndexInfoBuilder { - private ServerInfo. @Nullable ServerIndex serverInfoServerIndex; + private RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; public ServerIndexInfoBuilder() {} - public ServerIndexInfoBuilder serverInfoServerIndex(ServerInfo.ServerIndex serverIndex) { - this.serverInfoServerIndex = serverIndex; + public ServerIndexInfoBuilder rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { + this.rootServerInfoServerIndex = serverIndex; return this; } public ServerIndexInfo build() { return new ServerIndexInfo( - serverInfoServerIndex + rootServerInfoServerIndex ); } } - public Server getServer(ServerInfo. @Nullable ServerIndex serverIndex) { - var serverProvider = serverInfo.serverInfo; + public Server getServer(RootServerInfo. @Nullable ServerIndex serverIndex) { + var serverProvider = serverInfo.rootServerInfo; if (serverIndex == null) { - ServerInfo.ServerIndex configServerIndex = serverIndexInfo.serverInfoServerIndex; + RootServerInfo.ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); } public Map> getDefaultHeaders() { - return new HashMap<>(); + return defaultHeaders; } public @Nullable Duration getTimeout() { diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java new file mode 100644 index 00000000000..6bb94f3f1a8 --- /dev/null +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java @@ -0,0 +1,9 @@ +package org.openapijsonschematools.client.servers; + +import org.openapijsonschematools.client.servers.ServerWithoutVariables; + +public class RootServer0 extends ServerWithoutVariables { + public RootServer0() { + super("https://someserver.com/v1"); + } +} diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body.py index b7e019f5b7e..3b29f05cb0c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py index 6e983e991f9..ad7e405fd75 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py index 92d4d5179ee..b29b083286b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body.py index 8ba7d8d83f9..73020e4dfc8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_combined_with_anyof_oneof_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_combined_with_anyof_oneof_request_body.py index 5cf28ee67a1..fc0b7ee11f7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_combined_with_anyof_oneof_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_combined_with_anyof_oneof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_request_body.py index 40fc32ebe01..e033a598d88 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_simple_types_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_simple_types_request_body.py index 323cb9679fe..b70aacdab98 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_simple_types_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_simple_types_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_base_schema_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_base_schema_request_body.py index ecd5157a289..98028bb7b47 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_base_schema_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_base_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_one_empty_schema_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_one_empty_schema_request_body.py index ad10d5a8f8d..a70a0475f8a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_one_empty_schema_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_one_empty_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_first_empty_schema_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_first_empty_schema_request_body.py index 1b75bad476d..aae05b0b0e5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_first_empty_schema_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_first_empty_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_last_empty_schema_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_last_empty_schema_request_body.py index bb0f6b9e7b1..5f46d3fbec4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_last_empty_schema_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_last_empty_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_two_empty_schemas_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_two_empty_schemas_request_body.py index 932f3248e9d..4396a374083 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_two_empty_schemas_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_two_empty_schemas_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_complex_types_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_complex_types_request_body.py index 3f0361eec96..6908e8e63b0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_complex_types_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_complex_types_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_request_body.py index a57df8ca64b..4f5a0ac8177 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_base_schema_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_base_schema_request_body.py index a9f4b98d7fb..75a34e9fd95 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_base_schema_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_base_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_one_empty_schema_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_one_empty_schema_request_body.py index 27506cbcf91..3797d615175 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_one_empty_schema_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_one_empty_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_array_type_matches_arrays_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_array_type_matches_arrays_request_body.py index 389e22ba247..4f3b1a986cc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_array_type_matches_arrays_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_array_type_matches_arrays_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_boolean_type_matches_booleans_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_boolean_type_matches_booleans_request_body.py index aa0ed30c80a..0bef18bdf49 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_boolean_type_matches_booleans_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_boolean_type_matches_booleans_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py index f3e6af260a6..62165160d3d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py index 04568064c09..bdcdf4949d1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py index 5b701ac16d6..e0dc3aef1ab 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py index f79d7b8a1eb..d2009ec5da1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py index 12040ebc5eb..eb4088c2940 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with0_does_not_match_false_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with0_does_not_match_false_request_body.py index 384864618ed..17ac68787dc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with0_does_not_match_false_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with0_does_not_match_false_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with1_does_not_match_true_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with1_does_not_match_true_request_body.py index 05cf72a1191..a8e0990a911 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with1_does_not_match_true_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with1_does_not_match_true_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_escaped_characters_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_escaped_characters_request_body.py index 3e94ce392eb..bc67400eda3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_escaped_characters_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_escaped_characters_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_false_does_not_match0_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_false_does_not_match0_request_body.py index 82bf414c1f5..cf5974e7016 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_false_does_not_match0_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_false_does_not_match0_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_true_does_not_match1_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_true_does_not_match1_request_body.py index 4b9821c7e71..d7e762864ff 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_true_does_not_match1_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_true_does_not_match1_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enums_in_properties_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enums_in_properties_request_body.py index 2efddf5ccf1..4bb21d8dce3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enums_in_properties_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enums_in_properties_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_forbidden_property_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_forbidden_property_request_body.py index 40dbe759a22..40d6d2d09c4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_forbidden_property_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_forbidden_property_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_hostname_format_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_hostname_format_request_body.py index d3cd1714731..6fad1b0a451 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_hostname_format_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_hostname_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_integer_type_matches_integers_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_integer_type_matches_integers_request_body.py index 3e17751c6b9..7a64a590995 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_integer_type_matches_integers_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_integer_type_matches_integers_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body.py index 9bd06ab85c0..c65c443e159 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_invalid_string_value_for_default_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_invalid_string_value_for_default_request_body.py index f514a095722..8413621430a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_invalid_string_value_for_default_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_invalid_string_value_for_default_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv4_format_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv4_format_request_body.py index 4491812a33b..5e46a34f2f2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv4_format_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv4_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv6_format_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv6_format_request_body.py index dbb286bade2..1f57ae67ecf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv6_format_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv6_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_json_pointer_format_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_json_pointer_format_request_body.py index 0ea474c691d..abd732b6a0f 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_json_pointer_format_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_json_pointer_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_request_body.py index 952ee7bc288..20d31adbd9b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body.py index bae14266251..ccbcbdee14b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxitems_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxitems_validation_request_body.py index 7eaca4d516b..a7e739a4db2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxitems_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxitems_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxlength_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxlength_validation_request_body.py index 58f21adbf10..a14e87b835b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxlength_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxlength_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body.py index 26dab002482..bf87fc768e0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties_validation_request_body.py index 2c444daae86..d6a9f23e4cf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_request_body.py index 146cbc8d881..ad1ac54714e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_with_signed_integer_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_with_signed_integer_request_body.py index 182dcb114e0..602fe2c845e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_with_signed_integer_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_with_signed_integer_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body.py index ccef21b932b..8804dcca402 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minlength_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minlength_validation_request_body.py index 68ba230bbff..c185553db7d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minlength_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minlength_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minproperties_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minproperties_validation_request_body.py index c2f43675161..4fee87378d0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minproperties_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minproperties_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body.py index 1c526f1faf5..1e4a91ce3c0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body.py index 345ae35da90..2058bc78212 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_items_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_items_request_body.py index d8695372ec5..aa86990b943 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_items_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_items_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body.py index b1a87d445ae..871f3155c43 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_more_complex_schema_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_more_complex_schema_request_body.py index be8fd645188..022d1ea829c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_more_complex_schema_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_more_complex_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_request_body.py index d6c787e3fa9..65c6962c167 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nul_characters_in_strings_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nul_characters_in_strings_request_body.py index 3d510f6bb93..212d8ba6705 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nul_characters_in_strings_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nul_characters_in_strings_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_null_type_matches_only_the_null_object_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_null_type_matches_only_the_null_object_request_body.py index f946999b01e..4c4b45fcebf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_null_type_matches_only_the_null_object_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_null_type_matches_only_the_null_object_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_number_type_matches_numbers_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_number_type_matches_numbers_request_body.py index b2501d555a2..c730cb5ffe6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_number_type_matches_numbers_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_number_type_matches_numbers_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_properties_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_properties_validation_request_body.py index d9a24073f38..fc5e751a70a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_properties_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_properties_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_type_matches_objects_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_type_matches_objects_request_body.py index 7998082ea94..e14380262ce 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_type_matches_objects_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_type_matches_objects_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_complex_types_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_complex_types_request_body.py index 7c90bd43aca..493769f9411 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_complex_types_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_complex_types_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_request_body.py index 50ce0c047fb..73d11f2fd67 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_base_schema_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_base_schema_request_body.py index 16e60735897..48eb989c129 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_base_schema_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_base_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_empty_schema_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_empty_schema_request_body.py index dd42fbd4fce..8e6ca13bdbb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_empty_schema_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_empty_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_required_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_required_request_body.py index d3eefbfba5c..e408b3c9b7b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_required_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_required_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_is_not_anchored_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_is_not_anchored_request_body.py index b3220b3f5d0..ae0965da907 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_is_not_anchored_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_is_not_anchored_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_validation_request_body.py index a5e00f22cf0..a5a455620d7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py index 8d61a4129bd..e6dc379b3c9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body.py index 6085a305a38..d6ebaa2b47a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_additionalproperties_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_additionalproperties_request_body.py index feb49547023..02a21b09e4d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_additionalproperties_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_additionalproperties_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_allof_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_allof_request_body.py index 315b7e9cfaf..e5b95e39701 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_allof_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_allof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_anyof_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_anyof_request_body.py index 3f636c9cb02..d6728b36e04 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_anyof_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_anyof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_items_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_items_request_body.py index addd7230dc5..e86926855af 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_items_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_items_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_not_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_not_request_body.py index 4e7b81e7895..5beb89f456b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_not_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_not_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_oneof_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_oneof_request_body.py index 6f8839cb6f5..f259867b859 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_oneof_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_oneof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_property_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_property_request_body.py index 59f80e78c88..0051b8ff499 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_property_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ref_in_property_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_default_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_default_validation_request_body.py index 9e5294924f3..1a04fed9429 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_default_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_default_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_validation_request_body.py index 0f2e07f43e3..dd6732e7fd4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_empty_array_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_empty_array_request_body.py index 8d85dd51ac8..2bcbbeae6f4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_empty_array_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_empty_array_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_escaped_characters_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_escaped_characters_request_body.py index f73200fb6cc..3e2887e09ff 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_escaped_characters_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_escaped_characters_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_simple_enum_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_simple_enum_validation_request_body.py index 00186db1407..7d7ef495a88 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_simple_enum_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_simple_enum_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_string_type_matches_strings_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_string_type_matches_strings_request_body.py index 9255a63bb10..4ba583949eb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_string_type_matches_strings_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_string_type_matches_strings_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body.py index c76dd9f4db1..13d1e3b11a8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_validation_request_body.py index 7dae6a8d5d5..04ce0ed81be 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_validation_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_validation_request_body.py index 3a1863d61df..768a8e116fd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_validation_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_format_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_format_request_body.py index f3e24efbf1b..61947777c10 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_format_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body.py index e714ac9d74f..13b37b80303 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py index 214d90b4f2f..a6a3ab89a61 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types.py index 01adb7cbea1..482e833e4f2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py index 7e117dde13c..e893ccbbe2b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py index 09f7fe79b00..098bc085ef1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types.py index 588172ad698..3f27eef52af 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.py index c9d56a0877b..4a3653a76af 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_response_body_for_content_types.py index 4f792beb583..e459d79667e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_simple_types_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_simple_types_response_body_for_content_types.py index 35c6ad64b2e..aa08fd3cb97 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_simple_types_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_simple_types_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_base_schema_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_base_schema_response_body_for_content_types.py index 8ca32ce36c3..84623511c0c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_base_schema_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_base_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types.py index eb124ef2198..d96e5da1dd4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.py index f4b72057d11..c9206917f48 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.py index 7988e2fdcdb..61661c54abc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.py index a29e4909659..c284aa30621 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_complex_types_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_complex_types_response_body_for_content_types.py index 1c05d670dbd..8d04e1376f6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_complex_types_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_complex_types_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_response_body_for_content_types.py index b429525960f..45b46b9a88c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types.py index ffcbc45b479..35f73738b05 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types.py index edaef8a94b1..bfad23f040b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types.py index e0a83617a45..f8cfd1e55d2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types.py index 5fe5b1df62b..c7da421f0bd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content_types.py index 060198860e1..0dcfe50270b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py index 18c945cb425..2df66dca6be 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py index a0b9f080a84..84e83829885 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py index 4122637b647..214e180fe35 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py index 84886c98388..c20beb440a5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.py index be4f5501d2f..a1cf84a435c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.py index f0c14cef429..281009e885d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types.py index 3e57a890ede..9f8cf98d58e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.py index 1d0548ee9ec..e7cda2d15c3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types.py index 92de0e26bbd..00890dc8f6a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enums_in_properties_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enums_in_properties_response_body_for_content_types.py index 1f4d4df40ab..76fddc8b9e7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enums_in_properties_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enums_in_properties_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_forbidden_property_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_forbidden_property_response_body_for_content_types.py index 8fb95338282..39289334538 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_forbidden_property_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_forbidden_property_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_hostname_format_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_hostname_format_response_body_for_content_types.py index 453ce2201de..f20e4254cf9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_hostname_format_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_hostname_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types.py index cd1cd6b8c4d..ed5f8a4f012 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types.py index 447b5c0cece..01cbf843d75 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types.py index 7b16f6db317..4507e188d98 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv4_format_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv4_format_response_body_for_content_types.py index 9f3845ba2b7..fc32be869e6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv4_format_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv4_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv6_format_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv6_format_response_body_for_content_types.py index 7120c239553..46dbc497d18 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv6_format_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv6_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_json_pointer_format_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_json_pointer_format_response_body_for_content_types.py index ef63e6fc019..e5e70187ac7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_json_pointer_format_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_json_pointer_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_response_body_for_content_types.py index 76c6bb7fd8c..1d0b2bd6773 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.py index a4b9016d0f7..7280ae739cd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxitems_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxitems_validation_response_body_for_content_types.py index ab0fe2be9fe..0355836d085 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxitems_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxitems_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxlength_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxlength_validation_response_body_for_content_types.py index 095d7d28868..15fb9f9c7ca 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxlength_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxlength_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.py index ab5d7078337..52ac960ab5b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties_validation_response_body_for_content_types.py index 72a03e0e92f..94da0242dc5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_response_body_for_content_types.py index 0d31e576c48..d39a7b2efd4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.py index a96168691ef..fd82f585509 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_body_for_content_types.py index c8f6f235dd0..a6292645e58 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minlength_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minlength_validation_response_body_for_content_types.py index ff62dd9a681..9409de1535a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minlength_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minlength_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minproperties_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minproperties_validation_response_body_for_content_types.py index 70935cc379c..9068b74cdfd 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minproperties_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minproperties_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.py index c2cc9c5f101..8022d2707e4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.py index cbdc3fc0ac4..a2abcf41a89 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_items_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_items_response_body_for_content_types.py index 92f91512c78..4c436adefc9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_items_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_items_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.py index c5fc2c83d66..d7780f9c6b3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_more_complex_schema_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_more_complex_schema_response_body_for_content_types.py index 935ee85c634..7ae5a217dff 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_more_complex_schema_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_more_complex_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_response_body_for_content_types.py index cdf3c84d0b2..a216e0b0fb8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types.py index 33b3ab4b2ba..282363a7fb4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.py index d7dc8de83b2..ec52d62a0a3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types.py index 6fbcd853cc1..0d081aa8782 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_properties_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_properties_validation_response_body_for_content_types.py index b93ea3c46a4..35448c298bb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_properties_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_properties_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_type_matches_objects_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_type_matches_objects_response_body_for_content_types.py index fa214f8ac42..b507b351fde 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_type_matches_objects_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_type_matches_objects_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_complex_types_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_complex_types_response_body_for_content_types.py index e201c2f985e..8bc0cf50706 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_complex_types_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_complex_types_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_response_body_for_content_types.py index 2c24683285d..3eb199a78f4 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types.py index a469b0bb56c..3e51aa37b13 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types.py index 791bbb1dcba..aa06f054f1b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_required_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_required_response_body_for_content_types.py index 3f8649a6a88..390e429a1aa 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_required_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_required_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types.py index 925bd30817e..9081d04772a 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_validation_response_body_for_content_types.py index 91b66405f8e..20ce3373e38 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py index bf99a45c46c..a582560f6a1 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.py index 3e3ccee30c1..0ab12c0575c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types.py index ce8fd7f32f5..eb037b56550 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_allof_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_allof_response_body_for_content_types.py index 5dbfa3cef56..5f476d3a85b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_allof_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_allof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_anyof_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_anyof_response_body_for_content_types.py index 6b6eec4a24a..aef7fa04b11 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_anyof_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_anyof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_items_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_items_response_body_for_content_types.py index 28a66a7c0aa..0bb25184863 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_items_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_items_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_not_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_not_response_body_for_content_types.py index 88f69b1fc14..749c4228f6e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_not_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_not_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_oneof_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_oneof_response_body_for_content_types.py index 60a14df9b91..85bb8364966 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_oneof_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_oneof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_property_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_property_response_body_for_content_types.py index 53a5c141001..187c0075ebb 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_property_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ref_in_property_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_default_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_default_validation_response_body_for_content_types.py index 92871622d82..74ab1f4703c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_default_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_default_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_validation_response_body_for_content_types.py index c39e5e44581..16767abc510 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_empty_array_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_empty_array_response_body_for_content_types.py index 09da017d6d4..1d2adf029a2 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_empty_array_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_empty_array_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types.py index 827236250b2..2502542ea22 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_simple_enum_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_simple_enum_validation_response_body_for_content_types.py index 473021e9a91..8cb7cdb8a79 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_simple_enum_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_simple_enum_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_string_type_matches_strings_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_string_type_matches_strings_response_body_for_content_types.py index babbd0afc16..079897b2919 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_string_type_matches_strings_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_string_type_matches_strings_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types.py index 792693cb081..18590ae34c7 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types.py index 20c9c817cfe..b3d2b95d0de 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_validation_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_validation_response_body_for_content_types.py index 4c523684246..b0964163058 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_validation_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_format_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_format_response_body_for_content_types.py index 2ce3f2afdca..5852c42fab6 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_format_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_reference_format_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_reference_format_response_body_for_content_types.py index e260d37cc01..a99fbb9e30c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_reference_format_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_reference_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_template_format_response_body_for_content_types.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_template_format_response_body_for_content_types.py index b671bda63aa..9b11212ba6e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_template_format_response_body_for_content_types.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_template_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/_not_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/_not_api.py index 81c67c95157..4b8ac5fd4f8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/_not_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/_not_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py index 5486c6ad709..b73cc541dbf 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/all_of_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/all_of_api.py index d2df11f78ec..68a5de3f813 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/all_of_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/all_of_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/any_of_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/any_of_api.py index b46b025efa5..377ab90e443 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/any_of_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/any_of_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index ff72167992b..966509ef7ec 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/default_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/default_api.py index d998ed389d6..5186e79a183 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/default_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/default_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/enum_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/enum_api.py index e58563a2bf2..496faf180d8 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/enum_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/enum_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/format_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/format_api.py index 71e0438f511..073b8fbecaa 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/format_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/format_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/items_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/items_api.py index f0789f4af21..53bae5529da 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/items_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/items_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_items_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_items_api.py index 32f551696ad..236aa9eeca5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_items_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_items_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_length_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_length_api.py index 914dc4dcb3c..39d4fb420ff 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_length_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_length_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_properties_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_properties_api.py index 1f00ff86a74..57ed77cf70e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_properties_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/max_properties_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/maximum_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/maximum_api.py index 4a7ab5de31b..f4fc2d21ab9 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/maximum_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/maximum_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_items_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_items_api.py index 0dc3a137de7..48d1520a3dc 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_items_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_items_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_length_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_length_api.py index b1bdf36e6b0..1143812f6b5 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_length_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_length_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_properties_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_properties_api.py index c34b9bdc3d6..487c06dac8d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_properties_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/min_properties_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/minimum_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/minimum_api.py index b8c46c2b839..8d06ea2c27e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/minimum_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/minimum_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/multiple_of_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/multiple_of_api.py index 70142812239..08f1a990127 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/multiple_of_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/multiple_of_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/one_of_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/one_of_api.py index f2bcd9c1473..d33be64bb03 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/one_of_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/one_of_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index d2d74066a67..b3b7a7ecd42 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index cfd7890a889..ed915f0fefa 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/pattern_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/pattern_api.py index e7c6e489ef7..51376e9397e 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/pattern_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/pattern_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/properties_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/properties_api.py index 6ffcb59981d..23f3382843b 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/properties_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/properties_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/ref_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/ref_api.py index 016134782a7..97bb3d520ff 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/ref_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/ref_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/required_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/required_api.py index 73774d562df..8b34395558c 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/required_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/required_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index d9d6afb7fdf..5dc795d7ec0 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/type_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/type_api.py index 0a35987767c..ca2329ed67d 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/type_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/type_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/unique_items_api.py b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/unique_items_api.py index c127bd4023d..9b9c09faaf3 100644 --- a/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/unique_items_api.py +++ b/samples/client/3_0_3_unit_test/python/src/unit_test_api/apis/tags/unique_items_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.0.3 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES b/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES index 6318414d165..e00760803ba 100644 --- a/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES +++ b/samples/client/3_1_0_unit_test/java/.openapi-generator/FILES @@ -1,5 +1,5 @@ README.md -docs/ServerInfo.md +docs/RootServerInfo.md docs/components/schemas/ASchemaGivenForPrefixitems.md docs/components/schemas/AdditionalItemsAreAllowedByDefault.md docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md @@ -143,9 +143,9 @@ docs/components/schemas/UriReferenceFormat.md docs/components/schemas/UriTemplateFormat.md docs/components/schemas/UuidFormat.md docs/components/schemas/ValidateAgainstCorrectBranchThenVsElse.md -docs/servers/Server0.md +docs/servers/RootServer0.md pom.xml -src/main/java/org/openapijsonschematools/client/ServerInfo.java +src/main/java/org/openapijsonschematools/client/RootServerInfo.java src/main/java/org/openapijsonschematools/client/apiclient/ApiClient.java src/main/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitems.java src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefault.java @@ -425,8 +425,8 @@ src/main/java/org/openapijsonschematools/client/schemas/validation/UniqueItemsVa src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationData.java src/main/java/org/openapijsonschematools/client/schemas/validation/ValidationMetadata.java +src/main/java/org/openapijsonschematools/client/servers/RootServer0.java src/main/java/org/openapijsonschematools/client/servers/Server.java -src/main/java/org/openapijsonschematools/client/servers/Server0.java src/main/java/org/openapijsonschematools/client/servers/ServerProvider.java src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java diff --git a/samples/client/3_1_0_unit_test/java/README.md b/samples/client/3_1_0_unit_test/java/README.md index 7bf207bb737..d72c17316bd 100644 --- a/samples/client/3_1_0_unit_test/java/README.md +++ b/samples/client/3_1_0_unit_test/java/README.md @@ -149,7 +149,7 @@ allowed input and output types. ## Servers | server_index | Class | Description | | ------------ | ----- | ----------- | -| 0 | [Server0](docs/servers/Server0.md) | | +| 0 | [RootServer0](docs/servers/RootServer0.md) | | ## Endpoints All URIs are relative to the selected server diff --git a/samples/client/3_1_0_unit_test/java/docs/RootServerInfo.md b/samples/client/3_1_0_unit_test/java/docs/RootServerInfo.md index cc1e29df040..46c3ca818e6 100644 --- a/samples/client/3_1_0_unit_test/java/docs/RootServerInfo.md +++ b/samples/client/3_1_0_unit_test/java/docs/RootServerInfo.md @@ -23,12 +23,12 @@ A class that stores servers and allows one to be returned with a ServerIndex ins ### Constructor Summary | Constructor and Description | | --------------------------- | -| RootServerInfo1(@Nullable [Server0](servers/Server0.md) server0)
Creates an instance using passed in servers | +| RootServerInfo1(@Nullable [RootServer0](servers/RootServer0.md) server0)
Creates an instance using passed in servers | ### Field Summary | Modifier and Type | Field and Description | | ----------------- | --------------------- | -| [Server0](servers/Server0.md) | server0 | +| [RootServer0](servers/RootServer0.md) | server0 | ### Method Summary | Modifier and Type | Method and Description | @@ -47,7 +47,7 @@ a builder for [RootServerInfo1](#rootserverinfo1) ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [RootServerInfoBuilder](#rootserverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | +| [RootServerInfoBuilder](#rootserverinfobuilder) | rootServer0([RootServer0](servers/RootServer0.md) server0)
sets the server | | [RootServerInfo1](#rootserverinfo1) | build() | ## ServerIndex diff --git a/samples/client/3_1_0_unit_test/java/docs/servers/RootServer0.md b/samples/client/3_1_0_unit_test/java/docs/servers/RootServer0.md new file mode 100644 index 00000000000..08ddb1be947 --- /dev/null +++ b/samples/client/3_1_0_unit_test/java/docs/servers/RootServer0.md @@ -0,0 +1,17 @@ +org.openapijsonschematools.client.servers.RootServer0 +# Server RootServer0 +public class RootServer0 + +A class that stores a server url + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServer0()
Creates a server | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "https://someserver.com/v1" | + +[[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java index 2e2c3d87885..f7e35bcb79d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java @@ -1,6 +1,6 @@ package org.openapijsonschematools.client; -import org.openapijsonschematools.client.servers.Server0; +import org.openapijsonschematools.client.servers.RootServer0; import org.openapijsonschematools.client.servers.Server; import org.openapijsonschematools.client.servers.ServerProvider; import org.checkerframework.checker.nullness.qual.Nullable; @@ -9,12 +9,12 @@ public class RootServerInfo { public static class RootServerInfo1 implements ServerProvider { - private final Server0 server0; + private final RootServer0 server0; RootServerInfo1( - @Nullable Server0 server0 + @Nullable RootServer0 server0 ) { - this.server0 = Objects.requireNonNullElseGet(server0, Server0::new); + this.server0 = Objects.requireNonNullElseGet(server0, RootServer0::new); } @Override @@ -24,11 +24,11 @@ public Server getServer(ServerIndex serverIndex) { } public static class RootServerInfoBuilder { - private @Nullable Server0 server0; + private @Nullable RootServer0 server0; public RootServerInfoBuilder() {} - public RootServerInfoBuilder server0(Server0 server0) { + public RootServerInfoBuilder rootServer0(RootServer0 server0) { this.server0 = server0; return this; } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java index 9791245f120..f623a36498b 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java @@ -1,7 +1,7 @@ package org.openapijsonschematools.client.configurations; import org.openapijsonschematools.client.servers.Server; -import org.openapijsonschematools.client.ServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.checkerframework.checker.nullness.qual.Nullable; import java.time.Duration; @@ -31,68 +31,68 @@ public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, } public static class ServerInfo { - final ServerInfo.ServerInfo1 serverInfo; + final RootServerInfo.RootServerInfo1 rootServerInfo; ServerInfo( - ServerInfo. @Nullable ServerInfo1 serverInfo + RootServerInfo. @Nullable RootServerInfo1 rootServerInfo ) { - this.serverInfo = Objects.requireNonNullElse(serverInfo, new ServerInfo.ServerInfoBuilder().build()); + this.rootServerInfo = Objects.requireNonNullElse(rootServerInfo, new RootServerInfo.RootServerInfoBuilder().build()); } } public static class ServerInfoBuilder { - private ServerInfo. @Nullable ServerInfo1 serverInfo; + private RootServerInfo. @Nullable RootServerInfo1 rootServerInfo; public ServerInfoBuilder() {} - public ServerInfoBuilder serverInfo(ServerInfo.ServerInfo1 serverInfo) { - this.serverInfo = serverInfo; + public ServerInfoBuilder rootServerInfo(RootServerInfo.RootServerInfo1 rootServerInfo) { + this.rootServerInfo = rootServerInfo; return this; } public ServerInfo build() { return new ServerInfo( - serverInfo + rootServerInfo ); } } public static class ServerIndexInfo { - final ServerInfo.ServerIndex serverInfoServerIndex; + final RootServerInfo.ServerIndex rootServerInfoServerIndex; ServerIndexInfo( - ServerInfo. @Nullable ServerIndex serverInfoServerIndex + RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex ) { - this.serverInfoServerIndex = Objects.requireNonNullElse(serverInfoServerIndex, ServerInfo.ServerIndex.SERVER_0); + this.rootServerInfoServerIndex = Objects.requireNonNullElse(rootServerInfoServerIndex, RootServerInfo.ServerIndex.SERVER_0); } } public static class ServerIndexInfoBuilder { - private ServerInfo. @Nullable ServerIndex serverInfoServerIndex; + private RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; public ServerIndexInfoBuilder() {} - public ServerIndexInfoBuilder serverInfoServerIndex(ServerInfo.ServerIndex serverIndex) { - this.serverInfoServerIndex = serverIndex; + public ServerIndexInfoBuilder rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { + this.rootServerInfoServerIndex = serverIndex; return this; } public ServerIndexInfo build() { return new ServerIndexInfo( - serverInfoServerIndex + rootServerInfoServerIndex ); } } - public Server getServer(ServerInfo. @Nullable ServerIndex serverIndex) { - var serverProvider = serverInfo.serverInfo; + public Server getServer(RootServerInfo. @Nullable ServerIndex serverIndex) { + var serverProvider = serverInfo.rootServerInfo; if (serverIndex == null) { - ServerInfo.ServerIndex configServerIndex = serverIndexInfo.serverInfoServerIndex; + RootServerInfo.ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); } public Map> getDefaultHeaders() { - return new HashMap<>(); + return defaultHeaders; } public @Nullable Duration getTimeout() { diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java new file mode 100644 index 00000000000..6bb94f3f1a8 --- /dev/null +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/RootServer0.java @@ -0,0 +1,9 @@ +package org.openapijsonschematools.client.servers; + +import org.openapijsonschematools.client.servers.ServerWithoutVariables; + +public class RootServer0 extends ServerWithoutVariables { + public RootServer0() { + super("https://someserver.com/v1"); + } +} diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_a_schema_given_for_prefixitems_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_a_schema_given_for_prefixitems_request_body.py index 92ae50c90ab..e6311f49ef3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_a_schema_given_for_prefixitems_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_a_schema_given_for_prefixitems_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additional_items_are_allowed_by_default_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additional_items_are_allowed_by_default_request_body.py index 1f4bc7ce11c..d707e21d5a1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additional_items_are_allowed_by_default_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additional_items_are_allowed_by_default_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py index 6e983e991f9..b2fae91795c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py index 92d4d5179ee..a65b964662d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body.py index b5d86d0f2de..d56f6d30b3a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_does_not_look_in_applicators_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.py index e3358dfb0e9..cdcdb5ac008 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_with_null_valued_instance_properties_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_with_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_with_schema_request_body.py index 65b5ebfcb98..d90f7b764eb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_with_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_additionalproperties_with_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_combined_with_anyof_oneof_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_combined_with_anyof_oneof_request_body.py index 5cf28ee67a1..b649b64a7e4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_combined_with_anyof_oneof_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_combined_with_anyof_oneof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_request_body.py index 40fc32ebe01..6c5660112ad 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_simple_types_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_simple_types_request_body.py index 323cb9679fe..dcac8fa6b2f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_simple_types_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_simple_types_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_base_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_base_schema_request_body.py index ecd5157a289..8c4064b6fb0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_base_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_base_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_one_empty_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_one_empty_schema_request_body.py index ad10d5a8f8d..f9be436cf71 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_one_empty_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_one_empty_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_first_empty_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_first_empty_schema_request_body.py index 1b75bad476d..3db828423fb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_first_empty_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_first_empty_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_last_empty_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_last_empty_schema_request_body.py index bb0f6b9e7b1..451a93ae87a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_last_empty_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_the_last_empty_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_two_empty_schemas_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_two_empty_schemas_request_body.py index 932f3248e9d..bfddae87807 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_two_empty_schemas_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_allof_with_two_empty_schemas_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_complex_types_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_complex_types_request_body.py index 3f0361eec96..9a545b594d8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_complex_types_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_complex_types_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_request_body.py index a57df8ca64b..a61b5b6b785 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_base_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_base_schema_request_body.py index a9f4b98d7fb..104e2b01f07 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_base_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_base_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_one_empty_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_one_empty_schema_request_body.py index 27506cbcf91..016c9685a0d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_one_empty_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_anyof_with_one_empty_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_array_type_matches_arrays_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_array_type_matches_arrays_request_body.py index 389e22ba247..8dbcb5197f5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_array_type_matches_arrays_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_array_type_matches_arrays_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_boolean_type_matches_booleans_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_boolean_type_matches_booleans_request_body.py index aa0ed30c80a..9f026679214 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_boolean_type_matches_booleans_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_boolean_type_matches_booleans_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py index f3e6af260a6..7c192522d37 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_int_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py index 04568064c09..9d33cef1152 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_number_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py index 5b701ac16d6..afcf67df72c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_by_small_number_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py index 710dec9f41a..737726a9133 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_const_nul_characters_in_strings_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_request_body.py index 674a59de151..c45d20b6ca2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_keyword_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py index d693e802fe4..4984e9bcd24 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_contains_with_null_instance_elements_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_format_request_body.py index 793c83353e9..8152025bbbe 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py index f79d7b8a1eb..7f557d6f9f4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_date_time_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.py index 95784705a29..ca38c72ddb5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependencies_with_escaped_characters_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.py index 8e43653433d..2e59aadd533 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_single_dependency_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_single_dependency_request_body.py index b7ee1c475ca..85173af2cf3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_single_dependency_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_dependent_schemas_single_dependency_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_duration_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_duration_format_request_body.py index a364a2214e6..06a8ac8931c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_duration_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_duration_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py index 12040ebc5eb..7f27f1aad53 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_email_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py index bad2248caae..cac6b227147 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_empty_dependents_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with0_does_not_match_false_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with0_does_not_match_false_request_body.py index 384864618ed..57e580cd1eb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with0_does_not_match_false_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with0_does_not_match_false_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with1_does_not_match_true_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with1_does_not_match_true_request_body.py index 05cf72a1191..7433828f26b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with1_does_not_match_true_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with1_does_not_match_true_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_escaped_characters_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_escaped_characters_request_body.py index 3e94ce392eb..42210fd50da 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_escaped_characters_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_escaped_characters_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_false_does_not_match0_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_false_does_not_match0_request_body.py index 82bf414c1f5..8b4ed3f95b9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_false_does_not_match0_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_false_does_not_match0_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_true_does_not_match1_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_true_does_not_match1_request_body.py index 4b9821c7e71..6ec2ac662d4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_true_does_not_match1_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enum_with_true_does_not_match1_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enums_in_properties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enums_in_properties_request_body.py index 2efddf5ccf1..83df5d0c313 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enums_in_properties_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_enums_in_properties_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_exclusivemaximum_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_exclusivemaximum_validation_request_body.py index 4ef46e827ab..c13b4a00fa7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_exclusivemaximum_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_exclusivemaximum_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_exclusiveminimum_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_exclusiveminimum_validation_request_body.py index 50a6608e5a9..37939810f03 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_exclusiveminimum_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_exclusiveminimum_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_float_division_inf_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_float_division_inf_request_body.py index 966ee96013e..e7e7784afac 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_float_division_inf_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_float_division_inf_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_forbidden_property_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_forbidden_property_request_body.py index 40dbe759a22..c7b22bab7db 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_forbidden_property_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_forbidden_property_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_hostname_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_hostname_format_request_body.py index d3cd1714731..94dbd1f775f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_hostname_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_hostname_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_idn_email_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_idn_email_format_request_body.py index 2acdd1f9256..a2f68238302 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_idn_email_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_idn_email_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_idn_hostname_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_idn_hostname_format_request_body.py index 13cb1625325..7b81069439c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_idn_hostname_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_idn_hostname_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_and_else_without_then_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_and_else_without_then_request_body.py index 98b33db9b23..77da758da5a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_and_else_without_then_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_and_else_without_then_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_and_then_without_else_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_and_then_without_else_request_body.py index d7ba7d3fd49..61330d462e6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_and_then_without_else_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_and_then_without_else_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body.py index 7c3b917f774..9b0355088f0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_else_without_if_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_else_without_if_request_body.py index d5567048dc4..e720625c5f6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_else_without_if_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_else_without_if_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_if_without_then_or_else_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_if_without_then_or_else_request_body.py index 57a7b16cdb3..b03bae304c0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_if_without_then_or_else_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_if_without_then_or_else_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_then_without_if_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_then_without_if_request_body.py index 7af73c621ba..69725f15628 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_then_without_if_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ignore_then_without_if_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_integer_type_matches_integers_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_integer_type_matches_integers_request_body.py index 3e17751c6b9..a613c900077 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_integer_type_matches_integers_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_integer_type_matches_integers_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv4_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv4_format_request_body.py index 4491812a33b..2deb52f363b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv4_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv4_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv6_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv6_format_request_body.py index dbb286bade2..d1e7f11bfda 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv6_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_ipv6_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_iri_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_iri_format_request_body.py index 69c0aa623e5..dc890cf228b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_iri_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_iri_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_iri_reference_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_iri_reference_format_request_body.py index 137c6831a7a..6e310d71ca9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_iri_reference_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_iri_reference_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_contains_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_contains_request_body.py index d6646a0fcba..526ac406160 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_contains_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_contains_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body.py index 179a2b4cd5a..c4d83d60b2c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_does_not_look_in_applicators_valid_case_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_with_null_instance_elements_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_with_null_instance_elements_request_body.py index 1e3600fae5e..9997b61fb36 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_with_null_instance_elements_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_items_with_null_instance_elements_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_json_pointer_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_json_pointer_format_request_body.py index 0ea474c691d..3a651370fa0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_json_pointer_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_json_pointer_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body.py index 6d8a164f42a..12e56d95a6a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxcontains_without_contains_is_ignored_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_request_body.py index 952ee7bc288..0673a08f590 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body.py index bae14266251..41001827c88 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxitems_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxitems_validation_request_body.py index 7eaca4d516b..db9f65efd74 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxitems_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxitems_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxlength_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxlength_validation_request_body.py index 58f21adbf10..da6965304da 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxlength_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxlength_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body.py index 26dab002482..f4ddb51b849 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties_validation_request_body.py index 2c444daae86..4f7f79bcf45 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_maxproperties_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_mincontains_without_contains_is_ignored_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_mincontains_without_contains_is_ignored_request_body.py index 38f5d1ba39c..5e727d6476d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_mincontains_without_contains_is_ignored_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_mincontains_without_contains_is_ignored_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_request_body.py index 146cbc8d881..6169b1847c8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_with_signed_integer_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_with_signed_integer_request_body.py index 182dcb114e0..6b976472369 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_with_signed_integer_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minimum_validation_with_signed_integer_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body.py index ccef21b932b..15b67243452 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minitems_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minlength_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minlength_validation_request_body.py index 68ba230bbff..d6814180691 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minlength_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minlength_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minproperties_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minproperties_validation_request_body.py index c2f43675161..d034b4b6682 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minproperties_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_minproperties_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_dependents_required_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_dependents_required_request_body.py index 821e11d532e..eff1a2672c3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_dependents_required_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_dependents_required_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.py index 905fe7b5d0b..9161d6acc7b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_simultaneous_patternproperties_are_validated_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body.py index 13a8cb54f80..ac98d2516e4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_multiple_types_can_be_specified_in_an_array_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body.py index 1c526f1faf5..b3e0c7b05b9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body.py index 345ae35da90..77533f4b17e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_items_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_items_request_body.py index d8695372ec5..0a6f034c5f0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_items_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_items_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body.py index b1a87d445ae..ec26c58885c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body.py index 55ebb28d8cd..14209b39da1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_ascii_pattern_with_additionalproperties_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_interference_across_combined_schemas_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_interference_across_combined_schemas_request_body.py index c8c7fd24d52..3663fd43f38 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_interference_across_combined_schemas_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_non_interference_across_combined_schemas_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_more_complex_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_more_complex_schema_request_body.py index be8fd645188..60abe865575 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_more_complex_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_more_complex_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_multiple_types_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_multiple_types_request_body.py index 0b700fad3b1..0670c544d95 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_multiple_types_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_multiple_types_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_request_body.py index d6c787e3fa9..a24248be9eb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_not_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nul_characters_in_strings_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nul_characters_in_strings_request_body.py index 3d510f6bb93..7f9340c2dc5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nul_characters_in_strings_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_nul_characters_in_strings_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_null_type_matches_only_the_null_object_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_null_type_matches_only_the_null_object_request_body.py index f946999b01e..7b5b3964ff0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_null_type_matches_only_the_null_object_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_null_type_matches_only_the_null_object_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_number_type_matches_numbers_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_number_type_matches_numbers_request_body.py index b2501d555a2..ff2be4123ca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_number_type_matches_numbers_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_number_type_matches_numbers_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_properties_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_properties_validation_request_body.py index d9a24073f38..174e2c3e8e3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_properties_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_properties_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_type_matches_objects_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_type_matches_objects_request_body.py index 7998082ea94..6532cb19a71 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_type_matches_objects_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_object_type_matches_objects_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_complex_types_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_complex_types_request_body.py index 7c90bd43aca..3c1dd43a31f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_complex_types_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_complex_types_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_request_body.py index 50ce0c047fb..a7b790e4603 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_base_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_base_schema_request_body.py index 16e60735897..1f58e817b4d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_base_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_base_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_empty_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_empty_schema_request_body.py index dd42fbd4fce..a2f875a2840 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_empty_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_empty_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_required_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_required_request_body.py index d3eefbfba5c..2bc844e98bc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_required_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_oneof_with_required_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_is_not_anchored_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_is_not_anchored_request_body.py index b3220b3f5d0..5848ef08b55 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_is_not_anchored_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_is_not_anchored_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_validation_request_body.py index a5e00f22cf0..83fe1de73f8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_pattern_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.py index 0d9f3bbf8b8..e1d0e9c4656 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_validates_properties_matching_a_regex_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body.py index ce47e1801a8..a27c4e9b3c4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_patternproperties_with_null_valued_instance_properties_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.py index e108146665c..199c65bcecb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_with_null_instance_elements_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_with_null_instance_elements_request_body.py index 30d326ff2e5..be14c2597a2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_with_null_instance_elements_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_prefixitems_with_null_instance_elements_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.py index 470e7fada5f..b8614f56dc8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_patternproperties_additionalproperties_interaction_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.py index 0db26a771e0..11097955924 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_whose_names_are_javascript_object_property_names_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py index 8d61a4129bd..01be66da78a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_escaped_characters_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_null_valued_instance_properties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_null_valued_instance_properties_request_body.py index 7e908eb8149..93d6d1d65d0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_null_valued_instance_properties_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_properties_with_null_valued_instance_properties_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body.py index 6085a305a38..b556d79ca56 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_propertynames_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_propertynames_validation_request_body.py index b90aa1f3a59..100d1e81e87 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_propertynames_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_propertynames_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regex_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regex_format_request_body.py index 411c4381037..17cfc1cadc0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regex_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regex_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.py index a37f67f180b..0f239a18b40 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_relative_json_pointer_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_relative_json_pointer_format_request_body.py index 39149b169d9..33ae2716f80 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_relative_json_pointer_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_relative_json_pointer_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_default_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_default_validation_request_body.py index 9e5294924f3..5372df6bce4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_default_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_default_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.py index 8981e8c1640..ab5cb0b3153 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_properties_whose_names_are_javascript_object_property_names_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_validation_request_body.py index 0f2e07f43e3..dfb74b456e4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_empty_array_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_empty_array_request_body.py index 8d85dd51ac8..af03aec765c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_empty_array_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_empty_array_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_escaped_characters_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_escaped_characters_request_body.py index f73200fb6cc..b2e1269340a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_escaped_characters_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_required_with_escaped_characters_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_simple_enum_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_simple_enum_validation_request_body.py index 00186db1407..e81b10d38da 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_simple_enum_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_simple_enum_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_single_dependency_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_single_dependency_request_body.py index 15e7252a276..4fdc90a0dca 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_single_dependency_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_single_dependency_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_small_multiple_of_large_integer_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_small_multiple_of_large_integer_request_body.py index 7b31738838e..87e03dd71da 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_small_multiple_of_large_integer_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_small_multiple_of_large_integer_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_string_type_matches_strings_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_string_type_matches_strings_request_body.py index 9255a63bb10..3806e431c34 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_string_type_matches_strings_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_string_type_matches_strings_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_time_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_time_format_request_body.py index 48455dd4aa4..07f32676e39 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_time_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_time_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_array_object_or_null_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_array_object_or_null_request_body.py index 942bbaeaca9..59d9a491db7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_array_object_or_null_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_array_object_or_null_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_array_or_object_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_array_or_object_request_body.py index 12f10b37ae9..ad5727d0a6d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_array_or_object_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_array_or_object_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_as_array_with_one_item_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_as_array_with_one_item_request_body.py index 09cc9395e57..99f788c21cf 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_as_array_with_one_item_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_type_as_array_with_one_item_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_as_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_as_schema_request_body.py index 2d75f572c34..4865354fca1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_as_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_as_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.py index ce05ae8e043..e7f1a81b90b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_depends_on_multiple_nested_contains_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_items_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_items_request_body.py index 92bd98cb7ba..3e9788fe53d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_items_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_items_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body.py index 2aabc18d3ed..8c9c010d923 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluateditems_with_null_instance_elements_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.py index f5ba965a421..7c90d6e2b75 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_not_affected_by_propertynames_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_schema_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_schema_request_body.py index b6c0611d749..14cb85bc4a8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_schema_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_schema_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.py index f3fbd14de1e..f6ebd9f027e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_adjacent_additionalproperties_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.py index b0a4801c714..913c47035c4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_unevaluatedproperties_with_null_valued_instance_properties_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_validation_request_body.py index 7dae6a8d5d5..d5fd73c8075 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body.py index f5166d41518..27da1b5453c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_false_with_an_array_of_items_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_validation_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_validation_request_body.py index 3a1863d61df..54319f77504 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_validation_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_validation_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body.py index 2ce91ad9f79..87aad3a2770 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uniqueitems_with_an_array_of_items_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_format_request_body.py index f3e24efbf1b..f74f0407f82 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body.py index e714ac9d74f..9ce76bbd73a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_reference_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py index 214d90b4f2f..c4dd650e051 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uri_template_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uuid_format_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uuid_format_request_body.py index 7f6890763ee..0764116c255 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uuid_format_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_uuid_format_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body.py index 35096fb8303..41b643316fd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/request_body_post_validate_against_correct_branch_then_vs_else_request_body.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.py index cc867418649..3dcc934b1fa 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.py index ea017485aaf..0a3a049a76e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py index 7e117dde13c..21fa74014a4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py index 09f7fe79b00..ed63d387086 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types.py index 93deebee8e4..80c48d293bc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.py index 525bb094913..9cf02488e09 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types.py index 8475f7d5ab2..23559d5dd2e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.py index c9d56a0877b..e57263bade6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_response_body_for_content_types.py index 4f792beb583..ec221bfabf1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_simple_types_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_simple_types_response_body_for_content_types.py index 35c6ad64b2e..154aa5a0ca3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_simple_types_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_simple_types_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_base_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_base_schema_response_body_for_content_types.py index 8ca32ce36c3..0246a54e5fb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_base_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_base_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types.py index eb124ef2198..888286554bc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.py index f4b72057d11..3c63d864730 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.py index 7988e2fdcdb..9861acc904a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.py index a29e4909659..a61876ba9d7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_complex_types_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_complex_types_response_body_for_content_types.py index 1c05d670dbd..7c40886b42d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_complex_types_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_complex_types_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_response_body_for_content_types.py index b429525960f..e736fbe0ac3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types.py index ffcbc45b479..a8e89c193d7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types.py index edaef8a94b1..bdb19177c9c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types.py index e0a83617a45..bd957015631 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types.py index 5fe5b1df62b..082510a95ae 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content_types.py index 060198860e1..c0caf867a06 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_int_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py index 18c945cb425..b9fc8444651 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_number_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py index a0b9f080a84..cc6fd85c3f1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_by_small_number_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py index 134e66a2f81..0986bd6befd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_response_body_for_content_types.py index 26b6e01edd7..066232e8a08 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_keyword_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py index fce1349f308..68b8edff2fd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_format_response_body_for_content_types.py index 4c3b775e0c1..30ea1554dec 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py index 4122637b647..7465845b2bc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_date_time_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.py index d3f87bc4387..9f5e8c0552d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.py index c1000d3b5ad..57a2beb492e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.py index 886c4c76fb4..37c8be52bb7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_duration_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_duration_format_response_body_for_content_types.py index 995d74f3a74..08a025d1d67 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_duration_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_duration_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py index 84886c98388..c4094dd7188 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_email_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py index fa5bf36ed50..318739d2355 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_empty_dependents_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.py index be4f5501d2f..30cdb9f7ddb 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.py index f0c14cef429..654d02cdf4d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types.py index 3e57a890ede..d55794c5df4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.py index 1d0548ee9ec..523eeb6d315 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types.py index 92de0e26bbd..a4f1748ed2a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enums_in_properties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enums_in_properties_response_body_for_content_types.py index 1f4d4df40ab..b875d980d9f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enums_in_properties_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_enums_in_properties_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types.py index f2c83c75f01..489cef8e476 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types.py index db019a26ce4..66a7f7a1da9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_float_division_inf_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_float_division_inf_response_body_for_content_types.py index 846ab1e9aa9..f2daec5bac4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_float_division_inf_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_float_division_inf_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_forbidden_property_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_forbidden_property_response_body_for_content_types.py index 8fb95338282..b9a5204d80b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_forbidden_property_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_forbidden_property_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_hostname_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_hostname_format_response_body_for_content_types.py index 453ce2201de..e80c828f90e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_hostname_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_hostname_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_idn_email_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_idn_email_format_response_body_for_content_types.py index f34e563eae6..1d7d3772705 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_idn_email_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_idn_email_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_idn_hostname_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_idn_hostname_format_response_body_for_content_types.py index 78afae459c5..2e0eef69c01 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_idn_hostname_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_idn_hostname_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_and_else_without_then_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_and_else_without_then_response_body_for_content_types.py index d9868f15c8e..fe788ddc901 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_and_else_without_then_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_and_else_without_then_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_and_then_without_else_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_and_then_without_else_response_body_for_content_types.py index 6a0a2687712..4badcf81f42 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_and_then_without_else_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_and_then_without_else_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types.py index a9243a188e1..a7c9502a204 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_else_without_if_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_else_without_if_response_body_for_content_types.py index cd84d3b2a63..5ea706eb7d0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_else_without_if_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_else_without_if_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types.py index ce31ca72f00..ee338f0fd79 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_then_without_if_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_then_without_if_response_body_for_content_types.py index a0457b6927e..824a4b0511a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_then_without_if_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ignore_then_without_if_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types.py index cd1cd6b8c4d..08a2ef05dd2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv4_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv4_format_response_body_for_content_types.py index 9f3845ba2b7..9c5c22b7bf8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv4_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv4_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv6_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv6_format_response_body_for_content_types.py index 7120c239553..03e40df8480 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv6_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_ipv6_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_iri_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_iri_format_response_body_for_content_types.py index cc8779b422d..dbeb23c9c54 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_iri_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_iri_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_iri_reference_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_iri_reference_format_response_body_for_content_types.py index e39ed70c05d..174bcf29408 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_iri_reference_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_iri_reference_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_contains_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_contains_response_body_for_content_types.py index 471924adf21..7df5a469078 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_contains_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_contains_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.py index e7be14e2ad0..2b005e0796b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types.py index 25248a97a7a..790ca68d221 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_json_pointer_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_json_pointer_format_response_body_for_content_types.py index ef63e6fc019..80e2f7be8a7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_json_pointer_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_json_pointer_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.py index e1c00c44a14..b58ba13407f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_response_body_for_content_types.py index 76c6bb7fd8c..a03cffb9f12 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.py index a4b9016d0f7..b43a0ab8edd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxitems_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxitems_validation_response_body_for_content_types.py index ab0fe2be9fe..7d279b92ed3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxitems_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxitems_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxlength_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxlength_validation_response_body_for_content_types.py index 095d7d28868..a559dfadfde 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxlength_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxlength_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.py index ab5d7078337..4aa8f502be6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties_validation_response_body_for_content_types.py index 72a03e0e92f..3466ce458c1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_maxproperties_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.py index cf416dc54f4..93299d67ddd 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_response_body_for_content_types.py index 0d31e576c48..b1731ec47a5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.py index a96168691ef..eaccfe8e80c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_body_for_content_types.py index c8f6f235dd0..df71137203a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minitems_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minlength_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minlength_validation_response_body_for_content_types.py index ff62dd9a681..111143938af 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minlength_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minlength_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minproperties_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minproperties_validation_response_body_for_content_types.py index 70935cc379c..c7e35c79fd1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minproperties_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_minproperties_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_dependents_required_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_dependents_required_response_body_for_content_types.py index 4c542db1d12..0bd89a77db9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_dependents_required_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_dependents_required_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.py index 508948bc493..b2ff65babde 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.py index 255559330ea..0b9233ee38a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.py index c2cc9c5f101..abb638e380f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.py index cbdc3fc0ac4..9264110a6e5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_items_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_items_response_body_for_content_types.py index 92f91512c78..97987a9eab6 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_items_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_items_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.py index c5fc2c83d66..5a17358efbc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.py index c4810e4928f..4949fe0f6d1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types.py index 9b5d7d8f14f..b66086342e8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_more_complex_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_more_complex_schema_response_body_for_content_types.py index 935ee85c634..dcab65abc58 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_more_complex_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_more_complex_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_multiple_types_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_multiple_types_response_body_for_content_types.py index 4dcffd9ce5c..835b9d5483b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_multiple_types_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_multiple_types_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_response_body_for_content_types.py index cdf3c84d0b2..51ebf164099 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_not_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types.py index 33b3ab4b2ba..517f7955b94 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.py index d7dc8de83b2..900a2ddb9f5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types.py index 6fbcd853cc1..8a10f9c0be1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_properties_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_properties_validation_response_body_for_content_types.py index b93ea3c46a4..bd3930252f7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_properties_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_properties_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_type_matches_objects_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_type_matches_objects_response_body_for_content_types.py index fa214f8ac42..606087ba43d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_type_matches_objects_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_object_type_matches_objects_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_complex_types_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_complex_types_response_body_for_content_types.py index e201c2f985e..7bc50fd88e4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_complex_types_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_complex_types_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_response_body_for_content_types.py index 2c24683285d..72b0bb4a548 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types.py index a469b0bb56c..b7d0e28f6d7 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types.py index 791bbb1dcba..d9441e52a09 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_required_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_required_response_body_for_content_types.py index 3f8649a6a88..02e0bbd6b3b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_required_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_oneof_with_required_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types.py index 925bd30817e..5e9afc22f39 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_validation_response_body_for_content_types.py index 91b66405f8e..ce3aa0cd88f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_pattern_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.py index 6e6e37cc824..e061309b544 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.py index be774fd9706..e45517b831b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.py index 5e19574ba79..b9ac841c090 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.py index 66c610f1c01..91dffb4463f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.py index 1a2711d79ad..add201aaaf3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py index ba0b1c62764..bf95386dbe2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py index bf99a45c46c..a7e3fae2fac 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.py index 3c31289377f..f55e5082c9c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.py index 3e3ccee30c1..13705c9163b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_propertynames_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_propertynames_validation_response_body_for_content_types.py index 4da6c417550..8127176d1c9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_propertynames_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_propertynames_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regex_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regex_format_response_body_for_content_types.py index d6d551b75dd..19bbce4b5b1 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regex_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regex_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.py index 7d6a2e30f40..48e776ae00d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types.py index a833ee4dd98..7ffaa4a5ccc 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_default_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_default_validation_response_body_for_content_types.py index 92871622d82..f7324bbcb55 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_default_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_default_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py index 170b843d375..6a8aad35be2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_validation_response_body_for_content_types.py index c39e5e44581..c238dd4b43d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_empty_array_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_empty_array_response_body_for_content_types.py index 09da017d6d4..7b8d90b608a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_empty_array_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_empty_array_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types.py index 827236250b2..ecafb08a06a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_simple_enum_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_simple_enum_validation_response_body_for_content_types.py index 473021e9a91..a82b0f98f51 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_simple_enum_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_simple_enum_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_single_dependency_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_single_dependency_response_body_for_content_types.py index 65579f17289..40f6051c959 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_single_dependency_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_single_dependency_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types.py index 990e758bed5..17e46ee95b4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_string_type_matches_strings_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_string_type_matches_strings_response_body_for_content_types.py index babbd0afc16..89a32dba4c4 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_string_type_matches_strings_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_string_type_matches_strings_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_time_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_time_format_response_body_for_content_types.py index 4dccd9ab510..14cb514c68d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_time_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_time_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_array_object_or_null_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_array_object_or_null_response_body_for_content_types.py index 095e07f7a91..f2c33559452 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_array_object_or_null_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_array_object_or_null_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_array_or_object_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_array_or_object_response_body_for_content_types.py index ba94411c8d7..180f76498f8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_array_or_object_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_array_or_object_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types.py index 4a803cc81ca..e0d5223c19c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types.py index 662a8e798c4..a5403e60b7c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.py index cb4c940ee5a..7fa57287134 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types.py index 7db762ae5c0..33648636b59 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.py index 23c3730fe3d..85f6273c68a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.py index a1e2af6a36f..f48148b3493 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types.py index 94d30f8ea86..4b23a651946 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.py index 0b3aa8912f9..ffafcbd83ef 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.py index 8e86f76a57f..476cd3c24f8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types.py index 20c9c817cfe..b97c3119177 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.py index b682bbf359e..66cf4a0e62b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_validation_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_validation_response_body_for_content_types.py index 4c523684246..90c799d0c69 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_validation_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_validation_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.py index 6c9915bbf80..2f6e982b107 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_format_response_body_for_content_types.py index 2ce3f2afdca..4986f83224d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_reference_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_reference_format_response_body_for_content_types.py index e260d37cc01..f739491cc39 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_reference_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_reference_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_template_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_template_format_response_body_for_content_types.py index b671bda63aa..1bc54f5a7d9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_template_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uri_template_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uuid_format_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uuid_format_response_body_for_content_types.py index 430dda1df61..1cc18fa8fe8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uuid_format_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_uuid_format_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types.py index 6ceb4d6aea3..76b2af7bf38 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/_not_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/_not_api.py index 14e3b9f389d..d1490d77ed9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/_not_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/_not_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py index 3bc9947083c..be4d87b5ba0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/additional_properties_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/all_of_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/all_of_api.py index d2df11f78ec..2730b2f8a3d 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/all_of_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/all_of_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/any_of_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/any_of_api.py index b46b025efa5..1e8aaf0bbf8 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/any_of_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/any_of_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py index c47a8884b5d..010ab903e9a 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/const_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/contains_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/contains_api.py index 28c16b87afe..695f0ba4761 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/contains_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/contains_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py index aebdc73b70e..fa4602a5263 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/content_type_json_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py index 9c67d95da27..5bc4e410824 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_required_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_schemas_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_schemas_api.py index 050a2352f73..a9601287122 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_schemas_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/dependent_schemas_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/enum_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/enum_api.py index e58563a2bf2..f70950f072f 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/enum_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/enum_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/exclusive_maximum_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/exclusive_maximum_api.py index df36b3f6eac..9084630e677 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/exclusive_maximum_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/exclusive_maximum_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/exclusive_minimum_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/exclusive_minimum_api.py index d63c20fa3f7..dc3f416562b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/exclusive_minimum_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/exclusive_minimum_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/format_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/format_api.py index 3fa73f3e8b8..cd755771d37 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/format_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/format_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/if_then_else_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/if_then_else_api.py index 6a50bf536a7..37ec9e81076 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/if_then_else_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/if_then_else_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/items_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/items_api.py index c41d86a6e50..04adb6809b2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/items_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/items_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_contains_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_contains_api.py index b84ff881d58..cf3a3e042ce 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_contains_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_contains_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_items_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_items_api.py index 32f551696ad..952d475e868 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_items_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_items_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_length_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_length_api.py index 914dc4dcb3c..73f516fe053 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_length_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_length_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_properties_api.py index 1f00ff86a74..4de527df7e9 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_properties_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/max_properties_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/maximum_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/maximum_api.py index 4a7ab5de31b..4fcf3dccc58 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/maximum_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/maximum_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_contains_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_contains_api.py index c058ca548a1..9693d1b2ec2 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_contains_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_contains_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_items_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_items_api.py index 0dc3a137de7..2a0146c5f9b 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_items_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_items_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_length_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_length_api.py index b1bdf36e6b0..eb7c4fd7d71 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_length_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_length_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_properties_api.py index c34b9bdc3d6..c05b408b907 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_properties_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/min_properties_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/minimum_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/minimum_api.py index b8c46c2b839..e53928c3d58 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/minimum_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/minimum_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/multiple_of_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/multiple_of_api.py index e4e2e7ece10..01fe23ffa34 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/multiple_of_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/multiple_of_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/one_of_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/one_of_api.py index f2bcd9c1473..1d403fe30f3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/one_of_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/one_of_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py index e2d159d94d8..a7f7fc291f0 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/operation_request_body_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py index 39ce2b531f4..b02a4294932 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/path_post_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_api.py index e7c6e489ef7..527b426fb9c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_properties_api.py index 3fc9feb1a6e..e82ea5205aa 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_properties_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/pattern_properties_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/prefix_items_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/prefix_items_api.py index f98c708ce08..430bee3c2f5 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/prefix_items_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/prefix_items_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/properties_api.py index 6dd52645530..2426d097c06 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/properties_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/properties_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/property_names_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/property_names_api.py index 224a07b73f9..ca7ae847be3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/property_names_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/property_names_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/ref_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/ref_api.py index 6991d54820d..ecc2dc41923 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/ref_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/ref_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/required_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/required_api.py index 7f99ceda16a..36c8cf7b01e 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/required_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/required_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py index 97019d694ab..320d51ec638 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/response_content_content_type_schema_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/type_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/type_api.py index fcb482f2333..80652131791 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/type_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/type_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_items_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_items_api.py index 8350901848a..cdec23820a3 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_items_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_items_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_properties_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_properties_api.py index 1cdc210b81b..9660c9cb96c 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_properties_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unevaluated_properties_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unique_items_api.py b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unique_items_api.py index dd19c4de1e8..979cdf0f6db 100644 --- a/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unique_items_api.py +++ b/samples/client/3_1_0_unit_test/python/src/unit_test_api/apis/tags/unique_items_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + openapi 3.1.0 sample spec + sample spec for testing openapi functionality, built from json schema tests for draft2020-12 # noqa: E501 + The version of the OpenAPI document: 0.0.1 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/paths/operators.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/paths/operators.py index d276355278c..61a2b3b3f65 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/paths/operators.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/paths/operators.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + discriminator-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/tags/default_api.py b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/tags/default_api.py index 79c57bcc190..5511188fef2 100644 --- a/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/tags/default_api.py +++ b/samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/apis/tags/default_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + discriminator-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_no_explicit_security.py b/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_no_explicit_security.py index 962b2551a60..235b27749ae 100644 --- a/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_no_explicit_security.py +++ b/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_no_explicit_security.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_one_explicit_security.py b/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_one_explicit_security.py index 63208b5249f..12085eac934 100644 --- a/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_one_explicit_security.py +++ b/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_one_explicit_security.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_security_from_root.py b/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_security_from_root.py index 2e78674e705..230e695e2d1 100644 --- a/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_security_from_root.py +++ b/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_security_from_root.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_two_explicit_security.py b/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_two_explicit_security.py index 73857455422..8502c49d237 100644 --- a/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_two_explicit_security.py +++ b/samples/client/openapi_features/security/python/src/this_package/apis/paths/path_with_two_explicit_security.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/openapi_features/security/python/src/this_package/apis/tags/default_api.py b/samples/client/openapi_features/security/python/src/this_package/apis/tags/default_api.py index d461864d064..d54e8f221f2 100644 --- a/samples/client/openapi_features/security/python/src/this_package/apis/tags/default_api.py +++ b/samples/client/openapi_features/security/python/src/this_package/apis/tags/default_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + security-test + No description provided (generated by Openapi JSON Schema Generator https://github.com/openapi-json-schema-tools/openapi-json-schema-generator) # noqa: E501 + The version of the OpenAPI document: 1.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/another_fake_dummy.py b/samples/client/petstore/python/src/petstore_api/apis/paths/another_fake_dummy.py index af28f429b0f..b805d021c79 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/another_fake_dummy.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/another_fake_dummy.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/common_param_sub_dir.py b/samples/client/petstore/python/src/petstore_api/apis/paths/common_param_sub_dir.py index b4e8933b328..af4f20f87d0 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/common_param_sub_dir.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/common_param_sub_dir.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake.py index 01816cbb1fc..7d7d600ee25 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_additional_properties_with_array_of_enums.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_additional_properties_with_array_of_enums.py index 83c77295787..ccb427a0eed 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_additional_properties_with_array_of_enums.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_additional_properties_with_array_of_enums.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_body_with_file_schema.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_body_with_file_schema.py index 8ccb18f6150..662dd0680db 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_body_with_file_schema.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_body_with_file_schema.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_body_with_query_params.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_body_with_query_params.py index 030a188bb18..9157873b18e 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_body_with_query_params.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_body_with_query_params.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_case_sensitive_params.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_case_sensitive_params.py index d5ba0913333..f2847cab519 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_case_sensitive_params.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_case_sensitive_params.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_classname_test.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_classname_test.py index 8813fdcb48b..81e4d45909d 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_classname_test.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_classname_test.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_delete_coffee_id.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_delete_coffee_id.py index a1f972c0182..5290e06f89d 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_delete_coffee_id.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_delete_coffee_id.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_health.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_health.py index 84470f55139..6e5cb6a87b3 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_health.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_health.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_inline_additional_properties.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_inline_additional_properties.py index e5638d4a307..06dc4bada6b 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_inline_additional_properties.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_inline_additional_properties.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_inline_composition.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_inline_composition.py index 1c73258b536..b6fddd8cf92 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_inline_composition.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_inline_composition.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_form_data.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_form_data.py index 15c924ab4b6..7d57628e77a 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_form_data.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_form_data.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_patch.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_patch.py index fa55d3cceb3..1dd690552d5 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_patch.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_patch.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_with_charset.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_with_charset.py index 548156df1ff..475820c3e67 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_with_charset.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_json_with_charset.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_request_body_content_types.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_request_body_content_types.py index bda840a64f9..b120f47f536 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_request_body_content_types.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_request_body_content_types.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_response_bodies.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_response_bodies.py index bc27c31ace5..dcf11b7ab3e 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_response_bodies.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_response_bodies.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_securities.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_securities.py index 11e4e6fbff1..418943bea9a 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_securities.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_multiple_securities.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_obj_in_query.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_obj_in_query.py index 8bc778f7ea3..a6060d77c58 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_obj_in_query.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_obj_in_query.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_parameter_collisions1_abab_self_ab.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_parameter_collisions1_abab_self_ab.py index 2c5cee11205..da532aebbb7 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_parameter_collisions1_abab_self_ab.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_parameter_collisions1_abab_self_ab.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_pem_content_type.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_pem_content_type.py index 7b9ea261925..6ac2ba10961 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_pem_content_type.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_pem_content_type.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_pet_id_upload_image_with_required_file.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_pet_id_upload_image_with_required_file.py index e7ea4aa8730..862f47b43c5 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_pet_id_upload_image_with_required_file.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_pet_id_upload_image_with_required_file.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_query_param_with_json_content_type.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_query_param_with_json_content_type.py index 9c1fcd3a620..128c2d46032 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_query_param_with_json_content_type.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_query_param_with_json_content_type.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_redirection.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_redirection.py index 08bf760a1de..798c67bbadf 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_redirection.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_redirection.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_ref_obj_in_query.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_ref_obj_in_query.py index 29177c599e8..1573bdc0b37 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_ref_obj_in_query.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_ref_obj_in_query.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_array_of_enums.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_array_of_enums.py index 0d861354720..905d4fea6bc 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_array_of_enums.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_array_of_enums.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_arraymodel.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_arraymodel.py index 309478a8aa4..83f4562de2c 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_arraymodel.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_arraymodel.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_boolean.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_boolean.py index 92c53497249..508ba865c87 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_boolean.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_boolean.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_composed_one_of_number_with_validations.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_composed_one_of_number_with_validations.py index 825fa8d648a..85692a4791d 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_composed_one_of_number_with_validations.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_composed_one_of_number_with_validations.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_enum.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_enum.py index f7e05053c6e..7c199865244 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_enum.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_enum.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_mammal.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_mammal.py index 748834d31d4..9abd9cda3de 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_mammal.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_mammal.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_number.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_number.py index d192b2a05d4..771ac3bc9fb 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_number.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_number.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_object_model_with_ref_props.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_object_model_with_ref_props.py index b9cb5be9410..bd127518d22 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_object_model_with_ref_props.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_object_model_with_ref_props.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_string.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_string.py index b4bb92ecdd2..5ad33f38453 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_string.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_refs_string.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_response_without_schema.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_response_without_schema.py index b984149d41d..cd7cf1fb1d7 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_response_without_schema.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_response_without_schema.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_test_query_paramters.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_test_query_paramters.py index 6459a73f0ec..36d224c2f0d 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_test_query_paramters.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_test_query_paramters.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_download_file.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_download_file.py index c557693f751..fe5b04c7c47 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_download_file.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_download_file.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_file.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_file.py index d9cdc6f5bb1..e7e28d66490 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_file.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_file.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_files.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_files.py index 8b4ff8d87c7..133d750ecc8 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_files.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_upload_files.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_wild_card_responses.py b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_wild_card_responses.py index b8fecdd4239..8825f65c375 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/fake_wild_card_responses.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/fake_wild_card_responses.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/foo.py b/samples/client/petstore/python/src/petstore_api/apis/paths/foo.py index 1201c91b721..0d4695a493f 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/foo.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/foo.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/pet.py b/samples/client/petstore/python/src/petstore_api/apis/paths/pet.py index f43c6d3201e..f6c2ea79ee8 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/pet.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/pet.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/pet_find_by_status.py b/samples/client/petstore/python/src/petstore_api/apis/paths/pet_find_by_status.py index 085b080ab00..94ec0127fb1 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/pet_find_by_status.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/pet_find_by_status.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/pet_find_by_tags.py b/samples/client/petstore/python/src/petstore_api/apis/paths/pet_find_by_tags.py index 4c8164b4220..8639ac933df 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/pet_find_by_tags.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/pet_find_by_tags.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/pet_pet_id.py b/samples/client/petstore/python/src/petstore_api/apis/paths/pet_pet_id.py index 8282608ec0c..c29a09cc287 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/pet_pet_id.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/pet_pet_id.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/pet_pet_id_upload_image.py b/samples/client/petstore/python/src/petstore_api/apis/paths/pet_pet_id_upload_image.py index de157564b4f..3b6a1c66457 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/pet_pet_id_upload_image.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/pet_pet_id_upload_image.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/solidus.py b/samples/client/petstore/python/src/petstore_api/apis/paths/solidus.py index a611d44fa7e..5de06eca5ee 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/solidus.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/solidus.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/store_inventory.py b/samples/client/petstore/python/src/petstore_api/apis/paths/store_inventory.py index fc3604aff9a..ed698ed7c7c 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/store_inventory.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/store_inventory.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/store_order.py b/samples/client/petstore/python/src/petstore_api/apis/paths/store_order.py index de06c78e1ea..62dd5583774 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/store_order.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/store_order.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/store_order_order_id.py b/samples/client/petstore/python/src/petstore_api/apis/paths/store_order_order_id.py index 24c1666967c..8ae62beb4c2 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/store_order_order_id.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/store_order_order_id.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/user.py b/samples/client/petstore/python/src/petstore_api/apis/paths/user.py index 8a863e2d9f5..98f59e738bf 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/user.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/user.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/user_create_with_array.py b/samples/client/petstore/python/src/petstore_api/apis/paths/user_create_with_array.py index 1d2236d191f..9dc7d46e5d7 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/user_create_with_array.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/user_create_with_array.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/user_create_with_list.py b/samples/client/petstore/python/src/petstore_api/apis/paths/user_create_with_list.py index 9700893219c..f6891f4840a 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/user_create_with_list.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/user_create_with_list.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/user_login.py b/samples/client/petstore/python/src/petstore_api/apis/paths/user_login.py index 2412360859b..044a0c89e42 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/user_login.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/user_login.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/user_logout.py b/samples/client/petstore/python/src/petstore_api/apis/paths/user_logout.py index ec2722a759c..0a9e60a69da 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/user_logout.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/user_logout.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/paths/user_username.py b/samples/client/petstore/python/src/petstore_api/apis/paths/user_username.py index c1c2ed1e8e2..3167cbb913c 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/paths/user_username.py +++ b/samples/client/petstore/python/src/petstore_api/apis/paths/user_username.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/tags/another_fake_api.py b/samples/client/petstore/python/src/petstore_api/apis/tags/another_fake_api.py index 3831cfb3d52..8054f09a543 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/tags/another_fake_api.py +++ b/samples/client/petstore/python/src/petstore_api/apis/tags/another_fake_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/tags/default_api.py b/samples/client/petstore/python/src/petstore_api/apis/tags/default_api.py index 9f8fdd1e9d4..9b787f5b80b 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/tags/default_api.py +++ b/samples/client/petstore/python/src/petstore_api/apis/tags/default_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/tags/fake_api.py b/samples/client/petstore/python/src/petstore_api/apis/tags/fake_api.py index 66bb544a67b..d3879c98964 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/tags/fake_api.py +++ b/samples/client/petstore/python/src/petstore_api/apis/tags/fake_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/tags/fake_classname_tags123_api.py b/samples/client/petstore/python/src/petstore_api/apis/tags/fake_classname_tags123_api.py index 7906671d39c..a769d424c85 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/tags/fake_classname_tags123_api.py +++ b/samples/client/petstore/python/src/petstore_api/apis/tags/fake_classname_tags123_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/tags/pet_api.py b/samples/client/petstore/python/src/petstore_api/apis/tags/pet_api.py index 8df7e361d27..d9e8343045d 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/tags/pet_api.py +++ b/samples/client/petstore/python/src/petstore_api/apis/tags/pet_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/tags/store_api.py b/samples/client/petstore/python/src/petstore_api/apis/tags/store_api.py index 8f91fe36d32..af960f74731 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/tags/store_api.py +++ b/samples/client/petstore/python/src/petstore_api/apis/tags/store_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ diff --git a/samples/client/petstore/python/src/petstore_api/apis/tags/user_api.py b/samples/client/petstore/python/src/petstore_api/apis/tags/user_api.py index 304abe500c7..018ee328ac2 100644 --- a/samples/client/petstore/python/src/petstore_api/apis/tags/user_api.py +++ b/samples/client/petstore/python/src/petstore_api/apis/tags/user_api.py @@ -1,6 +1,9 @@ # coding: utf-8 """ + OpenAPI Petstore + This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. # noqa: E501 + The version of the OpenAPI document: 1.0.0 Generated by: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator """ From 3a14c01db3f803e2297e7bfe750d8e91e8a81e29 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Fri, 12 Apr 2024 12:08:57 -0700 Subject: [PATCH 12/12] Sample regen to remove unused java fiiles --- .../3_0_3_unit_test/java/docs/ServerInfo.md | 59 ------------------- .../java/docs/servers/Server0.md | 17 ------ .../client/ServerInfo.java | 46 --------------- .../client/servers/Server0.java | 9 --- .../3_1_0_unit_test/java/docs/ServerInfo.md | 59 ------------------- .../java/docs/servers/Server0.md | 17 ------ .../client/ServerInfo.java | 46 --------------- .../client/servers/Server0.java | 9 --- 8 files changed, 262 deletions(-) delete mode 100644 samples/client/3_0_3_unit_test/java/docs/ServerInfo.md delete mode 100644 samples/client/3_0_3_unit_test/java/docs/servers/Server0.md delete mode 100644 samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java delete mode 100644 samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java delete mode 100644 samples/client/3_1_0_unit_test/java/docs/ServerInfo.md delete mode 100644 samples/client/3_1_0_unit_test/java/docs/servers/Server0.md delete mode 100644 samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java delete mode 100644 samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java diff --git a/samples/client/3_0_3_unit_test/java/docs/ServerInfo.md b/samples/client/3_0_3_unit_test/java/docs/ServerInfo.md deleted file mode 100644 index a50511d0405..00000000000 --- a/samples/client/3_0_3_unit_test/java/docs/ServerInfo.md +++ /dev/null @@ -1,59 +0,0 @@ -# ServerInfo -ServerInfo.java - -public class ServerInfo - -A class that provides a server, and any needed server info classes -- a class that is a ServerProvider -- a builder for the ServerProvider -- an enum class that stores server index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [ServerInfo.ServerInfo1](#serverinfo1)
class that stores a server index | -| static class | [ServerInfo.ServerInfoBuilder](#serverinfobuilder)
class that stores a server index | -| enum | [ServerInfo.ServerIndex](#serverindex)
class that stores a server index | - -## ServerInfo1 -implements ServerProvider<[ServerIndex](#serverindex)>
- -A class that stores servers and allows one to be returned with a ServerIndex instance - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ServerInfo1(@Nullable [Server0](servers/Server0.md) server0)
Creates an instance using passed in servers | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [Server0](servers/Server0.md) | server0 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Server | getServer([ServerIndex](#serverindex) serverIndex) | - -## ServerInfoBuilder - -a builder for [ServerInfo1](#serverinfo1) - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ServerInfoBuilder()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ServerInfoBuilder](#serverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | -| [ServerInfo1](#serverinfo1) | build() | - -## ServerIndex -enum ServerIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SERVER_0
server 0 | diff --git a/samples/client/3_0_3_unit_test/java/docs/servers/Server0.md b/samples/client/3_0_3_unit_test/java/docs/servers/Server0.md deleted file mode 100644 index 91b84467efa..00000000000 --- a/samples/client/3_0_3_unit_test/java/docs/servers/Server0.md +++ /dev/null @@ -1,17 +0,0 @@ -org.openapijsonschematools.client.servers.Server0 -# Server Server0 -public class Server0 - -A class that stores a server url - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Server0()
Creates a server | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| String | url = "https://someserver.com/v1" | - -[[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java deleted file mode 100644 index 259aba01150..00000000000 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.openapijsonschematools.client; - -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server; -import org.openapijsonschematools.client.servers.ServerProvider; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.Objects; - -public class ServerInfo { - public static class ServerInfo1 implements ServerProvider { - private final Server0 server0; - - ServerInfo1( - @Nullable Server0 server0 - ) { - this.server0 = Objects.requireNonNullElseGet(server0, Server0::new); - } - - @Override - public Server getServer(ServerIndex serverIndex) { - return server0; - } - } - - public static class ServerInfoBuilder { - private @Nullable Server0 server0; - - public ServerInfoBuilder() {} - - public ServerInfoBuilder server0(Server0 server0) { - this.server0 = server0; - return this; - } - - public ServerInfo1 build() { - return new ServerInfo1( - server0 - ); - } - } - - public enum ServerIndex { - SERVER_0 - } -} \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java deleted file mode 100644 index f74d6d47db4..00000000000 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.openapijsonschematools.client.servers; - -import org.openapijsonschematools.client.servers.ServerWithoutVariables; - -public class Server0 extends ServerWithoutVariables { - public Server0() { - super("https://someserver.com/v1"); - } -} diff --git a/samples/client/3_1_0_unit_test/java/docs/ServerInfo.md b/samples/client/3_1_0_unit_test/java/docs/ServerInfo.md deleted file mode 100644 index a50511d0405..00000000000 --- a/samples/client/3_1_0_unit_test/java/docs/ServerInfo.md +++ /dev/null @@ -1,59 +0,0 @@ -# ServerInfo -ServerInfo.java - -public class ServerInfo - -A class that provides a server, and any needed server info classes -- a class that is a ServerProvider -- a builder for the ServerProvider -- an enum class that stores server index values - -## Nested Class Summary -| Modifier and Type | Class and Description | -| ----------------- | --------------------- | -| static class | [ServerInfo.ServerInfo1](#serverinfo1)
class that stores a server index | -| static class | [ServerInfo.ServerInfoBuilder](#serverinfobuilder)
class that stores a server index | -| enum | [ServerInfo.ServerIndex](#serverindex)
class that stores a server index | - -## ServerInfo1 -implements ServerProvider<[ServerIndex](#serverindex)>
- -A class that stores servers and allows one to be returned with a ServerIndex instance - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ServerInfo1(@Nullable [Server0](servers/Server0.md) server0)
Creates an instance using passed in servers | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| [Server0](servers/Server0.md) | server0 | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| Server | getServer([ServerIndex](#serverindex) serverIndex) | - -## ServerInfoBuilder - -a builder for [ServerInfo1](#serverinfo1) - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| ServerInfoBuilder()
Creates an instance | - -### Method Summary -| Modifier and Type | Method and Description | -| ----------------- | ---------------------- | -| [ServerInfoBuilder](#serverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | -| [ServerInfo1](#serverinfo1) | build() | - -## ServerIndex -enum ServerIndex
- -### Enum Constant Summary -| Enum Constant And Description | -| ----------------------------- | -| SERVER_0
server 0 | diff --git a/samples/client/3_1_0_unit_test/java/docs/servers/Server0.md b/samples/client/3_1_0_unit_test/java/docs/servers/Server0.md deleted file mode 100644 index 91b84467efa..00000000000 --- a/samples/client/3_1_0_unit_test/java/docs/servers/Server0.md +++ /dev/null @@ -1,17 +0,0 @@ -org.openapijsonschematools.client.servers.Server0 -# Server Server0 -public class Server0 - -A class that stores a server url - -### Constructor Summary -| Constructor and Description | -| --------------------------- | -| Server0()
Creates a server | - -### Field Summary -| Modifier and Type | Field and Description | -| ----------------- | --------------------- | -| String | url = "https://someserver.com/v1" | - -[[Back to top]](#top) [[Back to Servers]](../../README.md#Servers) [[Back to README]](../../README.md) diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java deleted file mode 100644 index 259aba01150..00000000000 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/ServerInfo.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.openapijsonschematools.client; - -import org.openapijsonschematools.client.servers.Server0; -import org.openapijsonschematools.client.servers.Server; -import org.openapijsonschematools.client.servers.ServerProvider; -import org.checkerframework.checker.nullness.qual.Nullable; - -import java.util.Objects; - -public class ServerInfo { - public static class ServerInfo1 implements ServerProvider { - private final Server0 server0; - - ServerInfo1( - @Nullable Server0 server0 - ) { - this.server0 = Objects.requireNonNullElseGet(server0, Server0::new); - } - - @Override - public Server getServer(ServerIndex serverIndex) { - return server0; - } - } - - public static class ServerInfoBuilder { - private @Nullable Server0 server0; - - public ServerInfoBuilder() {} - - public ServerInfoBuilder server0(Server0 server0) { - this.server0 = server0; - return this; - } - - public ServerInfo1 build() { - return new ServerInfo1( - server0 - ); - } - } - - public enum ServerIndex { - SERVER_0 - } -} \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java deleted file mode 100644 index f74d6d47db4..00000000000 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.openapijsonschematools.client.servers; - -import org.openapijsonschematools.client.servers.ServerWithoutVariables; - -public class Server0 extends ServerWithoutVariables { - public Server0() { - super("https://someserver.com/v1"); - } -}